Moonratds Posted December 21, 2014 Share Posted December 21, 2014 So I was working with porting mods over from Don't Starve to test my skills with this sort of thing, and the init value seems to return a nil value, causing my game to crash.... I don't really know how to get this fixed.... Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/ Share on other sites More sharing options...
rezecib Posted December 21, 2014 Share Posted December 21, 2014 @Moonratds, Not enough information. Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/#findComment-590752 Share on other sites More sharing options...
Moonratds Posted December 21, 2014 Author Share Posted December 21, 2014 (edited) Here is the thing that it tells me: modmain.lua"]:5: attempt to index local 'inst' (a nil value)LUA ERROR stack tracebackmodmain.lua(5,1)=(tail call) ?[C] in function 'xpcall'scripts/mods.lua(105,1)scripts/mods.lua(545,1 in function 'SimPostInit'scripts/gamelogic.lua(899,1) in function 'DoInitGame' Edited December 21, 2014 by Moonratds Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/#findComment-590846 Share on other sites More sharing options...
Moonratds Posted December 22, 2014 Author Share Posted December 22, 2014 Does anyone have a fix for this? I have no idea what to do.... Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/#findComment-591059 Share on other sites More sharing options...
rezecib Posted December 22, 2014 Share Posted December 22, 2014 @Moonratds, Not enough information. Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/#findComment-591146 Share on other sites More sharing options...
Some1 Posted December 22, 2014 Share Posted December 22, 2014 What do you have in modmain.lua? Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/#findComment-591246 Share on other sites More sharing options...
Moonratds Posted December 24, 2014 Author Share Posted December 24, 2014 What do you have in modmain.lua?function playerpostinit(inst) inst:AddComponent("pickyfeet")end AddSimPostInit(playerpostinit) Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/#findComment-592180 Share on other sites More sharing options...
Sarcen Posted December 24, 2014 Share Posted December 24, 2014 function playerpostinit(inst) inst:AddComponent("pickyfeet")end AddSimPostInit(playerpostinit) Change AddSimPostInit to AddPlayerPostInit, assuming all else (the component etc) is in order that should be enough Link to comment https://forums.kleientertainment.com/forums/topic/47190-init-doesnt-love-me/#findComment-592182 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