BluesyBuesy Posted July 3, 2017 Share Posted July 3, 2017 This is a server-side mod, so I should have access to the kramped component, but because the _activeplayers table is local I can't access it from modmain using AddComponentPostInit. Basically when a player joins, they're added to a local table within kramped, and when they kill nice creatures a naughty value is added to this table. The naughtiness data isn't even saved anywhere except for this single temporary local table. You can just restart a server or log in and out and it will reset your naughtiness. I could just keep track of naughtiness myself or extract the information out of the debug string with string functions (really dumb). Is there a way to access the local table from modmain that I'm just not aware of? Link to comment Share on other sites More sharing options...
ThemInspectors Posted July 4, 2017 Share Posted July 4, 2017 12 hours ago, BluesyBuesy said: This is a server-side mod, so I should have access to the kramped component, but because the _activeplayers table is local I can't access it from modmain using AddComponentPostInit. Basically when a player joins, they're added to a local table within kramped, and when they kill nice creatures a naughty value is added to this table. The naughtiness data isn't even saved anywhere except for this single temporary local table. You can just restart a server or log in and out and it will reset your naughtiness. I could just keep track of naughtiness myself or extract the information out of the debug string with string functions (really dumb). Is there a way to access the local table from modmain that I'm just not aware of? Hmmm I'm not sure there's anyway you'd be able to do that, unfortunately. This ought to be a bug though. Maybe you could create a custom krampus script very similar to the original. Edit the game files and pretend it works. Then tell the devs that it isn't working right and propose your fix. Link to comment Share on other sites More sharing options...
alainmcd Posted July 4, 2017 Share Posted July 4, 2017 Upvalues. Try Rezecib's UpvalueHacker. 18 hours ago, BluesyBuesy said: You can just restart a server or log in and out and it will reset your naughtiness. Sounds like a bug to me. You could leave a bug report and suggest making the naughtiness values accessible somewhere too. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now