XML:Advanced tutorial: Difference between revisions

m
accessing dev mode (~/^/customkey)
mNo edit summary
m (accessing dev mode (~/^/customkey))
Line 13: Line 13:
"ai2_movetoflag ''CharacterNameOrID FlagID''" is a BSL command, it tells a character to move to a specific flag. This command makes use of one resource.
"ai2_movetoflag ''CharacterNameOrID FlagID''" is a BSL command, it tells a character to move to a specific flag. This command makes use of one resource.


"ai2_dopath ''CharacterNameOrID PathName''" is also a BSL command, it tells a character to walk or run on a specific path formed by several flags. The path is one resource that contain actually several other resources. So it depend on them, right? A much more complex example is ONCC ...
"ai2_dopath ''CharacterNameOrID PathName''" is also a BSL command, it tells a character to walk or run on a specific path formed by several flags. The path is one resource that contains actually several other resources. So it depend on them, right? A much more complex example is ONCC ...


:: '''''I think we should try something together now.'''''
:: '''''I think we should try something together now.'''''
Line 19: Line 19:
* Let's play in window mode, then we can change to a notepad when we need to.
* Let's play in window mode, then we can change to a notepad when we need to.


* We need someone that act as a guinea pig. Let's load level 1, first savepoint, activate developer mode (try typing "x" or "thedayismine"). On my PC I have to press key "^" now. That opens the developer console for me. Find the key that does the same for you. Now let's type "ai2_shownames = 1". You can't see the dev console? Try a more native resolution 640x480. You know Oni is a bit buggy.
* We need someone that act as a guinea pig. Let's load level 1, first savepoint, activate developer mode (try typing "x" or "thedayismine").
:: See if you have a QWERT<u>Y</u> keyboard. ~ key will open the developer mode for you. Or is it a QWERT<u>Z</u> keyboard? Then try ^ key.
:: If you cannot find the right key you can also change your key_config.txt in your Edition folder. For example: "bind 7 to console" (that key should not be used by other functions)
:: Some resolutions hides the command line, try then playing at 800x600 or 640x480. (You can change that in Oni's option menu.)


* Aha, his name is "A_t48". Let's remember that later. Key F6 will kill him. Now we won't get interrupted by him ...
* Now let's type "ai2_shownames = 1". Aha, his name is "A_t48". Let's remember that later. Key F6 will kill him. Now we won't get interrupted by him ...


* We need new flags. "chr_debug_characters = 1" displays player character's current position. That can be used to set them up.
* We need new flags. "chr_debug_characters = 1" displays player character's current position. That can be used to set them up.
8,018

edits