TyroneTheWarrior Posted January 19, 2016 Share Posted January 19, 2016 Ay. I made a character mod and it can create a custom item that heals you, similar to healing salve. The Item itself works, the character is fine, but when I hover over the item it only says "MISSING NAME" and in the recipie under survival it does not show the item descrption or name. Here's the modmain. local require = GLOBAL.require local SpawnPrefab = GLOBAL.SpawnPrefab -- require "class" -- local Ingredient = GLOBAL.Ingredient local RECIPETABS = GLOBAL.RECIPETABS local STRINGS = GLOBAL.STRINGS local ACTIONS = GLOBAL.ACTIONS local Action = GLOBAL.Action -- STRINGS.NAMES.berrysalve = "Berry Salve" STRINGS.CHARACTERS.GENERIC.DESCRIBE.berrysalve = "Looks soothing." STRINGS.RECIPE_DESC.berrysalve = "Heals up wounds." PrefabFiles = { "barry", "berrysalve" } Assets = { Asset( "IMAGE", "images/saveslot_portraits/barry.tex" ), Asset( "ATLAS", "images/saveslot_portraits/barry.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/barry.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/barry.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/barry_silho.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/barry_silho.xml" ), Asset( "IMAGE", "bigportraits/barry.tex" ), Asset( "ATLAS", "bigportraits/barry.xml" ), Asset( "IMAGE", "images/map_icons/barry.tex" ), Asset( "ATLAS", "images/map_icons/barry.xml" ), Asset("ATLAS", "images/inventoryimages/berrysalve.xml"), Asset("IMAGE", "images/inventoryimages/berrysalve.tex"), } local require = GLOBAL.require GLOBAL.STRINGS.NAMES.berrysalve = "Berry Salve" GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.berrysalve = "Looks soothing." GLOBAL.STRINGS.RECIPE_DESC.berrysalve = "Heals up wounds." -- The character select screen lines GLOBAL.STRINGS.CHARACTER_TITLES.barry = "The Berry" GLOBAL.STRINGS.CHARACTER_NAMES.barry = "Barry" GLOBAL.STRINGS.CHARACTER_DESCRIPTIONS.barry = "*Is a berry.\n*Terrible in every way.\n*Hates himself." GLOBAL.STRINGS.CHARACTER_QUOTES.barry = "\"AAAAAAAAAAGGGHHHH\"" -- Custom speech strings GLOBAL.STRINGS.CHARACTERS.barry = require "speech_barry" -- Let the game know character is male, female, or robot table.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "barry") AddMinimapAtlas("images/map_icons/barry.xml") AddModCharacter("barry") thx btw Link to comment https://forums.kleientertainment.com/forums/topic/62897-custom-item-not-showing-name-or-recipie-description/ Share on other sites More sharing options...
Mobbstar Posted January 19, 2016 Share Posted January 19, 2016 It should be in caps: GLOBAL.STRINGS.***.BERRYSALVE The things with character titles being lowercase is just a mistake. Link to comment https://forums.kleientertainment.com/forums/topic/62897-custom-item-not-showing-name-or-recipie-description/#findComment-711500 Share on other sites More sharing options...
TyroneTheWarrior Posted January 19, 2016 Author Share Posted January 19, 2016 Damn thank you so much. Link to comment https://forums.kleientertainment.com/forums/topic/62897-custom-item-not-showing-name-or-recipie-description/#findComment-711504 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