Have AI in multiplayer game (Solved)

Have AI in multiplayer game (Solved)

Postby TZ42 » 19 Apr 2021, 10:19

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.
Last edited by TZ42 on 19 Apr 2021, 18:13, edited 1 time in total.
TZ42
 
Posts: 3
Joined: 19 Apr 2021, 10:10

Re: Have AI in multiplayer game

Postby benau » 19 Apr 2021, 16:44

can you post console output here?
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Have AI in multiplayer game

Postby TZ42 » 19 Apr 2021, 18:12

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 :)
TZ42
 
Posts: 3
Joined: 19 Apr 2021, 10:10

Who is online

Users browsing this forum: No registered users and 1 guest