Single player against ai on Linux?

Single player against ai on Linux?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
User avatar
architeuthis
Posts: 86
Joined: 15 Dec 2005, 20:47

Single player against ai on Linux?

Post by architeuthis »

Is single player against ai opponents possible on Linux? On the windows version of Spring you can launch a minimal ai game by starting "global ai test" for example. But this doesn't seem to be possible on Linux.

I thought I read only AAI worked on Linux, but how can I play against it?
AAI is in the svn version I have, so what should I do to make it work?

And UnityLobby works offline but the "select ai" option doesn't seem to show up anything, should I do something to make it "recognize" AAI, or is this function just not implemented in UnityLobby?
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

How u install Spring ?
And how is your datadirs setup ?
Where did u get your AI's ? compiled them / downloaded them ?

U really shouldnt be able to launch UnityLobby unless u got a map & mod installed. Which are reported via unitsync.so

UnityLobby detects AI by scanning datadirs, reported by unitsync.so
User avatar
architeuthis
Posts: 86
Joined: 15 Dec 2005, 20:47

Post by architeuthis »

How u install Spring ?
And how is your datadirs setup ?
Where did u get your AI's ? compiled them / downloaded them ?
I have a svn install and the 0.73b3. They both use the same datadir (did I correctly assume this doesn't create problems?). Aren't the ai's included with spring (they seem to be to me).
U really shouldnt be able to launch UnityLobby unless u got a map & mod installed. Which are reported via unitsync.so
I have several maps and mods installed, UnityLobby seems to start correctly to me.
UnityLobby detects AI by scanning datadirs, reported by unitsync.so
When I right click in the battle menu I get a box displaying "select ai", when I click on it the only thing which happens is the appearance of a very small box next to the upper right corner of the select ai box.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

in order to properly use the AI you'll need to copy the AI folder from your compiled 0.74b3 to your data folder (or from the svn for that matters, just match your binary version)

to check if you did correctly, execute spring without any argument, the AI should be listed in the test scripts
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Then i guess your AI's are in the datadir where u keep the map & mods.
Which is why UnityLobby doesnt know about them, assuming same with Spring
User avatar
architeuthis
Posts: 86
Joined: 15 Dec 2005, 20:47

Post by architeuthis »

I replaced the ai folder in my datadir with the ai folder from my compiled 0.74b3; but unfortunately it didn't work, nothing changed.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

do few checks

the equivalent of the .dll in linux is .so; so all the AI firles iwlll have an so extension

open ver 0.74b3/game/AI

you should have 3 sub-folders:

Bot-libs
Helper-libs
AAI

open bot-libs and check if it contais the ai files ( AAI.so, JCAI.so & so on)

open the helper-libs and check if contais the support ai files (economyAI.so, metalmaker.so & so on)

now copy the whole game/AI folder in your data folder

open the data folder/AI and make sure that the subfolders helper-libs & bot-libs contains the same files as the ver 0.74b3/game/AI

execute spring by command line using ./spring

check if in the test scripts the AIs are listed

if they are listed, open unitylobby and check if they are listed there too

if you get stuck in any of those passages please report wich passage is not working and please report the content of your ver 0.74b3/game/AI folder and data/AI folder (including subfolders & files)
User avatar
architeuthis
Posts: 86
Joined: 15 Dec 2005, 20:47

Post by architeuthis »

now copy the whole game/AI folder in your data folder
Oh, I had to copy that folder! I had copied the /spring/AI folder. Now the ai's are recognized by both UnityLobby and spring. Thanks for the help Brain Damage!
Post Reply

Return to “Linux”