invalid Team.TeamLeader

invalid Team.TeamLeader

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

Moderator: Moderators

Post Reply
User avatar
Squall815
Posts: 9
Joined: 23 Jan 2009, 16:26

invalid Team.TeamLeader

Post by Squall815 »

Hello

I use spring on gentoo and when I try to run spring with lobby (I use the command "springlobby") on single player I get this message :
invalid Team.TeamLeader in GameSetup script

I try different mods on different maps I get the same message.
But I try to run spring with the command "spring" and choose a mod, a map and an AI it's works.

Here is my script.txt in /home/seb/spring/script.txt

Code: Select all

[GAME]
{
        HostIP=localhost;
        HostPort=8452;
        IsHost=1;
        MyPlayerName=Player;

        ModHash=-1066946085;
        MapHash=-1900656736;
        Mapname=DeltaSiegeDry.smf;
        GameType=Balanced Annihilation V6.61;
        startpostype=3;
        NumPlayers=1;
        NumUsers=2;

        [PLAYER1]
        {
                Name=Player;
                CountryCode=;
                Spectator=0;
                Rank=0;
                Team=0;
        }

        [TEAM0]
        {
                TeamLeader=1;
                StartPosX=863;
                StartPosZ=803;
                AllyTeam=0;
                RGBColor=0.941176 0.823529 0;
                Side=ARM;
                Handicap=0;
        }
        [TEAM1]
        {
                AIDLL=///usr/games/lib/spring/AI/Bot-libs/libKAIK-0.13.so;
                TeamLeader=1;
                StartPosX=9544;
                StartPosZ=755;
                AllyTeam=1;
                RGBColor=0.501961 0.501961 0.501961;
                Side=ARM;
                Handicap=0;
        }
        [ALLYTEAM1]
        {
                NumAllies=0;
        }
        [ALLYTEAM0]
        {
                NumAllies=0;
        }
        NumRestrictions=0;
        [RESTRICT]
        {
        }
        [mapoptions]
        {
        }
        [modoptions]
        {
                diminishingmms=0;
                disablemapdamage=0;
                fixedallies=0;
                ghostedbuildings=1;
                limitdgun=0;
                maxspeed=3;
                maxunits=500;
                minspeed=0;
                startenergy=1000;
                startmetal=1000;
                deathmode=com;
                gamemode=0;
        }
}
I also try to remove the lines "TeamLeader=1;" and run :
/usr/games/bin/spring --config="/home/seb/.springrc" "/home/seb/spring//script.txt"

but I 've got always the same message.

I use spring 0.78.2.1 on gentoo (with layman) and
springlobby 0.0.1.10390

And here is the USE
for spring
(python -custom-cflags -debug -java)

and for springlobby
(-debug -disable-sound -disable-torrent)

And I have use :
/usr/games/bin/spring
/usr/games/lib/libunitsync.so
in the springlobby's option

So if some one can help me I would be grateful.
Sevalecan
Posts: 10
Joined: 27 Oct 2006, 00:57

Re: invalid Team.TeamLeader

Post by Sevalecan »

I'm actually having this same problem under Gentoo at the moment.. The problem actually has nothing to do with the Team.TeamLeader value :P .

Look at your script.txt, notice this line:

Code: Select all

AIDLL=///usr/games/lib/spring/AI/Bot-libs/libKAIK-0.13.so;
I get the same thing. It's those three slashes on the beginning of that directory causing the problem. My unitsync.log contains this:

Code: Select all

unitsync: loaded, 0.78.2.1
Using read-write data directory: /home/sev/.spring/
Using read-only  data directory: /usr/share/games/spring/
Using read-only  data directory: ///usr/share/games/spring/
Using read-only  data directory: ///usr/games/lib/spring/
I removed the /etc/spring/datadir file and removed the SpringData line in ~/.springrc . Same message as before, I have no idea why it's trying to search those directories with the three slashes. Furthermore, if it's finding the AI in one of those directories clearly some parts of spring's code can happily open files with superfluous slashes, and other programs generally can too.

So why is Spring searching these directories when they aren't explicitly configured and why can't it open the AI file regardless?
Sevalecan
Posts: 10
Joined: 27 Oct 2006, 00:57

Re: invalid Team.TeamLeader

Post by Sevalecan »

Hmm.. seems this bug disappeared with the release of a new ebuild. Yipee!
Post Reply

Return to “Linux”