TAI V1 - Page 2

TAI V1

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

Moderators: hoijui, Moderators

User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

No, when I do it, I'm scratch building the map. There's too many variables to leave to something so automatic. I'm going to go find a copy of XP now.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I forgot that I'd left TAI on the cvs at that point. I have a version here that compiles. However because I have lost all internet access, I am indeed lucky to even e able to post at this moment, I have lost all hope of compelting TAI in any way of my own, first it crashed when it tried to call any lua script, now there's something wrong with the construction code somewhere, I cant take anymore of it it's driving me bonkers. Suffice to say construction is the problem, fix it and the foundations are there and maybe then I'll look at it again, but I wont know about that as I have no access to anythign spring related in school and no net acecss at home.

I'll email the TAI code sometime next week or later to napalm or triaxx when I get back to school, I might not though as the only way at the moment to get stuff on the school network si by email from home and I have no internet, and this laptop's slow and has no cvs program.

In the mean time I would say that unless you wish to overhaul construction sot hat ti works and gives you a solid base on which to put a lua interpreter and the rest of the outlined TAI specification at darkstars.co.uk, I suggest you then go work on JCAI. As it stands, I havent the resources or access necessary to fix anything or do any work on TAI or any AI project whatsoever, heck there's a good chance I'll have to g ive up my ICT A level if they dont change the way I get stuff on and off the network.

I'm sorry if I raised hopes, there're those who praised me for moving forward where most everyone else seemed quiet, and a great mass who harass and are currently touting JCAI to em whenever they get the chance and making comments, to those I say, I tried, I didnt know what the standard template library was before I started TAI, I had never worked on a C++ project before it and the onyl program I'd written beforehand was a celsius to farenheit example, I tried, I learned, dont put me down for it, afterrall at least I tried to contribute which is more than can be said for a lot of people.

Cain's planning a project that's similair to the outline for what I had planned as my future project after JCAI was released and TAI was lagging way behind, he'll have more experience and time to spend on it than I have, help him if he asks for it. Dont expect any replies to this post to be read after 5 minutes of posting it
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

Don't give up, everything'll work out eventually. Even if someone else gets one out first, you'll have something to contribute.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Ah, in light of a small corruption I'm rewritting a few thigns and I think ti best to show what TAI is like right now having seen the stark difference between current and last released source code.

note: I'm in the middle of rewritting GlobalAI.cpp after it was corrupted and I'd not done proper backup.

http://sourceforge.net/projects/taiskirmish/
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

When was the last good one dated? I've still got one from... September 01 2005
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The last archive I have with TAI code is dated september 8th 2005. Have I included the right GlobalAI.cpp or is there just the corrupted version?
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

I can't tell if it's corrupted or not. It looks just like some of the other files.
User avatar
Veylon
AI Developer
Posts: 174
Joined: 21 Sep 2005, 19:45

Post by Veylon »

Looks pretty clever. I like the idea of a HTML Log File. I might have to try it...

I don't know about the whole 'Agent' System, though. I'm probably wrong, but I'll stick with handing out a GroupAI here and there.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I fidn the Agent system is as good as if nto better. My agent structures use identical functions as the GlobalAI interface with a few alterations, they make ti much easier to sort through code, by seperating thigns into seperate classes withotu isolating the code, or creating a superblock of AI code that scrolls down for pages and pages with no break.

As for html log file, I tried it, everytime I implemented anythign that wrote to a file and tested ti the spring engine refused to acknowledge the AI's existence and refused to load it untill I commented out and recompiled.
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

Not to mention, that it's capable of giving a worthwhile fight, at least theoretically. After digging through the code for a bit, I can definitely see how it's supposed to work, so as soon as I get a chance to, I'm going to steal his code and settle into build my AI. I know how mine is supposed to work, I just have to make it.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Argh, your using TAI as a template?! nicht nicht nicht, one must make considerable efforts to use different types of agents and implementations to create a substantial difference in the AI's perspective of how it will win the battles it faces.
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

Not a template persay, just as a place to steal code that works. Actually, I'm going to take what I need, and what I can use, and turn it into something that works. Creating the Agents shouldn't be a problem, once I understand enough of the code to know how they work.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

And how long do you think it'll be before you decide to do your first release of code?

Other than that I dont mind you taking bits of code and using the same agent system as me, just as long as you note it originated from me, and wouldnt mind swapping agents between AI's if it suites us.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

http://sourceforge.net/project/showfile ... _id=141993

Triaxx, I've copied TAI and cleared out most of TAI out of that copy, save the assigner agent, and I've messed around a bit making it clearer and nicer. Now all there is, is the Agent system used in TAI, and a helper class which is pretty much empty save a bit of code that finds the commander at the start and the functions from what used to be the debug class.

I'll move TAI's agents over to another copy once I'm happy it's clear enough, and start building in more functionality. The only thing I'm bothered about people using it is that they build ontop and not into it, and if they do change ti they change ti for everyone else who'se using it too to keep a common AI itnerface across any Skirmish AI built using it. So PM me if you change ought.
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

How long?Hmm... That rather depends, I still have to lay hands on a copy of Win XP, so I can make Spring work to test it, but it shouldn't take too long, I know of a friend I think I can get to help me with the project. She's a nice enough person, and she's got XP on her laptop.

And you'll be credited fully in my readme's, and as part of the Load Screen, so... I'll take apart that template in the morning, after I finish my Algebra, and see what I can make of it. Shouldn't be that difficult. I'm already scribbling notes in my notebook. So you got internet back, eh?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Sort of, it's a complicated situation with regards to internet access.

Dont change too much just yet, just suggestions, I've changed it a bit since yesterday, nothign too much, I got ICT coursework to catch up on first.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

http://taiskirmish.sourceforge.net/viewtopic.php?id=128

A better set of classes for the helper class, including unti and unit group classes and dynamic matrixes. It's just the header file pasted in, but I'd like to see what people would like, and whatever problems or improovements people can see.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

And updated again, use above link.
Post Reply

Return to “AI”