Author Topic: Loading through command line  (Read 1126 times)

0 Members and 1 Guest are viewing this topic.

Offline neongod

  • Recruit
  • *
  • Posts: 85
  • Karma: 4
    • Clan Wolf
Loading through command line
« on: January 13, 2011, 07:50:39 AM »
Ok I am trying to get a program running that will automaticly restart the server if it goes down. Well in order to do this I need the command line. I tried using the one off the wiki but it will not load any maps. I am running WARs by the way.

Here is my command line I have now
"C:\Program Files (x86)\Electronic Arts\Crytek\Crysis Wars\Bin64\CrysisWarsDedicatedServer.exe" -MOD MWLL +exec "server.cfg"

But every time I try to do that it tries to load a crysis map with power struggle

here is my server.cfg

g_useProfile=1
r_ShadersAsyncCompiling=1
net_pb_sv_enable false
sv_cheatprotection=0
r_driver="DX10"
sv_servername="[CW] Strana Mechty"
sv_port=64087
sv_password=""
sv_maxplayers=24
sv_levelrotation = "levelrotation.xml"
g_timelimit=60
g_minteamlimit=1
g_revivetime=5
g_autoteambalance=0
g_tk_punish=1
g_tk_punish_limit=5
ban_timeout=604800
log_verbosity=0
log_fileverbosity=1
g_nextlevel

But it runs fine when I go thought the loader..... So did the command change and nobody told us?


Offline (TLL)Siilk

  • Techpriest software engineer
  • Apprentice Dev
  • Living Legend
  • *
  • Posts: 3021
  • Karma: 124
  • A single trueborn is an army by himself
    • My facebook profile
Re: Loading through command line
« Reply #1 on: January 13, 2011, 08:36:54 AM »
 I presume you need full path specified for server.cfg too.



"This Clan posses intelligence, the burning passion of true hunters, and a spirit that serves as a beacon to the rest. I mingle my blood with the Wolves."
- ilKhan Nicholas Kerensky, Strana Mechty, 2815

Offline Seraph

  • Lead Developer
  • Living Legend
  • *
  • Posts: 4078
  • Karma: 101
    • The Living Legends Mercenary Unit
Re: Loading through command line
« Reply #2 on: January 13, 2011, 10:15:55 AM »
Ok I am trying to get a program running that will automaticly restart the server if it goes down. Well in order to do this I need the command line. I tried using the one off the wiki but it will not load any maps. I am running WARs by the way.

Here is my command line I have now
"C:\Program Files (x86)\Electronic Arts\Crytek\Crysis Wars\Bin64\CrysisWarsDedicatedServer.exe" -MOD MWLL +exec "server.cfg"

But every time I try to do that it tries to load a crysis map with power struggle

here is my server.cfg

g_useProfile=1
r_ShadersAsyncCompiling=1
net_pb_sv_enable false
sv_cheatprotection=0
r_driver="DX10"
sv_servername="[CW] Strana Mechty"
sv_port=64087
sv_password=""
sv_maxplayers=24
sv_levelrotation = "levelrotation.xml"
g_timelimit=60
g_minteamlimit=1
g_revivetime=5
g_autoteambalance=0
g_tk_punish=1
g_tk_punish_limit=5
ban_timeout=604800
log_verbosity=0
log_fileverbosity=1
g_nextlevel

But it runs fine when I go thought the loader..... So did the command change and nobody told us?

Check for the -root command line argument and set it to your MWLL folder so it looks for the server.cfg and levelrotation.xml in there instead of the Wars directory.
Seraph - "The Can Man"
In the heat of battle, legends are born ...



Offline Aidan

  • Living Legend
  • *******
  • Posts: 2278
  • Karma: 41
Re: Loading through command line
« Reply #3 on: January 13, 2011, 06:11:51 PM »
Is this correct for a Crysis Wars dedicated server?

sv_port=64087


What is this about?

ban_timeout=604800


Intel Core i7 @ 3.50GHz, AMD/ATI HD6990 LCS, Catalyst Control Center V12.3, 6GB Tri-Channel Dram, 640GB HD, 128GB SSD, DirectX 11,  Windows 7 Pro (64 bit), Corsair 1200 Watt Power Supply, Liquid Cooled GPU and CPU.

Offline neongod

  • Recruit
  • *
  • Posts: 85
  • Karma: 4
    • Clan Wolf
Re: Loading through command line
« Reply #4 on: January 13, 2011, 11:52:40 PM »
Is this correct for a Crysis Wars dedicated server?

sv_port=64087

As far as I know it is. Thats what the loader made, works fine for us.

What is this about?

ban_timeout=604800

Thats the timeout for people who have been banned for TK.

Offline neongod

  • Recruit
  • *
  • Posts: 85
  • Karma: 4
    • Clan Wolf
Re: Loading through command line
« Reply #5 on: January 13, 2011, 11:56:17 PM »
Ok I am trying to get a program running that will automaticly restart the server if it goes down. Well in order to do this I need the command line. I tried using the one off the wiki but it will not load any maps. I am running WARs by the way.

Here is my command line I have now
"C:\Program Files (x86)\Electronic Arts\Crytek\Crysis Wars\Bin64\CrysisWarsDedicatedServer.exe" -MOD MWLL +exec "server.cfg"

But every time I try to do that it tries to load a crysis map with power struggle

here is my server.cfg

g_useProfile=1
r_ShadersAsyncCompiling=1
net_pb_sv_enable false
sv_cheatprotection=0
r_driver="DX10"
sv_servername="[CW] Strana Mechty"
sv_port=64087
sv_password=""
sv_maxplayers=24
sv_levelrotation = "levelrotation.xml"
g_timelimit=60
g_minteamlimit=1
g_revivetime=5
g_autoteambalance=0
g_tk_punish=1
g_tk_punish_limit=5
ban_timeout=604800
log_verbosity=0
log_fileverbosity=1
g_nextlevel

But it runs fine when I go thought the loader..... So did the command change and nobody told us?

Check for the -root command line argument and set it to your MWLL folder so it looks for the server.cfg and levelrotation.xml in there instead of the Wars directory.

Thanks its working now.

Offline Seraph

  • Lead Developer
  • Living Legend
  • *
  • Posts: 4078
  • Karma: 101
    • The Living Legends Mercenary Unit
Re: Loading through command line
« Reply #6 on: January 14, 2011, 10:12:14 AM »
What is this about?

ban_timeout=604800

Thats the timeout for people who have been banned for TK.

Actually it's the ban timeout for ANY ban (e.g. via rcon ban <profileID>). The ban list will get flushed on server restart though, it is not persistent.
Seraph - "The Can Man"
In the heat of battle, legends are born ...



Offline BuRNeR

  • Recruit
  • *
  • Posts: 102
  • Karma: 1
Re: Loading through command line
« Reply #7 on: December 04, 2011, 11:01:25 PM »
Ok I am trying to get a program running that will automaticly restart the server if it goes down. Well in order to do this I need the command line. I tried using the one off the wiki but it will not load any maps. I am running WARs by the way.

Here is my command line I have now
"C:\Program Files (x86)\Electronic Arts\Crytek\Crysis Wars\Bin64\CrysisWarsDedicatedServer.exe" -MOD MWLL +exec "server.cfg"

But every time I try to do that it tries to load a crysis map with power struggle

here is my server.cfg

g_useProfile=1
r_ShadersAsyncCompiling=1
net_pb_sv_enable false
sv_cheatprotection=0
r_driver="DX10"
sv_servername="[CW] Strana Mechty"
sv_port=64087
sv_password=""
sv_maxplayers=24
sv_levelrotation = "levelrotation.xml"
g_timelimit=60
g_minteamlimit=1
g_revivetime=5
g_autoteambalance=0
g_tk_punish=1
g_tk_punish_limit=5
ban_timeout=604800
log_verbosity=0
log_fileverbosity=1
g_nextlevel

But it runs fine when I go thought the loader..... So did the command change and nobody told us?

Check for the -root command line argument and set it to your MWLL folder so it looks for the server.cfg and levelrotation.xml in there instead of the Wars directory.

Hi, I got the same problem but maybe I didn´t understand the solution correct, or something different is my problem.
I´ve tried it on our rootserver via remote and at my local pc with the same result. The dos-window shows me the right serverconfig (with servername,levelrotation.xml ...) but the gamemode is still from crysis wars. 


Ok, i will start with my command line for the shortcut in target:

"D:\Crysis Wars\Bin64\CrysisWarsDedicatedServer.exe" -mod MWLL +exec "server.cfg"


My serverconfig:

g_useProfile = 1
g_teamlock = 0

r_ShadersAsyncCompiling = 1
r_driver = "DX9"

sv_levelrotation = "levelrotation.xml"
sv_servername = "[W-R] Wolverines Rebirth Public"
sv_port = 64087
sv_password = ""

sv_cheatprotection = 0
net_pb_sv_enable false
sv_ranked = 0
sv_maxplayers = 30
sv_bandwidth = 900000
sv_packetRate  = 240

g_timelimit = 60
g_minteamlimit = 0
g_revivetime = 10
g_autoteambalance = 1
g_tk_punish = 1
g_tk_punish_limit = 3
ban_timeout = 600

log_verbosity = 1
log_fileverbosity = 1

g_nextlevel


Levelrotation.xml:

<?xml version="1.0" encoding="utf-8"?>
<levelRotation randomize="0">
  <level name="Multiplayer/SA/SA_Glory" gameRules="SolarisArena">
    <setting setting="g_timelimit 60" />
    <setting setting="g_fraglimit 0" />
    <setting setting="g_pp_scale_income 1" />
    <setting setting="g_revivetime 5" />
    <setting setting="g_roundlimit 0" />
    <setting setting="g_preroundtime 0" />
    <setting setting="sv_team_tickets 0" />
    <setting setting="sv_player_tickets 0" />
    <setting setting="sv_is_vs_clan 0" />
    <setting setting="net_mapDownloadUrl " />
  </level>
  <level name="Multiplayer/SA/SA_HelsGate" gameRules="SolarisArena">
    <setting setting="g_timelimit 60" />
    <setting setting="g_fraglimit 0" />
    <setting setting="g_pp_scale_income 1" />
    <setting setting="g_revivetime 5" />
    <setting setting="g_roundlimit 0" />
    <setting setting="g_preroundtime 0" />
    <setting setting="sv_team_tickets 0" />
    <setting setting="sv_player_tickets 0" />
    <setting setting="sv_is_vs_clan 0" />
    <setting setting="net_mapDownloadUrl " />
  </level>
  <level name="Multiplayer/SA/SA_Jungle" gameRules="SolarisArena">
    <setting setting="g_timelimit 60" />
    <setting setting="g_fraglimit 0" />
    <setting setting="g_pp_scale_income 1" />
    <setting setting="g_revivetime 5" />
    <setting setting="g_roundlimit 0" />
    <setting setting="g_preroundtime 0" />
    <setting setting="sv_team_tickets 0" />
    <setting setting="sv_player_tickets 0" />
    <setting setting="sv_is_vs_clan 0" />
    <setting setting="net_mapDownloadUrl " />
  </level>
  <level name="Multiplayer/TC/TC_DeathValley" gameRules="TerrainControl">
    <setting setting="g_timelimit 60" />
    <setting setting="g_fraglimit 0" />
    <setting setting="g_pp_scale_income 1" />
    <setting setting="g_revivetime 5" />
    <setting setting="g_roundlimit 0" />
    <setting setting="g_preroundtime 0" />
    <setting setting="sv_team_tickets 0" />
    <setting setting="sv_player_tickets 0" />
    <setting setting="sv_is_vs_clan 0" />
    <setting setting="net_mapDownloadUrl " />
  </level>
  <level name="Multiplayer/TC/TC_Kagoshima" gameRules="TerrainControl">
    <setting setting="g_timelimit 60" />
    <setting setting="g_fraglimit 0" />
    <setting setting="g_pp_scale_income 1" />
    <setting setting="g_revivetime 5" />
    <setting setting="g_roundlimit 0" />
    <setting setting="g_preroundtime 0" />
    <setting setting="sv_team_tickets 0" />
    <setting setting="sv_player_tickets 0" />
    <setting setting="sv_is_vs_clan 0" />
    <setting setting="net_mapDownloadUrl " />
   </level>
</levelRotation>


Both files were in this location:

D:\Crysis Wars\Mods\mwll

I hope someone got an idea.

btw.: the rootserver is running windows server 2008 64bit and my pc win7 64bit



Offline Draekros

  • MechWarrior
  • **
  • Posts: 302
  • Karma: 18
  • Beware the Undead Ninja Wabbits...
Re: Loading through command line
« Reply #8 on: December 04, 2011, 11:21:57 PM »
I believe they mean put the full path to the server.cfg file you want to use.

ie.  "D:\Crysis Wars\Bin64\CrysisWarsDedicatedServer.exe" -mod MWLL +exec "D:\Crysis Wars\Mods\mwll\server.cfg"

12th Vegan Rangers. Beta Regiment.

Offline BuRNeR

  • Recruit
  • *
  • Posts: 102
  • Karma: 1
Re: Loading through command line
« Reply #9 on: December 05, 2011, 07:17:19 PM »
thanks for the answer but it still doesn´t work.

modified:

i´ve got a screen of the dos window attached
« Last Edit: December 06, 2011, 12:10:18 AM by BuRNeR »


Offline BuRNeR

  • Recruit
  • *
  • Posts: 102
  • Karma: 1
Re: Loading through command line
« Reply #10 on: December 07, 2011, 02:31:30 AM »
somebody another idea ?


Offline (TLL)KitLightning

  • Resident Necromancer
  • Moderator
  • Living Legend
  • *
  • Posts: 5294
  • Karma: 318
  • πάντα ρει, και ουδέν μένει
    • The Living Legends
Re: Loading through command line
« Reply #11 on: December 07, 2011, 02:46:23 AM »
The sv_port = 64087 is for Crysis, Crysis Wars uses 64100, I don't see how the above poster could get it to work?


         BUG Reports                                    Technical Issues                                       Install Errors

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." ~Albert Einstein
                                     "It'll take time to restore chaos" ~George W. Bush

Offline BuRNeR

  • Recruit
  • *
  • Posts: 102
  • Karma: 1
Re: Loading through command line
« Reply #12 on: December 07, 2011, 02:56:41 AM »
I´ve changed the port but it is the same problem like before. I´ve tried also the serverconfig which was created from the mwll launcher without positiv result.

modified: If I let the command line without the path of the server.cfg ("D:\Crysis Wars\Bin64\CrysisWarsDedicatedServer.exe" -mod MWLL +exec "server.cfg"") I´ve got this result (jpg attached)

« Last Edit: December 07, 2011, 03:17:29 AM by BuRNeR »


Offline (TLL)KitLightning

  • Resident Necromancer
  • Moderator
  • Living Legend
  • *
  • Posts: 5294
  • Karma: 318
  • πάντα ρει, και ουδέν μένει
    • The Living Legends
Re: Loading through command line
« Reply #13 on: December 07, 2011, 03:36:07 AM »
The config looks fine, the above posted, I could be wrong since its a bit too late here :X
Is the Mods/MWLL folder in capitals or minuscules? It needs to be in capitals (majuscule).

Not sure why these sv_bandwidth = 900000, sv_packetRate  = 240 are wanted. Autoteambalance I rarely if ever have seen working :P and the ban_timeout of 600 is the same as a Kick, you will most likely be able to join right after a ban iirc I use a ban of 999999.


         BUG Reports                                    Technical Issues                                       Install Errors

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." ~Albert Einstein
                                     "It'll take time to restore chaos" ~George W. Bush

Offline BuRNeR

  • Recruit
  • *
  • Posts: 102
  • Karma: 1
Re: Loading through command line
« Reply #14 on: December 07, 2011, 03:56:40 AM »
The letters were in minuscules in my folder, but if´ve tried it now with majuscule. Nothing changed :(.
btw. the settings were not final, it´s just to test the server. But thanks for the help. I hope I´ll come to this point that I can use/try these settings.