addfuture Posted April 16, 2017 Share Posted April 16, 2017 Hey all. I have an issue with my first ever mod for DST. I attempted to make a mod that increases Maxwell's sanity from 6.67/min to 10/min however I get this crash error: [string "scripts/components/sanity.lua"]:270: attempt to perform arithmetic on local 'total_dapperness' (a nil value) LUA ERROR stack trackback: scripts/components/sanity.lua:270 in (method) Recalc (Lua) <262-325> scripts/components/sanity.lua:239 in (method) OnUpdate (Lua) <234-248> scripts/update.lua:192 in () ? (Lua) <149-228> The mod worked fine when I was testing it on my own files but when I uploaded it to the workshop and subscribed to it and picked Maxwell this crash occurred. I'm new to modding DST so if there's something obvious I'm doing wrong just let me know. I can also attach the mod files if required. Thank you. Link to comment https://forums.kleientertainment.com/forums/topic/77802-maxwell-sanity-mod-crashes/ 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