0.6.0 WIP 2663

You have tested TA3D, share your experience /
Vous avez testé TA3D, venez partager votre expérience
Post Reply
D.Durand
Posts: 87
Joined: Sun Feb 07, 2010 11:21 am

0.6.0 WIP 2663

Post by D.Durand » Mon Sep 20, 2010 6:11 am

Tried it.

Two things i think that break the game pleasure (even if i now we are far from a V1.0 game) :

- When i play with max players, ofter all the AI players gang on the same, kill it, then gang on another, kill it, repeat.

- AI never answer when the base is attacked. Only the units in range attack the newcomers.

- Com nearly never try to use it's weapon when attacked.

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: 0.6.0 WIP 2663

Post by Balthazar » Mon Sep 20, 2010 9:54 am

AI is almost absent now, so AI part is not the one you should worry about.
Try to test units behaviour, engine bugs and so on stuff, that are currently undergoing.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: 0.6.0 WIP 2663

Post by zuzuf » Mon Sep 20, 2010 3:33 pm

Currently the built-in AI is very basic, it just build things based on heuristics to guess what is needed and send units to war when its army reaches a critical mass compared to an enemy. More advanced AIs should be written in Lua which is more flexible and not that slow thanks to LuaJIT :).
=>;-D Penguin Powered

slogic
Posts: 75
Joined: Wed Mar 26, 2008 5:23 pm
Location: RF, Bryansk
Contact:

Re: 0.6.0 WIP 2663

Post by slogic » Tue Sep 21, 2010 10:33 am

Is it possible to make some bridge interface to attach Spring AIs? I know this is complex from the start, but i need to know what TA3D devs are thinking. I'm currently supporting one of Spring AIs and i would like to see it in OTA games because my remembrances about OTA was about AI is too stupid in skirmish battles and all attempts to make it better is just give him cheat resource units which also driven me nuts.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: 0.6.0 WIP 2663

Post by zuzuf » Tue Sep 21, 2010 4:01 pm

It's probably possible and if some functions are lacking they can be implemented but I don't know much about Spring AIs so I can't really say more. Maybe some Lua glue would be enough ...
=>;-D Penguin Powered

slogic
Posts: 75
Joined: Wed Mar 26, 2008 5:23 pm
Location: RF, Bryansk
Contact:

Re: 0.6.0 WIP 2663

Post by slogic » Wed Sep 22, 2010 3:13 pm

Here are basic interface files for so called "Legacy C++ AI API". There are 4 working AI based on this interface in Spring. If you'll have some mood to implement this i can tell what each function generally does, what functions are not important, etc.

Also i see the problem is in bypassed structures: unit definitions, resource definitions, move types, weapon types. Hm, what else?

If you're interested i can prepare more info. But if you feel this is meaningless idea then better to stop right now.
Attachments
legacy_api_interface.zip
(8.77 KiB) Downloaded 254 times
Last edited by slogic on Wed Sep 22, 2010 7:07 pm, edited 1 time in total.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: 0.6.0 WIP 2663

Post by zuzuf » Wed Sep 22, 2010 3:37 pm

Oops I forgot to fix some folder access rights when I moved the website ... it should work now.

Of course this is interesting and since I am interested in AI/Robotics this is something I would like to develop :)
=>;-D Penguin Powered

slogic
Posts: 75
Joined: Wed Mar 26, 2008 5:23 pm
Location: RF, Bryansk
Contact:

Re: 0.6.0 WIP 2663

Post by slogic » Wed Sep 22, 2010 7:08 pm

Updated my post above. These are just general interfaces.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: 0.6.0 WIP 2663

Post by zuzuf » Sun Oct 24, 2010 10:16 am

Ok, I've looked at the API and it seems it uses low-level structures of Spring engine, mainly map data which is transfered to AI using pointers to raw data which cannot be mapped easily to TA3D internal data (because of encoding, data types, etc ...) so I am afraid there is no way for AIs to get map information through this interface but unit information should be possible since this is a kind of abstraction layer. Also I noticed there is a function to get the metal map, this is something that doesn't exist in TA3D which makes me think that Spring AIs are probably incompatible with TA3D at a design level.

Can you tell me more about the functions which are really used by AIs ? Maybe I can work around a few things.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: 0.6.0 WIP 2663

Post by Balthazar » Sun Oct 24, 2010 12:18 pm

Well, so how about self-studing AI based on neuro-network and internet database? )

D.Durand
Posts: 87
Joined: Sun Feb 07, 2010 11:21 am

Re: 0.6.0 WIP 2663

Post by D.Durand » Sun Oct 24, 2010 1:45 pm

Funnily enough, the units, if they are easilly stuck by other units or wrecks, and can't run straight in an open terrain, are pretty good at find their destination in a maze-like map, like "over crude water" : I never see them stuck by impassable terrain. That's an extraordinary upgrade from old pathfinding, or of course TA.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: 0.6.0 WIP 2663

Post by zuzuf » Sun Oct 24, 2010 4:43 pm

Balthazar wrote:Well, so how about self-studing AI based on neuro-network and internet database? )
I hope to have one someday :)
D.Durand wrote:Funnily enough, the units, if they are easilly stuck by other units or wrecks, and can't run straight in an open terrain, are pretty good at find their destination in a maze-like map, like "over crude water" : I never see them stuck by impassable terrain. That's an extraordinary upgrade from old pathfinding, or of course TA.
Pathfinding has been completely rewritten but yeah it's still missing something: it considers all mobile units can move aside to let someone pass but sometimes units are occupied and just can't move, if they can notify themselves has obstacles, units shouldn't get stuck any more by other units (unless they're completely surrounded).
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest