AtomicTorch Studio Forums

CryoFall => Modding info => Topic started by: a531552862 on December 14, 2019, 02:37:09 AM

Title: How to change region resources
Post by: a531552862 on December 14, 2019, 02:37:09 AM
HI~
I found some servers loaded with MOD, which realized the production of petroleum fruit in temperate zone.
How can I achieve this?
Thanks to Google Translate, thanks to the game producers
Title: Re: How to change region resources
Post by: ai_enabled on December 14, 2019, 05:41:23 AM
Hello!

You need to unpack the Core.cpk (in Core folder inside the game server installation folder) either with a CMD-script or manually (it's a Zip archive without compression).
Then you need to have a look on this file:
Core.cpk\Scripts\Zones\Zones\Boreal\ZoneBorealForest.cs

You can see how it's configured to spawn oilpods bushes via SpawnBushesForestBoreal script:

...
.Add(GetScript<SpawnBushesForestBoreal>().Configure(densityMultiplier: 0.5))
...


You can reuse this line in the temperate forest zone script:
Core.cpk\Scripts\Zones\Zones\Temperate\ZoneTemperateForest.cs

Regards!
Title: Re: How to change region resources
Post by: a531552862 on December 14, 2019, 07:29:15 AM
I made it,Thank you very much.