zsdedan Posted January 4, 2021 Share Posted January 4, 2021 Hi! I found DS mod useful to me in DST. I could not find analogs for DST, so I decided to transfer this mod from DS to DST myself. I studied a lot of material on the forum and other mods, but nothing came of it. Maybe someone can help? During launch, the game crashes with the message [00:00:46]: error calling simpostinit in mod mymod (EnableMouse with Controller): [string "../mods/mymod/modmain.lua"]:17: attempt to index local 'inst' (a nil value) LUA ERROR stack traceback: ../mods/mymod/modmain.lua(17,1) =(tail call) ? =[C] in function 'xpcall' scripts/mods.lua(165,1) scripts/mods.lua(772,1) in function 'SimPostInit' Where to dig? modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/125723-help-with-transferring-ds-mod-to-dst/ Share on other sites More sharing options...
Thomas_klei Posted January 5, 2021 Share Posted January 5, 2021 idk self. should be inst and inst should be self.inst Link to comment https://forums.kleientertainment.com/forums/topic/125723-help-with-transferring-ds-mod-to-dst/#findComment-1413499 Share on other sites More sharing options...
penguin0616 Posted January 5, 2021 Share Posted January 5, 2021 @zsdedan If you're relying on the inst argument from AddSimPostInit, that would be the cause of your error. -- example AddSimPostInit(function(inst) print(inst) end) In DS, inst == GetPlayer() in DST, inst == nil 1 1 Link to comment https://forums.kleientertainment.com/forums/topic/125723-help-with-transferring-ds-mod-to-dst/#findComment-1413613 Share on other sites More sharing options...
zsdedan Posted January 6, 2021 Author Share Posted January 6, 2021 Thank you guys for the advice. Link to comment https://forums.kleientertainment.com/forums/topic/125723-help-with-transferring-ds-mod-to-dst/#findComment-1413869 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