Author Topic: gameserver full but empty  (Read 1456 times)

treba

  • Guest
gameserver full but empty
« on: 15 January 2012, 00:38:01 »
hey

this always happens, when i start up a second server on the same mashine:

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: gameserver full but empty
« Reply #1 on: 15 January 2012, 20:37:14 »
I think its not possible to run a second server !
The server always runs with 61357. The port you can switch ingame is only the port which is distributed to the masterserver! This does not mean your server really works with 61358. Its meant for (home)setups with routers which use NAT. There you can forward the port 61358 to the right computer with and its port 61357.

Confusing, but thats the way it is :-/ .

UPDATE: To really run a server with another IP you must edit the glestuser.ini manually and set:
ServerPort=61358
( additional its still needed to set the publish port to 61358 too! )

Update2: Oh there is something better now!!!
look at the parameters:
Code: [Select]
  --use-ports=x,y Force hosted games to listen internally on port
x, externally on port y.
                      Where x is the internal port # on the local
                              machine to listen for connects
                            y is the external port # on the
                              router/proxy to forward connection
                              from to the internal port #
                      *NOTE: If enabled the FTP Server port #'s will
 
« Last Edit: 15 January 2012, 20:53:51 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

treba

  • Guest
Re: gameserver full but empty
« Reply #2 on: 15 January 2012, 21:18:33 »
hey titi,

thx for the reply, but that's exactly what i already use (as softcoder suggested me here)
both ports, internal and external, are set to 61358

still the but remains :(

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: gameserver full but empty
« Reply #3 on: 16 January 2012, 00:43:33 »
The problem is one of the following:
  • the masterserver code mixes up gameservers listening on different ports on the same IP address
  • the gameserver, when listening on a different port than 61357, still claims it is listening on port 61357 when announcing its game to the masterserver
I suspect the first is the case. Unless someone else is faster than me, I'll try to sort this out sometime this (busy) week.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: gameserver full but empty
« Reply #4 on: 16 January 2012, 06:00:20 »
One important fact to note is that its a bad idea to use only 1 number higher than the normal default port of 61357 (you show above as 61358). Why? Because STARTING at this port we ALSO use port #'s for FTP file xfer, thats why in my example i show 100 # different between port #'s on same server. Please try staggering port #'s by more than 20 when running on same server and let us know how that works.

When you look at the options screen under network it shows which ports are used based on the starting port #.

Thanks

treba

  • Guest
Re: gameserver full but empty
« Reply #5 on: 16 January 2012, 13:38:22 »
ah alright. that seems to fix the problem. thx alot and say hello to the first mashine running multiple servers of megaglest :)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: gameserver full but empty
« Reply #6 on: 16 January 2012, 17:30:39 »
I hope this machine has a lot of ram :D ( 1GB per masterserver ).
I think its a good idea to add this information to the server name as it makes a huge difference for bigger games ( swapping->disconnect ....)
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: gameserver full but empty
« Reply #7 on: 16 January 2012, 17:59:47 »
There's an open feature request for a welcome message. There surely is a need for dedicated server admins to be able to pass along information for players which can't be covered by the server name field alone.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

treba

  • Guest
Re: gameserver full but empty
« Reply #8 on: 16 January 2012, 18:22:36 »
it has 2gig, but each server is limited to 850mb. engineer.old had only 512mb overall.
maybe the servers should share 1700mb instead, as mostly only one server is in use. have to see.

 

anything