linux spring with wine lobby, spring crashes when I use AI

linux spring with wine lobby, spring crashes when I use AI

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
phoenixz
Posts: 7
Joined: 27 Aug 2006, 05:55

linux spring with wine lobby, spring crashes when I use AI

Post by phoenixz »

Hi there,

I just downloaded, compiled and installed the latest spring (0.74b2) on linux. Spring works great, but there are no enemies to fight.. So I installed spring 0.74b2 for windows under wine, modified the lobby program as follows:

removed the mods, maps AI dirs
removed spring.exe
moved scripts.txt to the data dir of the linux install (that is /usr/share/games/spring)

symlinked the windows mods, maps and AI directories to the linux installation (/usr/share/games/spring again)

suymlinked the windows spring.exe to the linux spring executable ( /usr/share/games/spring/spring)

I added the basic content files, a number of mods (balanced anihilation 4.5, AA 2.2.3, XTA) and downloaded a bunch of maps. All of these, latest versions

With this configuration, spring will start, I can select the maps, mods, etc. The lobby program can start.and when I host a battle, it will actually correctly start the linux spring. So far, great! only still no ai's..

so I wanted to select AI's in the lobby program but it only shows me .dll files. So I symlinked the .so AI files to .dll, to make the lobby think that the AI files are available. That works too, it shows me the AI's now.

I host again a battle, BA, 2 lakes map, I add an AAI bot, and start spring.. I can select a starting point, ready! 3...2...1... boom, and Im back in the lobby.. :(

I have tried EVERY combination, different mods with different maps with different AI's.. nothing works, I always crash back into the lobby program :(

I can not find any log information. If spring makes log data, does anybody know where I can find it?

and, who can tell me what I did wrong here? Are there any AI problems or that only certain combinations work? I would appreciate any help.

If more info is needed, please let me know
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

can you try putting the contents of infolog.txt here? And any AAI logs there are you can find in /AI/AAI/logs/, it may be in a similair folder.
phoenixz
Posts: 7
Joined: 27 Aug 2006, 05:55

log contents

Post by phoenixz »

[sven@sven spring]$ cat infolog.txt
Using read-write data directory: /usr/share/games/spring/
Using read-only data directory: /usr/local/share/games/spring/
Using read-only data directory: /usr/local/lib/spring/
Map: 2Lakes.smf
Mod: "XTA v8.1" from XTAPE.sd7
Loading sound driver failed, disabling sound
Error: Could not create OpenAL audio device
Number of damage types: 5
Unknown feature type
TA Spring 0.74b2
Player logoutproblem joined as 0
logoutproblem added point: Start 0
rts/System/Platform/Linux/SoLib.cpp:41: SoLib::FindAddress: AI/Bot-libs/KAIcurrent.dll: undefined symbol: IsCInterface
AI/Bot-libs/KAIcurrent.dll has C++ interface
AI has enabled cheating.
GlobalAI1: KAI Metal Class by Krogothe
GlobalAI1: Metal Map Found
[sven@sven spring]$

running with mod XTA 8.1 and 1 bot with AAI

There are no log files in spring/AI/AAI/log, which was the only log directory I could find...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Thats because you appear to be running KAI not AAI
phoenixz
Posts: 7
Joined: 27 Aug 2006, 05:55

Post by phoenixz »

Shit, sorry, my bad..

I tried it first with AAI then with KAI.. These are the results from the 2nd attempt..

The first attempt with AAI gave these results:

[sven@sven spring]$ cat infolog.txt
Using read-write data directory: /usr/share/games/spring/
Using read-only data directory: /usr/local/share/games/spring/
Using read-only data directory: /usr/local/lib/spring/
Map: 2Lakes.smf
Mod: "XTA v8.1" from XTAPE.sd7
Loading sound driver failed, disabling sound
Error: Could not create OpenAL audio device
Number of damage types: 5
Unknown feature type
TA Spring 0.74b2
Player logoutproblem joined as 0
logoutproblem added point: Start 0
rts/System/Platform/Linux/SoLib.cpp:41: SoLib::FindAddress: AI/Bot-libs/AAI.dll: undefined symbol: IsCInterface
AI/Bot-libs/AAI.dll has C++ interface
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

AAI crashes if it cannot find its datafiles, check if cache/, cfg/, learn/, and log/ directories are present under AI/AAI.

KAIcurrent is broken for now, try 0.11 from here.
phoenixz
Posts: 7
Joined: 27 Aug 2006, 05:55

Post by phoenixz »

Checked, all directories are available.. Below is a listing of the AAI dir an all its sub dirs. To me it looks like all is ok here

More then that, its not just only AAI that fails.. ALL AI's fail, while the rest of the game works perfectly. I have tried KAICurrent, KAI0.11, AAI, and lots of other AI's, all crash, complain about config files missing, so that they cant be initialized, etc..

I have done some multiplayer games yesterday though, and although I can't host (probably firewall issue) I can join and play.. its cool!! :)

I'd just also like to practice sometimes against bots, and NONE of the bots are working. If I join a game with bots, BOOM, I get kicked out as well even..

Anybody else a good suggestion?

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/
total 68
-rw-r--r-- 1 root root 10361 Oct 13 14:39 AAI FAQ.txt
-rw-r--r-- 1 root root 14021 Oct 14 12:04 AAI ReadMe.txt
drwxr-xr-x 2 root root 4096 Dec 29 16:52 cache
drwxr-xr-x 5 root root 4096 Dec 29 16:52 cfg
drwxr-xr-x 4 root root 4096 Dec 29 16:52 learn
drwxr-xr-x 2 root root 4096 Dec 29 16:52 log

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/cache/
total 0

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/cfg/
total 32
-rw-r--r-- 1 root root 101 Aug 15 04:25 general.cfg
drwxr-xr-x 2 root root 4096 Dec 29 16:52 help
drwxr-xr-x 2 root root 4096 Dec 29 16:52 map
drwxr-xr-x 2 root root 4096 Jan 16 20:36 mod

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/cfg/help/
total 20
-rw-r--r-- 1 root root 885 Oct 13 14:39 example general.cfg
-rw-r--r-- 1 root root 5619 Oct 13 14:39 example mod.cfg

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/cfg/map/
total 392
-rw-r--r-- 1 root root 16 Oct 13 14:39 2Lakes.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 aftershock.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Altored_Divide.cfg
-rw-r--r-- 1 root root 10 Oct 13 14:39 Aquatic_Divide_TNM05-V2.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Ashap_Plateau.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 Battle_Holms_v4.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 Blue Planet.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Canyon_Wasteland-v02.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 cathralda.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 CenterrockV11.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 CenterrockV12.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Cliff Run-v01.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 Coast To Coast Remake.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Comet Catcher Remake.cfg
-rw-r--r-- 1 root root 10 Oct 13 14:39 Comet Catcher Remake-v02.cfg
-rw-r--r-- 1 root root 10 Oct 13 14:39 Cooper_Hill_TNM02-V1.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Core_Prime_Industrial_Area.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Craggy Hills v1.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Crossing_4_final.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Deserted_Gully-v02.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Dueling_Bases-v01.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Evergreen_Haven-v03.cfg
-rw-r--r-- 1 root root 10 Oct 13 14:39 Expandation v01.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 FF-AsteroidBattle.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 Flooded_Canyon-v2.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 Flooded_Canyon-v3.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Foothills-v08.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 Gods Of War 2 Remake V2.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Green Comet Basic.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Hells Pass.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 Ice_Bergs_V2.cfg
-rw-r--r-- 1 root root 15 Aug 15 04:25 IslandAlpha.cfg
-rw-r--r-- 1 root root 10 Oct 13 14:39 Long_Division-v01.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 MoonQ20.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 No_Mans_Land-V03.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Painted Desert Remake.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Painted Desert Remake V2.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Plains_and_passes.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Raised_Divide_v1.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 River Dale-v01.cfg
-rw-r--r-- 1 root root 15 Aug 15 04:25 Rush_Hour-By_Wired.cfg
-rw-r--r-- 1 root root 10 Aug 15 04:25 SailAway.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 SmallDivide.cfg
-rw-r--r-- 1 root root 16 Oct 13 14:39 Small Supreme Battlefield.cfg
-rw-r--r-- 1 root root 16 Oct 13 14:39 Supreme Battlefield.cfg
-rw-r--r-- 1 root root 10 Oct 13 14:39 Surrounded_Grounds-v2.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Vegan_Canyons-v01.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Whakamutunga_Riri-v01.cfg
-rw-r--r-- 1 root root 9 Aug 15 04:25 Winter_Wonderland.cfg

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/cfg/mod/
total 224
-rw-r--r-- 1 root root 651 Oct 13 14:39 1944DemoReleasev0.01b.cfg
-rw-r--r-- 1 root root 450 Aug 15 04:25 A-A-SBetaPack1.9B.cfg
-rw-r--r-- 2 root root 696 Aug 15 04:25 AASF211.cfg
-rw-r--r-- 1 root root 701 Oct 13 14:39 AASF221.cfg
-rw-r--r-- 1 root root 701 Dec 7 12:57 AASF223.cfg
-rw-r--r-- 1 root root 685 Oct 13 15:36 AASS211.cfg
-rw-r--r-- 1 root root 721 Oct 13 14:39 AASS221.cfg
-rw-r--r-- 1 root root 721 Dec 7 12:57 AASS223.cfg
-rw-r--r-- 1 root root 721 Jan 16 20:36 BA441.cfg
-rw-r--r-- 2 root root 696 Aug 15 04:25 BA45.cfg
-rw-r--r-- 1 root root 594 Oct 13 14:39 BOTA_13.cfg
-rw-r--r-- 1 root root 661 Oct 13 14:39 BOTA_14.cfg
-rw-r--r-- 1 root root 852 Oct 13 14:39 Expand&Exterminate v0.163.cfg
-rw-r--r-- 1 root root 474 Aug 15 04:25 FF 1.17 S.cfg
-rw-r--r-- 1 root root 501 Oct 13 14:39 FF 1.19 S.cfg
-rw-r--r-- 1 root root 399 Aug 15 04:25 FleabowlNR10.cfg
-rw-r--r-- 1 root root 686 Oct 13 14:39 gundam_1.1tO.cfg
-rw-r--r-- 1 root root 589 Aug 15 04:25 gundam annihilation 0.98b.cfg
-rw-r--r-- 1 root root 410 Oct 13 14:39 KuroTA-v047.cfg
-rw-r--r-- 1 root root 361 Oct 13 14:39 OTA_Classic_TA.cfg
-rw-r--r-- 1 root root 361 Oct 13 14:39 OTA_Shiny_TA.cfg
-rw-r--r-- 1 root root 361 Oct 13 14:39 OTA_with_Evolva_models.cfg
-rw-r--r-- 1 root root 361 Oct 13 14:39 OTA_with_UTASP_BP.cfg
-rw-r--r-- 1 root root 523 Oct 13 14:39 SpringWD5B65.cfg
-rw-r--r-- 1 root root 585 Oct 13 14:39 StarWars01.cfg
-rw-r--r-- 1 root root 764 Oct 13 14:39 TABFForSPRINGv15.cfg
-rw-r--r-- 1 root root 522 Oct 13 14:39 TLLv104.cfg
-rw-r--r-- 1 root root 623 Nov 25 18:35 xtape.cfg

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/learn/
total 16
drwxr-xr-x 2 root root 4096 Dec 29 16:52 map
drwxr-xr-x 2 root root 4096 Dec 29 16:52 mod

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/learn/map/
total 0

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/learn/mod/
total 0

[sven@sven mods]$ ll /usr/share/games/spring/AI/AAI/log/
total 0
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

Im having a similar problem. Not a single ai is working, independent of the map.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

For XTA, you need to rename xtape.cfg to XTAPE.cfg in AI/AAI/cfg/mod/ (though it shouldn't cause a crash if you don't, only the absence of one or more of those directories does).

I do not know why AAI crashes with other mods, or why your other AI's seem to... what does infolog.txt say if you run KAI 0.11 with BA or XTA?

Edit: did you create a symlink from /usr/share/games/spring/script.txt to where you have installed /wine/Spring/script.txt? (The script generated by TASClient textually references the dll's, not the so's, but should work regardless.)
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

Try using the ai KAI-011-mingw-32.dll (name of the file). From the four ais I have now (incluiding another kai) this the only one working. It does some stupid things (makes deep charge launchers in maps winhout water), but also does intelligent things. I my opinion its more challenging than aai.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

just to let peep know.
above problem was due to lack of write permissions to where spring was setup

or alternatively multiple datadirs setup via
/etc/spring/datadir

i.e

Code: Select all

$HOME/.spring
/usr/share/games/spring
note:- u may run into problems setting up TASClient & Wine -- Multiple Datadirs, since TASClient doesnt support them. So am require some extra symlinks
Post Reply

Return to “Help & Bugs”