ThaumicParrot Posted February 13, 2016 Share Posted February 13, 2016 (edited) Hello! I'm attempting to port a mod over from DST to DS. However, I have a single error in the log and don't know how to fix it! I've attached the mod as well. Here's the log and the mod: shovelknight.zip log.txt Edited February 13, 2016 by ThaumicParrot Link to comment https://forums.kleientertainment.com/forums/topic/64297-help-figuring-out-error-in-mod/ Share on other sites More sharing options...
Mobbstar Posted February 13, 2016 Share Posted February 13, 2016 scripts/mods.lua(44,1) error calling LoadPrefabFile in mod shovel knight DST (Shovel Knight Revived): ...n/dont_starve/data/scripts/prefabs/player_common.lua:207: bad argument #1 to 'pairs' (table expected, got function) The constructor in DS doesn't have two postinit functions, but only one. You need to change the last line of winston.lua Link to comment https://forums.kleientertainment.com/forums/topic/64297-help-figuring-out-error-in-mod/#findComment-722158 Share on other sites More sharing options...
ThaumicParrot Posted February 13, 2016 Author Share Posted February 13, 2016 1 minute ago, Mobbstar said: scripts/mods.lua(44,1) error calling LoadPrefabFile in mod shovel knight DST (Shovel Knight Revived): ...n/dont_starve/data/scripts/prefabs/player_common.lua:207: bad argument #1 to 'pairs' (table expected, got function) The constructor in DS doesn't have two postinit functions, but only one. You need to change the last line of winston.lua Awesome, thanks for the help bud! Link to comment https://forums.kleientertainment.com/forums/topic/64297-help-figuring-out-error-in-mod/#findComment-722161 Share on other sites More sharing options...
ThaumicParrot Posted February 13, 2016 Author Share Posted February 13, 2016 @Mobbstar so I fixed that up and got it to the world gen screen, but it crashes and says on line 136 in modmain.lua "attempt to perform arithmetic on local 'mult' (a nil value)". This has something to do with the fixing of the resurrection penalty. How could I change this so that it works? I'll attach the modmain. modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/64297-help-figuring-out-error-in-mod/#findComment-722173 Share on other sites More sharing options...
Arkathorn Posted February 13, 2016 Share Posted February 13, 2016 (edited) 'GLOBAL.TUNING.REVIVE_HEALTH_PENALTY_AS_MULTIPLE_OF_EFFIGY' is probably nil. Perhaps there is a typo somewhere? Edited February 13, 2016 by Arkathorn Link to comment https://forums.kleientertainment.com/forums/topic/64297-help-figuring-out-error-in-mod/#findComment-722261 Share on other sites More sharing options...
ThaumicParrot Posted February 13, 2016 Author Share Posted February 13, 2016 3 hours ago, Arkathorn said: 'GLOBAL.TUNING.REVIVE_HEALTH_PENALTY_AS_MULTIPLE_OF_EFFIGY' is probably nil. Perhaps there is a typo somewhere? Yep, it was something like that. Thanks for the help! Link to comment https://forums.kleientertainment.com/forums/topic/64297-help-figuring-out-error-in-mod/#findComment-722338 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