Page 1 of 2
Dev Console fun...
Posted: Mon Apr 16, 2012 9:20 pm
by Patchumz
Heh, so enabling the dev console and dev mode seems to unlock a lot of stuff. Figured it's worth its own thread. Testing out hotkeys was the first thing I did...
Found that L gives your entire party a level up... and M is evil... very evil.
H uses the crystal of life (minus the autosave, unfortunately :c)
Anyone found some fun things to do with the console besides spawning stuff? (Cuz spawning stuff tends to be boring)
Re: Dev Console fun...
Posted: Mon Apr 16, 2012 9:30 pm
by seebs
Ooh, I didn't know about those.
I wrote a bunch of helper lua functions to do stuff like level up, train skills, etc., but I hadn't known about keybindings.
Re: Dev Console fun...
Posted: Mon Apr 16, 2012 9:48 pm
by Patchumz
seebs wrote:Ooh, I didn't know about those.
I wrote a bunch of helper lua functions to do stuff like level up, train skills, etc., but I hadn't known about keybindings.
I thought there weren't as well, until I accidentally mashed a button.
Re: Dev Console fun...
Posted: Mon Apr 16, 2012 10:12 pm
by dark
Question, how do you enable the console? I checked the config file and saw nothing there to enable it.
Thanks,
Re: Dev Console fun...
Posted: Mon Apr 16, 2012 10:34 pm
by seebs
dark wrote:Question, how do you enable the console? I checked the config file and saw nothing there to enable it.
Thanks,
Long story short: Extract Console.lua from the big .dat file (there's tools for this), and modify it. Around 0x7c1 there's a section-symbol which US keyboards mostly lack, change that to something you can type. You may have to modify the "developer" setting to "mouseLook" or "musicMute" in order to have a setting which the config file reader will process. (Two locations.) Also, at 0x50 or so, maxLines is followed by 0x0A, change this to something larger if you want more than ten lines.
Re: Dev Console fun...
Posted: Mon Apr 16, 2012 11:09 pm
by Patchumz
And then after it's enabled, you can just do config["developer"]=true and then config:apply() to enable dev mode, which allows you to use the hotkeys and stuff like that.
Re: Dev Console fun...
Posted: Mon Apr 16, 2012 11:11 pm
by seebs
Oooh.
I will update my lua script to do that.
Re: Dev Console fun...
Posted: Tue Apr 17, 2012 2:41 am
by Honelith
Patchumz wrote:and M is evil... very evil.
omg. Never again.
Re: Dev Console fun...
Posted: Tue Apr 17, 2012 4:49 am
by seebs
Okay, still exploring this. I am totally sure I accidentally hit something that gave a character a torch, but I haven't been able to recreate it. Not the spawn command, just something that happened while I was messing around for hotkeys. No clue what that was. (I was in the starting room and hadn't taken a torch yet.)
F1-F8 seem to be purely debugging oriented things, F11 is a nice minimap, h heals everyone, l gives levels, m spawns a spider, L teleports you directly down a level and sometimes also gives you a bunch of XP (?).
EDIT: The torch happens if you start a game in developer mode.
And what L does is give you the XP and items from the level you're on, it appears. So you finish level 1 with a bunch of food, some armor, the blue gems, and so on.
Re: Dev Console fun...
Posted: Tue Apr 17, 2012 5:50 am
by Patchumz
Ah, nice find with the floor clearing one. After I fairly earn the
class I'm probably going to just screw around a bit with stuff like this
.