Hints and tips for using the debug console
Posted: Wed Jun 06, 2012 7:22 pm
I am at the point where I am begining to look at using the debug console to check my OXPs and thought that it may be useful to have a thread in which anyone can ask questions relating to the debug console or for that matter post advice or some examples of the basic or most common commands.
I have copied below some initial information kindly provided by another_commander which outlines in brief what the debug console is for and where to download it.
PS.target.AI
PS.target.AIState
Therefore in order to kick off the thread does anyone know what the command is to spawn a particular type of ship ?
I have copied below some initial information kindly provided by another_commander which outlines in brief what the debug console is for and where to download it.
Thargoid’s commands noted above were: -another_commander wrote:The Debug Console is a must if you are doing OXP development or writing code for the core game. Using it lets you generate test conditions in the game in real-time in order to test OXPs, spawn ships you have created, change the AIs of entities on the fly, inject JavaScript code directly into the game and much more. It even allows for remote debugging sessions between two computers, where one is running the console and the other is running the game.Shipbuilder wrote:With regard to the console command how do i use this ?
To enable it, you need to have Basic-debug.oxp installed in your AddOns folder. If you are using Windows, then Basic-debug.oxp is offered during installation of the game and by default it is installed, so unless you have changed the setting, you should have it already present.
Then you need to download the console program itself. It is found here: http://developer.berlios.de/project/sho ... e_id=18953.
To use it, you must run the OoDebugConsole.exe program before running Oolite. When run, the console window will open and report that it is waiting for connection. Starting up Oolite with the Basic-debug.oxp installed will establish this connection. From that point onwards, you can issue commands like the ones Thargoid mentioned earlier to the game via the console and see the responses/output in its window.
A simple search for "debug console" and "debug oxp" in the wiki yields some useful more in-depth information.
PS.target.AI
PS.target.AIState
Therefore in order to kick off the thread does anyone know what the command is to spawn a particular type of ship ?