Forged Alliance Forever Forged Alliance Forever Forums 2013-08-24T11:53:44+02:00 /feed.php?f=45&t=3957 2013-08-24T11:53:44+02:00 2013-08-24T11:53:44+02:00 /viewtopic.php?t=3957&p=51601#p51601 <![CDATA[Re: Idea for improving the AI(@Devs)]]> Sprouto on the GPGnet forums is working on an advanced AI for SCFA, his work seems to be in a very advanced state now, maybe you could ask him if it is transferable to faf.

http://forums.gaspowered.com/viewtopic.php?f=30&t=59085

Statistics: Posted by Krapougnak — 24 Aug 2013, 11:53


]]>
2013-08-06T12:15:06+02:00 2013-08-06T12:15:06+02:00 /viewtopic.php?t=3957&p=50221#p50221 <![CDATA[Re: Idea for improving the AI(@Devs)]]>
eXcalibur wrote:
here is a fix for sorianAI for this problem:
read: http://forums.gaspowered.com/viewtopic.php?t=23929
download: http://members.iinet.net.au/~dionysus/misc/AIFix.zip


Is this implemented in FAF? If not, would it help?

Statistics: Posted by johnie102 — 06 Aug 2013, 12:15


]]>
2013-08-02T12:05:51+02:00 2013-08-02T12:05:51+02:00 /viewtopic.php?t=3957&p=50076#p50076 <![CDATA[Re: Idea for improving the AI(@Devs)]]>

Statistics: Posted by Ze_PilOt — 02 Aug 2013, 12:05


]]>
2013-08-02T11:08:56+02:00 2013-08-02T11:08:56+02:00 /viewtopic.php?t=3957&p=50073#p50073 <![CDATA[Re: Idea for improving the AI(@Devs)]]>
eXcalibur wrote:
the ai cannot be converted to use multiple cores, since the whole game (and therefore the engine) only supports one core. i do not think (yet i do not know a lot about this subject) that it is possible to separate the simulation process of the game and the ai process in order to run them on separate cores.

I doubt that! The only thing you need is an IPC mechanism with the builtin LUA of supcom. So if it's possible to write and read files or to use Sockets or to use WinAPI calls(shared mem), it is possible to use multiple processes! As i understand the engine is made of 500ms time slots. So basically you could use for each additional process, 2 files one for read and one for write, to exchange information. It would'nt matter which language is used to programm the ai. With tcp/sockets you could even process the different ais on different computers.

If it's possible to fork processes, just use one process per ai, like in the following examples:

Please take a look at the chess engines and the xboard protocol which is using pipes just as an example, seperating the AI's from the user interface.
http://www.gnu.org/software/xboard/engine-intf.html

An AI programming battle sim
http://realtimebattle.sourceforge.net/

Statistics: Posted by RoLa — 02 Aug 2013, 11:08


]]>
2013-05-19T15:25:50+02:00 2013-05-19T15:25:50+02:00 /viewtopic.php?t=3957&p=42606#p42606 <![CDATA[Re: Idea for improving the AI(@Devs)]]>

Statistics: Posted by fredlllll — 19 May 2013, 15:25


]]>
2013-05-19T15:07:33+02:00 2013-05-19T15:07:33+02:00 /viewtopic.php?t=3957&p=42605#p42605 <![CDATA[Re: Idea for improving the AI(@Devs)]]>
here is a fix for sorianAI for this problem:
read: http://forums.gaspowered.com/viewtopic.php?t=23929
download: http://members.iinet.net.au/~dionysus/misc/AIFix.zip

the ai cannot be converted to use multiple cores, since the whole game (and therefore the engine) only supports one core. i do not think (yet i do not know a lot about this subject) that it is possible to separate the simulation process of the game and the ai process in order to run them on separate cores. there where already people who tried it and failed:
read: http://forums.gaspowered.com/viewtopic.php?t=15556
download: http://healthandmana.googlecode.com/fil ... er1.03.zip

Statistics: Posted by eXcalibur — 19 May 2013, 15:07


]]>
2013-05-19T11:59:25+02:00 2013-05-19T11:59:25+02:00 /viewtopic.php?t=3957&p=42592#p42592 <![CDATA[Re: Idea for improving the AI(@Devs)]]> Statistics: Posted by Vicarian — 19 May 2013, 11:59


]]>
2013-05-19T11:34:40+02:00 2013-05-19T11:34:40+02:00 /viewtopic.php?t=3957&p=42590#p42590 <![CDATA[Re: Idea for improving the AI(@Devs)]]> Statistics: Posted by fredlllll — 19 May 2013, 11:34


]]>
2013-05-16T23:25:40+02:00 2013-05-16T23:25:40+02:00 /viewtopic.php?t=3957&p=42255#p42255 <![CDATA[Idea for improving the AI(@Devs)]]> the first thing i want to say about that: i dont know if its even possible in FAF.
so supreme commander always had problems when i comes to many units. many as in >2000
i bet everyone of you already noticed when you play with AI and use 1000 as unitlimit the seconds will pass like 5 seconds or more.
so as far as i know the AI is still using only one core(= thread). so i wondered how could you make an AI multithreaded?
first idea would be: much synchronizing. but this is hard, if not impossible and could be slower than one thread because of the synchronization. you would have to synchronize both, read and write on datastructures.
so i had the idea to make something like a "double state AI". you have 2 instances of the AI state (ressources, units...) and you read from the old state, and write into the other state. so you only have to synchronize the writes, and can completely forget about the reads. of course this needs some additional control structures, which i already have in my head.

so basically im asking if it would be possible to do this in FAF. if some people understand code better than text, i could make a little code sample in c/c++.
and if you say it would be only possible using python, you have to do it on your own XD. i recently had the "pleasure" to code in python and i miss my autocompletion and typed environment :D

so yeah let me know what you think about the idea, and if it would be possible

Statistics: Posted by fredlllll — 16 May 2013, 23:25


]]>