Author Topic: What are you working on? :D  (Read 34699 times)

0 Members and 1 Guest are viewing this topic.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #360 on: August 01, 2011, 12:58:26 PM »
Annikk, I'm sorry to say: Yours just got PWN'd... Although I played at faster speed, cause I'm tired of watching such a slow show :/

Added the file as an attachement here if anyone wanna see the fight! I might have predicted wrong if you play at normal speed(Mine checks 50 asteroid 60 times a second, or 3000 asteroids a second! So it might have been that mine react much faster!)

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #361 on: August 01, 2011, 01:34:28 PM »
Infected AI will perform extremely poorly or not at all if the game speed is increased using Developer Mode.  So I am not surprised at the result.

I will run a test now and see what happens at normal speed.  :>

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #362 on: August 01, 2011, 01:40:13 PM »
edit, nm

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #363 on: August 01, 2011, 01:43:28 PM »
Running at normal speed, IAI wins.  Sorry dude.. :>

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #364 on: August 01, 2011, 01:58:27 PM »
I'm OK with that :P

Atleast I hope it gives it a challenge?

I'm making a map now though, releasing my AI(even though it exists out here on the forum already!)

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #365 on: August 01, 2011, 02:27:05 PM »
The differences are visible right from the start, your AI sends all seedlings to one asteroid, plants on it, then sends the rest to a second asteroid.  Mine splits its force equally between two asteroids, sending 50% to each at the same time.  Consequently, my AI gets its trees planted earlier than yours.

However yours gets its 5th up sooner than mine.  And its 6th.

Your AI seems to send ALL reinforcements for new tree planting, instantly.  My AI makes each asteroid wait until it has 10 seedlings before sending them to colonise stuff.

My AI gets its 7th asteroid about 20 seconds ahead of yours.  Your AI gets its 8th asteroid about 20 seconds ahead of mine.

As soon as your AI has captured its 8th asteroid, it instantly starts sending seeds to attack the player asteroids.  It actually sends a whole bunch of them to their death, they arrive one by one.  Then it seems to stop attacking and waits for a while.  Meanwhile IAI is massing up a huge force..

After a couple minutes, IAI has massed up a large force and attacks the north player asteroid.  Meanwhile, your AI attacks the sound player asteroid.  IAI captures north, your AI captures south a few seconds later.

No sooner has your AI captured the south player asteroid, than IAI attacks one of your asteroids.  Your AI responds by attacking one of IAI's asteroids.
IAI captures your asteroid, then rushes back to defend the attack.  It is not fast enough and IAI's asteroid falls to your AI.

Many battles ensue.  Quite fun to watch this really.. :>


annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #366 on: August 01, 2011, 02:27:44 PM »
By the way Aino, did I hear you mention something about GetFactionColour the other day?  What is that?  How does it work?

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #367 on: August 01, 2011, 02:32:32 PM »
Heh, the battles gets huge in the end :P

GetFactionColour(faction,something) is to GET the colour of a faction, meaning you can make sprites with the colour of a faction. I don't know what "something" is for, but use 2 there and then when you want a specific colour, do GetFactionColour(faction,2).r/g/b :)

And don't thank me for this, thank Mihhaelo for the whole thing. I just mentioned it more often I guess.

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #368 on: August 01, 2011, 02:38:50 PM »
That's AWESOME.

That means you could make an empire colour selector!!
And thus build maps where the enemy is always a starkly different colour to the player!!

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #369 on: August 01, 2011, 02:40:48 PM »
Hmm, you can try :P

Haven't experiemented with Setting colours, I've just been Getting colours :)

Good Luck :)

BTW: The starfield ain't checking asteroid on the map I have :/

Any reason for that?

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #370 on: August 01, 2011, 02:42:18 PM »
Great job on this AI by the way, this is your best AI to date for sure.  It's giving IAI a run for its money.. :>

One of these days you are going to produce an AI that can beat IAI.  There are inefficiencies in the IAI code, and not-so-smart reactions that it does...  If you programmed an AI that colonises and attacks efficiently to maximise its swarm as fast as possible, coupled with some routines specifically designed to take advantage of weaknesses in IAI, I have no doubt you would be successful in defeating it.


But for now, IAI v2.3 remains the deadliest AI for Eufloria... :>

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #371 on: August 01, 2011, 02:45:05 PM »
Well you can test what GetFaction(1,2).r is, then test if GetFaction(2,2).r is nearby this value... if they are similar, test empire 3 instead.  Keep going until you find a markedly different value... lets say you discover empire 5 has a much different colour... then you simply make the enemy as Empire 5.  Voila; automatic contrasting empire colours.  :>

Quote
BTW: The starfield ain't checking asteroid on the map I have :/

Any reason for that?

What are you trying to do?
What is going wrong?

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #372 on: August 01, 2011, 02:50:26 PM »
Uhhmm, I'm making my map, I haven't changed very much of it(especially not the core(engine)) but it won't hide stars behind the asteroids on the map.Though I'm using ScreenDraw() version, not LevelDraw()!

Should I PM you the map? It's pretty long, thanks to my Map Editor >.< (it's useful though :))

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: What are you working on? :D
« Reply #373 on: August 01, 2011, 02:51:11 PM »
By the way, your AI is managing to plant trees on asteroids owned by my AI...  I had that bug with my AI for a while but it seems like it's yours doing it now?  Not sure...


For the Starfield engine, make sure you are declaring the number of asteroids.  Make sure the engine is being run in a loop.  Etc.  :>
Yeah PM it if you can't fix it on your own.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #374 on: August 01, 2011, 02:56:10 PM »
Wait... is it planting on and asteroid that is not barren? o.O
It should be able to plant on an enemy asteroid aslong as there are no roots! Else, it must own it itself! Look at the code, it's clearly stated inside. I'll have to take a look now though :)

I'll see if I can fix the problems, but what do you mean by setting the amount of asteroids? And it's running in a loop, else it wouldn't show up at all :P