Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Mods => Topic started by: ieatcheese56 on August 13, 2010, 09:05:18 AM

Title: AI interfering with personal seedlings
Post by: ieatcheese56 on August 13, 2010, 09:05:18 AM
I am trying to create my own levels, but on all my levels that i create the user seedling act as if they are AIs. I don't know if i am doing something wrong or if it is a bug or what please help.
Title: Re: AI interfering with personal seedlings
Post by: Rudolf on August 13, 2010, 05:26:04 PM
Maybe you accidentally assigned the wrong empire number to your asteroids?There can be other reasons as well but you need to share your level files if anybody is to help you with this :-)

Just attach what you done so far to your reply and I am sure it can be sorted in no time.:-)
Title: Re: AI interfering with personal seedlings
Post by: ieatcheese56 on August 14, 2010, 12:41:43 AM
This is my level. On the part that i set the asteroid as the wrong person i can still move the seedlings on my own but the seedling will move on there own as well.
Title: Re: AI interfering with personal seedlings
Post by: annikk.exe on August 15, 2010, 08:43:23 AM
Remove lines 38-45 of your code.  "AI 1" is the player!



Code: [Select]
GetAI(1).Cowardice = 0.25
GetAI(1).MinExpansionForce = 30
GetAI(1).BattleSavvy = 0.1
GetAI(1).ReinforcementGreed = 0.3
GetAI(1).GreedyExpansion = 0.2
GetAI(1).AidEnthusiasm = 0.1
GetAI(1).ExpandBlind = 0.5
GetAI(1).ExpandToValuableAsteroidChance = 0.2







Also, in your comments, you first have this asteroid:

Code: [Select]
--Gods Asteroid
a = AddAsteroidWithAttribs(0,0, 1.0,1.0,1.0)


...then you add these asteroids:


Code: [Select]
-- Asteriod 0 - starting asteriod
-- Asteriod 1
-- Asteroid 2

Those are NOT asteroids 0, 1 and 2, they are asteroids 1, 2, and 3.  "God's Asteroid" is asteroid 0, because you created it first.


So your asteroids should be thus:


Gods Asteroid  (which is really Asteroid 0)
Asteroid 1
Asteroid 2
Asteroid 3


I would advise to change your comments to be like these, so that for any "GetAsteroid( )" commands you do later you can just look at the list of asteroids in function LevelSetup() and it will be easy to tell which asteroid you want to refer to.  :>
Title: Re: AI interfering with personal seedlings
Post by: ieatcheese56 on August 15, 2010, 11:21:05 AM
awesome thanks