Javong Posted March 4, 2015 Share Posted March 4, 2015 Hi i have the following problem. When i create a new evolvedrecipe named NewRecipe the ingame context menu is showing:"Create ContextMenu_EvolvedRecipe_NewRecipe"instead of: "Create NewRecipe"The solution i found is to add "ContextMenu_EvolvedRecipe_NewRecipe = "NewRecipeName" to "gamefolder\media\lua\shared\Translate\EN\ContextMenu_EN.txt". Is there an easy way to make this work, so it can be used by a mod without adding the line to original game file ? Link to comment Share on other sites More sharing options...
Dudeman325 Posted March 5, 2015 Share Posted March 5, 2015 You should be able to make a .txt file in "yourmod\media\lua\shared\Translate\EN\" with just that line, save and change the extension from .txt to .lua. Link to comment Share on other sites More sharing options...
Javong Posted March 6, 2015 Author Share Posted March 6, 2015 You should be able to make a .txt file in "yourmod\media\lua\shared\Translate\EN\" with just that line, save and change the extension from .txt to .lua. Unfortunately this won't work I created: "evorecipetest\media\lua\shared\Translate\EN\mod_evorecipetest_EN.lua"Content: ContextMenu_EvolvedRecipe_NewRecipe = "New Recipe" Context menu is still "Create ContextMenu_EvolvedRecipe_NewRecipe" instead of "New Recipe" I attached an "evorecipetest" mod, install it and...* Right click spoon or fork -> click "Provide Test Items"* Right click Bowl -> Context menu : "Create ContextMenu_EvolvedRecipe_NewRecipe"evorecipetest.zip Link to comment Share on other sites More sharing options...
Dudeman325 Posted March 6, 2015 Share Posted March 6, 2015 Hrm, well I gave it a shot and couldn't get it to work... Sorry about the bad information earlier, I didn't realize that the context menu files were .txt and not .lua. I changed it back to a .txt, but still no luck. Here's what I tried: mod_evorecipetest_EN.txtContextMenu_EN = { ContextMenu_EvolvedRecipe_NewRecipe = "New Recipe",}There doesn't seem to be a way that I can find to edit the contents of the Translate folder within the mod structure. There may be a way you can do it with lua, but I'm horrible with that so I really don't know. The only workable solution I know of is by editing the ContextMenu_EN.txt directly like you've already found, as undesirable as it is for a mod to edit the actual game files. Link to comment Share on other sites More sharing options...
EasyPickins Posted March 8, 2015 Share Posted March 8, 2015 I just changed this. Now mods can add media/lua/shared/Translate/* files and they will be loaded by the game. Dudeman325 1 Link to comment Share on other sites More sharing options...
Dudeman325 Posted March 9, 2015 Share Posted March 9, 2015 Sweet! Looks like the way to do this is to add a new file to: "evorecipetest\media\lua\shared\Translate\EN\ContextMenu_EN.txt" (note: the file has to be named ContextMenu_EN.txt for it to work) With contents:ContextMenu_EN = { ContextMenu_EvolvedRecipe_NewRecipe = "New Recipe",} 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