AI (on linux)

AI (on linux)

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
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

AI (on linux)

Post by malric »

Hello,

While was thinking to make a patch to the cross platform lobby to be able to host games, I tried to make a config file by hand (looking in tasclient sources).

Code: Select all

[GAME]
{


Mapname=SmallDivide.smf;
StartMetal=10000;
StartEnergy=10000;
MaxUnits=100;
StartPosType=0;
GameMode=0;
GameType=xta_se_v066.sdz;
LimitDGun=false;
DiminishingMMs=false;
GhostedBuildings=true;

HostIP=localhost;
HostPort=9000;

MyPlayerNum=0;

NumPlayers=2;
NumTeams=2;
NumAllyTeams=2;

    [PLAYER0]
    {
name=Malric;
team=0;
    }
    
    [PLAYER1]
    {
name=AI1;
team=1;
    }

    [TEAM0]
    {
TeamLeader=0;
        AllyTeam=0;
Color=3;
        Side=ARM;
Handicap=0;
    }
    
    [TEAM1]
    {
TeamLeader=1;
        AllyTeam=1;
Color=3;
        Side=CORE;
Handicap=0;
        AIDLL=aidll/globalai/libNTAI.so;
    }
    
    
    [ALLYTEAM0]
    {
NumAllies=0;
StartRectLeft=10;
StartRectRight=30;
StartRectTop=10;
StartRectBottom=30;
    }
    
    [ALLYTEAM1]
    {
NumAllies=0;
StartRectLeft=30;
StartRectRight=40;
StartRectTop=30;
StartRectBottom=40;
    }
    
    
}  
This is what I obtained, but the AI refuses to do anything.

Is the config file correct ?

Are any AI-s working on linux ? (how/what do I need etc.)

Thanks.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I've been told somewhere that soemone got NTAI playing on linux after porting it, probably the person who ported it in the first place.

Eitherway that version of NTAI logs to AILog.htm, and it should be there in the mean spring folder wherever that is on linux, could you see if it exists and what it says and report back?

I'll have to release the 0.29c source tomorrow so you can test on linux....
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

I had an AIlog.htm but it's not from now. (it has time from hours ago, even if I restarted the game).

I will try and see if I can convince it to create it again, and come back.

Would it be possible to give me an ini just to be sure it is not something wrong with it ? (or test mine). As I said this one is hand written... :D.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

hmm, NTAI writes to the log file progressivelyy, appending to the end of the existing log....
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

Ok. So I partially solved a problem with a patch in the core (the ai was not loaded at all), but NTAI is not very playfull. :(

It starts and after a few orders it stops...

If I play with 1 AI on SmallDivide it just build a mex.

If I play with 2 or 3 AI one of them builds a mex and the other 2 mex-s and a solar...

I should wait for the next version :D.

EDIT: and JCAI crashes completely ...
Post Reply

Return to “Help & Bugs”