Uberserver: Difference between revisions

From Spring
Jump to navigationJump to search
Meltrax (talk | contribs)
added description for an offline LAN server
mNo edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 2: Line 2:


its currently used as the main lobby server running at lobby.springrts.com port 8200.
its currently used as the main lobby server running at lobby.springrts.com port 8200.
its the home of the server bot [[ChanServ]]


see https://github.com/spring/uberserver for more details
see https://github.com/spring/uberserver for more details




uberserver currently doesn't work on windows/osx, any help is welcome!
= bugs / features=
see https://github.com/spring/uberserver/issues/70
 
= set spring version =
 
with springlobby type this as admin user into the server window:
  SETLATESTSPRINGVERSION 96.0
 
to make it persistent, adjust the startup parameter:
  ./server.py --latestspringversion 96.0
 
= Offline LAN server =
 
This is not really the official way but I started an offline LAN server on my Lubuntu 15.04 doing this:
 
First, download the latest uberserver:
 
wget https://github.com/spring/uberserver/archive/master.zip
unzip master.zip
cd uberserver-master
 
If you will be offline, the public IP check crashes the server. This should disable it:
 
sed -i "s#urlopen('http://springrts.com/lobby/getip.php').read()#'8.8.8.8'#" DataHandler.py
 
If you want to skip user registration and accepting the Terms of Use (it's your server after all), these ugly hacks should help:
 
You can check https://github.com/spring/uberserver/issues/16 first to see if it's officially supported by now.
 
sed -i "s#allowed = False#allowed = True#" protocol/Protocol.py
sed -Ei "s#(def in_LOGIN.*)#\1\n\t\tself.userdb.legacy_register_user(username, password, client.ip_address, client.country_code)#" protocol/Protocol.py
sed -i "s#(client.access == 'agreement'#(client.access == 'agreement_disabled'#" protocol/Protocol.py
 
Then install the required Python modules (geo IP stuff is not needed when on a LAN and/or offline) and start the server:
 
sudo apt-get install python-sqlalchemy python-pycryptopp python-twisted
./server.py


After that you can just launch a lobby client, connect to localhost (or the IP address of the server) with any username and password (empty might not work; didn't test) and you should be able to play.
please report bug / feature requests to the [https://github.com/spring/uberserver/issues bug tracker]


You can see the expected output here (except that the packages were already installed): http://pastebin.com/ZTZzL1M9
= Documentation =
The line "[0] Successfully logged in static user <ChanServ>" takes a few seconds while the server initializes its database.
see the [https://github.com/spring/uberserver/blob/master/README.md README].
The two last lines should appear when your lobby client connects.
[[Category:Lobby]]
[[Category:Lobby]]

Latest revision as of 23:36, 11 February 2019

uberserver is a lobbyserver written in python for spring lobby clients.

its currently used as the main lobby server running at lobby.springrts.com port 8200.

its the home of the server bot ChanServ

see https://github.com/spring/uberserver for more details


bugs / features

please report bug / feature requests to the bug tracker

Documentation

see the README.