need Hosting game via console command

Discuss the future of Warzone 2100 with us.
User avatar
Terminator
Regular
Regular
Posts: 1077
Joined: 05 Aug 2006, 13:46
Location: Ukraine

need Hosting game via console command

Post by Terminator »

I'm making something like gamelauncher so I will not able to sync connection players using current "--host" - because it depends from user action(he should click it).
What I want is one more command like this:

Code: Select all

--host Mygame 8c-Cluster
- minimum parameters required to start hosting is gamename & mapname;

if would be a IP players filter it would be awesome

Code: Select all

--host Mygame 8c-Cluster <IP addr> <IP addr> <IP addr> <IP addr>
something like that :lecture:

If someone from devs could help me - I'll be very grateful. tnx
Death is the only way out... sh*t Happens !

Russian-speaking Social network Group http://vk.com/warzone2100
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: need Hosting game via console command

Post by NoQ »

IP players filter
Firewall could have helped? Should be easy on linux with iptables, but i'm not sure about the rest.
User avatar
Fastdeath
Trained
Trained
Posts: 115
Joined: 16 Jan 2010, 08:52

Re: need Hosting game via console command

Post by Fastdeath »

Great thing!

I don't known anything about command line parsing but for the ingame banning part, see:

addToBanList - lib/netplay/netplay.cpp
Nightly builds available here see buildbot for more infos about them
Lobby Server: here and here
SharpFlame the new WZ Map Editor