Page 1 of 1

resource refreshing

Posted: Thu Jul 12, 2007 6:28 am
by Nosferatu
in what cfg file , or in which script i can specify in what time resource will refresh's
thnx

Posted: Thu Jul 12, 2007 11:44 pm
by Yukiko
According to configfiles.html it is <resourcetype>.cfg that holds the setting for regrowing resources.

Code: Select all

Global
{
    InitialUnits     (long number of resource units world has to start)
    [LandTile        (int landtile ID)]...
    [ObjType         (int arttile ID)]...
}
Region  (string regionname)
{
    Range               (x-west) (y-north) (x-east) (y-south)
    UnitsPerArea        (int resource units per tile)
    SecondsPerRegrow    (int seconds delay between regrows) *** This line
    Capacity            (int unit capacity for this region)
}
[Region...]
<resourcetype> would actually be the name of the resource you are referencing ie. clay.cfg, sand.cfg etc. These files are in the \pol\regions folder.

For example here is the entry I have in my clay.cfg file:

Code: Select all

Region The Whole World
{
    UnitsPerArea        10
    SecondsPerRegrow    30
    Capacity            10000
    Range               0 0 5119 4095
}