Jump to content

Recommended Posts

I'm not really a modder but decided a few days ago that I would like to have a try at making my own character for Don't Starve and it's been going pretty good and I have all the files set up from a template but whenever I try to activate the mod to test it, it crashes.

 

x86)/Steam/steamapps/common/don't_starve/data../mods/Sir Loin/modmain.lua:25: '=' expected near 'loin'

 

Any kind of help would be much appreciated I've linked my file if you want to look it over, and thank you for your time.

 

-Suppa Cow

modmain.lua

As the error log says, it expects a symbol equal ( = ) near the string "loin" at the line 25.

A look at you modmain show that

GLOBAL.STRINGS.CHARACTER_TITLES.sir loin = "The Cowardly"GLOBAL.STRINGS.CHARACTER_NAMES.sir loin  "Sir Loin"  -- Note! This line is especially important as some parts of the game require                                            -- the character to have a valid name.GLOBAL.STRINGS.CHARACTER_DESCRIPTIONS.sir loin = "* Can tame wild beefalo."GLOBAL.STRINGS.CHARACTER_QUOTES.sir loin = "\"Oh no, the hounds are back!\""

You cannot put random spacing like that in a code because then it's interpreted as two different entities.

you have to write it like

GLOBAL.STRINGS.CHARACTER_TITLES.SIR_LOIN = "The Cowardly"

and rename your lua file for your character sir_loin.lua

 

And do the same for all the other places where this issue arise, and there is a lot in your modmain.lua

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