Port INTEGER UNSIGNED NOT NULL, - Port of host Ipv6 TEXT NOT NULL DEFAULT ' ', - IPv6 (if exists) in string of host (only created if IPv6 server) Ip INTEGER UNSIGNED NOT NULL, - IP decimal of host Host_id INTEGER UNSIGNED NOT NULL PRIMARY KEY, - Unique host id in STKHost of each connection session for a STKPeer You need to create a database in sqlite first, run sqlite3 stkservers.db in the folder where (all) your server_config.xml(s) located.Ī table named v(server database version)_(your_server_config_filename_without_.xml_extension)_stats will also be created in your database if one does not exist.:ĬREATE TABLE IF NOT EXISTS (table name above) Server management (Since 1.1)Ĭurrently STK uses sqlite (if building with sqlite3 on) for server management with the following functions at the moment: You will have the best gaming experience by choosing a server where all players have less than 100ms ping with no packet loss. Tested on a Raspberry Pi 3 Model B+, if you have 8 players connected to a server hosted on it, the usage of a single CPU core is ~60% and there are ~60MB of memory usage for game with heavy tracks like Cocoa Temple or Candela City on the server, you can use the above figures to estimate how many STK servers can be hosted on the same computer.įor bad network simulation, we recommend network traffic control by Linux kernel, see here for details. With the network AI tester, it's easier to for example simulate high-loaded servers or bad networks (ones with high ping and/or packet loss). You can also run network AI tester in server-only build of STK. Remove -no-graphics if you want to see the AI racing. Supertuxkart -connect-now=x.x.x.x:y -network-ai=n -no-graphics There is a network AI tester in STK which can use AI on player controller for server hosting linear races game mode, which helps automating the testing for servers, to enable it use it on lan server: You can find out that directory location here (See Where is the configuration stored?) Testing server Supertuxkart -server-config=your_config.xml, regardless of whether LAN or WAN server is chosen (of course you need to have a saved user for the WAN one), by default your server logging will be saved to the STK configuration directory with a name of your_config.log, given that the server configuration filename is your_config.xml. LAN server can be connected too by typing your server public address (with port) in Enter server address dialog without relying on stk-addons.Īfter the first time configuration, you can just start the server with the command: Supertuxkart -server-config=your_config.xml -lan-server=your_server_name -network-consoleįor LAN server it is required that the server and server discovery port is connectable by clients directly, no NAT penetration will be done in LAN. Hosting LAN (local internet) serverĮverything is basically the same as WAN one, except you don't need an stk online account, just do: Notice: You don't need to make any firewall or router configuration changes if you connect to the recommended servers (marked with ☆★STK★☆). You may also need to handle the server discovery port 2757 for connecting your WAN server in LAN / localhost. For example, in Ubuntu based distributions, run the following command to disable the firewall on that port: The current server configuration xml looks like this:Īt the moment STK has a list of STUN servers for NAT penetration which allows players or servers behind a firewall or router to be able to connect to each other, but in case it doesn't work, you have to manually disable the firewall or port forward the port(s) used by STK.īy default STK servers use port 2759. network-console should not be used if you run supertuxkart server later with systemd service, see issue #4299. It will create that xml configuration file if not found in current directory, you can type quit in terminal, than you can edit that file for further configuration as required. ![]() Supertuxkart -server-config=your_config.xml -network-console Supertuxkart -init-user -login=your_registered_name -password=your_passwordĪfter that you should see Done saving user, leaving in terminal if it successfully logged in. If you intend to keep your server always on (24x7) you are required to implement port forward / direct connection with NAT penetration in your network, we will regularly remove any servers not following this rule. ![]() It is recommended you have a saved user in your computer to allow hosting multiple servers simultaneously with the same account, if you have a fresh STK installation, first run: You are required to have an stk online account first, go here for registration. Yum install gcc-c++ cmake openssl-devel libcurl-devel zlib-devel enet Hosting WAN (public internet) server Yum install wget cd /tmp wget rpm -Uvh epel-release *rpm
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |