To enable the debugger you need to create a new file in notepad and add the line debugRandomMaps to it, then save it as 'user.cfg', without the quotes in your AOM\startup directory.
Put the xs and xml file of the map you wish to work on in the AOM\RM directory. You now have 2 options that you can use: My advice is to use single player when you are trying to work out the syntax bugs (misplaced comma, spelling and so on) since it is quicker to reload after fixing each error. There are 4 very important tools when debugging a rms. 1) Quoted from "RMS help doc": Sets whether the area build process will warn if it fails. Quoted from "RMS help doc": Random map echo. 4)Patience I hope this is helps some peeps and I look forward to seeing what you can create. [This message has been edited by Pascal9872 (edited 03-09-2004 @ 00:49 AM).]
1)You can try and load the map in single player
2)You can select to create a map using your script in the editor.
You should use the editor when you want to check for other things like objects placing and so on; since, you have the option to start the debugger before you load the map and you can set breakpoints and step through the map line by line.
It is very easy to over-constrain areas to the point where there is no room for them. This can cause two problems: the map may take a long time to generate, or if you are in debug mode (see above), the debugger will pop up and generation will stop. Sometimes you want to catch these errors, but when you are done with your map it is a good idea to set SetAreaWarnFailure to false.
2)
Use this to spit out information while debugging a script. It is not shown to the player.
You can use this to chat variable values like map size, area size and so on. To chat a variable value I tend to do rmEchoInfo("<
3)TextPad which is a shareware program that is very useful in scripting (it has an option to number lines). You can download it here :
Guide to Debugging RMS
Download my RMS here
Help improve RMS reviewing here
A monk I need a monk.
I thought therefore I was.