1 Screenshot

About This File

Sample mod showing how to add a custom tech branch. In this example, the fire pit is used as the prototyper for a recipe of rocks (in the Magic tab).

Due to a game change made to have recipes not requiring a prototyping structure cease to be prototypable (see this), unfortunately it was necessary to override the method Builder:KnowsRecipe() from the Builder component. More generally, the hardcoded logic in the Builder component prevented this implementation from being as clean and simple as I'd like. It is functional, nevertheless.

Thanks to Heavenfall for originally looking into this.


What's New in Version 2.0   See changelog

Released

  • Fixed a bug when comparing tech levels.
  • Made the (still necessary) overriding of Builder:KnowsRecipe() more generic and flexible.
  • Made the patching of GLOBAL.TECH and TUNING.PROTOTYPER_TREES happen at game post init, to minimize the chance of incompatibility between mods.
  • Included a function which adds a new prototyper tree, with an optional custom hint appearing at the recipe pop up (in the likes of "Use a science machine to build a prototype!").



User Feedback

Recommended Comments

Sooo... does this make the RTS mod idea easier to accomplish? I'm trying to wrap my head around the uses of your work here.

Share this comment


Link to comment
Share on other sites

Sooo... does this make the RTS mod idea easier to accomplish? I'm trying to wrap my head around the uses of your work here.

This relates to crafting tech trees. I'm not sure they'd do much good to an RTS-style tech tree, a custom implementation would probably suit that idea better.

Share this comment


Link to comment
Share on other sites

Might wanna tell Cheerio about this, I'm sure he'd love to link it in the Samples and Guides thread.

While that nasty Builder:KnowsRecipe() override remains necessary, I'd rather not have it there...

Share this comment


Link to comment
Share on other sites

Hi everyone!

This is exciting!

 

I'm not sure if this is the place to post this, but through this mod, how would one go about removing the ability to learn custom recipes so that they always needed the new prototyper to craft them?

 

or is this even possible?

 

I'm not sure if it makes a difference, but this is for a DST mod.

 

Here is a link to the topic for more info.

Share this comment


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now