Hi there, guys.
I've decided to put my 2 cents about script compiling with BIS compiler here.
Step 1. Get OpenWatcom preprocesson from OpenWatcom site. URL is:
http://www.openwatcom.com/ftp/zips/c_nt.zip (850 Kb only, and no need for megatonn MSVC installations at all! Thanks to ABel, who pointed this out). (If you on Win98/Me see Issues below).
Step 2. Unzip contents of downloaded archive into any temp directory, then cut/paste all files from "temp/binnt" to your "Fallout 2 Mapper/scripts" folder. There must be wcc.exe, wcc386.exe and 2 dll's with same names.
Step 3. Open file "P.bat" from "Fallout 2 Mapper/scripts" in Notepad, find string "@rem Watcom 11 users uncomment the following line:" and make next string look like that: "@..\wcc386.exe temp.c /pc /fo=temp.i /w4"
Find string "@rem The path in the following two lines should point to the Fallout 2 folder:" and edit next two strings to point on your Fallout2 folder. This is path to folder, where your compiled scripts will be placed.
(I'm personally don't wanted to immediately replace existed scripts with compiled ones, so I'm created folder "CompiledBIS", and edited this strings to
"@md
![tard D:](./images/smilies/tard.gif)
\FalloutStuff\CompiledBIS
@copy temp.int
![tard D:](./images/smilies/tard.gif)
\FalloutStuff\CompiledBIS\%1.int")
Step 4. Edit any script from "scripts\something" folder and save it there.
Step 5. Run file with extension .bat from within folder, where your edited script lies. (If you want to compile only one script - look in this file and make your own, its quite easy). It will compile all scripts from this folder, place results in folder, which you choose in Step 3, and output any errors in "err.log" file.
Step 6. Copy your compiled scripts to "Fallout2\data\scripts" directory.
Step 7. Run the game and look, how your modified script screw it all 8)
Possibly issues:
1. Im not perfectly sure, that Watcom preproc binaries will work on Win98/Me systems (judge from their "nt" filename parts). It works perfectly on XP, and I havent heard about any troubles yet. If not, maybe DOS version of preproc helps you
http://www.openwatcom.com/ftp/zips/c_doswin.zip (another 880 Kb).
2. BE WARNED! Source files, shipped with editor, are from version 1.0 of Fallout 2. So, if you blindly compile any file from editor and stuck it into game - be ready for full spectre of 1.0 glitches (missing car and so on).
Check first, if script, that you want to modify, present in patch000.dat. If it there - bad luck, you must learn&use Noid compiler/decompiler (its not so hard thing to do 8) ). If not - 99% probability that all be alright.
Hope this helps anyone. And sorry for my bad English.