Jump to content

Recommended Posts

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 by ThaumicParrot

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

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!

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...