Alchemist said:
Nirran said:
In this case I don't really understand why you rely on Noid's syntax/opcodes. Int2ssl provides native Interplay's syntax of SSL language. And speaking about errors with original opcodes check
following thread in TeamX's forums. Automatic translations is not always adequate but mostly satisfactory. Jordan've been made same thing for an older version of Sfall. It is outdated indeed but some fixes related to the original opcodes would be helpful. Links to source code samples are given in that thread.
And one more thing, pretty please, do not reproduce Jordan's mistake when there where two binaries with the same version stamp but different functionality. If you plan to make and release your very own and tweaked build of the utility, either fork it completely from the original project or make a well visible notice to be displayed on a program start. So people could clearly see that it's special Sfall/Noid edition of the utility. Thanks in advance.
i probably confused the purpous of that by posting it in this thread,it is actualy a completely seperate thing(was sleepy when i answered before) one is the int2ssl with all current sfall opcodes,the other is ruby compile/decompile files with all sfall opcodes
in both of them i fixed some errors in the vanilla fo2 opcodes(did not mess with fo1 in ruby),sorry for the confusion
and to clarify the 3 scripts that failed to re-compile with int2ssl and sfall compiler,it was actualy bugs that i think were present in the vanilla compiler the dev's used
dccraps.int and zccrpdel.int(both have similar code)
this one is coded
Code:
if (local_var(x bwand y) then
and should be
Code:
if ((local_var(x bawnd y) == 1) then
int2ssl fails to translate correctly,resulting in code that will not recompiel
edit : dccraps.int also has multiple lines of
no expression pointing to a script var or setting the local,script fails to recompile because of original code
another is mckarl.int
Code:
"--" actual line is item_caps_adjust(x_ptr, -- lvar)
should simply be
Code:
"-" or items_caps_adjust(x_ptr, - lvar)
again resulting in code that will not compile
script fails to recompile because of original code
i will try to fix these,in that way allowing all vanilla scripts to decompile,then without editing,recompile(it may be a while,my c++ isnt that great)
that was my original intention,but as these 3 scripts(of about 1400 in vanilla game) are results of bad code that bugs in the original compiler failed to catch and are exceedingly rare,im not going to bother
edit : the other script that wont recompile is surf.int and it is a mess,multiple procedures are declared and some of them are even referenced,but the bodies of the procedures are not written(in other words not the decompiler,was original code)
edit : surf.int is not even in the scripts.lst of the vanilla game,heh
edit : in regards to the thread link,i read most of it,but i recieved the source dirrectly from Jordan,he even fixed a few bugs present when i tried to compile it the first few times,any fixes he may have done are included,thank you though
Nirran