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

0 Members and 2 Guests are viewing this topic.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 27
  • Posts: 1,523
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #30 on: February 06, 2011, 10:28:56 AM »
Quick note though, I'm allready done with the priority system, and the seedlings know where to go :D

But, testing
entity.Attribs.Energy
entity.Attribs.Strength
entity.Attribs.Speed
and they don't seem to work very well when using them:
Code: [Select]
if GetAsteroid(asteroids).Attribs.Strenght > GetAsteroid(asteroids).Attribs.Energy and GetAsteroid(asteroids).Attribs.Strenght > GetAsteroid(asteroids).Attribs.Energy then
PlantDefenseTree(caiid)
else
PlantDysonTree(caiid)
end
gives error:
Quote
attempt to compare number with string
so... lol? What does this mean D:

EDIT: annikk, consider making IAI compitable by using only a limited amount of factions so our AI's can work in harmony? :P
« Last Edit: February 06, 2011, 10:36:06 AM by Aino »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: What are you working on? :D
« Reply #31 on: February 06, 2011, 10:40:06 AM »
Yeah I can pretty easily set my AI so it will only control seedlings/asteroids/flowers belonging to the empires I choose for it to control.

So we can make yours empire 2, and mine empire 3, or something.. :>



By the way, are you remembering to set a global Grace Timer?  I set mine to 99999.  That way the default AI will never try to take control of anything.  :>

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: What are you working on? :D
« Reply #32 on: February 06, 2011, 10:40:59 AM »
Also it's because you mis-spelled "strength".  :>


Also:

Code: [Select]
PlantDefenseTree(caiid)
You need to tell it which asteroid to plant on.
EG:

Code: [Select]
GetAsteroid(0):PlantDefenseTree(2)
« Last Edit: February 06, 2011, 10:45:49 AM by annikk.exe »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: What are you working on? :D
« Reply #33 on: February 06, 2011, 10:43:23 AM »
I am tinkering folornly with my 3D engine, trying to figure out some way to make it a million times more efficient..

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 27
  • Posts: 1,523
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #34 on: February 06, 2011, 10:58:32 AM »
I see :)

But got that damn error again:
Quote
attempt to compare number with nil

WTF?! (sry for swears, I am so pissed of by that and the computer is a retard, cause the number is just printed in its face, but it ain't realising -.-(I think?))

EDIT: I ask for help, and I am so stupid and aren't allowing you cool guys to look at the code xD
« Last Edit: February 06, 2011, 08:28:32 PM by Aino »

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 27
  • Posts: 1,523
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #35 on: February 06, 2011, 11:28:02 AM »
Please help! D:

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: What are you working on? :D
« Reply #36 on: February 06, 2011, 11:57:13 AM »
Lets see...  it's complaining about line 188.


Code: [Select]
if cairoidpriority[asteroids] < cairoidpriority[i] then
Most likely cause is that you haven't initialised the values in those arrays to anything.
The error is "attempt to compare nil with number".
That means the value for one of the slots of cairoidpriority must be nil.  "nil" means no value, it is different to zero.  You can't do arithmetic comparisons against "nil", otherwise Eufloria will produce this error.


To fix, consider making a for loop in your LevelSetup to assign values to all the slots in that array.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 27
  • Posts: 1,523
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #37 on: February 06, 2011, 08:29:25 PM »
Thanks annikk, the AI is functional now, but doesn't care about anything else than trees or flowers, but that is the most important things, right?

EDIT: It cares about roids, trees and SEEDLINGS!:P
« Last Edit: February 06, 2011, 09:42:51 PM by Aino »

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 27
  • Posts: 1,523
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #38 on: February 06, 2011, 09:44:25 PM »
The AI pwns the normal one :) Even though it is all fair, it react somewhat faster than the normal one(but still slower, lol xD)... I have bigger plans for the AI, you'll need to wait and see :D

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 21
  • Posts: 929
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #39 on: February 07, 2011, 01:33:12 AM »
Hoo boy...

I've just realised that I may need to change the leval- and empire-saving sections of EUCLiD - potentially requiring that I rewrite the whole thing. Yay.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 27
  • Posts: 1,523
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #40 on: February 07, 2011, 02:08:23 AM »
I will give the AI an unique ability: Learn from mistakes, like sending to much leaving no defense and loose the roid after will cause it to send less to leave more defense :)

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 21
  • Posts: 929
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #41 on: February 07, 2011, 02:39:46 AM »
Has that been done with anything yet? I mean, even research-grade robotics? More power to you if you can get it to work, but...

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 27
  • Posts: 1,523
  • They'll eat you next!
  • Eufloria: Yes
Re: What are you working on? :D
« Reply #42 on: February 07, 2011, 02:44:54 AM »
Well, I might have the idea of how to do it :P But it will not learn about everything...

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: What are you working on? :D
« Reply #43 on: February 07, 2011, 07:36:34 PM »
Barely did any coding this weekend.  Instead, I've been working on my new song.  :>

Going to do a final version tonight with production tweaks.  Feedback would be useful and very much appreciated! :>

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: What are you working on? :D
« Reply #44 on: February 09, 2011, 07:10:56 AM »
Well I finished the song tonight (hopefully finished, anyway) so I guess it will be back to coding tomorrow.  I guess I will release a new map with the 2 new engines I've built (3D Starfield, and the mystery engine) soon.