Jump to content

Recommended Posts

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

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.

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

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