Welcome to Black Liquid Software

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • 1
Sign in to follow this  
Followers 0
Necora

Adding Materials

I have built a lumber cutter to produce lumber and am making up a production chain where I will add a few more materials which are not in CC. How do I go about adding materials to the game? My yard does produce lumber, but it is under the fuel limits.

Share this post


Link to post
Share on other sites

7 answers to this question

  • 1

To make the Materials, we just kind of stole the Coal flag.

If you give your lumber yard the Coal resource limit, and give your RawMaterialLumber the CoalFuel flag, then you did most of the work already.  The rest is just finding the strings in the dialog boxes that say the word "Coal" and changing it to "Material". That part is actually a little tricky, because it's in a lot of places. Town Hall, Status Bar, Trading Posts...

Share this post


Link to post
Share on other sites
  • 0
16 hours ago, Kralyerg said:

To make the Materials, we just kind of stole the Coal flag.

If you give your lumber yard the Coal resource limit, and give your RawMaterialLumber the CoalFuel flag, then you did most of the work already.  The rest is just finding the strings in the dialog boxes that say the word "Coal" and changing it to "Material". That part is actually a little tricky, because it's in a lot of places. Town Hall, Status Bar, Trading Posts...

I was looking through the resource files and did find the coal flag, so I assumed you did that. I also changed it to Material, and it worked, but the goods were not picked up. Now I see it is because they had no where to take them!

So when I edit all of those files too, do I leave them in the resource folder of the mod kit or make a copy of them into my maritimes folder?

Share this post


Link to post
Share on other sites
  • 0

Put them in your maritime folder. If you leave it in the mod kit folder, then it will work for you but it won't be added to your mod.

 

Share this post


Link to post
Share on other sites
  • 0

Also, you need to be careful about storage flags.  In vanilla, Coal is flagged as both "Fuel" and "CoalFuel".  Citizens can pick up things flagged as Fuel, but can't pick up things that are only flagged as CoalFuel. You'll need to edit the Template/Citizen.rsc file to add CoalFuel to the storage option.

Same goes for the stockpiles. Stockpiles can't store things that are only flagged as CoalFuel, so you would need to edit the Template/StorageYard.rsc file.

 

One other weird oddity surrounding CoalFuel and flags.  The flag that the resource gets is called "CoalFuel". But the resource limit is just called "Coal". So your lumber yard should use the "Coal" limit, and the lumber gets the "CoalFuel" flag. Don't mix them up, or nothing will work right. :)

Share this post


Link to post
Share on other sites
  • 0

@Kralyerg thanks for that, one thing though, did you change the CoalFuel to MaterialFuel or just Material?

Share this post


Link to post
Share on other sites
  • 0

Neither. It's just CoalFuel. We did tests with other words, like Material, so there might be random things hiding in the code somewhere, but the only one that works is CoalFuel.  Then we just changed the strings to say the word Material, but in the code, it's always CoalFuel (or Coal).

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Cracking @Kralyerg thank you, I have it sorted now. After following the rabbit hole through the resource files I have it so that the coal tag is now material.

Share this post


Link to post
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
Sign in to follow this  
Followers 0