I have tried to superload the Player.lua file, and now I am receiving an error that Player.runCheck() is nil. I didn't touch runCheck() specifically, so by my understanding it should still exist in the base version of Player.

I *am* calling the function PlayerRest.initRest() which indirectly calls Player.restCheck().

How can I get ToME to use the original restCheck while using my superload of Player?

Nevermind! It turns out that PlayerRest calls a function which returns the string error "player:restCheck() method not defined" without actually checking anything at all. The solution is just to overload that method with a call to player.restCheck().

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum