Spectate as server host

Spectate as server host

Postby karolinamue » 14 May 2020, 12:32

Hey,

I was told that you can host a server but stay in spectate mode yourself if you type /spectate 1.

When I do so it either says "Server doesn't support spectate" or "Graphical client server cannot spectate".

I don't even know what changed between the different times I tried that caused the error message to change, sooo...
any ideas?

Thanks a lot,
Karolina
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 14 May 2020, 18:18

You need to create a dedicated server to allow spectate (ingame server creation doesn't support that)

try supertuxkart.exe --lan-server=test ,and open stk and join the test server (you need at least 2 players for spectate)
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby benau » 14 May 2020, 18:27

otherwise you can try just use the public server if you don't mind playing with other stk fans
(i think CSH STK server, Poland and HK * servers have this updated so you can use /spectate 1 there)
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 10:08

Hi Benau,

thanks for your reply!

Does creating a dedicated server work on windows?

I only found two tutorials, but this one: (German)
https://itrig.de/index.php?/archives/23 ... ocken.html
works for Ubuntu and Raspbian (which I don't even know)

and this one:
https://github.com/supertuxkart/stk-cod ... WORKING.md
kinda looks like MacOS to me, at least I thought "terminal" was apple specific and the commands don't work on my cmd.exe -- maybe I'm just too stupid to find out where exactly to paste it though :D

You don't happen to have some kind of tutorial for creating a dedicated server on windows, do you?

Thanks a lot,

Karolina
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 16 May 2020, 10:23

You open cmd.exe and change directory to program files\supertuxkart\bin and supertuxkart.exe --lan-server=test and it should work, everything is the same.
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 10:50

Ok I tried that but when I typed /spectate 1 in the lobby it said unknown command again.

Also my next question is, does this generally work for LAN servers only?
We'd like to host a private tournament, but we're spread all over Germany, so we can only use Global Networking
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 11:18

Alllright so I tried doing exactly what this tutorial says:
https://github.com/supertuxkart/stk-cod ... WORKING.md

and cmd.exe gives me this:


C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug>supertuxkart --server-config=your_config.xml --network-console
[verbose ] main: Error messages and other text output will be logged to C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/your_config.log.
[info ] [FileManager]: Data files will be fetched from: 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/'
[info ] [FileManager]: Data files will be fetched from: 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/'
[info ] [FileManager]: User directory is 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/'.
[info ] [FileManager]: Addons files will be stored in 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/../addons/'.
[info ] [FileManager]: Screenshots will be stored in 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/screenshots/'.
[info ] [FileManager]: User-defined grand prix will be stored in 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/grandprix/'.
[info ] [FileManager]: Asset 0 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/challenges/'.
[info ] [FileManager]: Asset 1 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gfx/'.
[info ] [FileManager]: Asset 2 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/grandprix/'.
[info ] [FileManager]: Asset 3 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gui/icons/'.
[info ] [FileManager]: Asset 4 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gui/screens/'.
[info ] [FileManager]: Asset 5 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gui/dialogs/'.
[info ] [FileManager]: Asset 6 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/replay/'.
[info ] [FileManager]: Asset 7 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/shaders/'.
[info ] [FileManager]: Asset 8 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/skins/'.
[info ] [FileManager]: Asset 9 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/ttf/'.
[info ] [FileManager]: Asset 10 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/po/'.
[info ] [FileManager]: Asset 11 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/library/'.
[info ] [FileManager]: Asset 12 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/models/'.
[info ] [FileManager]: Asset 13 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/music/'.
[info ] [FileManager]: Asset 14 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/sfx/'.
[info ] [FileManager]: Asset 15 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/textures/'.
[info ] [FileManager]: Asset 16 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/tracks/'.
[verbose ] translation: Env var LANGUAGE = 'en'.
[verbose ] translation: Language 'English'.
..:: Antarctica Rendering Engine 2.0 ::..
Microsoft Windows 8 (Build 9200)
Could not change window style.
[warn ] irr_driver: Using the fixed pipeline (old GPU, or shaders disabled in options)
[info ] HTTPRequest: Sending userid=225133&token=************************ to https://online.supertuxkart.net/api/v2/ ... d-session/
[info ] GrandPrixManager: Loading Grand Prix files from C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/grandprix/
[info ] GrandPrixManager: Loading Grand Prix files from C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/grandprix/
[info ] Achievements: Synching achievement 2,7 to server.
[info ] HTTPRequest: Sending userid=225133&token=************************&achievementid=2%2C7 to https://online.supertuxkart.net/api/v2/user/achieving/
[info ] HTTPRequest: Sending userid=225133&token=************************&visitingid=225133 to https://online.supertuxkart.net/api/v2/ ... ends-list/
[error ] NetworkConfig: Cannot detect network type using stun, using previously detected type: 1
Sat May 16 12:15:14 2020 [info ] STKHost: Host initialized.
Sat May 16 12:15:14 2020 [warn ] STKHost: Disable IPv6 socket due to missing IPv6.
Available command:
Sat May 16 12:15:14 2020 [warn ] Network: 2759 port is in used, use another port
help, Print this.
quit, Shut down the server.
kickall, Kick all players out of STKHost.
kick #, kick # peer of STKHost.
kickban #, kick and ban # peer of STKHost.
listpeers, List all peers with host ID and IP.
listban, List IP ban list of server.
speedstats, Show upload and download speed.
Sat May 16 12:15:14 2020 [info ] STKHost: Server port is 62002
Sat May 16 12:15:14 2020 [info ] ServerLobby: Resetting the server to its initial state.
Sat May 16 12:15:14 2020 [info ] ProtocolManager: A class ServerLobby protocol has been started.
Sat May 16 12:15:14 2020 [info ] main: Creating a WAN server 'karos testserver'.
Sat May 16 12:15:18 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 12:15:22 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 12:15:26 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 12:15:30 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 12:15:34 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 12:15:37 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 12:15:37 2020 [info ] ProtocolManager: A class ServerLobby protocol has been terminated.


Feel like this isn't quite right :D

thank you so much for your patience with me!
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 16 May 2020, 11:46

Do you have other process took the 2759 port, also does your firewall block stk from using udp socket?
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 11:51

i have no idea
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 16 May 2020, 11:56

Then you can just use the public servers.....
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby benau » 16 May 2020, 11:59

Check if u have any stk running in the background (because 2759 is used)
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 12:11

Okay I simply restarted my computer in case this was caused by the test server from before

now it says this:

C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug>supertuxkart --server-config=your_config.xml --network-console
[verbose ] main: Error messages and other text output will be logged to C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/your_config.log.
[info ] [FileManager]: Data files will be fetched from: 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/'
[info ] [FileManager]: Data files will be fetched from: 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/'
[info ] [FileManager]: User directory is 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/'.
[info ] [FileManager]: Addons files will be stored in 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/../addons/'.
[info ] [FileManager]: Screenshots will be stored in 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/screenshots/'.
[info ] [FileManager]: User-defined grand prix will be stored in 'C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/grandprix/'.
[info ] [FileManager]: Asset 0 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/challenges/'.
[info ] [FileManager]: Asset 1 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gfx/'.
[info ] [FileManager]: Asset 2 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/grandprix/'.
[info ] [FileManager]: Asset 3 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gui/icons/'.
[info ] [FileManager]: Asset 4 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gui/screens/'.
[info ] [FileManager]: Asset 5 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/gui/dialogs/'.
[info ] [FileManager]: Asset 6 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/replay/'.
[info ] [FileManager]: Asset 7 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/shaders/'.
[info ] [FileManager]: Asset 8 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/skins/'.
[info ] [FileManager]: Asset 9 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/ttf/'.
[info ] [FileManager]: Asset 10 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/po/'.
[info ] [FileManager]: Asset 11 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/library/'.
[info ] [FileManager]: Asset 12 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/models/'.
[info ] [FileManager]: Asset 13 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/music/'.
[info ] [FileManager]: Asset 14 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/sfx/'.
[info ] [FileManager]: Asset 15 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/textures/'.
[info ] [FileManager]: Asset 16 will be loaded from 'C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/../../stk-assets/tracks/'.
[verbose ] translation: Env var LANGUAGE = 'en'.
[verbose ] translation: Language 'English'.
..:: Antarctica Rendering Engine 2.0 ::..
Microsoft Windows 8 (Build 9200)
Could not change window style.
[warn ] irr_driver: Using the fixed pipeline (old GPU, or shaders disabled in options)
[info ] HTTPRequest: Sending userid=225133&token=************************ to https://online.supertuxkart.net/api/v2/ ... d-session/
[info ] GrandPrixManager: Loading Grand Prix files from C:\Users\muell\Documents\Supertuxkart Versuch 2\stk-code\build\bin\Debug/../../../data/grandprix/
[info ] GrandPrixManager: Loading Grand Prix files from C:\Users\muell\AppData\Roaming/supertuxkart/config-0.10/grandprix/
[info ] Achievements: Synching achievement 2,7 to server.
[info ] HTTPRequest: Sending userid=225133&token=************************&achievementid=2%2C7 to https://online.supertuxkart.net/api/v2/user/achieving/
[info ] HTTPRequest: Sending userid=225133&token=************************&visitingid=225133 to https://online.supertuxkart.net/api/v2/ ... ends-list/
[error ] NetworkConfig: Cannot detect network type using stun, using previously detected type: 1
Sat May 16 13:04:18 2020 [info ] STKHost: Host initialized.
Sat May 16 13:04:18 2020 [warn ] STKHost: Disable IPv6 socket due to missing IPv6.
Available command:
help, Print this.
quit, Shut down the server.
kickall, Kick all players out of STKHost.
kick #, kick # peer of STKHost.
kickban #, kick and ban # peer of STKHost.
listpeers, List all peers with host ID and IP.
listban, List IP ban list of server.
speedstats, Show upload and download speed.
Sat May 16 13:04:18 2020 [info ] STKHost: Server port is 2759
Sat May 16 13:04:18 2020 [info ] ServerLobby: Resetting the server to its initial state.
Sat May 16 13:04:18 2020 [info ] ProtocolManager: A class ServerLobby protocol has been started.
Sat May 16 13:04:18 2020 [info ] main: Creating a WAN server 'karos testserver'.
Sat May 16 13:04:22 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 13:04:25 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 13:04:29 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 13:04:33 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 13:04:37 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 13:04:41 2020 [error ] STKHost: STUN response contains no data at all
Sat May 16 13:04:41 2020 [info ] ProtocolManager: A class ServerLobby protocol has been terminated.
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 16 May 2020, 12:22

Try disable windows firewall for a while to test?
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 12:40

Ok I did, tried again, error messages stay the same.

I downloaded this:
https://sourceforge.net/projects/stun/
but I'm not quite sure what to do with it, or if I need to install it in any way
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 16 May 2020, 12:41

You dont need this at all
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby benau » 16 May 2020, 12:44

visit stk irc
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 17:04

OH. MY. GOD.

It works!!!!

You are my absolute hero!!! Thank you so much <3<3<3

One last question - is there any key to show the names of the drivers while I'm watching them?
I saw one pop up but I couldn't find out whether there's a way to make it show again
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 16 May 2020, 18:48

Image

Did you mean that or something else? (The driver name is always shown)
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 19:08

I mean that "Pirat..." text, this doesn't show for me, just like a second
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby QwertyChouskie » 16 May 2020, 19:35

Hmm, sounds like a bug. What GPU and driver version do you have?
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: Spectate as server host

Postby karolinamue » 16 May 2020, 20:05

u mean this?
Attachments
gpudriver.jpg
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby karolinamue » 21 May 2020, 14:37

Hi,

I uploaded a video in which you can see that the players' names are only shown for a very short time.
https://drive.google.com/file/d/1E-w2X8 ... sp=sharing

Do you have any idea what I can do about that?

Thanks a lot

Karolina
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 22 May 2020, 11:36

driver bugs probably... if you have another desktop pc you can try that (not intel GPU)
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Spectate as server host

Postby karolinamue » 02 Jun 2020, 21:48

Well it does work if I join my server with the normal stk version that everyone has, the names are always shown then.
Just in the release git version they don't.
I can't use the normal version though when we're hosting the tournament, because it's not possible to change the perspective there.
I can't try another pc because I'm the only one among my friends who has the release git version installed...
do you have any idea what I could try to make it work?
karolinamue
 
Posts: 14
Joined: 14 May 2020, 11:05

Re: Spectate as server host

Postby benau » 03 Jun 2020, 01:02

Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Who is online

Users browsing this forum: No registered users and 1 guest

cron