Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Support => Topic started by: annikk.exe on July 16, 2010, 10:47:50 PM

Title: Fast seeds can't plant on small roids
Post by: annikk.exe on July 16, 2010, 10:47:50 PM
I've been meaning to mention this one for a while.


TO REPRODUCE THIS BUG:


1.  Create a level with very fast seedlings (say, minimum speed 1000)

2.  Then you create an asteroid which has a radius of -for example- 150.

3.  The bug becomes evident when you instruct the seedlings to plant a tree on the asteroid.  They cannot seem to slow down enough, so they end up circling the asteroid endlessly.  After a long time they usually all manage to stick their noses into the soil, but it takes a LONG time, and this gives the player a false visual of how many seedlings they have at the asteroid.



The obvious fixes from a level designers perspective are thusly:

1) Reduce the speed of the seedlings
2) Increase the size of the asteroid


Either of those - or both in some kind of combination - will produce acceptable planting behaviour, however this can mean a level where seedlings are too slow to catch up with fast-moving asteroids, or a level filled with over-sized or same-sized asteroids that have to pass through each other in order to maintain complex orbits.




Here's sample code that should produce the problem:


(click to show/hide)



Any way to find a solution for this behaviour?
Title: Re: Fast seeds can't plant on small roids
Post by: Pilchard123 on July 17, 2010, 12:37:58 AM
Make it so that any seedlings used to plant a tree are forced to slow down to a maximum speed when they plant. Possibly determined by the size of the asteroidroid, possibly just really slow flat limit.
Title: Re: Fast seeds can't plant on small roids
Post by: Mihhaelo on July 18, 2010, 08:49:19 PM
By adding this to the code, you can get the seedlings to plant.

(click to show/hide)

Alternatively, to keep the seedlings nice and close to the Asteroid and to make them look less cluttered you can use this...

(click to show/hide)


One issue i'm finding is that after you've made the plants, the created seedlings tend to fly quite high from their parent asteroid, i'm sure if you got the right values for Min and Max altitude this would be resolved. It's caused by the seedlings turning "into" the asteroid and bouncing off.
Title: Re: Fast seeds can't plant on small roids
Post by: annikk.exe on July 19, 2010, 07:17:07 AM
I have tried adjusting all the agent related variables - I spent a whole day one time just trying to get seedlings to land on the asteroid properly.
Hmm, sceptical that it will work as I have tried adjusting the variables you mentioned too... but I'll give your suggestions a try anyway.  Cheers :>
Title: Re: Fast seeds can't plant on small roids
Post by: Mihhaelo on July 19, 2010, 02:23:39 PM
I actually made a level with your code just there, it didn't work before my bit of code, and then worked after it  8)