Grassy areas not everywhere

   Forum Index -> Mods & Maps
View previous topic :: View next topic  
Author Message

Joined: 30 Nov 2008
Posts: 3

PostPosted: Sun Sep 11, 2016 11:02 pm    Post subject: Grassy areas not everywhere

Gentlemen, those who are into map making, I require assistance.

I wanted to fill a map with grass so I went and took the grass codes from Great Plains. Problem is, the grass on GP only spams on the middle of the map, while I want the grass the be on the entire map (except maybe the small pond in the middle).

I tried everything with the codes, changed every value, nothing. I get patches of grass all around the map but they are random and... they are not everywhere!

If someone could help me out it would be highly appreciated.

Here are the grass codes:


   // Build grassy areas everywhere.  Whee!
   for (i=0; <numTries)
      int grassyArea=rmCreateArea("grassyArea"+i);
      rmSetAreaWarnFailure(grassyArea, false);
      rmSetAreaSize(grassyArea, rmAreaTilesToFraction(1000), rmAreaTilesToFraction(1000));
      rmSetAreaForestType(grassyArea, "Great Plains grass");
      rmSetAreaForestDensity(grassyArea, 0.3);
      rmSetAreaForestClumpiness(grassyArea, 0.1);
      rmAddAreaConstraint(grassyArea, avoidHills);
      rmAddAreaConstraint(grassyArea, avoidTradeRoute);
      rmAddAreaConstraint(grassyArea, avoidSocket);
      rmAddAreaConstraint(grassyArea, avoidNatives);
      rmAddAreaConstraint(grassyArea, avoidStartingUnits);
      rmAddAreaConstraint(grassyArea, avoidNuggetSmall);
         // Stop trying once we fail 5 times in a row.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> Mods & Maps All times are GMT
Page 1 of 1

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB © 2001, 2005 phpBB Group | Page design by Tilanus Commodor & michfrm.