How do i install a compiler?

Limbabnees

Still Mildly Glowing
Hi...

i'm really frustating by now.
Please dont send me back to or other posts/topics:
http://www.nma-fallout.com/content.php?page=fo-modding-compsetup

I have download most anything by now, but not Watson 11.
Reading posts/manuals and tutorials the last 48 houres.
Installed all kind of tools. but no compiler is installed correctly.

The Fallout 2 mapper works "almost" fine.
It think the problem is that Watson 11 isn't installed. Using the open source version will fail, so what do i need to do?

http://www.nma-fallout.com/forum/viewtopic.php?p=438469#438469
 
Try to set path in autoexec.bat to your mappers/scripts folder and restart PC before u use P.BAT

like:

C:\AUTOEXEC.BAT:

set path="C:\Games\F2Mapper\scripts"

and then just try to recompile some fallout2 script, use for instance arroyo/arroyo.bat .]
 
Sorry to say. but i dont understand it.
I edit autoexec.bat
set path="C:\Program Files\BlackIsle\Fallout2 Mapper\scripts.

Run FSE
open arroya.bat and compile (F9)
Results are:

Precompilation successful!
Compiling preprocessor output:"temp.i"
DOS/4GW Protected Mode Run-time Version 1.97
Copyright (c) Rational Systems, Inc. 1990-1994
Compiling TEMP.I
TEMP.I(1): Error! Expecting top-level statement
FSE info --> Compiler was unable to find some basic script data that should be located here (procedure keyword, begin, end, etc.)
"Mismatching delimiters (begin, end) found. Please also check comments (/* */) and if there are any commands outside the procedures."

*** THERE WERE ERRORS (1 of them)
------------------------------------------------

Compilation cannot complete due to critical error

Seems i still missing some tool or whatever.
 
Do you still have all of the ruby compiler/decompiler files? You should have extracted them so that it looks like this:

(folders)
usr
usr/local
usr/local/lib (and there are other subfolders in this one)
usr/local/bin

Inside the bin folder you should have a few files including a couple of executables, the main one being ruby. Just put your .int or .ssl file into this folder. Then open up the DOS shell and move to this folder. For example, at the prompt I would type:
cd c:\usr\local\bin

(I put these folders starting right at the c: drive.)

Once in this folder, I type something like ruby compile acklint.ssl or ruby decompile acklint.int.

The file is created right there in that folder. Then move it to your game folder.

That's it. No messing with batch files. Maybe there are other ways of doing this. Maybe there are ways of doing mass compilations. And there might be ways of working with these scripts without moving files around. However, you aren't ready for these, and this should be easy.

I don't know how the other compilers work, so I can't help you there.
 
Arroyo.bat is not a script, it's just batch file. You don't have to use any editor. Just try to run arroyo.bat or something
from windows and you should see if it's OK.

BUT:

TEMP.I(1): Error! Expecting top-level statement

It seems like debug info is OK. You can try compile some SSL file now using FSE too...

BTW I use program CodePad with extra syntax definitions made by m8 few years ago... It does not depend on program u use...
 
It seems like debug info is OK. You can try compile some SSL file now using FSE too...

Compile is possible, recompile NOT.

I hope my version is the same as yours.

http://www.ruby-doc.org/docs/UsersGuide/rg/

c:\ruby\bin
...doc
...lib
...scite
...src
and more.

We talk about ruby.exe i assume and not rubyw.exe.

i take the Klint files.
Copied in: C:\ruby\bin
Dos Shell i typied:
cd c:\ruby\bin (im in that dir now)

it's all clear and logic now.

wenn type: compile mcmiria.ssl
i get this message:
stub exe failed:
dos4w.exe
No such file or directory

wenn copy the FSE version inside the bin folder F3(recall) and enter i get an other error message
DOS/4GW Protected Mode Run-time Version 1.97
Copywright (c) Rational Systems, Inc. 1990-1994
DOS/4GW fata error (1008): can't load executable format for file mcmiria.ssl[1]

Well, something happen here :)
 
If you have a folder called usr/local/lib/ruby/1.6, then it is the same version.

And pay attention to what I said you needed to type for the command.
 
MIB88 said:
If you have a folder called usr/local/lib/ruby/1.6, then it is the same version.

I dont have that folder, mine folder calls : ruby/bin and the program's name is Ruby-186-25.

And pay attention to what I said you needed to type for the command.
I pay attention, but because rube is another directy i needed to type it this way, or i'm i confused?

OK my bad.
It seems it's deep in the roote, i found it, sorry.
Ruby\lib\ruby\1.8
 
The version is newer, but that doesn't matter. It should work the same.

MIB88 said:
...I type something like ruby compile acklint.ssl or ruby decompile acklint.int.
 
(olders)
usr
usr/local
usr/local/lib (and there are other subfolders in this one)
usr/local/bin

so for me is:
usr C drive
local ruby.

I delete DOS4GW.EXE
But i still get that load error
what i typed was:
I'm in DOS SHELL c:\ruby\bin
I type: ruby compile mcmiria.ssl

it says:
ruby: No such file or directory -- compile (LoadError)
--------------------
ok i closed the dos screen
reopen and open/come here automatically
c:\Documents and Settings\Martin\

first i type cd \ so i come at c:\

then type:
cd c:\ruby\bin
give me
c:\ruby\bin directory

ok...
type:
ruby compile mcmiria.ssl

same results:
ruby: No such file or directory -- compile (LoadError)

So what do i wrong or why he dont accept compile ?

Time for coffee again :)
 
I have no idea where you installed your various files. Just as an example:

I put my work in c:\usr\local\bin

This means that I have the ruby.exe and support files for it in the bin folder. I put the .int and .ssl files here too.

I work in the bin folder (meaning, at the DOS shell prompt I typed cd c:\usr\local\bin)

Then I give the command ruby decompile script.int or ruby compile script.ssl.

If it still doesn't work for you, I don't know what to tell you. You'll just have to try another program.
 
I have files with those names. Also have a mingw32-ruby16.dll, irb, ruby, and others. There is also a readme file there as well. Maybe you should look that over in case the commands really are different between our versions.
 
*EDIT:
Still not possible to de/compile, but im a little furder :)

root
c:\ruby\bin\
i type
ruby compile mcmiria.ssl

COMPILE:29 warning: Object#type is deprecated; use Object#clase
/usr/lib/ruby/1.6/racc/parser.rb:45: uninitialized constant Racc: :Parser: :Racc_c_parcer_id (ERROR)

Is the file not compatible?

-------------
Installation:
-------------

1.) Install the Fallout 2: 1.02d patch, plus the debugging patch if you
desire it.

2.) Once you have obtained the ruby interpreter, extract it. Extracting
to the root directory of the drive is recommended. The archive extracts
to under the USR\LOCAL directory. Recent versions of winzip should be
able to extract tar.gz files.

3.) Copy both the compiler and decompiler scripts into the directory that
you will be working in. These scripts are named COMPILE and
DECOMPILE respectively.

4.) 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%
changed it in
SET PATH=C:\RUBY\BIN;%PATH%

5.) You will need to reboot for changes to AUTOEXEC.BAT to take effect.
Do i need this file: ruby-1.6.8-i386-mingw32.tar.gz
I cant find it anywhere.
The only file i found is: mingw32 in Ruby/doc
Any clues?

*Edit:
Dont know how it possible, but i have at least a acklint.ssl.
procedure pickup_p_proc begin
Easier to pick items with steal-skill, annoying everytime with the
barter button

Im still not sure if it's errorless compiled.It has no
procedure armour_change begin, this is what it make interseting.
I see there no triggers, so why is it empty?
Hmmm...
 
Limbabnees said:
*EDIT:
Still not possible to de/compile, but im a little furder :)

root
c:\ruby\bin\
i type
ruby compile mcmiria.ssl

COMPILE:29 warning: Object#type is deprecated; use Object#clase
/usr/lib/ruby/1.6/racc/parser.rb:45: uninitialized constant Racc: :Parser: :Racc_c_parcer_id (ERROR)

Is the file not compatible?

-------------
Installation:
-------------

1.) Install the Fallout 2: 1.02d patch, plus the debugging patch if you
desire it.

2.) Once you have obtained the ruby interpreter, extract it. Extracting
to the root directory of the drive is recommended. The archive extracts
to under the USR\LOCAL directory. Recent versions of winzip should be
able to extract tar.gz files.

3.) Copy both the compiler and decompiler scripts into the directory that
you will be working in. These scripts are named COMPILE and
DECOMPILE respectively.

4.) 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%
changed it in
SET PATH=C:\RUBY\BIN;%PATH%

5.) You will need to reboot for changes to AUTOEXEC.BAT to take effect.
Do i need this file: ruby-1.6.8-i386-mingw32.tar.gz
I cant find it anywhere.
The only file i found is: mingw32 in Ruby/doc
Any clues?

*Edit:
Dont know how it possible, but i have at least a acklint.ssl.
procedure pickup_p_proc begin
Easier to pick items with steal-skill, annoying everytime with the
barter button

Im still not sure if it's errorless compiled.It has no
procedure armour_change begin, this is what it make interseting.
I see there no triggers, so why is it empty?
Hmmm...

http://www.nma-fallout.com/forum/viewtopic.php?p=12098#12098
 
Wow, I'm sorry - I'm at a total loss here. I've never had an issue like this with Ruby (1.6). I even just take the entire folder and copy it to my thumb drive so I can put it on other computers to do Fallout modding. Never anything to install. It works great on 99% of scripts, the only problems being scripts made by TeamX.

But try something for me. Don't use the .ssl files that came with the mapper. Instead, take a file out of your game and place it in the folder. Decompile it. I don't think Ruby works with official mapper .ssl files. I never used them. If ever I needed to work on a file, I would decompile it with Ruby, work on it, then recompile it.
 
Well. i dont know it anymore :)

From frustration i formatted my drive after backup some importend files.
place back a ghost image ( basic Win XP ) and installed all over again.

I placed lenny.int from MIB88 in user\local\bin
(yes, user instead of usr, made a typo with install )

type: ruby decompile lenny.int

decompile:1068: warning: parenthesize argument(s) for future version
decompile:1077: warning: parenthesize argument(s) for future version
decompile:1068: warning: method redefined; discarding old initialize
decompile:1759: warning: method redefined; discarding old eof
decompile:1763: warning: method redefined; discarding old read
decompile:1766: warning: method redefined; discarding old seek
decompile:1796: warning: method redefined; discarding old seek
decompile:1806: warning: discarding old oef?

Well, i have a decompiled file from lenny :)
Dont know yet what messages these are, but it works so far.
I hope the file is not corrupted, but hey, its just experimenting time.

The reason i pick Lenny is, that it would be fun to have a "Real" Medic in your team.
Lenny has no use as a soldier, so give him some thing he's good at :D
Instead he's gonna shoot, better heal dude_obj :D
See if its possible to check hitpoint percentage and heal dude_obj not fully, but in degrees or something like that, using stimpack or super stimpack.

(get_critter_stat(self_obj,STAT_current_hp))....
if ((dude_max_hits > dude_cur_hits) or dude_is_crippled) then
procedure HealPlayer begin
critter_heal(dude_obj,dude_max_hits-dude_cur_hits);
 
Ok, so it looks like 1.6 and 1.8 operate differently. Wasn't there a readme file? Maybe the command isn't like how it is with 1.6. It should say what the proper commands are in a readme file.
 
You are quick :)
So he reads old file and converted them to the new version ?
Only have ruby versie 1.8 installed
At least my mind is doing what's it suppose to do now :D

% ruby -v
gives you the ruby version.
gives me the ruby version, ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32].
It seems the syntax is change a little in the new version.
Im reading Rudy documents online and try out some basic coding to test if its working correctly.
Think i reinstall ruby, seems there are to much syntax errors, wenn trying simple examples. Why those dammm uninstallers dont clean up the register :(


Btw:
I download CHEATBOY and analizing those scripts.
Are interesting things in it.
This can become very handy :D

Still not figure out what those messages are.
I can decompile almost all scripts from MIB88, acklint.int & acklint2.int wont decompile ( they are set read-only, in case it matters).
What's with those files?
 
Back
Top