Jump to content

Recommended Posts

Im trying to make character to Don't Starve and it says ,,modmain.lua: unecpected symbol near '<'

Here's my modmain's script

 

local STRINGS = GLOBAL.STRINGS

PrefabFiles = {
    "will",
}

Assets = {
    Asset( "IMAGE", "images/saveslot_portraits/will.tex" ),
    Asset( "ATLAS", "images/saveslot_portraits/will.xml" ),

    Asset( "IMAGE", "images/selectscreen_portraits/will.tex" ),
    Asset( "ATLAS", "images/selectscreen_portraits/will.xml" ),

    Asset( "IMAGE", "images/selectscreen_portraits/will_silho.tex" ),
    Asset( "ATLAS", "images/selectscreen_portraits/will_silho.xml" ),

    Asset( "IMAGE", "bigportraits/will.tex" ),
    Asset( "ATLAS", "bigportraits/will.xml" ),

}

table.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "will")<eof>
end


AddModCharacter("will")

 

Please help.
 

Nowy obraz mapy bitowej.bmp

Link to comment
https://forums.kleientertainment.com/forums/topic/36735-problem-with-eof/
Share on other sites

change

table.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "will")<eof>end
to

table.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "will")
and never attach bmp as screenshot or kitten will die somewhere.

 

 

Now I have problem with crashing mod causes, can I ask for help again?

 

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