NTai XE10.1b - Page 43

NTai XE10.1b

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

Moderators: hoijui, Moderators

Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Just compiled it, doesn't crash at all and nicely writes stuff to infolog.txt and AI/NTai. There was something peculiar in CManufacturer.cpp though (in SkyWrite::Write()) that caused g++ to choke, specifically this:

Code: Select all

case '':// the lightning power symbol
I don't know how the VS compiler deals with empty character literals, but I had to change that to ';' to get an object file out of said class and link it against the rest of the binary (which was necessary since leaving the class out resulted in undefined symbol errors at load-time followed by a straight CTD).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

'¬' or '|' I believe that was, I'd have to check the ETA ai for the specifics.

Lindir says it crashes with his XTA config, maybe its his XTA config, or just something specific to relase builds.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Could I have a summarized/short list of NTai XE9.5 issues very quickly?

I want to sort out these errors now as quickly as is possible.

I believe I have sorted out water support for the build placement algorithm but I have no XTA config, so if you see lindir online, pester him to send me the config.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

There's only been RC1 right?

It crashes with EE before ten minutes. Other settings don't matter. I think it's usually around 6 minutes in but sometimes later. This is Forboding Angel's config on Unknown-Files. Also, unless the hub is built with a lot of flat space around it, Team 1 never seems to build a factory.

This is what the end of the log looks like.

Code: Select all

[05:52] < Frame: 10566 >[05:52] < Frame: 10566 >issuing command in update() succeeded
[05:52] < Frame: 10566 >Value ai\scouters missing in file buffer
[05:52] < Frame: 10568 >Value ai\scouters missing in file buffer
[05:52] < Frame: 10568 >scouter found
[05:52] < Frame: 10568 >Chaser::Add()
[05:52] < Frame: 10568 >new attacker added :: urcspiderp2
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10569 >issuing command in update()
[05:52] < Frame: 10569 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10569 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10572 >issuing command in update()
[05:52] < Frame: 10572 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10572 >issuing command in update() succeeded
[05:52] < Frame: 10574 >Value ai\scouters missing in file buffer
[05:52] < Frame: 10575 >issuing command in update()
[05:52] < Frame: 10575 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10575 >issuing command in update() succeeded
[05:52] < Frame: 10575 >issuing command in update()
[05:52] < Frame: 10575 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10575 >issuing command in update() succeeded
[05:52] < Frame: 10575 >issuing command in update()
[05:52] < Frame: 10575 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10575 >issuing command in update() succeeded
[05:52] < Frame: 10575 >issuing command in update()
[05:52] < Frame: 10575 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[05:52] < Frame: 10575 >issuing command in update() succeeded
[05:58] < Frame: 10757 >Value ai\scouters missing in file buffer
[05:59] < Frame: 10770 >Value ai\scouters missing in file buffer
[05:59] < Frame: 10793 >Value ai\scouters missing in file buffer
[06:00] < Frame: 10802 >Value ai\scouters missing in file buffer
[06:00] < Frame: 10802 >Value ai\scouters missing in file buffer
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >issuing command in update()
[06:00] < Frame: 10803 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10803 >issuing command in update() succeeded
[06:00] < Frame: 10803 >Value ai\scouters missing in file buffer
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10806 >issuing command in update()
[06:00] < Frame: 10806 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10806 >issuing command in update() succeeded
[06:00] < Frame: 10809 >issuing command in update()
[06:00] < Frame: 10809 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10809 >issuing command in update() succeeded
[06:00] < Frame: 10809 >issuing command in update()
[06:00] < Frame: 10809 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10809 >issuing command in update() succeeded
[06:00] < Frame: 10809 >issuing command in update()
[06:00] < Frame: 10809 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10809 >issuing command in update() succeeded
[06:00] < Frame: 10809 >issuing command in update()
[06:00] < Frame: 10809 >Command: ID: 10 Timeout: 2147483647 params: -1.#IND, 0, -1.#IND, source of command: move CActions
[06:00] < Frame: 10809 >issuing command in update() succeeded
[06:05] < Frame: 10956 >Value ai\scouters missing in file buffer
[06:05] < Frame: 10957 >Value tasklists\normal\urcapad2 missing in file buffer
[06:05] < Frame: 10957 >Value tasklists\lists\urcapad2 missing in file buffer
[06:05] < Frame: 10957 > error loading tasklist :: urcapad2 :: buffer empty, most likely because of an empty list
[06:05] < Frame: 10962 >Value ai\scouters missing in file buffer
User avatar
DJ
Posts: 355
Joined: 17 Jan 2007, 13:26

Post by DJ »

There's two issues that i know of:

1) NTai doesn't respond to a failed attempt to add an item to a units build queue. By this i mean the item appears as planned in a position where it can't be built. The unit in question then just sits there. On very rare occasions (I've seen it once) the unit might get moved (to make way for another building for instance) this seems to jolt the unti into action and a new item is planned.

2) The factories at some point (seems random) will stop following their build lists and again just sit there. I've never seen a factory restart after this has happened.

These issues appear on BA4.7 with about the simplest config I could build. Best map to show the problem seems to be altored_divide. Any other info you need drop me an email.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Could someone debug NTai using forbs EE config to figure out what the crash is? In the mean time I'll build a version that outputs more data (expect very large log files from it), the nvidia beta drivers for Vista 8800GTS cards are still crashing spring randomly so I cant be sure wther the crash is NTai or nvidia related.

I'll also have to add a check to see if the engine says the building can be placed there.

And once I've sorted those out I'll add per unit spacing values with 2 values, aka I would want 1 value to be the freespace searched for and one the freespace reserved, so I might give a hub a freespace search value equal to its build range, but make it reserve only 1/5th of that so it can place factories...
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

AF wrote:cant be sure wther the crash is NTai or nvidia related.
couldn't a quick glance at infolog.txt change that?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

possibly, sometimes it shows up, but most of th time its a nvidia related crash as any encounter of enemy units involving explosions usually ends in a desktop and a balloon saying stuff about nvidia.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

http://spring.unknown-files.net/file/24 ... _XE9.5RC2/

test that file, if it crashes look at the logfile and send me the first 30 lines and the last 30 lines, or send me it as a zip archive.

Also dont post the contents of logfiles in this thread. this build of NTai will make very very big logfiles.

If your NTai copy does not crash but instead does something it shouldnt, explain how it happened but dont send me log files because I'm not sifting through logfiles that could potentially be several hundred megabytes when unzipped(they compress very well).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

*_* 15 people downloaded, nobody says it works, nobody says it doesnt work, nobodies posted logs, wtf.

I have bugs in NTai.

I cant fix these bugs by myself

XE9.5RC2 is not a bugfix release, its me trying to give you what I need to fix the bugs for RC3.

Do I really have to resort to invading you privacy and making NTai send logs and screenshots of whats happening every second to get the data I need to prevent NTai dieing off completely?

I cant debug NTai, I am powerless to fix the bugs because I dont know where the bugs are or even what they are, all I know is somewhere there's a crashbug, I have no information and I desperatly need it and your all keeping it to yourself and not reporting anything.

This isnt like the past where I had the tools to debug spring. I cant even run spring for any extended period of time, nobody has sent me configs I can test with, I cant run mingw32 debugger, and VS2005 builds the dll in a strange way so NTai crashes trying to access spring as soon as its started.

LOGS LOGS LOGS.

You're all stuck in AI hell with mods that have no AI or have AIs that perform poorly because they're not designed for it. You have AIs that crash, and here is a project that promises to work with eveyr single mod out there flawlessly yet its crippled bacause I cant fix this 1 single bug that causes it to crash, and despite this nobody is able to give me anything information other than "it just crashes". I've worked on this AI nonestop for more than 2 years, poured hundreds of hours of my free time into it and written 50k+ lines of code in the process. Is nobody bothered?
User avatar
DJ
Posts: 355
Joined: 17 Jan 2007, 13:26

Post by DJ »

I'm bothered but i was under the impression there was no difference in code just extra logging. It does say in your post if it doesn't crash don't give you the logs. If there's no difference in code then there's no point me re-testing what i've already posted about. If there is a difference let me know and I will test it and get back to you.

We're all bothered about this AI or we wouldn't have posted about it, NTai to me looks like it is the most promising of all the AI's at the moment. I think that good AI's are the key to getting user numbers up on Spring as they give new users something to learn against. We all appreciate the work you've done so far, has anyone played the AI on Sup Com? -it sucks!

Any help I can give you let me know. If that means installing EE to test just ask. The issues i've raised aren't crashes though, they just stop NTai from being useful as an AI at the min.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Well at the moment I'm getting allsorts of mixed responses.

And yes one or two minor adjustments where made to building palcement but no crash bugs where fixed.

So please, try to get NTai to crash without deliberatly creating syntax errors in your configs using notepad.

And if after lots of testing you still cant get it to crash, say so.

And please keep re-iterating the existing bugs.

From what I can remember building placement kept trying to build in bad places. Is there any improvement on this? RC2 polls the engine to see if it can actually build there and discards the task if it cant. Does this fix work?
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

any closer to having a working config file for xta?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Ask Lindir the green, I just maintain toolkit and NTai, I dont build the XTA config.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

could the next version come with some configs?
User avatar
DJ
Posts: 355
Joined: 17 Jan 2007, 13:26

Post by DJ »

dude what version is RC2 compiled for?
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

DJ wrote:dude what version is RC2 compiled for?
Yeah I just downloaded it to get some logs and got the "Incorrect bot version" pop up.
User avatar
Lindir The Green
Posts: 815
Joined: 04 May 2005, 15:09

Post by Lindir The Green »

http://spring.unknown-files.net/file/24 ... T2_config/

It is currently a port from the old format, but it worked very well then. This version though is mostly untested because of frequent NTai crashes.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

of which I've had zero information.

Apologies for the incorrect AI dll thing, I'll fix that immediatly, shame on those evil 15 ppl who never reported this.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Post Reply

Return to “AI”