Author Topic: How to change region resources  (Read 193 times)

a531552862

  • Newbie
  • *
  • Posts: 9
    • View Profile
How to change region resources
« 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

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1444
    • View Profile
Re: How to change region resources
« Reply #1 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:
Code: [Select]
...
 .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

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: How to change region resources
« Reply #2 on: December 14, 2019, 07:29:15 am »
I made it,Thank you very much.