Faerendipitous Posted November 1, 2016 Share Posted November 1, 2016 I've found a few solved and answered topics, but nothing I'm doing seems to work. I've got a few custom items in my mod, and whenever I craft one in the crockpot, it works fine and deposits the item into my inventory - only problem is when I hover, it gives me the "MISSING NAME" issue. Now, I've found that in order to add names, you're meant to place Quote GLOBAL.STRINGS.NAMES.ITEM_NAME = "Item Name", in your modmain. Which I've done! But every time I do, I get an "unexpected symbol near =" error when I try to boot the game. I've tried removing global, putting the ITEM_NAME in caps and lowercase, moving the set of names entirely to every reasonable part of the modmain document, but no matter what it ends up giving me that same error. the strings in question are GLOBAL.STRINGS.NAMES.POTION_SANITY = "Flask of Reality", GLOBAL.STRINGS.NAMES.POTION_RESTORATION = "Elixir of Health", GLOBAL.STRINGS.NAMES.POTION_INSANITY = "Draught of Lunacy", GLOBAL.STRINGS.NAMES.POTION_HEALTH = "Tonic of Health", I've checked, the prefab names are all correct. It looks like everything is in order, but obviously that can't be the case. I just can't for the life of me figure out why these four keep crashing the mod. Link to comment https://forums.kleientertainment.com/forums/topic/71327-missing-name/ Share on other sites More sharing options...
Lumina Posted November 1, 2016 Share Posted November 1, 2016 I don't see anything wrong with the lines themselves, could you put your mod here (.zip or .rar) so it will be easier to see what is wrong ? Link to comment https://forums.kleientertainment.com/forums/topic/71327-missing-name/#findComment-831870 Share on other sites More sharing options...
Leonardo Cox Posted November 1, 2016 Share Posted November 1, 2016 You don't want the commas at the end: GLOBAL.STRINGS.NAMES.POTION_SANITY = "Flask of Reality" GLOBAL.STRINGS.NAMES.POTION_RESTORATION = "Elixir of Health" GLOBAL.STRINGS.NAMES.POTION_INSANITY = "Draught of Lunacy" GLOBAL.STRINGS.NAMES.POTION_HEALTH = "Tonic of Health" This should stop the crash. Link to comment https://forums.kleientertainment.com/forums/topic/71327-missing-name/#findComment-831887 Share on other sites More sharing options...
Faerendipitous Posted November 1, 2016 Author Share Posted November 1, 2016 2 hours ago, DarkKingBoo said: You don't want the commas at the end: GLOBAL.STRINGS.NAMES.POTION_SANITY = "Flask of Reality" GLOBAL.STRINGS.NAMES.POTION_RESTORATION = "Elixir of Health" GLOBAL.STRINGS.NAMES.POTION_INSANITY = "Draught of Lunacy" GLOBAL.STRINGS.NAMES.POTION_HEALTH = "Tonic of Health" This should stop the crash. Yes!! This worked like a charm, thank you!! I've finally got names!! Link to comment https://forums.kleientertainment.com/forums/topic/71327-missing-name/#findComment-831925 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