NTai XE10.1b - Page 82

NTai XE10.1b

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

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

The problem with using scons that way is I'd get an NTai.so not an NTai.dll, the server environment is debian based not Windows NT/Server
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: NTai XE9.8 experimental for 0.76b1

Post by Tobi »

aptitude install mingw32

(ie. buildbot is debian (now ubuntu) based too)

EDIT: if it is ubuntu gutsy I have mingw32 4.2.1 packages for it (it only has 3.4 in it's repository right now)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

Root access I have not.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: NTai XE9.8 experimental for 0.76b1

Post by Tobi »

Ah then you can probably forget any kind of automatic setup :-)
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: NTai XE9.8 experimental for 0.76b1

Post by lurker »

I grabbed the version for 76b1, and in almost every game the Evolution commander only builds one single unit. Maybe it's giving a failed move order?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

It built something?

There was no evolution config included. As far as I'm aware nobody ahs ever tried to build one. If you are trying to build an evo config and thats your result, then please look at the logs. It'll say why it skipped that task and the next one etc.....
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: NTai XE9.8 experimental for 0.76b1

Post by lurker »

I'm building a config. For this test I removed all tasklists except the com's. It doesn't say anything about skipping a task: http://pastebin.ca/853834 It just builds one unit and idles forever.
The config, generated by the toolkit: http://pastebin.ca/853840

The one time it actually worked: http://pastebin.ca/853845
User avatar
DJ
Posts: 355
Joined: 17 Jan 2007, 13:26

Re: NTai XE9.8 experimental for 0.76b1

Post by DJ »

In the toolkit you need to check that the task list has been allocated to eengineer, from the config you posted it looks like it hasn't...
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: NTai XE9.8 experimental for 0.76b1

Post by lurker »

I said right there I had removed all task lists except the com's to make the log as simple and clear as possible. The commander, ecentralprocessing, is ordered to start off by building 4 eengineers, and it only builds one before stopping forever.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

And lua gadgets never intervene in the construction process? What happens if you force a unitidle following the commander locking up by pressing stop or issuing a command?
theotherhiveking
Posts: 21
Joined: 06 Feb 2008, 23:48

Re: NTai XE9.8 experimental for 0.76b1

Post by theotherhiveking »

Hi there, i dont know if i should post this here or in linux, but anyway here it is.


when I run(any) mod with this ai (compiled from source from the svn trunk of spring(6 of febrary) y get multiple buffer errors, then the commander does nothing.


Code: Select all

 :: NTAI XE9.79 Log File 
 :: Programmed and maintained by AF/T.Nowell 
 :: Copyright (C) 2004-7 Tom Nowell/AF 
 :: Game started: 6.1.2008  23:43:11

[-]|23:43:11| < Frame: 0 >error in buffer
 :: Balanced Annihilation V6.1
 :: Moooooo!
 :: First instance of NTAI
[-]|23:43:11| < Frame: 0 >file script.txt not found
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: spring_engine
 :: AI DLL's in game

[-]|23:43:11| < Frame: 0 >logging started
[-]|23:43:11| < Frame: 0 >error in buffer
KAI Metal Class by Krogothe
Metal Spots loaded from file
Metal Spots Found 26
 :: Found 26 Metal Spots
[-]|23:43:11| < Frame: 0 >Unitdef loader constructed
[-]|23:43:11| < Frame: 0 >Order Router constructed
[-]|23:43:11| < Frame: 0 >DTHandler constructed
[-]|23:43:11| < Frame: 0 >RadarHandler constructed
[-]|23:43:11| < Frame: 0 >Planning constructed
[-]|23:43:11| < Frame: 0 >Economy constructed
[-]|23:43:11| < Frame: 0 >Manufacturer constructed
[-]|23:43:11| < Frame: 0 >BuildingPlacer constructed
[-]|23:43:11| < Frame: 0 >Chaser constructed
[-]|23:43:11| < Frame: 0 >Initialisising
[-]|23:43:11| < Frame: 0 >error in buffer
[-]|23:43:11| < Frame: 0 >Mod TDF loaded
 :: mod.tdf failed to load, assuming default values
[-]|23:43:11| < Frame: 0 >abstract == true
[-]|23:43:11| < Frame: 0 >values filled
[-]|23:43:11| < Frame: 0 >Arrays filled
 :: Using abstract buildtree

[-]|23:43:11| < Frame: 0 >Loading unit data
 :: error loading file :: AI/NTai/learn/BA.tdf
[-]|23:43:11| < Frame: 0 >failed to save :AI/NTai/learn/BA.tdf
[-]|23:43:11| < Frame: 0 >failed to load :AI/NTai/learn/BA.tdf
[-]|23:43:11| < Frame: 0 >Unit data loaded
 :: TartarusV7.smf
 :: BA61.sd7
 :: map size 8 x 8
[-]|23:43:11| < Frame: 0 >Planner Init'd
[-]|23:43:11| < Frame: 0 >Manufacturer Init'd
[-]|23:43:11| < Frame: 0 >This map does not have identifiablegeothermal vents
[-]|23:43:11| < Frame: 0 >BuildingPlacement Init'd
[-]|23:43:11| < Frame: 0 >Chaser Init'd
[-]|23:43:11| < Frame: 1 > error loading tasklist for unit :: "armcom" :: buffer empty, most likely because of an empty list
[01:57]|23:45:9| < Frame: 3523 >failed to save :AI/NTai/learn/BA.tdf
 :: Closing LogFile...
This with BA 6.1

and the the AI/NTai/learn/BA.tdf file:

Code: Select all

[NTai]
{
	learndata=learn/BA.tdf;
	modconfig=configs/BA.tdf;
	modname=Balanced Annihilation V6.1;
}
I get the same error with CA, and every other mod i tried.

Im using Ubuntu linux, with the relase compiled from source. the game installation and the datadir are both in my home folder. So, no root permissions are required.

Sorry for my bad english :wink:
User avatar
DJ
Posts: 355
Joined: 17 Jan 2007, 13:26

Re: NTai XE9.8 experimental for 0.76b1

Post by DJ »

looks like it can't find or access the configs directory to me....
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

hmm, it seems you compiled NTai but then thought that was all that was needed and never bothered to put in the needed folders and config files to make it actually do stuff.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

I've made more changes in the svn which might interest the kernel panic people (last half hour or so), and might speed things up in general for everyone else.
User avatar
overkill
Posts: 500
Joined: 02 Sep 2006, 01:15

Re: NTai XE9.8 experimental for 0.76b1

Post by overkill »

Is it possible to make ntai upgrade mexes?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

Not quite, but patches are welcome!
zenzike
Posts: 77
Joined: 12 Apr 2008, 13:19

Re: NTai XE9.8 experimental for 0.76b1

Post by zenzike »

I've just downloaded spring from the SVN repository (HEAD), and I'm trying to compile NTai which I found in the AI directory. There's a netbeans project that seems configured there, but there are a few problems:

Assigner.cpp, Assigner.h, Scouter.cpp, Scouter.h, GlobalAI.cpp, GlobalAI.h, helper.cpp, helper.h, Information.h, and InitUtil.h are all missing, though the project expects them to be there.

I haven't started hunting these down in previous commits, but they seem important, since the build spits this out when I try to compile:

Code: Select all

make[1]: *** No rule to make target `NTai/Core/GlobalAI.cpp', needed by `build/Release/GNU-Windows/NTai/Core/GlobalAI.o'.  Stop.
make[1]: Leaving directory `/home/nick/projects/spring/AI/Global/NTai/AI'
make: *** [.build-impl] Error 2
Should I be using the nbproject as a base to look at this code from, or ought these files be there? Should I be working off another version from the repository (I'm currently taking from HEAD).

Cheers,

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

Re: NTai XE9.8 experimental for 0.76b1

Post by AF »

The netbeans project is very old, do not assume it will work out of the box, there are files referenced in the project that no longer exist and there are files that exist that aren't referenced.

You would be best building a new netbeans project from scratch and submitting a patch.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: NTai XE9.8 experimental for 0.76b1

Post by imbaczek »

scons should build NTai (try scons GlobalAI.)
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: NTai XE9.8 experimental for 0.76b1

Post by 1v0ry_k1ng »

hey AF you got a working version of NTAI with the current sprang that I can plug my configs into?
Post Reply

Return to “AI”