Wild Beard Posted January 13, 2019 Share Posted January 13, 2019 Hey Everyone pretty new to modding on 7dtd. I created a few food recipes to be added to the game. They work alright in game but show up as the name with no description or icon. This is being run on a dedicated server that I setup (which runs perfectly fine otherwise). I've setup the items.xml as below. <configs> <append xpath="/items"> <item name="chefWildBeard_momsSpaghetti"> .. <property name="CustomIcon" value="chefWildBeard_momsSpaghetti" /> .. </item> </append> </configs> My folder structure: - Mods - ChefWildBeard - Config - items.xml - ItemIcons - chefWildBeard_♥♥♥♥OnShingle.png - chefWildBeard_momsSpaghetti.png - ModInfo.xml The name that shows in game is "chefWildBeard_momsSpaghetti" as well. I've added Localization.txt to my Config folder but saw that dedicated servers don't share the custom Localizations with clients. Is that correct? IIRC it was on an older thread somewhere that I saw that. Key,Source,Context,Changes,English,French,German,Klingon,Spanish,Polish chefWildBeard_MomsSpaghetti,items,Food,New,"Mom's Spaghetti",,,,, chefWildBeard_MomsSpaghettiDesc,items,Food,New,"Knees weak, arms are heavy, there's vomit already, mom's spaghetti.",,,,, chefWildBeard_♥♥♥♥OnSgingle,items,Food,New,"♥♥♥♥ on a Shingle",,,,, chefWildBeard_♥♥♥♥OnShingleDesc,items,Food,New,"A staple meal for those who can stomach being poor.",,,,, I read posts here and there about adding custom icons, mods, items, etc. and they all seem to have it setup the same way I do. Images are transparent .png files 116x80 in size. Maybe I am overlooking something simple since I am new to this? There's no error messages in the server log, either. Link to comment Share on other sites More sharing options...
Darkaft Posted January 15, 2019 Share Posted January 15, 2019 You're not the only one with that problem, I'm with some recipes to create more drinks for the wine barrels I made that worked, but they do not read the personalized icon either. Rare thing since for other mods I already made custom icons and they worked. Link to comment Share on other sites More sharing options...
Wild Beard Posted January 15, 2019 Author Share Posted January 15, 2019 I'll try and add another item that isn't a food recipe and see if it works. What about Localizations.txt though? Was I right/wrong in thinking it doesn't push to the client? Link to comment Share on other sites More sharing options...
Darkaft Posted January 15, 2019 Share Posted January 15, 2019 I could not tell you with the location that I read that if it was created separately and there was a kind of .bat to overwrite the one that was already there to add the additional lines. The bad thing I do not remember which was the post I'm looking for. Link to comment Share on other sites More sharing options...
YerghaizVerot Posted January 16, 2019 Share Posted January 16, 2019 I'll try and add another item that isn't a food recipe and see if it works. What about Localizations.txt though? Was I right/wrong in thinking it doesn't push to the client? Localizations.txt is a .txt, and has to be replaced in the config files manually (unless you are using SDK) You can't use Xpath to append it. Also, may or may not help, but you may need to put the icon path in...so like, if the icon is in /recipes/icons, then you would need to put < .. value="/recipe/icons/chefWildBeard_momsSpaghetti" /> Not for sure, but couldnt hurt to try. Link to comment Share on other sites More sharing options...
mjrice Posted January 16, 2019 Share Posted January 16, 2019 Same problem here with the localization stuff - I posted elsewhere but I have found no solution and it looks like it just won't work. I do get my custom icon to display correctly, though, and I'm using the same syntax you showed. Perhaps those are not pushed from the server? Mine is all local so that is the only difference I can see. Link to comment Share on other sites More sharing options...
Wild Beard Posted January 16, 2019 Author Share Posted January 16, 2019 Also, may or may not help, but you may need to put the icon path in...so like, if the icon is in /recipes/icons, then you would need to put < .. value="/recipe/icons/chefWildBeard_momsSpaghetti" /> The icons are in: /Mods/ChefWildBeard/ItemIcons/ I did go ahead and try your suggestion, Yerg, to no avail though. I also added <property name="DisplayInfo" value="Mom's Spaghetti" /> to the item's xml but the item name still shows up as "chefWildBeard_momsSpaghetti" in game. On a side note I copied the ChefWildBeard mod folder from my dedicated server to my local install and the icons showed up. However, the names still show as "chefWildBeard_". I did see that Localizations.txt aren't pushed by the server to the client. Haven't seen anywhere that the ItemIcons follow the same pattern, though. Link to comment Share on other sites More sharing options...
stallionsden Posted January 16, 2019 Share Posted January 16, 2019 As yerghaizverot said xpath does not handle txt files. You have to add it manually to the txt file. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.