Dev Console fun...

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Patchumz
Posts: 151
Joined: Fri Mar 02, 2012 6:03 pm
Location: Wonderland

Dev Console fun...

Post 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)
seebs
Posts: 268
Joined: Sat Apr 14, 2012 8:58 pm

Re: Dev Console fun...

Post 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.
User avatar
Patchumz
Posts: 151
Joined: Fri Mar 02, 2012 6:03 pm
Location: Wonderland

Re: Dev Console fun...

Post 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.
dark
Posts: 65
Joined: Tue Mar 27, 2012 9:51 pm

Re: Dev Console fun...

Post by dark »

Question, how do you enable the console? I checked the config file and saw nothing there to enable it.

Thanks,
seebs
Posts: 268
Joined: Sat Apr 14, 2012 8:58 pm

Re: Dev Console fun...

Post 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.
User avatar
Patchumz
Posts: 151
Joined: Fri Mar 02, 2012 6:03 pm
Location: Wonderland

Re: Dev Console fun...

Post 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.
seebs
Posts: 268
Joined: Sat Apr 14, 2012 8:58 pm

Re: Dev Console fun...

Post by seebs »

Oooh.

I will update my lua script to do that.
Honelith
Posts: 9
Joined: Sat Apr 14, 2012 2:47 am

Re: Dev Console fun...

Post by Honelith »

Patchumz wrote:and M is evil... very evil.
omg. Never again.
seebs
Posts: 268
Joined: Sat Apr 14, 2012 8:58 pm

Re: Dev Console fun...

Post 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.
User avatar
Patchumz
Posts: 151
Joined: Fri Mar 02, 2012 6:03 pm
Location: Wonderland

Re: Dev Console fun...

Post by Patchumz »

Ah, nice find with the floor clearing one. After I fairly earn the
SpoilerShow
Ranger
class I'm probably going to just screw around a bit with stuff like this :P.
Post Reply