How to change region resources

Started by a531552862, December 14, 2019, 02:37:09 AM

a531552862

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

ai_enabled

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!

a531552862

I made it,Thank you very much.