Jump to content

Can't decipher this error


Recommended Posts

Can you put your mod is a zip file and upload that?

Thing is the client log refers to this line

local filepath = string.gsub(filepath, "^/", "")

So the file path might be the problem, hence I want to see exactly how the mod is layed out.

Edited by spideswine
Link to comment
Share on other sites

Well I see from the screenshot that it crashes in the loading screen, however for me the mod loads fine, so is there anything else I need to do to reproduce the crash?

Aside from that, the fact that I see "filepath" in the crash description and that your mod folder has an exclamation point in it makes me suspicious, so maybe try renaming it to just tornadosunfinished and see if that helps.

Link to comment
Share on other sites

It worked fine for you because I commented out part of the modmain to prevent tornado spawners from spawning. I'll try your suggestion of taking out the exclamation point.

 

edit- I'm still getting the same error.

Edited by Eusong
Link to comment
Share on other sites

So anyway I've looked through your code, and through tumbleweedspawner(which I suppose works in a similar fashion)

you have:

return Prefab("tornadospawner", create_spawner, prefabs)
whereas tumbleweedspawner has

return Prefab("tumbleweedspawner", fn, nil, prefabs)

so maybe try:

return Prefab("tornadospawner", create_spawner,nil, prefabs)

(I'm talking about the last line in tornadospawner.lua)

Edited by spideswine
Link to comment
Share on other sites

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
 Share

×
  • Create New...