IW5M: Dedicated/B3/Client Install/All Tutorials
- Ответы 686
- Просмотры 125k
- Created
- Последний ответ
Top Posters In This Topic
-
Paulofonta 156 posts
-
THiLaN 47 posts
-
MAGIC 46 posts
-
PaYiZaNima 13 posts
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
All IW5M Tutorials
If you request assistance please state which one you need before writing. Something like this:
Got it? Thank you!
Dedicated Server Tutorial
I am posting this ahead of time to be moved on release with IW5M, please offer any suggestions, changes and correct any errors:
How to make a Dedicated Server for IW5M:
1. Have clean install of MW3 from Steam (or HldsUpdateTool Installer)
2. Download the Dedicated Server Update Tool (dsut.zip).
3. Place both files into the root directory of mw3 where the folders and .exe files are.
4. Run dsut.exe
5. Create a shortcut to iw5m_server.exe and add the following paramaters into the target field after openning the properties:
It should look something like this:
D:\iw5m\iw5m_server.exe +set net_queryport 27015 +set net_port 27016 +set net_masterServerPort 27017 +set sv_config "server.cfg" +start_map_rotate
6. Make sure you port forward 27015, 27016 AND 27017 of the net_queryport, net_port and masterServerPort on your router and firewall. Note: your antivirus (or rather the firewall that comes with it) is most likely going to block any server activity. Disable it or add an exception.
Go to: http://www.portforward.com/ for help on port-forwarding.
7. Go into the folder "admin" and edit the server.cfg file as you wish.
Find a copy of the server.cfg here.
Find a copy of default.dspl here.
8. Run the shortcut you made previously and away you go.
Your server should now be running.
How to Run Multiple Servers:
If you wish to create another server, copy and paste your server.cfg, rename it to server2.cfg or something appropriate and then change the following in your shortcut:
to:
The ports can be different. I would suggest figuring out what ports you wish to use and then change them accordingly.
My suggestion is to use 15-17, 18-20, 21+22 and so you
You can use pretty much anything you want, just use some common sense and try to stay close to the 27000-27100 range
Also, in your config for each server add "seta g_log " and give a different log name. This is for b3.
Here is a breakdown of what each net_x parameter does:
How to Edit Gametype/Recipes:
You can also get some premade recipes here
Go into the admin folder in your mw3 directory.
Open up your server.cfg
In that file, you should see a line (or few) like this:
What you set there is where the server will read your map rotations and game types from.
Now open "default.dspl"
If you scroll to the bottom, you will see a few lines that look like this:
This may look confusing, but it's actually quite simple.
The config is set up like this:
map,gametype,weight
Map can be any of the maps below or an *. A * Signifies "pick a random map".
Gametype can be any file that is in the admin folder. These are a little more difficult, I'll come back to this later.
Weight just means that the larger the number, the more likely it is to play. (1->1000)
So for instance, if you were to set:
This would mean that Dome would be the only map to play and it would be FFA.
If you were to set:
This would mean that it could be any map but it will be team defender every time.
But, if you were to set:
This would mean that the only 2 maps your server would play would be Dome and Mission. Mission would always be Juggernaut and Dome would always be FFA. FFA on Dome is more likely to be played because the weight is higher.
I have included a modified default.dspl which helps to explain this under step 7 of the first part of this tutorial.
Now, on to gametypes.
If you open a .dsr file you will find a bunch of setting you can change. This is everything from gametype, to gametype rules, to class loadouts, to HC settings and such. This is your more in-depth server.cfg
But it's much better. You can fiddle around here OR you can go ingame, enter private match and then change the configuration to what you want. When you're done, hit the "save recipe to disk" button under the "Game setup" menu to save it to your admin folder on your computer.
All you need to do then is move it to your server, drop it back in the admin folder and configure your default.dspl to include it.
Map Names:
Colour Codes
Made by napsterlove.
___________________________________________________________________________________________________________________________________
B3 Tutorial
Prerequisites: (there are several tutorials on the web, on how to install and configure these)
To start, of course, an IW5M dedicated server (I hope you checked this tutorial already)
A webserver (IIS, apache, etc will do it. Tested with IIS 7.5)
MySQL Server - http://www.mysql.com/downloads/ (tested with MySQL Server 5.5)
PHP - http://www.php.net/
PhpMyAdmin - http://www.phpmyadmin.net/home_page/downloads.php
Python - http://www.python.org/download/ (tested with Python 2.7.3 64-bit)
MySql-Python - http://www.codegood.com/archives/129 (tested with MySQL-python-1.2.3 64-bit)
B3 Python source version - http://forum.bigbrotherbot.net/download ... iew;down=4 (tested with b3-1.8.1)
Later versions should work without any kind of problems (keep in mind about MySQL-Python compatibility with Phython versions though).
Also note that b3 can be set with an SQLite database instead of MySQL, saving you from installing a webserver, MySQL Server, PHP and PhpMyAdmin. But since I never used SQLite, I'm not the right person to tell you how to do it with SQLite. You can find some info on it here
Also, I preffer the typical installation (the one I'm explaining on this tutorial) because it allows you to install xlrstats or echelon webfronts.
Now that you got everything above running, it's time to create your database. Login on PhpMyAdmin, create the database and import the sql template that you can find inside b3\sql on the b3 package.
Now it's time to actually setup B3.
Extract "to somewhere" the content on your B3 zip (for guiding on this tutorial, let's suppose that you extracted it to the root of C drive and then renamed the folder to "b3")
The next step is to copy "cod8.py" to your b3 installation. You can find "cod8.py" on "admin" folder on your IW5M server installation. Copy "cod8.py" to "C:\b3\b3\parsers\"
Now go here to generate a config file (b3.xml):
http://config.bigbrotherbot.net/
Of course that you won't find IW5M on the list
MW3 was never supposed to have b3 support, right?
Just choose "Call of Duty: Modern Warfare 2"
Fill in all your information there. Keep in mind that B3 config files only work with front slashes (/). As for the log file, it's getting created on "scripts" folder. So, the path would be something like "C:/IW5M/scripts/games_mp.log".
For RCON IP, use the local IP. Do NOT use localhost (127.0.0.1)
The "Server Port" will be the port used for rcon. The port used for rcon will be the "query port". You can check what's that server's query port by looking at the console's output when you launch the server. Look at this line: "Initializing Steam Game Server: game port *****, auth port ****, query port *****,"
Save the config and move it to "C:\b3\b3\conf\"
Now open b3.xml with some text editor (notepad++ is great for it) and change the parser.
Where it says:
cod6
change to:
cod8
Usage of the !login command:
To prevent, that other can change their XUID to your one and control your server, you can use the 'login-plugin', provided by B3.
1.) Add this line to your b3.xml at the 'plugin-section':
2.) Change the plugin_login.xml, loacted in the conf folder to your favorite settings
3.) Go into your MySQL database, and go to (ex. 'b3') --> 'clients' --> search your name (ex. qvp | MAGIC) and click at 'edit'.
4.) Go to this MD5-'translator' homepage, because your password have to saved as MD5-hash. Enter your password in the TEXT thingy and click at ENCODE. Now you can copy your password as MD5-hash...
5.) Change to your MySQL database and paste the MD5-hash password in the password-field.
6.) Start/Restart your B3 and join your server.
7.) Now login with
IMPORTANT
When you bind/write this command then be sure you are hiding it (default with /!login ! Or your password is revealed!
Or use this tutorial by 'TranquiliZer' : viewtopic.php?f=30&t=23413
Important note to hosts running HC servers:
Although we unlocked dedicated server commands, there's still a bug with Teamkill. If you're running an HC server with teamkill disabled, b3 will still ban players for teamkill, although they can't actually kill their team-mates. To prevent this from happening, remove "plugin_tk" from b3.xml.
Just delete this line, if exists:
Now just save the changes and close the file.
Browse to C:\b3\ and start "b3_run.py" to start B3.
On another note, B3 is capable of registering data to xlrstats database already. But since there's not an IW5M xlrstats template available already to retrieve the stats, we'll leave xlrstats tutorial for later.
To finish, I leave you an example of a working b3.xml
Made by Paulofonta
___________________________________________________________________________________________________________________________________
Client Installation
If you have any questions just follow the video EXACTLY and make sure to read the description.
Made by DidUknowiPwn
-Staff you can edit this thread as much as you please!-