Jump to content

Testing a gift handling mod?


Recommended Posts

So I noticed this in debugkeys.lua:

AddGameDebugKey(KEY_I, function()
        if TheInput:IsKeyDown(KEY_CTRL) and TheInput:IsKeyDown(KEY_SHIFT) then
                TheInventory:Debug_LocalGift()
                return true
    elseif TheInput:IsKeyDown(KEY_CTRL) then
        TheInventory:Debug_ForceHeartbeatGift("")
        return true
    elseif TheInput:IsKeyDown(KEY_SHIFT) then
        c_spawn("researchlab")
        return true
    end
end)

but hitting the key combinations just crashes the game, with neither of TheInventory methods existing (attempt to call method ... a nil value). Am I missing something here? Was this dropped at some point, or is it just unavailable in the public stable steam build?

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...