Jump to content
Tekniqe

Override base game recipe

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...