agsutils icon indicating copy to clipboard operation
agsutils copied to clipboard

Feat.req. Adapt agsoptimize to run on Windows

Open necros2k7 opened this issue 4 years ago • 6 comments

subj

necros2k7 avatar Jan 17 '22 00:01 necros2k7

agsoptimize is a python script. what prevents you from using it on windows ?

rofl0r avatar Jan 17 '22 09:01 rofl0r

ok will look into it, self contained exe would be better, people should not have to install another dependency

necros2k7 avatar Jan 18 '22 01:01 necros2k7

What I do wrong? c:\python34\python agsex sample.exe, c:\python34\python agsex

File "agsex", line 3 usage() { ^ SyntaxError: invalid syntax

python311: File "c:\tst\agsex", line 4 echo "$0 game.exe FILES OBJ" ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?

necros2k7 avatar Aug 28 '22 11:08 necros2k7

agsex is a shell script, it requires unix shell, not python. you can get one for example via cygwin or msys2 (i recommend the former).

rofl0r avatar Aug 28 '22 13:08 rofl0r

OK i ran agsex and files are in FILES and OBJ dirs, what should I do next? Run agsoptimize? What`s command line to process all files massively? Am I right that all flags should be passed for full optimization?

necros2k7 avatar Aug 31 '22 12:08 necros2k7

agsex extracts everything and creates a handy makefile to rebuild project after changes to "game.ags". so you can run make optimize and then make all from inside cygwin (you need python2 and gnu make installed inside cygwin env, using cygwin installer). you also need to expand PATH environment variable to include folder with agsutils binaries, iirc.

make optimize runs agsoptimize with recommended setting on all assembly files.

rofl0r avatar Aug 31 '22 13:08 rofl0r