How to host a Lux Alliance headless server online game room

Same-time-turns strategy. Calling all teamers.
Post Reply
User avatar
dustin
Lux Creator
Lux Creator
Posts: 10291
Joined: Thu May 15, 2003 2:01 am
Location: Cascadia
Contact:

How to host a Lux Alliance headless server online game room

Post by dustin » Thu Jan 13, 2011 5:16 pm

Lux Alliance includes a headless server option. This means you can run a host from the command line, and it will operate in the background without creating any windows or graphics. NOTE: If you're not familiar with running programs using the command line then this is NOT for you.

For now, this will only work on computers where you have previously registered Lux Alliance on.

MacOS example command (run from the directory where Lux.app is):

Code: Select all

java -Djava.awt.headless=true -cp "./Lux Alliance.app/Contents/Resources/Java/VoxCore.jar:./Castle Vox.app/Contents/Resources/Java/MRJAdapter.jar" com.sillysoft.vox.Vox -headless -public=true -time=24h -map=WorldWarII -name='Your hostname here' -desc='Your description here'
Windows/Linux example command (run from inside the installation directory):

Code: Select all

java -Djava.awt.headless=true -cp "./VoxCore.jar" com.sillysoft.vox.Vox -headless -public=true -time=24h -map=WorldWarII -name='Your hostname here' -desc='Your description here'
Those commands should be all on one big line. Most of the switches should be self-explanatory, edit the parameters to get the map and game setup you want. If you play around with the switches it should tell you if you do anything wrong and let you know how to do it right.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests