sfall script editor

Does anyone have any experience getting the script editor to work in Linux with Wine? If so I would appreciate any tips.
Update: Script editor works properly except I have to compile from the command line.
 
Code:
play_sfall_sound("Patch000.dat\\sound\\SFX\\geigerhigh.wav",1);

This won't compile (tried without the extra backslashes, without quotations, etc. as well). The error simply says "expecting ";"". What am I doing wrong?
 
JimTheDinosaur said:
Code:
play_sfall_sound("Patch000.dat\\sound\\SFX\\geigerhigh.wav",1);

This won't compile (tried without the extra backslashes, without quotations, etc. as well). The error simply says "expecting ";"". What am I doing wrong?
Might you have to escape the periods?
Code:
play_sfall_sound("Patch000\.dat\\sound\\SFX\\geigerhigh\.wav",1);
 
Sorry to bring this up again, but I still can't get play_sfall_sound to work.

I've tried all kinds of different combinations, but the only thing I've gotten to compile is just plain

play_sfall_sound;

which I'm guessing shouldn't compile, right?
 
Oops, didn't see this.

JimTheDinosaur said:
which I'm guessing shouldn't compile, right?
Nope. That seems to be a quirk of the compiler.

Another quirk of the compiler is that you (normally) can't ignore a functions return value.

Code:
play_sfall_sound("Patch000.dat\\sound\\SFX\\geigerhigh.wav",1);

will not compile, but

Code:
variable tmp;
tmp:=play_sfall_sound("Patch000.dat\\sound\\SFX\\geigerhigh.wav",1);

will
 
I've compiled the script compiler from modderspack 3.3. The difference is that when you enable optimization (-O key or appropriate checkbox in Script Editor), it only removes unused procedures and global variables, and don't attempt to optimize procedures themselves (because in some cases it produces corrupted code!). This is useful (for me, that is), because allows me to use optimization at a basic level: I include a lot of libraries (header files with utility procedures) just for one procedure and don't bother about too many unused code inside the compiled script!

VS2010 binary: View attachment compile.zip

Have anyone tried to fix crashes of script editor (and compiler) when you add some code that parser can't handle (like declaration of procedure before writing definition)?
 
Last edited:
Back
Top