Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Mods => Topic started by: crazy_one on December 20, 2010, 12:57:41 AM

Title: max number of seedlings
Post by: crazy_one on December 20, 2010, 12:57:41 AM
hi guys.. how to edit maximum number of seedlings in game?
Title: Re: max number of seedlings
Post by: Alex on December 20, 2010, 07:13:09 PM
You can set the number of seedlings allowed on an asteroid I think... use Asteroid.SeedlingCap (the default is 500). Asteroid.SpawnCap (default 32) will stop seedlings being born from trees when the number of present seedlings exceeds that number.

The number of seedlings in the entire level can never exceed 4000, that's a hard limit currently.
Title: Re: max number of seedlings
Post by: Pilchard123 on December 20, 2010, 09:08:10 PM
Default 32? I've had 40 before. Has it changed?
Title: Re: max number of seedlings
Post by: Alex on December 21, 2010, 01:22:48 AM
Oh yeah it might be 40 now. There's a default in the code but that gets overridden by the settings that get loaded in.
Title: Re: max number of seedlings
Post by: crazy_one on December 21, 2010, 01:52:56 AM
there is no limit in old Dyson.. maybe exists some game constan? to mod it in Eufloria\Resources\Default.xml
  <dir name="GAME">
    ......
    <dir name="???" type="int" value="xxxx" />
    ......
  </dir>
Title: Re: max number of seedlings
Post by: annikk.exe on December 21, 2010, 02:19:25 AM
Here is how you do it:

Code: [Select]
Globals.Asteroids.SeedlingCap = 1000
Globals.Asteroids.SpawnCap = 75

You put these commands inside function LevelSetup()
The example shown above would allow any one empire to have up to 1000 seedlings in total, and new seedlings would stop spawning on any given asteroid when 75 have spawned (and not been moved).

Hope this helps :>
Title: Re: max number of seedlings
Post by: Alex on December 21, 2010, 03:24:31 AM
Here is how you do it:

Code: [Select]
Globals.Asteroids.SeedlingCap = 1000
Globals.Asteroids.SpawnCap = 75

You put these commands inside function LevelSetup()
The example shown above would allow any one empire to have up to 1000 seedlings in total, and new seedlings would stop spawning on any given asteroid when 75 have spawned (and not been moved).

Hope this helps :>
As a clarification, this means to have maximum 1000 seedlings on that asteroid, rather than in the entire level on all asteroids combined.
Title: Re: max number of seedlings
Post by: crazy_one on December 21, 2010, 03:48:18 AM
i has try all of this allready.. but it didnt help.. i cant crate more then 4k seeds on level
Title: Re: max number of seedlings
Post by: annikk.exe on December 21, 2010, 03:51:22 AM
4k is the built-in maximum.  It's not possible to set it any higher than this, much to the map-making community's chagrin :P  (and my CPU's relief)
Title: Re: max number of seedlings
Post by: Alex on December 21, 2010, 05:03:03 AM
Yep, as I said, 4000 is a hard limit currently. I think there was a limit of 4000 in the old Dyson as well. Far as I know.

Sorry!
Title: Re: max number of seedlings
Post by: annikk.exe on December 21, 2010, 06:15:55 AM
I'm sure this has been asked before... but... why is there a hard limit?  I manage to make the game crash in plenty of other ways with my exploratory code blunders.  Why not this one? :>  (or is there some technical reason why this is not possible?)
Title: Re: max number of seedlings
Post by: Alex on December 21, 2010, 08:53:42 PM
Code blunders making the game crash are fine, but prior to modding I just wanted there not to be a condition in the main game where people could get their PC to screw up. I remember being able to massively break Darwinia by collecting a bunch of stuff in one place and watching them multiply (can't remember what), eventually getting the game down to about 1 frame per 5 seconds, and I didn't want players to be able to do that with this game. So I just limited it to 4k, and since modding came along changing it hasn't been high priority as the game pretty mcuh works fine with it as-is. In the new version I'm changing it slightly ;)
Title: Re: max number of seedlings
Post by: Pilchard123 on December 21, 2010, 09:28:21 PM
Oh, I've manages to crash it by producing too many seedlings before. It's really, really, really annoying.