a script compiler

Grayswandir

Mildly Dipped
Hello,
I am currently learning how to mod fallout2, but I am having a probleme with installing a script compiler. (not writing a script that I think I have understood).

FSE seems to lie to me. Doesn't compile at all, or I don't know where.

I followed exactly the tutorial from Fanmadefallout, with watcom, but in the end I have got this error in cmdwindow:
"1 file copied"
"1 file copied"
"dos4wg is not recognised as intern or extern valid command, blabla"

So I tried the f2compiler, I follow the steps in the readme, till I arrive to that :
"You'll need to add the directory that the file RUBY.EXE resides in
to your path. Add the following line to your AUTOEXEC.BAT file,
modified to account for where you installed the ruby interpreter.

SET PATH=C:\USR\LOCAL\BIN;%PATH% "

That I really can't understand. Where do i have to write the path? And where do i find this Autoexec.Bat?

I am perseverant. i downloaded noid Compiler. Very professionel. But the readme is in (russian?). So I don't know how to make it work.

Is there any easy way to convert .ssl files into .int ?
Could maybe one of the great scripter help a newbe and tell me how to install step by step one of the script compiler ?

Thanks in advance, sorry I have to ask such a stupid thing...
 
I don't use any of the tools you mentioned. I tried FSE and, while others get it to work great, I had problems. I use a program called Ruby. It's pretty easy. From the prompt using a DOS shell, just tell it:
ruby compile file.ssl
or
ruby decompile file.int

I don't remember exactly where I got it, but a simple internet search should turn it up. Keep in mind that this program is not Fallout specific. So, when it takes apart a file, it will reference global variables, items, critters, etc. by number only. You will have to cross-reference this info with the related files like vault13.gam for global variables and the various files like pro_item.msg.

I'm sorry if it sounds complicated, but it isn't. I just mean to say that you will have to open up a file like pro_item.msg in order to understand that when a file references item 1, for example, it is talking about metal armor. The other tools will do this for you, but not Ruby. If you find the program and want to use it, feel free to e-mail or pm me.
 
So, when it takes apart a file, it will reference global variables, items, critters, etc. by number only. You will have to cross-reference this info with the related files like vault13.gam for global variables and the various files like pro_item.msg.

You mean when it decompile ssl files, right? But i still can use the script from the mapper and compile it?



Actually, the f2compiler already made me download the ruby, the readme confused me so I had to stop.

So I have it installed, and I sure would like to learn how to use it!
I have Ruby 1.8.6, installed in C:\ . A lot of file, but no exe...
 
No. You decompile a script (.int) to make a source file (.ssl).

And, I'm willing to bet you still have all the files you need.

I told you that I don't use anything else. I mean, NOTHING else. The ruby program I placed in a folder. So, when I open the DOS shell, I type this at the C: in order to get to the Ruby program-

cd C:\usr\local\bin

(This is the folder where I placed all components of that Ruby file. You can place the program where ever you want, just be sure to type the right path to that folder.)

Next, place the file you want to decompile into that same folder.
Then, type what you want to do, like I said in the first message. If you open that folder up (regular screen, not the DOS shell), you will see a new source file. You can open that source file with Notepad and make any changes to it. Like I said, though, the information in the source file is a little rough, and you may need to reference other files within Fallout to decipher what items, global variables, and other things the script is talking about.
After you have made your changes, recompile the script using the instruction line above. Place that new script into your Fallout 2/data/scripts folder, and you will see your handiwork.

Oh, and it's not stupid to ask how to do this. But, it can be challenging. You have been warned. :wink:
 
And challenging it is.
First It would'nt work because of some leftover from f2compile (two file, compile and decompile that had to be in .bin)

So now, I can decompile .int into .ssl.

But I can't decompile .ssl into .int !

I have got this error
compile/29/ warning object"type is deprecated; use Object"class/usr/lib/ruby/1.6/racc/parser.rb:45 blablabla

Can you tell me which version of ruby do you use? I have got the lattest. I will try with a former one.
 
Grayswandir said:
But I can't decompile .ssl into .int !

I have got this error
compile/29/ warning object"type is deprecated; use Object"class/usr/lib/ruby/1.6/racc/parser.rb:45 blablabla

Can you tell me which version of ruby do you use? I have got the lattest. I will try with a former one.

Of course you can't decompile an .ssl (source) file. You 'compile' an .ssl. I have never seen that error. Make sure you are typing it correctly.

I am using the 1.6.8 version of Ruby, not the latest and greatest, I believe. It works, and, no sense in fixing something that isn't broken.
 
It works! It actually works!
I am a scripter!! I can script!!!!

No wait... I only installed a compiler... Now the real work begin...

So for future apprenticeScripter, it seems that only the 1.6.8 version of Ruby is compatible with fallout script.

Thanks a lot MIB88!!

I hope i can pay you back in the future!
 
Grayswandir said:
I hope i can pay you back in the future!

Sure. Just make a mod that I can integrate into the Megamod, and we'll be even. :wink:
 
Back
Top