ThaumicParrot Posted February 13, 2016 Share Posted February 13, 2016 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 Link to comment 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 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 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 Share on other sites More sharing options...
Arkathorn Posted February 13, 2016 Share Posted February 13, 2016 'GLOBAL.TUNING.REVIVE_HEALTH_PENALTY_AS_MULTIPLE_OF_EFFIGY' is probably nil. Perhaps there is a typo somewhere? Link to comment 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.