jonfin826, on Thu Apr 24, 2008 10:22 PM, said:
Using Crimson Editor, whenever i try to compile Zombie Chase, it says"
> "C:\Program Files\Atari Programming Tools\Batari Basic\2600bas.bat" C:\Program Files\Atari Programming Tools\Batari Basic\samples\zombie_chase.bas
Files\Atari was unexpected at this time.
> Terminated with exit code 255.
When it should terminate with exit code 0. I've tried everything i can think of and cannot find a way to correct this. And I know i have to fix this, because it won't run any bB programs because it's obviously not able to correctly compile the .bas files because of some unknown error i have made in setting up Crimson Editor as directed in Session 3 of the tutorial on the Batari Basic site.
The problem is with your directory path, which contains spaces. Both the batari Basic compiler and the DASM assembler use parameters to tell them what to compile/assemble, so if you have spaces in the directory path, the spaces are taken as separating different parameters from each other-- e.g., "C:\Program" is taken as one parameter, "Files\Atari" is taken as another parameter, "Programming" is taken as another parameter, and so forth.
The good news is, you can keep your installation setup and directory path as is, as long as you put quotes around things.
In Crimson Editor, you'll need to put quotes around your Argument for the tool you've set up to compile with. For example, the Argument for my compile tool is "$(FilePath)" (in quotes, as shown). You might be using a different variable for your Argument, but whatever it is, the whole thing must be enclosed in quotes.
In the batari Basic compile batch (2600bas.bat), if you've added the SET command to set the bB variable to the directory where you've installed batari Basic, and if the path contains any spaces, (I think) you'll also need to put it in quotes, as follows:
SET bB="C:\Program Files\Atari Programming Tools\Batari Basic"
SET PATH=%PATH%;%bB%
Michael
Edited by SeaGtGruff, Thu Apr 24, 2008 9:28 PM.