5/7/2023 0 Comments Spellforce 3 console commandsOne of the most useful console commands for debugging your script is the logic level scriptcall command, which you can use to execute arbitrary AngelScript code. This will also display any error messages caused by the script along with a callstack to tell you where the error was caused, so check there first if you are encountering a problem. You can tap the Tab key once to autocomplete whatever command you are currently typing and double-tap it to display a list of possible commands and their parameters.įor script debugging, you can use the print command in order to track which functions are being called as well as the values of your variables.Īnything printed using this function will appear in the dev console under the sc filter. You can filter the information displayed in the console by pressing the buttons at the top right of the screen (double right-click a button to restrict output only to that category). It will show all recent log entries and allows you to issue commands to the game for debugging purposes. The dev console can be opened by pressing the ^ key. If you want to access a script object and you're not sure what it's called, use Ctrl + G -> Alt + S to have the game display the names of all objects accessible via script. To display only the creature's action history in the console, use the cr filter at the top. In the dev console, you should then see the confirmation New target set for history log: (id: xxx). To do so, open the creature debug menu using Ctrl + C, then display the creature's action and animation details using Alt + B.įinally, locate the creature whose actions you want to track and click on the "Track" button above it. If a creature does not behave the way you expect them to, you can tell the game to print a detailed history of their actions and received commands to the dev console. To display a list of all the global variables currently in use along with their values, you can use the the menu under Ctrl + G -> Alt + V. This menu provides extensive information about all dialogues and highlights potential problems/reasons why your dialogue might not behave as intended (look for anything that's marked in a bright red). To check the current state of your dialogues and to lock/unlock certain topics for testing purposes, you can use the dialogue debug menu accessible via Ctrl + H -> Alt + D. Below is a list of some of the most commonly useful menus and features. You can open any sub menu/execute any function by pressing the corresponding key combination. The first place to go if you're having a problem or just want to make your life easier is the debug menu, which you can open at any time by pressing Ctrl + D. This page contains useful tips and tricks for checking for flaws in your script code and making testing in general a bit easier.
0 Comments
Leave a Reply. |