NTAI - Page 2

NTAI

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The only code that would be afefcted by he map size thats in the AI would be cains metal extractor placement. So I am inclined to agree with you nwo you've said that about maps.

Perhaps zaphod should give the code the ocne over, afterrall zaphod has said in PM's to me it sues the same method as JCAI but JCAI does it better. I'm sure cain would like the extra time from pointing out any errors.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

My code, including the metal map class is on spring CVS. I don't really know if it does it better, but I think it's bugfree. There is some disabled and unfinished caching stuff in the code though, because the metal map processing takes very little time (So it wasn't really necessary to cache on disk)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Isnt your code bundled with springs code in the source code downlaod?
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

yes
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

A new version for 0.65B2 with file logging and a few tweaks, aswell as a switch to using the code alik has for mex finding integrated into cains class.

The links at the top =D

note: I havent been able to fix that error, but it should last a lot longer before ti happens now, and having the logging, I need as many examples of testAI.log to verify what i told triaxx in the other thread.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Seeing that you continue to work on ntai.. where is the source?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

It's in a place somewhere between my computer and sourceforge. But I wasnt going to release untill i had fixed the bug, which I believe I have, I'm just playtesting again to verify it.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I fixed the elusive bug and now it works fine. It has my new html logging clas itnegrated and cains latest mex algorithm.

Download here

And as Zaphod noted, I'll upload the source shortly.
HiEnergy
Posts: 16
Joined: 22 Jun 2005, 20:01

Post by HiEnergy »

For me the NTAI (NTAI V0.2B2) does not do anything. Only says "Build location collision found" then the commander just sits there.
I put the contents of NTAIV0.2B2.rar (a single dll named ntai.dll) in the folder AIDLL\globalai. Then I tried to play against NTAI on Flooded Desert. What's wrong with that?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Well, I think you may have a problem that's mroe of a result fo the map you're playing on. The logic of the AI says that shouldnthappen. If ti still doesnt do ought, select commander and press stop and it should move onto its next task. Otherwise try a different map. That shouldnt really happen but if I removed the check and allowed it to build it could result in instability.

Other than that amsse had nice results doing JCAI vs NTAI playtests on brazillian battlefields with that version.
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Post by Masse »

Other than that amsse had nice results doing JCAI vs NTAI playtests on brazillian battlefields with that version.
its Masse :lol:

yeah NTAI "wins" it just controls forces stupidly and the metal mex algorithm still sucks :wink: but "beats" JCAI 8)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Suffice to say the insanely rubbish target routine has been replaced this morning, though not released.
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

That's good to hear. I assume the new one is more streamlined, and faster?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I suggest you look at how JCAI does it =D, NTAI uses a similair approach now, exept I've added a few more parameters that to some may seem obvious. Such as sending scouts to the mex spots given from cains class that are nearest to the enemy position.
User avatar
GrOuNd_ZeRo
Posts: 1370
Joined: 30 Apr 2005, 01:10

Post by GrOuNd_ZeRo »

Will NTAI ever support mods and if so how?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

If you gave me a list of what you wanted the commander to build, then what each factory and conbot it builds should build, and the unit health of each attack unit or builder then I'll add it in. Otherwise I'll cotninue to move NTAI to dynamic building so eventually NTAI will decide for itself what to build, without any config files at all. TAI had this but it hadnt been finished to a compilable state before the main file cotnianing it was corrupted.
User avatar
Stanky105
Posts: 7
Joined: 04 Apr 2005, 05:07

Post by Stanky105 »

I also get the "build location collision found," with the commander sitting there not doing anything. I also have version .2B2

It does this on every single map I have, including Brazilian Battlefield.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

i tried it out, on some maps it crashes right at the beginning (hill heaven for example) on other maps (hills and plains) it builds metal makers like hell but nearly no other buildings (especially it doesn´t build more tahn one or two mexes)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

And yet nobody has posted a copy of AIlog.htm

If the commander isnt building anything, take cotnrol fot eh AI and press stop, ti should continue to the next build task, otherwise keep pressing.

Cain has tested and shown that the interface function NTAI uses suddenly fails to work as well in multiplayer situations, try running it manually through spring.exe or just by yourself....

And if you think it builds metal makers like hell you should see what ti used to build. Perhaps the construction collision errors are due to cains metal class which ahs a habit of returning 0,0,0 every now and again, for some people ti always returns 0,0,0 hence the collision message.

At least tell me what the last 3 lines in AILog.htm are, I need to know how far the code got so i can fidn any bugs. Or even if the log file exists!
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post by CaptainMaim »

I've got one, it's 11 megs... The AI went pretty far for me. Inspite of everything... I noticed though that my computer got a lot more sluggish after I came back and unpaused it from eating dinner. And eventually the game crashed nicely with a little AI dll error mentioning some unhandled exception or something.

The only extra unit I was using was the stargate... I can post the AILOG.html for you, or the replay. I was doing a JCAI + NTAI vs me game.. And I was going easy on them (cause I wanted to have some fun with them.) I wanna know why both the AI's congregated in the player 2 starting spot? NTAI TOTALLY overgrew the JCAI base (JCAI was like a little splash in the middle of an NTAI pool.) I also noticed that after the NTAI's Can rush (which I was a little surprised to see.) After the cans had forced their way on what I can assume was a direct line between start points 1 and 2, it reached startpoint 1 and stopped. The reenforcements dribbled in and NTAI never attacked me again. Maybe next time I'll just setup a happy little killing zone since the AI only mangaged to get 3 units at startpoint 1 and then never moved them again.
<Imagines devious forms of self amusement centered around AI's flaws>

Here's the first 3 lines:

HamburgerHill.smf
xta_se_v065.sdz
map size: 80 x 80

And here's the last several lines from the log file:
[84:27] Chaser::UnitDestroyed
[84:27] Chaser::UnitDamaged
[84:27] factor::UnitIdle() new task
[84:27] CBuild()
[84:27] CORMEX
[84:27] CBuild()3
[84:27] CBuild()3m
[84:27] Build location collision found!
[84:27] Chaser::UnitDamaged
[84:28] Chaser::UnitDamaged
[84:28] Chaser::UnitDamaged
[84:28] Chaser::UnitDamaged
[84:28] Chaser::UnitDamaged
[84:28] Chaser::UnitDamaged
[84:28] Chaser::UnitDamaged
[84:28] Chaser::UnitDamaged
[84:28] factor::UnitIdle() new task
[84:28] tasknum at one?
[84:28] CBuild()
[84:28] CORARAD
[84:28] CBuild()3


I hope that all this helps.
Post Reply

Return to “AI”