darkgod wrote:I could not code without it

Really! Do you mind giving a bit of insight into how you use it? A tips/tricks thread from DG on module development would be nice.
* The command results appear before the list of commands it looks weird
I didn't realize what you meant until I tried the "=" magic in the code block below... fixed now, though.
* Indent the code with tabs please
Whoops, sorry. I am developing under Windows right now (usually on Mac) and the editor I had was defaulting to spaces instead of tabs. Should be fixed in the attached file.
* when trying the == thing I got:
Lua Error: /engine/DebugConsole.lua:53: bad argument #1 to 'pairs' (table expected, got number)
At [C]:-1
At [C]:-1 pairs
At /engine/DebugConsole.lua:53 plain
At /engine/KeyCommand.lua:73 receiveKey
At /engine/KeyBind.lua:208
using those commands:
a={1,2,3,a=3}
==a
Now this is a real question mark. The only thing I can think of is to upload the entire lua file instead of a patch and see if maybe the patch was wrong. Here is an example session and the output I get from running this modified DebugConsole on t-engine4-windows-1.0.0beta9b:
Code: Select all
a = {1, 2, 3, a=4}
=a
1 :=: table: myaddress
==a
1 :=: 1
2 :=: 2
3 :=: 3
a :=: 4
An additional caveat is that the "==" table magic only works with the "." delimited tables right now. For example, "==game.player" will work, but "==game['player']" will not. I haven't thought about fixing it for now, but if that is something you want to use then let me know.