Jump to content

modmain.lua errors


Recommended Posts

I'm putting together a character mod but upon creating a world, DST informs me that line 43 of my modmain.lua script is missing a "=" symbol where there definitely is one. In following Dleowolf's character mod tutorial, I'm noticing several differences in the scripts of the template character they're working with vs the DST template I've got so I'm unsure what parts are necessary. Any recommendations would be appreciated. 

Link to comment
Share on other sites

4 hours ago, maven0112 said:

I'm putting together a character mod but upon creating a world, DST informs me that line 43 of my modmain.lua script is missing a "=" symbol where there definitely is one. In following Dleowolf's character mod tutorial, I'm noticing several differences in the scripts of the template character they're working with vs the DST template I've got so I'm unsure what parts are necessary. Any recommendations would be appreciated. 

if the line you're having the issue in is comparing values, not declaring a value, then you need  to do "==" and not "=".

Examples;

if name == "maven0112" then -- comparing name with "maven0112"
    name = "maven0122" -- declaring name as "maven0112"
end

 

Edited by Aquaterion
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...