DeadlyHooves Posted January 5, 2014 Share Posted January 5, 2014 (edited) So yeah, I got a character I'm working on, and whenever I move he infinitly attempts to run in the direction I last pressed. After about a minute of it it feeds me this error:...on/dont_starve/data/scripts/stategraphs/SGwilson.lua:2005: attempt to perform arithmetic on field 'foosteps' (a nil value)LUA ERROR stack traceback: C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraphs/SGwilson.lua(2005,1) in function 'fn' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua(476,1) in function 'UpdateState' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua(515,1) in function 'Update' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua(111,1) in function 'Update' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/update.lua(121,1)scripts/frontend.lua(707,1) SCRIPT ERROR! Showing error screen this confuses me as I haven't even TOUCHED foot steps?And its extra strange because it only started happening once I told my character to switch between two builds? (the infinite running happens regardless of which build the character is in though) Any ideas? Sorry for asking for help a lot recently, just not used to this games lua.I can work in it with little trouble in my own games lol. Edited January 5, 2014 by DeadlyHooves Link to comment https://forums.kleientertainment.com/forums/topic/30748-infinite-running-on-custom-character/ Share on other sites More sharing options...
DeadlyHooves Posted January 5, 2014 Author Share Posted January 5, 2014 AAAAAAAAND of course an hour after I make the post (so I cant delete it) I figure it out. anyways thanks for any who were working on figuring it out Link to comment https://forums.kleientertainment.com/forums/topic/30748-infinite-running-on-custom-character/#findComment-399207 Share on other sites More sharing options...
seronis Posted January 5, 2014 Share Posted January 5, 2014 AAAAAAAAND of course an hour after I make the post (so I cant delete it) I figure it out. anyways thanks for any who were working on figuring it out Post what the problem/fix was anyways. Always useful in case some other new modder makes the same mistake. Could even be useful if someone wants to be able to do that 'feature' on purpose. Link to comment https://forums.kleientertainment.com/forums/topic/30748-infinite-running-on-custom-character/#findComment-399213 Share on other sites More sharing options...
DeadlyHooves Posted January 5, 2014 Author Share Posted January 5, 2014 Essentially I had it use thesetStateGraph("sgWilson")Command when I didn't need it, and it caused crashes and my character to infinity run when it didn't! Link to comment https://forums.kleientertainment.com/forums/topic/30748-infinite-running-on-custom-character/#findComment-399217 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