DeadByTvLight Posted April 30, 2017 Share Posted April 30, 2017 (edited) Hello, I´m making a mod and i was editing the images, when i wanted to se the progress on the game but, always says this: [string "../mods/2-D The eyeless singer/modmain.lua"]:26: '=' expected near '.2' And I looked for a solution but how i don´t know how to speak very well english, i don´t get the most of the words. So please help me, i want to know what I´m doing wrong. PrefabFiles = { "2-D", } Assets = { Asset( "IMAGE", "images/saveslot_portraits/2-D.tex" ), Asset( "ATLAS", "images/saveslot_portraits/2-D.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/2-D.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/2-D.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/2-D_silho.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/2-D_silho.xml" ), Asset( "IMAGE", "bigportraits/2-D.tex" ), Asset( "ATLAS", "bigportraits/2-D.xml" ), Asset( "IMAGE", "images/map_icons/2-D.tex" ), Asset( "ATLAS", "images/map_icons/2-D.xml" ), } local require = GLOBAL.require -- The character select screen lines GLOBAL.STRINGS.CHARACTER_TITLES.2-D = "The eyeless singer" GLOBAL.STRINGS.CHARACTER_NAMES.2-D = "2-D" GLOBAL.STRINGS.CHARACTER_DESCRIPTIONS.2-D = "*Not too strong, ejem..weak..*\*Very fast*\*Can see at night, but he still needs fire*" GLOBAL.STRINGS.CHARACTER_QUOTES.2-D = "\"I ain´t happy, I´m feeling scared.. " -- Custom speech strings GLOBAL.STRINGS.CHARACTERS.2-D = require "Wilson" -- Let the game know character is male, female, or robot table.insert(GLOBAL.CHARACTER_GENDERS.MALE, "2-D") AddMinimapAtlas("images/map_icons/2-D.xml") AddModCharacter("2-D") I would be glad if someone helps me. Edited April 30, 2017 by DeadByTvLight Link to comment Share on other sites More sharing options...
Lumina Posted April 30, 2017 Share Posted April 30, 2017 It would be easier if you can .zip and attach your mod and also maybe say what is in line 26 since the error is possibly in line 26. Also, i don't know if numbers in names could create problem. Also, lines GLOBAL.STRINGS.CHARACTER_TITLES.2-D = "The eyeless singer" GLOBAL.STRINGS.CHARACTER_NAMES.2-D = "2-D" GLOBAL.STRINGS.CHARACTER_DESCRIPTIONS.2-D = "*Not too strong, ejem..weak..*\*Very fast*\*Can see at night, but he still needs fire*" GLOBAL.STRINGS.CHARACTER_QUOTES.2-D = "\"I ain´t happy, I´m feeling scared.. " Should have the name of character in lower case as far as i know, so 2-d maybe ? Link to comment Share on other sites More sharing options...
CarlZalph Posted April 30, 2017 Share Posted April 30, 2017 @DeadByTvLight Try to not use special characters when referring to them in the code. It's why "WX-78" is just "wx78". Right now you're telling LUA to take a nil string reference and subtract a variable 'D' but then assign a string literal to it. Link to comment Share on other sites More sharing options...
DeadByTvLight Posted May 1, 2017 Author Share Posted May 1, 2017 5 hours ago, CarlZalph said: @DeadByTvLight Try to not use special characters when referring to them in the code. It's why "WX-78" is just "wx78". Right now you're telling LUA to take a nil string reference and subtract a variable 'D' but then assign a string literal to it. Ok thx i Recreted the file and i Changed 2-D with TwoD at least on the scripts, anywyas now it works thx. Link to comment Share on other sites More sharing options...
DeadByTvLight Posted May 1, 2017 Author Share Posted May 1, 2017 Just now, DeadByTvLight said: Ok thx i Recreted the file and i Changed 2-D with TwoD at least on the scripts, anywyas now it works thx. 15 hours ago, Lumina said: It would be easier if you can .zip and attach your mod and also maybe say what is in line 26 since the error is possibly in line 26. Also, i don't know if numbers in names could create problem. Also, lines GLOBAL.STRINGS.CHARACTER_TITLES.2-D = "The eyeless singer" GLOBAL.STRINGS.CHARACTER_NAMES.2-D = "2-D" GLOBAL.STRINGS.CHARACTER_DESCRIPTIONS.2-D = "*Not too strong, ejem..weak..*\*Very fast*\*Can see at night, but he still needs fire*" GLOBAL.STRINGS.CHARACTER_QUOTES.2-D = "\"I ain´t happy, I´m feeling scared.. " Should have the name of character in lower case as far as i know, so 2-d maybe ? Thx, It helped me a lot Link to comment 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