| View previous topic :: View next topic |
| Author |
Message |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Sun Jul 04, 2010 6:12 pm Post subject: can't seem to change config |
|
|
As I'm totally new to this, hopefully I'm doing something stupid and there's a simple answer.
I'm trying to change the default config to enable sprinting. So in the player.cfg file, I change the settings to look like this:
| Code:
|
// enable sprinting, enabled by moving and pressing the USE key, if you don't like having
// the use key set for sprinting, you can mimmick the old CODUO ALT key for sprinting by
// setting you ALT key as an alternative key for USE, it does work!
// 0 = disabled (default)
// 1 = while standing only
// 2 = standing and crouching
// 3 = standing, crouching and while prone
set ex_sprint "1"
|
I then launch the game, and create a server. However as the map loads I see "menu_sprinting disabled", and sprinting doesnt work during the game.
What am I doing wrong? |
|
|
| Back to top |
|
 |
|

ReaKtor Colonel

Joined: Jul 28, 2007 Posts: 415 Location: Houston, Texas
Status: Offline
|
Posted: Sun Jul 04, 2010 7:01 pm Post subject: Re: can't seem to change config |
|
|
Lisa hehe ya i.m. old. You can't start an eXtreme+ server using the ingame "start a new server" gimmick. That method gives you no control over the command line which is required to start a modded server.
Try this:
The very best way is to make a complete COPY of the the /Activision/ Call of Duty 2 / directory and rename it for exclusive use by the server.
INSTRUCTIONS:
Create this directory:
/Program Files/Activision/Call of Duty 2 Server
Then COPY all the files from the original /Program Files/Activision /Call of Duty 2. Making this copy will take some time.
This creates a clean copy of the game from which to run your server. This method prevents some errors like not being able to find your server on the LAN server list (which happens often if you run the server and the game from the same directory). It also separates the /main maps that you download when playing from the maps that the server has in its /main directory.
After you have your server directory made you need to make an icon to start the server. In Windows Explorer navigate to /Program Files/Activision /Call of Duty Server. Right click on the CoD2MP_s.exe and drag it out to your desktop. Select "Create Shortduts Here". DO NOT MOVE the file. Right clic on the new icon and select 'Rename'. Rename the icon "CoD2 1.3 Server". Now you have a place to put your command line.
Then Right Click the new icon and select 'Properties. The Target line is where you put the server command llne. Make it look like this:
"C:\Program Files\Activision\Call of Duty 2 1.0 Server\CoD2MP_s.exe" +set dedicated 2 +set fs_game kra +exec server.cfg +map_rotate
kra is my fs_game directory - change this to be your fs_game subdirectory (where you installed eXtreme).
Before you start your server clean up the maps in /main. It is best to start with the stock maps so delete the custom maps in /main.
When you double click on the new icon a server window should open with a command input line at the bottom. Type 'status' there and the server should respond with a map and player list.
To join your new server start the game as you normally would from the original icon and in the server list you should find your server on the "Local" list.
Just to show you what can be done - On my computer I have these directories:
/Program Files/Activision/Call of Duty 2
/Program Files/Activision/Call of Duty 2 Server
/Program Files/Activision/Call of Duty 2 1.0
/Program Files/Activision/Call of Duty 2 1.0 Server
That gives me player and server versions for both C0D2 v1.0 and CoD2 v1.3
There is more but that should get you started.
Good Luck. |
Last edited by ReaKtor on Mon Jul 05, 2010 12:17 am; edited 1 time in total |
|
| Back to top |
|
 |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Sun Jul 04, 2010 8:32 pm Post subject: Re: can't seem to change config |
|
|
| ReaKtor wrote (View Post):
|
You can't start an eXtreme+ server using the ingame "start a new server" gimmick. That method gives you no control over the command line which is required to start a modded server.
Try this:
The very best way is to make a complete COPY of the the /Activision/ Call of Duty 2 / directory and rename it for exclusive use by the server.
INSTRUCTIONS:
Create this directory:
/Program Files/Activision/Call of Duty 2 Server
Then COPY all the files from the original /Program Files/Activision /Call of Duty 2. Making this copy will take some time.
This creates a clean copy of the game from which to run your server. This method prevents some errors like not being able to find your server on the LAN server list (which happens often if you run the server and the game from the same directory). It also separates the /main maps that you download when playing from the maps that the server has in its /main directory.
After you have your server directory made you need to make an icon to start the server. In Windows Explorer navigate to /Program Files/Activision /Call of Duty Server. Right click on the CoD2MP_s.exe and drag it out to your desktop. Select "Create Shortduts Here". DO NOT MOVE the file. Right clic on the new icon and select 'Rename'. Rename the icon "CoD2 1.3 Server". Now you have a place to put your command line.
Then Right Click the new icon and select 'Properties. The Target line is where you put the server command llne. Make it look like this:
"C:\Program Files\Activision\Call of Duty 2 1.0 Server\CoD2MP_s.exe" +set dedicated 2 +set fs_game kra +exec server.cfg +map_rotate
kra is my fs_game directory - change this to be your fs_game subdirectory (where you installed eXtreme).
Before you start your server clean up the maps in /main. It is best to start with the stock maps so delete the custom maps in /main.
When you double click on the new icon a server window should open with a command input line at the bottom. Type 'status' there and the server should respond with a map and player list.
To join your new server start the game as you normally would from the original icon and in the server list you should find your server on the "Local" list.
Just to show you what can be done - On my computer I have these directories:
/Program Files/Activision/Call of Duty 2
/Program Files/Activision/Call of Duty 2 Server
/Program Files/Activision/Call of Duty 2 1.0
/Program Files/Activision/Call of Duty 2 1.0 Server
That gives me player and server versions for both C0D2 v1.0 and CoD2 v1.3
There is more but that should get you started.
Good Luck.
|
thanks very much for taking the time to reply, that clarified things. I think my issue is that I'm running the game on Mac, and I don't know how/if I can launch the server with those specific parameters. I see it's possible on Linux but I can't find any Mac-specific info. |
|
|
| Back to top |
|
 |
|

ReaKtor Colonel

Joined: Jul 28, 2007 Posts: 415 Location: Houston, Texas
Status: Offline
|
Posted: Sun Jul 04, 2010 8:46 pm Post subject: Re: can't seem to change config |
|
|
I am sure there is a place to put the command line parameters on a mac but I have not had a Mac computer since the Lisa - hehe.
On a Mac the same deal applies about copying the files - we did that to get a dual install of 1.0 and 1.3 --
And on a Mac the target parameters are called preferences and they are in the Preferences file.... ...
Try finding the Preferences file - see this:
http://guides.macrumors.com/Preference_File |
|
|
| Back to top |
|
 |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Sun Jul 04, 2010 11:10 pm Post subject: Re: can't seem to change config |
|
|
the Lisa.... wow, that's going back more than I care to remember
anyway, I've made some progress - it's possible to pass the parameters to the server from the Terminal using this command:
| Code:
|
|
/Applications/Call\ Of\ Duty\ 2/Call\ of\ Duty\ 2\ Multiplayer.app/Contents/MacOS/Call\ of\ Duty\ 2\ Multiplayer +set fs_game esp +set dedicated 1 +exec server.cfg +map_rotate +set sv_punkbuster 1
|
The COD2 console pops up, and I type status and I can see the server is running
The problem I'm now having is that when I try to join a game none of the other machines on the LAN can see the server... (I only want to play LAN games)
On the client machines I have set the source to Local, Connection LAN/Cable/DSL.... but nothing appears. |
|
|
| Back to top |
|
 |
|

ReaKtor Colonel

Joined: Jul 28, 2007 Posts: 415 Location: Houston, Texas
Status: Offline
|
Posted: Sun Jul 04, 2010 11:57 pm Post subject: Re: can't seem to change config |
|
|
You should not have to portforward on a LAN but routers are funny and you may nave to allow the game access in the router....
also you don't need pb so set sv_punkbuster 0
But here are my notes for routers and LAN anyhow:
this is the command line for my client with passwords for private slot and console:
//create another icon on the desktop for multiplayer and open the properties window by right cliking.
//the command line should be in that window add the stuff to it to make it look like this:
//"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +password jubal +rcon login password +connect localhost:28960
// yours should look similar you can change the password jubal (this is the privateslot pw) and rcon password to any thing u like but keep them short 8 chachacters at most
// 28960 is the port for cod2 dont change it u must open ports in your modem that is open ports 28960 in your router
//open ports 28960 to 28970 if u want more than one server running (must be on the same computer) or have other computers on your internal network to play on them just increment the port # for each computer program 28961 28962 etc.
// 20500 and 20510 must also be opened
// each router is different and thats the hard part!!!! Get your router manual or see www.portforward.com
//Set your router to allow COD2 game program thru if it has that option - -
//LAN SERVER
// ***************************************************
// for a LAN server use set dedicated 1 and skip the port forwarding (u dont need open ports on a lan) |
|
|
| Back to top |
|
 |
|

PatmanSan eXtreme+ Support Crew

Joined: Jul 23, 2007 Posts: 1997 Location: The Netherlands
Status: Offline
|
Posted: Mon Jul 05, 2010 7:19 am Post subject: Re: can't seem to change config |
|
|
Hi ReaKtor! Good to see your COD2 skills haven't faded.
| ReaKtor wrote (View Post):
|
You can't start an eXtreme+ server using the ingame "start a new server" gimmick. That method gives you no control over the command line which is required to start a modded server.
|
Now this is not entirely accurate. In fact, you CAN run eXtreme+ (or any other mod for that matter) in local mode using the "Start New Server" menu item. It requires a shortened command line, and a small modification in the server.cfg.
After making the clean copy of the game and the shortcut icon for the server, make the target line of the shortcut look like this:
<PATH_TO_YOUR_SERVER_DIR>\CoD2MP_s.exe +set sv_punkbuster 0 +set fs_game e26 +exec server.cfg
Then edit the server.cfg in the fs_game folder (e26 in this example), and disable the dedicated setting:
// Server Network Mode
//set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet
Now you can double-click the shortcut, and select "Start New Server" from the menu. You will notice that the mod is already activated. Just select a map from the list, and click Start. |
|
|
| Back to top |
|
 |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Mon Jul 05, 2010 8:46 am Post subject: Re: can't seem to change config |
|
|
thanks for all the info.
I managed to get the clients to connect by using the parameter +connect 192.168.0.40:28960 |
|
|
| Back to top |
|
 |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Tue Jul 06, 2010 10:40 am Post subject: Re: can't seem to change config |
|
|
Just thought I'd do a quick recap of everything I've learned the last few days, in case there are any other Mac users wanting to get this up and running. There may well be more clever ways of doing this, but it works for me (using a LAN).
Using Mac OSX Snow Leopard 10.6 (will work on Leopard as well)
1 - Download eXtreme+ v2.6 (zip file) and follow steps 6.1 - 6.3 in the Quick Setup Guide.
2 - Create a text file, and paste the following code (altering server ip address/port and foldername to suit your setup):
| Code:
|
|
/Applications/Call\ Of\ Duty\ 2/Call\ of\ Duty\ 2\ Multiplayer.app/Contents/MacOS/Call\ of\ Duty\ 2\ Multiplayer +set fs_game <foldername> +set dedicated 1 +exec server.cfg +map_rotate +set net_ip 192.168.0.40 +set net_port 28960 +set sv_punkbuster 0
|
3 - Save the file with the extension .command
4 - Open a terminal window, type
Drop the .command file you've just created on to the window, and the path to the file should auto complete. Press enter. You now have an executable shortcut that can be used to start the server.
5 - To create a shortcut for clients to join the server, repeat steps 2-4, using the following code:
| Code:
|
|
/Applications/Call\ Of\ Duty\ 2/Call\ of\ Duty\ 2\ Multiplayer.app/Contents/MacOS/Call\ of\ Duty\ 2\ Multiplayer +connect 192.168.0.40:28960
|
6 - If you want to load a custom config file (useful for maintaining player names and key bindings etc), create the config file and place it in the "main" folder. Then add the following parameter to the client code:
| Code:
|
|
+exec playerconfig.cfg
|
7 - If you wish to run a client and server on the machine, as recommended by ReaKtor simply make a duplicate of the entire Call of Duty 2 folder, and update your client shortcut accordingly. I didn't bother trying to get the file downloading working, I just copied the eXtreme files to all the clients.
Hope that's of some help to someone, and if anyone knows any better ways of doing things I'd be happy to hear about it.  |
|
|
| Back to top |
|
 |
|

nitefox2 Private

Joined: Nov 30, 2009 Posts: 41
Status: Offline
|
Posted: Tue Jul 27, 2010 7:23 pm Post subject: Re: can't seem to change config |
|
|
Bandido I followed your instructions in your last post, but I cant get it to work. After typing chmod +x in the terminal I get the following text:
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
I then drag the .command file into the terminal, and hit enter. It says :permission denied.
I tried adding sudo in front of the command and it says :command not found.
How can I get around this? |
|
|
| Back to top |
|
 |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Wed Jul 28, 2010 11:00 pm Post subject: Re: can't seem to change config |
|
|
| nitefox2 wrote (View Post):
|
Bandido I followed your instructions in your last post, but I cant get it to work. After typing chmod +x in the terminal I get the following text:
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
I then drag the .command file into the terminal, and hit enter. It says :permission denied.
I tried adding sudo in front of the command and it says :command not found.
How can I get around this?
|
add a space before dropping the file onto the window. so the code should look something like this:
| Code:
|
|
chmod +x /path/to/your/file.command
|
|
|
|
| Back to top |
|
 |
|

nitefox2 Private

Joined: Nov 30, 2009 Posts: 41
Status: Offline
|
Posted: Thu Jul 29, 2010 2:35 am Post subject: Re: can't seem to change config |
|
|
I tried that but it does do anything when I hit enter. I tried just running the .command file by itself and it says:
/Users/jr/Desktop/COD2.command ; exit;
/Users/jr/Desktop/COD2.command: line 1: mod26: No such file or directory
logout
This is the contents of the .command file:
/Applications/Call\ Of\ Duty\ 2/Call\ of\ Duty\ 2\ Multiplayer.app/Contents/MacOS/Call\ of\ Duty\ 2\ Multiplayer +set fs_game <mod26> +set dedicated 1 +exec server.cfg +map_rotate +set net_ip 76.97.58.03 +set net_port 28960 +set sv_punkbuster 0 |
|
|
| Back to top |
|
 |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Thu Jul 29, 2010 7:30 am Post subject: Re: can't seem to change config |
|
|
| nitefox2 wrote (View Post):
|
I tried that but it does do anything when I hit enter. I tried just running the .command file by itself and it says:
/Users/jr/Desktop/COD2.command ; exit;
/Users/jr/Desktop/COD2.command: line 1: mod26: No such file or directory
logout
This is the contents of the .command file:
/Applications/Call\ Of\ Duty\ 2/Call\ of\ Duty\ 2\ Multiplayer.app/Contents/MacOS/Call\ of\ Duty\ 2\ Multiplayer +set fs_game <mod26> +set dedicated 1 +exec server.cfg +map_rotate +set net_ip 76.97.58.03 +set net_port 28960 +set sv_punkbuster 0
|
ok, the chmod has been successful. But you have an error in your code - just remove the brackets around <mod26> |
|
|
| Back to top |
|
 |
|

nitefox2 Private

Joined: Nov 30, 2009 Posts: 41
Status: Offline
|
Posted: Sun Aug 01, 2010 4:01 am Post subject: Re: can't seem to change config |
|
|
Im still not having any luck. I removed the <>, and when I enter the line in terminal and hit enter nothing happens. When I run the .command file by itself it loads the console, but it doesn't work. The console has several errors:
It cant assign the requested IP address
Cant allocate IP Port
Unknown command "/Applications/Call'
couldn't exec server.cfg
No map specifies in sv_mapRotation - forcing map_restart.
server is not running
My Mod folder is copied over from my Windows side which is working fine. |
|
|
| Back to top |
|
 |
|

bandido Private

Joined: Jul 04, 2010 Posts: 13
Status: Offline
|
Posted: Wed Aug 04, 2010 12:36 am Post subject: Re: can't seem to change config |
|
|
| nitefox2 wrote (View Post):
|
|
Im still not having any luck. I removed the <>, and when I enter the line in terminal and hit enter nothing happens.
|
that's fine - if the chmod has worked it just goes to the next line when you press enter. The fact that when you click on the .command file it launches the console shows that you did it correctly.
As for the other problems, I have 2 suggestions - firstly, download a fresh, unaltered copy of the mod and work with that. Also try to get it working on a LAN first before you try to enable it over the net (by putting in the local ip address of your machine).
Double check the code in the command file - perhaps you have a different path to the application than the one I used. |
|
|
| Back to top |
|
 |
|