Jump to content

Crash when using debugkey f1


Recommended Posts

I have this

GLOBAL.CHEATS_ENABLED = true
GLOBAL.require('debugkeys')
 
And in-game, I press F1 and it crashes
 
Log:
[00:01:26]: SendHandShakeServerListing
[00:02:13]: Could not preload undefined prefab 0xf03d95b2 (OUTOFSPACE)
[00:02:13]: Can't find prefab shadowmaxwell
[00:02:13]: [string "scripts/consolecommands.lua"]:81: attempt to index local 'inst' (a nil value)
LUA ERROR stack traceback:
scripts/consolecommands.lua:81 in (global) c_spawn (Lua) <76-86>
   prefab = shadowmaxwell
   count = 1
   inst = nil
   i = 1
scripts/debugkeys.lua:349 in () ? (Lua) <333-351>
   armour = 110392 - armorruins(LIMBO) (valid:true)
   weapon = 110394 - ruins_bat(LIMBO) (valid:true)
   hat = 110396 - ruinshat(LIMBO) (valid:true)
   inv = table: 465F6BC8
=(tail call):-1 in ()  (tail) <-1--1>
scripts/debugkeys.lua:22 in (global) DoDebugKey (Lua) <19-27>
   key = 282
   down = true
   k = 2
   v = function - scripts/debugkeys.lua:34
scripts/frontend.lua:752 in (method) OnRawKey (Lua) <740-756>
   self =
      topblackoverlay = Image - images/global.xml:square.tex
      fade_title_out = false
      ignoreups = table: 0D068EB0
      overlayroot = overlayroot
      consoletext = Text - CONSOLE TEXT
      save_indicator_fade_time = 0
      page_repeat_time = 0.25
      repeat_time = 0
      helptext = HelpText
      subtitle = Text - 
      updating_widgets_alt = table: 177AEA48
      helptexttext = Text - 
      topFadeHidden = true
      gameinterface = 100012 -  (valid:true)
      updating_widgets = table: 17598F38
      lastx = 1047
      total_fade_time = 1
      lasty = 517
      autosave_enabled = true
      blackoverlay = Image - images/global.xml:square.tex
      screenstack = table: 0D068578
      displayingerror = false
      fade_time = 1.0117265845339
      screenroot = screenroot
      focus_locked = false
      tracking_mouse = true
      alpha = -6.4502211831741e-006
      save_indicator_time_left = 0
      fade_title_time = 0
      fade_title_in = false
      forceProcessText = false
      helptextbg = Image - images/global.xml:square.tex
      num_pending_saves = 0
      saving_indicator = UIAnim
      title = Text - 
   key = 282
   down = true
   screen = HUD
scripts/frontend.lua:120 in (field) fn (Lua) <120-120>
   key = 282
   down = true
scripts/events.lua:46 in (method) HandleEvent (Lua) <42-49>
   self =
      events = table: 1AE717E0
   event = onkey
   arg = nil
   handlers = table: 17598F88
   k = table: 0D06ABC0
   v = true
scripts/input.lua:184 in (method) OnRawKey (Lua) <183-191>
   self =
      onkeyup = table: 1AE71858
      entitiesundermouse = table: 2CE8DBE0
      onkey = table: 1AE717B8
      enabledebugtoggle = true
      position = table: 1AE71A10
      mouse_enabled = true
      ongesture = table: 1AE71B78
      onmouseup = table: 1AE71920
      onkeydown = table: 1AE71830
      oncontrol = table: 1AE71A88
      onmousedown = table: 1AE71998
      ontextinput = table: 1AE71B00
   key = 282
   down = true
scripts/input.lua:352 in () ? (Lua) <351-353>
   key = 282
   is_up = true
 
[00:02:13]: SCRIPT ERROR! Showing error screen
[00:02:14]: QueryServerComplete no callback
[00:02:14]: QueryServerComplete no callback
[00:02:31]: Force aborting...
Link to comment
Share on other sites

@SenL, There are a couple keys like that. It's because debug keys were meant to test something on DS by devs, and were ported pretty much unchanged to DST. Or in this case, it's indeed because there's a typo in the code. The F1 key is probably not useful for you anyway, as all it does is giving you armor and spawning a shadow puppet.

Avoid pressing F11 too, it deals with the Nightmare Clock, which doesn't even exist yet on DST.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...