Tekniqe Posted December 6, 2017 Share Posted December 6, 2017 I've been doing some research, and I see that overriding an item for the base game is pretty straightforward. However, I can't seem to override a base game recipe. I want to change the way the "Gather Gunpowder" recipe works for a mod I'm working on, but when I do something like (having copied the recipe and editing it, to account for any typos) the following, I just end up with the base game recipe and then the one that I added, instead of it replacing the base one. module Base{ recipe Gather Gunpowder{ xyz... } } Is there another method for replacing base game recipes? I searched the forum for examples, but could only find ones relating to items. Arsenal26 and thiosk 1 1 Link to comment Share on other sites More sharing options...
thiosk Posted December 6, 2017 Share Posted December 6, 2017 this is a good question. I have a lua script for removing base items from the distribution lists, but no way to control what recipes or evolved recipes are available. Arsenal26 1 Link to comment Share on other sites More sharing options...
tommysticks Posted December 6, 2017 Share Posted December 6, 2017 5 hours ago, Tekniqe said: I've been doing some research, and I see that overriding an item for the base game is pretty straightforward. However, I can't seem to override a base game recipe. I want to change the way the "Gather Gunpowder" recipe works for a mod I'm working on, but when I do something like (having copied the recipe and editing it, to account for any typos) the following, I just end up with the base game recipe and then the one that I added, instead of it replacing the base one. module Base{ recipe Gather Gunpowder{ xyz... } } Is there another method for replacing base game recipes? I searched the forum for examples, but could only find ones relating to items. I remember seeing in one of the recent(ish) updates that they fixed this problem... or provided a work around or something. I know this isn't much help, but if you do a search for recipes and look in the update section, the answer might be there. Or it might require you to be in the IWBUMS branch. Arsenal26 1 Link to comment Share on other sites More sharing options...
Tekniqe Posted December 6, 2017 Author Share Posted December 6, 2017 1 hour ago, tommysticks said: I remember seeing in one of the recent(ish) updates that they fixed this problem... or provided a work around or something. I know this isn't much help, but if you do a search for recipes and look in the update section, the answer might be there. Or it might require you to be in the IWBUMS branch. At your suggestion I was able to find this thread: https://theindiestone.com/forums/index.php?/topic/21914-help-obsoletetrue-recipefeature/&tab=comments#comment-251392 I'll try that when I get home from and work and examine the properties of recipes more closely as well, and provide an update then. Arsenal26 1 Link to comment Share on other sites More sharing options...
Tekniqe Posted December 7, 2017 Author Share Posted December 7, 2017 Following the steps in the thread I linked worked. To be clear: Included the original base recipe in my mod script file, adding the property "Obsolete: true" to it. Then, adding my own recipe (I did so in the same file) with the property "Override:true". Cheers tommy! Arsenal26 and tommysticks 1 1 Link to comment Share on other sites More sharing options...
Arsenal26 Posted July 5, 2020 Share Posted July 5, 2020 Just started messing with Recipes... This was helpful... 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