@Pit2015 Any non-linear longitude- or latitude-mapping means examining the continent-limits both in UEM and in a "regular" map. And if the same longitude or latitude must be mapped differently w.r.t. different continents, then even the implementation itself becomes a bit nasty. Not to mention that if I do this and a third kind of map comes around, they would probably expect me to work with that map as well.
This is very much a side project for me, and I did not expect this to get more involved. If you can give me the mapping, I can implement this.
"If you can give me the mapping" What exactly you need? I will look into how that spawn file is working now...
Why you greyed out this in animal spawn file? spawninfos.xml
<!-- <bLatitudeAbs>0</bLatitudeAbs>-->
<!-- <iMinLatitude>-60</iMinLatitude>-->
<!-- <iMaxLatitude>25</iMaxLatitude>-->
<!-- <iMaxLongitude>-60</iMaxLongitude>-->
Thats means animals spawn all over dosent it?
Should be the problem, old raxo spawn file looks like this:
<SpawnInfo>
<Type>SPAWN_ANIMAL_JAGUAR_NATIVE</Type>
<UnitType>UNIT_ANIMAL_JAGUAR</UnitType>
<PlayerType>41</PlayerType>
<iTurns>600</iTurns>
<iMinAreaPlotsPerPlayerUnit>10</iMinAreaPlotsPerPlayerUnit>
<iMinAreaPlotsPerUnitType>80</iMinAreaPlotsPerUnitType>
<iMaxLocalDensity>1</iMaxLocalDensity>
<iStartDate>-200000</iStartDate>
<rateOverrideDefineName>ANIMAL_SPAWN_MODIFIER</rateOverrideDefineName>
<bLatitudeAbs>0</bLatitudeAbs>
<iMinLatitude>-60</iMinLatitude>
<iMaxLatitude>25</iMaxLatitude>
<iMaxLongitude>-60</iMaxLongitude>
<FeatureTypes>
<FeatureType>FEATURE_JUNGLE</FeatureType>
<FeatureType>FEATURE_FOREST</FeatureType>
<FeatureType>FEATURE_SAVANNA</FeatureType>
</FeatureTypes>
</SpawnInfo>
Your bug is to not include the latitude and longitude setting in your file, that should limit in wich area a animal will spawn:
<SpawnInfo>
<Type>SPAWN_ANIMAL_JAGUAR_NATIVE</Type>
<UnitType>UNIT_ANIMAL_JAGUAR</UnitType>
<PlayerType>PREDATOR_PLAYER</PlayerType>
<iTurns>540</iTurns>
<iMinAreaPlotsPerPlayerUnit>10</iMinAreaPlotsPerPlayerUnit>
<iMinAreaPlotsPerUnitType>80</iMinAreaPlotsPerUnitType>
<iMaxLocalDensity>1</iMaxLocalDensity>
<iStartDate>-200000</iStartDate>
<rateOverrideDefineName>ANIMAL_SPAWN_MODIFIER</rateOverrideDefineName>
<!-- <bLatitudeAbs>0</bLatitudeAbs>-->
<!-- <iMinLatitude>-60</iMinLatitude>-->
<!-- <iMaxLatitude>25</iMaxLatitude>-->
<!-- <iMaxLongitude>-60</iMaxLongitude>-->
<FeatureTypes>
<FeatureType>FEATURE_JUNGLE</FeatureType>
<FeatureType>FEATURE_FOREST</FeatureType>
<FeatureType>FEATURE_SAVANNA</FeatureType>
<FeatureType>FEATURE_MANGROVE</FeatureType>
<FeatureType>FEATURE_CAVES</FeatureType>
</FeatureTypes>
<TerrainTypes>
<TerrainType>TERRAIN_LUSH</TerrainType>
<TerrainType>TERRAIN_GRASSLAND</TerrainType>
<TerrainType>TERRAIN_SCRUB</TerrainType>
<TerrainType>TERRAIN_MARSH</TerrainType>
</TerrainTypes>
</SpawnInfo>
Sould be reactivated and then it can be adapted a bit easly. But then it should work for the worldmaps.