Page 1 of 1

Have AI in multiplayer game (Solved)

PostPosted: 19 Apr 2021, 10:19
by TZ42
Hello,

I played Stk in multiplayer with friends and I wondered how to introduce some AI in the game. I saw here: https://github.com/supertuxkart/stk-code/issues/4147, that it may be possible when using my own server but I did not succeed.

What I did:
I installed stk from github on a Linux VPS
I launched a server with

{l Code}: {l Select All Code}
./supertuxkart --server-config=your_config.xml --network-console


and indeed the server was visible in supertuxkart from my local computer. Then I tried to put some AI in there with

{l Code}: {l Select All Code}
./supertuxkart --connect-now=127.0.0.1:2759 --network-ai=6


but no AI coming up.
Can someone help me ? Has anyone succeed in having AI in multiplayer lobby ?
Thanks.

Re: Have AI in multiplayer game

PostPosted: 19 Apr 2021, 16:44
by benau
can you post console output here?

Re: Have AI in multiplayer game

PostPosted: 19 Apr 2021, 18:12
by TZ42
Ah, sorry I just found the bug. Solved, I forgot to put the password of the room for the AI players
For other with this problem the code is

{l Code}: {l Select All Code}
./supertuxkart --connect-now=127.0.0.1:2759 --network-ai=6 --server-password=YOUR_PASSWORD


I used --password before but it was --server-password that I needed. Thanks for your quick answer nonetheless :)