Jump to content

Recommended Posts

I'm currently trying to create a weapon (known internally as knife) to add to my character, but can't get it working. I've been using the Big Book of DST Character Creation and it links to this post from 2013, for vanilla Don't Starve. While I tried my best to make it work, I keep getting errors when trying to load up my character - all of them from the knife.lua file.

I have no idea what to do, but here's the error I keep getting from DST.

If you need me to, I can also send you the entire knife.lua file to look over.

knife1.png

Link to comment
https://forums.kleientertainment.com/forums/topic/137133-how-to-create-a-weapon/
Share on other sites

Without the code it is a bit hard to tell exactly where the problem is, however the console is pointing at "line 7" where you have a function you forgot to close, remember that the structure when coding in LUA is:

function myfunction()
	--my code does this
	--my code does that
end

 

  • Health 1

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...