SaladTim Posted June 20, 2023 Share Posted June 20, 2023 (edited) Hello, i'm working on my first mod and have very little experience. I am mostly looking through game files and other mods to get a feel for how things work, haven't really started working with lua yet. In this mod I have added a hotdog bun (using the bread slice image as a placeholder) which the player can right click on and combine with things like sausage chili onion or cabbage to create a hotdog recipe item. The problem is that when I right click on the bun, the context menu option has additional text that I can't seem to get rid of. I want it to just read "Prepare Hotdog" like i wrote in the 'evolved recipes' file, but as you can see in the attached image it does not. In the 'evolved recipes' file i have also included the burger recipe from the game files for comparison. text from the evolved recipes file: [spoiler][code] module Base { evolvedrecipe Hotdog { BaseItem:HotdogBun, MaxItems:3, ResultItem:HotdogRecipe, AddIngredientIfCooked:true, Name:Prepare Hotdog, } /* evolvedrecipe Burger { BaseItem:BreadSlices, MaxItems:4, ResultItem:BurgerRecipe, Name:Prepare Burger, AddIngredientIfCooked:true, } */ } [/code][/spoiler] Edited June 20, 2023 by SaladTim formatting fix Link to comment Share on other sites More sharing options...
Hugo Qwerty Posted June 20, 2023 Share Posted June 20, 2023 Looks like you will need to add a translation. Create the following file: \media\lua\shared\Translate\EN\ContextMenu_EN.txt Paste the following into the file, save, reload - that should fix it. ContextMenu_EN = { ContextMenu_EvolvedRecipe_Hotdog = "Hotdog", } Link to comment Share on other sites More sharing options...
SaladTim Posted June 20, 2023 Author Share Posted June 20, 2023 Sounds like exactly the thing i've been looking for, thanks! 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