How do you use the script compiler?

hurricanewonder

New member
Joined
Mar 20, 2010
Messages
1
:help !!!!!!!!!!!!!!!!!
OK, I got the hang of creating lands, but I am totally new when it comes to scripting.

The link that shows you how to run the script compiler is expired.
So, the only thing left to do is ask here.
 
What OS are you running?

In Windows7 I set up my .bat file like this...

"Script Compiler" -path "G:\Program Files (x86)\Lionhead Studios\Black & White 2\Tools\Script Compiler" -enumfile "G:\Program Files (x86)\Lionhead Studios\Black & White 2\Tools\Script Compiler\Enums.txt" -dbfile "G:\Program Files (x86)\Lionhead Studios\Black & White 2\Tools\Script Compiler\bw2text.lhts" -scriptpath "G:\Program Files (x86)\Lionhead Studios\Black & White 2\Tools\Script Compiler\Land13" -inputfile "G:\Program Files (x86)\Lionhead Studios\Black & White 2\Tools\Script Compiler\Land13\Land13Challenges.txt" Land13.chl > Land13\debug.txt

Just make sure to check your paths.

The Land13Challenges.txt should read...

Land13Script.txt

Try that and see if it works.
It took me a while to figure it out because the link was dead when I was first trying too.
Then it turned out that I had to do it differently from what the link showed anyway... go figure.
Good luck to you.

Oh... if the compiler is crashing you may need to add bw2text.bin to the Script Compiler folder.
It has something to do with a problem the compiler has with certain script commands.
The .bin file is in...

C:\Program Files (x86)\Lionhead Studios\Black & White 2\Data\Text

It'll still crash, but will finish writing the file first.
Not exactly sure why it has to be done this way, but it just does...
 
Back
Top