diff --git a/factoriocp.conf.sample b/factoriocp.conf.sample index 0ea2366..27d2b0f 100644 --- a/factoriocp.conf.sample +++ b/factoriocp.conf.sample @@ -17,3 +17,5 @@ fqdn=factorio.socialnerds.org [factorio] path=/path/to/factorio/servers users=username anotheruser athirduser +# this is the lowest port +port=34197 diff --git a/factoriocp.py b/factoriocp.py index 7894c25..d23950a 100644 --- a/factoriocp.py +++ b/factoriocp.py @@ -41,9 +41,10 @@ def log_in(username, password): # get a list of server dicts def get_servers(): pass - return [{ "name": "Creative fun", "version": "0.14.20", "status": "online", "port": "43564" }, - { "name": "Mad enemies", "version": "0.14.19", "status": "offline", "port": "65432" }, - { "name": "Mad enemies2", "version": "0.14.19", "status": "offline", "port": "65431" }] + return [{ "name": "Creative fun", "desc": "A creative vanilla server for tests.", "version": "0.14.20", "status": "online", "port": "34197" }, + { "name": "Vanilla on the rocks", "desc": "Vanilla map with some mods.", "version": "0.14.19", "status": "offline", "port": "34198" }, + { "name": "Mad enemies", "desc": "Hazardous map. A lot of enemies.", "version": "0.14.19", "status": "online", "port": "34199" }, + { "name": "Mad enemies2", "desc": "Just a copy of Mad enemies.", "version": "0.14.20", "status": "offline", "port": "34200" }] # routing diff --git a/views/server.tpl b/views/server.tpl index e9b9b27..0874a98 100644 --- a/views/server.tpl +++ b/views/server.tpl @@ -2,14 +2,14 @@
Some fon server description goes here.
+{{ server['desc'] }}
{{ fqdn }}:{{ server['port'] }} |
{{ server['version'] }} |
- Start + Start Delete |