ScrewdriverLad Posted January 26, 2022 Share Posted January 26, 2022 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. Link to comment https://forums.kleientertainment.com/forums/topic/137133-how-to-create-a-weapon/ Share on other sites More sharing options...
Leonidas IV Posted January 28, 2022 Share Posted January 28, 2022 This is a normal lua code error. You forgot to close some conditional/function with "end". It's good that you learn the fundamentals of lua first. 1 Link to comment https://forums.kleientertainment.com/forums/topic/137133-how-to-create-a-weapon/#findComment-1536019 Share on other sites More sharing options...
Kopynft Posted January 28, 2022 Share Posted January 28, 2022 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 1 Link to comment https://forums.kleientertainment.com/forums/topic/137133-how-to-create-a-weapon/#findComment-1536148 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