Please note that new user registrations disabled at this time.

Script Editors

This forum is to be used for all discussions pertaining to BioWare's Baldur's Gate II: Shadows of Amn.
Post Reply
User avatar
Xak Tsarsoth
Posts: 7
Joined: Wed Apr 24, 2002 4:17 pm
Contact:

Script Editors

Post by Xak Tsarsoth »

Does anyone know where to get a good script editor?
User avatar
Sojourner
Posts: 3084
Joined: Sun Mar 25, 2001 11:00 pm
Contact:

Post by Sojourner »

You can write scripts with any plain text editor. To compile the scripts, you can use the script compiler that came with the game. There are several things you need to do to make it work:
  1. When you save your script file, make sure it has the .baf extension and save it in the script compiler\source directory in your BG2 - SoA game directory.
  2. Before running the compile.bat file located in your BG2 - SoA\script compiler directory for the first time, right-click on it and select Properties. Click on the Program tab. Click in the Cmd line: box. Use the keyboard right-arrow key to scroll to the end of the command line. Add a space and ? to the end of the line. Click Apply, and then click OK.
  3. Run the script compiler by double-clicking on the compile.bat file located in your BG2 - SoA\script compiler directory. It will prompt you for parameters. There is where you enter the name of your script file that you had saved in the script compiler\source directory, without the .baf extension.
Example: You create MyScript.baf and save it in the script compiler\source directory. You run compile.bat, and enter MyScript for the parameter. Compile.bat opens up a DOS window and compiles it, putting the compiled script in your script compiler\compiled directory, and any errors in the script compiler\errors directory. In general, if there is a syntax error in your script, it will not compile. Hope this helps!
There's nothing a little poison couldn't cure...

What happened here was the gradual habituation of the people, ... to receiving decisions deliberated in secret; to believing that the situation was so complicated that the government had to act on information which the people could not understand, or so dangerous that, even if he people could understand it, it could not be released because of national security.
User avatar
Xak Tsarsoth
Posts: 7
Joined: Wed Apr 24, 2002 4:17 pm
Contact:

Post by Xak Tsarsoth »

Thanks, I'll try it out.
Post Reply