ubi.com    Forums  Hop To Forum Categories  Far Cry  Hop To Forums  Far Cry 2 PC Discussion    FC2 Server Launcher Extender UPDATE: June 25, 2009 - Version 2.0.05 Available
Page 1 3 4 5 6 7 8 9 12
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
Posted Hide Post
I look forward to the remote version, if you need a dedicated server to test it on pm me or add me to xfire: godswork

www.gameserverland.com servers for rent
 
Posts: 89 | Registered: Tue July 22 2008Reply With QuoteEdit or Delete MessageReport This Post
Picture of Agent00Kevin
Posted Hide Post
Ok, im having issues and its most likely something Ive done wrong.

Im no whiz, though I am learning (and retaining) things everyday.

I am getting this error message:

An unhandled exception occured during extender processing. The Far Cry 2 server has been shut down. You may launch a new session.
System.componentmodel.Win32 exception: the system cannot find the path specified at
system.diagnostics.process.startWithCreateProcess(processStartInfo startinfo)

at system.diagnositcs.process Start()
at GSL.serverInterface.execute()
at system.threading.WorkerThread.startThread()

Also, I checked the path for logs and it is correct. Here is what is in my log:

12:04:00.776 - Error: Program.Main()
System.ArgumentNullException: Path cannot be null.
Parameter name: path
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at GSL.ServerSettings.Save()
at GSL.MainForm.AddNewServer()
at GSL.MainForm.LoadServers()
at GSL.MainForm..ctor()
at GSL.Program.Main()
12:04:30.592 - Error: Program.Main()
System.ArgumentNullException: Path cannot be null.
Parameter name: path
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at GSL.ServerSettings.Save()
at GSL.MainForm.AddNewServer()
at GSL.MainForm.LoadServers()
at GSL.MainForm..ctor()
at GSL.Program.Main()
12:06:32.756 - Error: Program.Main()
System.ArgumentNullException: Path cannot be null.
Parameter name: path
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at GSL.ServerSettings.Save()
at GSL.MainForm.AddNewServer()
at GSL.MainForm.LoadServers()
at GSL.MainForm..ctor()
at GSL.Program.Main()
10:12:52.980 - Error: Program.Main()
System.ArgumentNullException: Path cannot be null.
Parameter name: path
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at GSL.ServerSettings.Save()
at GSL.MainForm.AddNewServer()
at GSL.MainForm.LoadServers()
at GSL.MainForm..ctor()
at GSL.Program.Main()

any help would be greatly appreciated. Smile
 
Posts: 2102 | Registered: Sat January 17 2009Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
When are you getting the message?

If it is at boot up, look at your old FC2_SL_Settings.xml file (or whatever you named it). Open it in notepad and change "ServerSettings" to "ServerConfig" inside the xml tag (top and bottom). Also be sure to choose a filename on the new Server Config screen (it probably pops up when you start up), if you don't choose a filename, you'll get the error messages that are in your log file. (I should probably add a check and force the user to select a path before clicking 'Ok').

This message: "System.componentmodel.Win32 exception: the system cannot find the path specified at
system.diagnostics.process.startWithCreateProcess(processStartInfo startinfo)" is due to the path to the FC2ServerLauncher.exe not being correct in the config file. (I keep forgetting to take out the "(x86)")
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Picture of Agent00Kevin
Posted Hide Post
I get the message as soon as I click start. I will mess around with it and make sure that file is correct; im at home for lunch and wont be able to mess with it for a while, but I will post what ever results I get ASAP.

Thanks SO much for taking the time out of your life to do this; we need it desperately Smile
 
Posts: 2102 | Registered: Sat January 17 2009Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Any luck?
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Picture of Agent00Kevin
Posted Hide Post
Not yet- but I took a break from the server running today as its been taking up most of my free time lately. ill be back on task tomorrow Smile
 
Posts: 2102 | Registered: Sat January 17 2009Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Version 2.0.04 is up.
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
Originally posted by Pacient.cz:
Cant wait to be back home from work and check it out Wink


Are you out of town or something? Big Grin
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
So far so good, but I can only get it to work if the save file is called
‘dedicated_server.cfg’ The Load/Save function works rather funky.
And it doesn't seem obvious how to edit a config after its made.
The dialog pops up and says save, OK, but another message says Loaded.
Confusing, am I saving or loading a config.
 
Posts: 231 | Registered: Wed November 26 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
On the server setting config screen (probably comes up first), the filename field is used to choose where you want to save the Extender's xml configuration file for your server. If the file already exists, it will ask you if you want to load the settings from the file. If you click yes and the xml file was not generated by the Extender then it will likely error out.

I haven't had time to update the documentation but here are the files the extender uses:

FC2.SL.exe.config = Application config file. This contains paths to the FC2ServerLauncher.exe, ServerResources.xml and BannedPlayers.xml. (This file is edited by hand using a text editor such as notepad)

FC2_SL_Setting.xml = General settings for the extender. This will include Ban Config, Regular Players, Misc Config (AutoRestart, messages) and defined servers. This file is saved/loaded from the main screen's File->Save/Load drop down menu.

[ServerName].xml = Settings for a particular server instance. This will contain the server name, game mode, server mode, game settings and map rotation. This is the file you select on the Server Settings dialog.

[ServerName].cfg = Used to pass in the server/game settings to the FC2ServerLauncher process. It is automatically generated each time the server is started (so editing it will do you no good).

ServerResources.[Lang-Cult].xml = Language resource file containing game messages used to determine what is happening on the server. This is set in the FC2.SL.exe.config file and needs to match whatever language the FC2ServerLauncher was installed with. This file can be manually edited with a text editor.

HTH,
- Mike
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Picture of Pacient.cz
Posted Hide Post
quote:
Originally posted by MChat:
quote:
Originally posted by Pacient.cz:
Cant wait to be back home from work and check it out Wink

Are you out of town or something? Big Grin


Lol no, just too busy atm Googly
One question - if I will make three server config file and after start first server with load congig no.1, for example TDM, then can I just pres "New" on main page of Extender UI and load another server with settings from config file no.2 for example CTD mod ?
Generally - is possible to run and have control over more then one server with your tool ?
I ask you for that because after 1.03 patch, which reduced serverlauncher demand we started run more servers. Before we even didnt try that out. In the mean time after patch release we were so messed up with pb settings to get servers back under control and were able finally manage that out(with lots of good advices and support here on this forum, thx again to all who participated), and now its question, if we would be able run all of them comfortably by your tool. Sorry if thats stupid question... Profile
Thx for reply in advance m8 Wink
 
Posts: 721 | Registered: Wed November 19 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
In theory, you should be able to run more than 1 server using the tool (just click the new tab like you said). When I tried it with version 2.0.02 the Extender stopped responding when I started the 2nd server. But when I tried debugging it while working on 2.0.03; the 2nd server started up just fine. You'll have to try it to see if it works; if not I'll have to take a deeper look into it.


Here's a quick walk through on how to get it up and running:

1. Unzip the contents into it's own directory (e.g. "C:\FarCry2\")
2. Open the FC2.SL.exe.config file in a text editor (like notepad) and modifiy the following sections:
	<!-- Launcher Settings -->
	<GSL.Settings Assembly="FC2.SL.Core">
		<Settings
		 ServerExe="C:\Program Files\Ubisoft\Far Cry 2\bin\FC2ServerLauncher.exe"
		 ServerResourceFile="C:\FC2\ServerResources.en-us.xml"
		 BannedPlayerFile="C:\FC2\BannedPlayers.xml"
		 ProcessInterval="500"
		/>
	</GSL.Settings>

ServerExe needs the correct path to the FC2ServerLauncher.exe.
ServerResourceFile needs the correct path to the ServerResources file which will be in the directory where you unzipped the Extender's zip file. (e.g. "C:\FarCry2\ServerResources.en-us.xml") Also see note below about the ServerResource file.
BannedPlayerFile needs a valid path to put the BannedPlayers.xml this can be anywhere you want, as long as it's a valid writable path.

	<!-- Diagnostics Settings -->
	<Echis.Diagnostics.Settings Assembly="Echis.Core">
		<Settings
			 DefaultLevel="Info"
			 UseEventLog="false">
			<Thread ThreadName="Main" TraceLevel="Info">
				<TraceListener Name="LogFile" TypeName="Echis.Diagnostics.TraceListeners.LogFileTraceListener, Echis.Diagnostics">
					<Parameter Name="Path" Value="C:\FC2\Logs\" />
					<Parameter Name="Filename" Value="FC2.SL.{0}" />
					<Parameter Name="ThreadName" Value="null" />
				</TraceListener>
			</Thread>
		</Settings>
	</Echis.Diagnostics.Settings>

This section defines the logging for the application. Valid values for "DefaultLevel" and "TraceLevel" are Off, Error, Warn, Info, Verbose. The TraceListener section defines where the log file will be saved. Path needs to be a valid writeable path. I suggest leaving the filename alone. If the "ThreadName" parameter is missing, I suggest adding it, unless you plan on running more than 1 server. If you plan on running more than one server change the "ThreadName" value in the Thread section to "*". This will create a separate log for each thread (each server runs on 2 threads).

3. If you used the old server launcher, open your save file for the Extender settings (FC2_SL_Settings.xml, or whatever you named it) in a text editor and change "<ServerSettings>" to "<ServerConfig>" at the top and "</ServerSettings>" to "</ServerConfig>" at the bottom.

4. Launch the application. The first time you run, you'll get the Server Settings screen:

Enter a name for your server. And select Game Mode and Server Mode.
Select a configuration file. If you choose an existing file, it will ask if you want to load the settings from the file. (Choose no unless the file was created by the new Extender, otherwise it will error).
Click the button next to the Map Rotation to open the map rotation screen (See #4.a below)
Set your server settings. Click Ok to save the xml settings file. At this point, the main screen should open. (See #5)

4.a. The Map Rotation screen.

This screen should automatically populate with all of the maps in your "User Maps" directory (and all sub-directories). If you organize your maps into subdirectories within your "User Maps" directory, these will show up as "Categories" in the maps grid. In my directory I have a "CurrentMaps" directory and under that a "PS" directory. You can see that the maps in the "CurrentMaps" directory has "CurrentMaps" as the Category and the maps in the "PS" directory have "CurrentMaps.PS" as the category.
You can filter by Custom Maps vs Original Maps by selecting what you want from the drop down at the top right. (Changing the fiter does not "unselect" maps that are outside the filter.
Simply check the maps you want to use in your rotation. Then click on the "Selected Maps" tab to change the order.

You can either use the buttons to move maps up or down, or you can use Ctrl-UpArrow or Ctrl-DownArrow to move them up or down.
Click Ok, when you're happy with the map rotation.

5. Main Screen.

I recommend saving via the File->Save drop down menu. This will allow the Extender to remember the server settings info you just created.
You can optionally, at this point go through the rest of the Extender configuration (see options under the config menu and the Extender webiste (http://www.azchatfield.net/FarCry2/ServerLauncher/) for more details.
Now you're ready to start the server, simply click the start button. The icon in the corner will show you the server status, right clicking it will open a menu where you can stop the server, or perform admin tasks such as "End Match", "Extend Match", "Shuffle Teams", etc..
The players grid will show you who is online. Select a player and then right click to bring up options for that player, including a new "Chat" feature (your messages are sent only to that player). Be sure to select the player first then right click (this is a bug, which I'll fix for the next release).
The two "Console" windows at the bottom of this screen are for in game player messages ("Chat") and a Kills Log.

The Console tab contains the traditional console, although, now it has a filter at the top so you can easily see what you want in the console tab.

At this point, all should be working as it used to (see http://www.azchatfield.net/FarCry2/ServerLauncher/ for more info).


Edit: forgot to mention, you can change your server's game settings by opening the Misc Confic screen and then clicking the "..." button next to the server name in the top right grid (where the Options used to be).

Edit: Forgot to talk about the ServerResources file. This file contains server messages and commands and needs to match whatever language you installed FarCry2 with. Since I don't know the languages, you'll have to edit the file yourself. The commands should not change (I believe) between languages but the messages do. The messages need to be EXACTLY what you see in the FC2ServerLauncher console; and they ARE cAse sENsiTiVE.

This message has been edited. Last edited by: MChat,
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Picture of Pacient.cz
Posted Hide Post
Omg mate thx a lot for such a complete and long reply. Eek
It means for me another day without play, because I have to make a big cup of coffee and try read/understand/test it here on my own pc first.
If I will get any results, I will let you know.
Thanks again in the name of whole community that you make such a big effort to help us manage our servers. Thumbs Up
 
Posts: 721 | Registered: Wed November 19 2008Reply With QuoteEdit or Delete MessageReport This Post
Picture of Pacient.cz
Posted Hide Post
I tried to make it run but once started second server, Extender stoped responding. Maybe I did smth wrong, so I will try it again during weekend, but today Iam really tired Sad
 
Posts: 721 | Registered: Wed November 19 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Yea, starting a 2nd server seems to be an issue. I'll see what I can do with it.

For now, running a single server seems to work fine.
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
Originally posted by MChat:
In theory, you should be able to run more than 1 server using the tool (just click the new tab like you said). When I tried it with version 2.0.02 the Extender stopped responding when I started the 2nd server. But when I tried debugging it while working on 2.0.03; the 2nd server started up just fine. You'll have to try it to see if it works; if not I'll have to take a deeper look into it.


Ok, I looked into this tonight and with the 2.0.03 version I was able to start 2 servers in one Extender. The key to this might be to set both servers up, save the config and then start one, get it fully running then start the other.
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
Originally posted by MChat:
In theory, you should be able to run more than 1 server using the tool (just click the new tab like you said). When I tried it with version 2.0.02 the Extender stopped responding when I started the 2nd server. But when I tried debugging it while working on 2.0.03; the 2nd server started up just fine. You'll have to try it to see if it works; if not I'll have to take a deeper look into it.


Ok, I figured out what was happening and it has nothing to do with running 2 servers. Apparently there's some kind of MS .Net Framework bug where the console textbox was causing it to hang (just blanking out the textbox was causing it to hang). Initializing the textbox at the server startup seems to fix the issue. So version 2.0.05 is now available with this fix (and the Right-Click on the players grid is fixed too).
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
Picture of Pacient.cz
Posted Hide Post
Great I will try that Thumbs Up
But what a hell all others admins doing ?!? I think you need more feedback, so come on all of you who use that tool - lets try to help MChat make it even better. Winky
 
Posts: 721 | Registered: Wed November 19 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Ok, ok. Smile

I tried it this morning, everything went fine up to the point where its
supposed to Enter the lobby, then it kinda dies and eventually does a restart.
I checked the extenders generated config with my original dedicated_server.cfg
All settings seem the same. Hmmm.

The detect public address is backwards thou Mchat.


Generated config;

SetSetting server_name xxx xxxxxxxxxxxxxxxxxx xx
SetSetting gamemode TeamDeathmatch
SetSetting map_cycle_limit 14
SetSetting map_cycle User Maps\downloads\CampCajun_MoJolHotSauce_3029339289836260689.fc2map;User Maps\downloads\CityLife1.1_MaCcAm_2972724484001320074.fc2map;User Maps\downloads\Dogon Leg_RyzukiSenshi_3239084500131768711.fc2map;User Maps\downloads\Golf Course_Pac!ent_3166451023115685047.fc2map;User Maps\downloads\HooverDam_1.1_Aaron 'Razorb' Foster_2767528702754965658.fc2map;User Maps\downloads\LITICE Castle_Pac!ent_3248733991114713297.fc2map;User Maps\downloads\Myst_B52_2600796490427894403.fc2map;User Maps\downloads\New Moecity 2.20_Marcel178_2696226763850560500.fc2map;User Maps\downloads\Pirate of the Caribbean 1.23_Marcel178_2671968522864878931.fc2map;User Maps\downloads\PirateCove 2.0_earth_3389541795693770973.fc2map;User Maps\downloads\Sanatorium_Pac!ent_3290966450806836393.fc2map;User Maps\downloads\ZX City Street Day_ZXRYAN_3184850993576972875.fc2map;User Maps\downloads\ZX Twin Buildings_ZXRYAN_2517989943576736736.fc2map;User Maps\downloads\acropolis.fc2map
SetSetting network_type 1
SetSetting ranked_match 0
SetSetting remotePassword xxxxxxx
SetSetting hardcore_mode 1
SetSetting friendly_fire 1
SetSetting max_score 50
SetSetting teambalance 1
SetSetting teamswap 1
SetSetting allow_voting 1
SetSetting start_rank 4
SetSetting time_of_day 0
SetSetting weather_type -1
SetSetting joinprogress 1
SetSetting inroundtime 1200
SetSetting match_pb_enabled 0
SetSetting respawntime 5
SetSetting minplayers 1
SetSetting maxplayers 16
SetSetting detectPublicAddress 1
SetSetting frameRateCaps 30
 
Posts: 231 | Registered: Wed November 26 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I've noticed that sometimes (even without the Extender) that the server either takes a long time to enter the lobby the first time, or it just never does. You may try increasing the "Start Timeout" setting, particularly if you had it set lower with the older launcher. IIRC, I'm using 180 seconds now on mine, as sometimes it seems to take just over 2 minutes for the server to fire up and get in the lobby.
 
Posts: 129 | Registered: Wed December 17 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community Page 1 3 4 5 6 7 8 9 12 
 

ubi.com    Forums  Hop To Forum Categories  Far Cry  Hop To Forums  Far Cry 2 PC Discussion    FC2 Server Launcher Extender UPDATE: June 25, 2009 - Version 2.0.05 Available

Terms of Use

Privacy Policy