View Full Version : Multiplayer Server
Andy1010uk
Dec 2 2011, 13:44
From the server exe is it possible to change the server name from default i.e Andy-pc. As when i start the game and go to multiplayer i see my server called Andy pc and cant seem to change it.:confused:
You are going to need a server.cfg file. Here (http://community.bistudio.com/wiki/server.cfg) is an example of an Arma2OA config, which is essentially the same.
You will then need to launch the server with the following switch
"-config=i:\games\take on helicopters\server.cfg"
Obviously change the path to wherever you put the server.cfg file. In the server.cfg file there is an entry;
hostname = "my server name"
That is the name of your server.
Hope this gets you started.
Andy1010uk
Dec 2 2011, 14:19
Thanks for a quick response, where do i put the server cfg file ? and seems like i will have to change alot of entries in the arma cfg file to make it work for TOH. Kinda new to all this just trying to get a uk server up and running using the server .exe instead of doing it in game.
Thanks for a quick response, where do i put the server cfg file ? and seems like i will have to change alot of entries in the arma cfg file to make it work for TOH. Kinda new to all this just trying to get a uk server up and running using the server .exe instead of doing it in game.
It doesn't matter where you put it as long as you refer to the correct path in the launch path.
So, if you put it in;
c:\myConfigs\server.cfg
Make sure you launch it with
"-config=c:\myConfigs\server.cfg"
Perceived wisdom is that you don't keep it in your ToH directory as some hacks (for Arma2 anyway) can find it there.
EDIT --->
There's not much you have to change actually. Here's one that works in its basic form....
//
// server.cfg
//
// comments are written with "//" in front of them.
// GLOBAL SETTINGS
hostname = "YOUR SERVER NAME"; // The name of the server that shall be displayed in the public server list
password = ""; // Password for joining, eg connecting to the server
passwordAdmin = ""; // Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
//reportingIP = "armedass.master.gamespy.com"; // This is the default setting. If you change this, your server
//reportingIP = arma2pc.master.gamespy.com"; // In case of ArmA2 might not turn up in the public list. Leave empty for private servers
//reportingIP = "arma2oapc.master.gamespy.com"; // For Operation Arrowhead
//reportingIP = "127.0.0.1" // TEST
logFile = "server_console.log"; // Tells ArmA-server where the logfile should go and what it should be called
// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
// Empty messages "" will not be displayed at all but are only for increasing the interval
motd[] = {
"", "", "",
"Welcome to my server",
"",
"Just have fun!",
"",
"",
"Come and see us again soon",
""
};
motdInterval = 5; // Time interval (in seconds) between each message
// JOINING RULES
checkfiles[] = {}; // Outdated.
maxPlayers = 30; // Maximum amount of players. Civilians and watchers, beholder, bystanders and so on also count as player.
kickDuplicate = 0; // Each ArmA version has its own ID. If kickDuplicate is set to 1, a player will be kicked when he joins a server where another player with the same ID is playing.
verifySignatures = 2; // Verifies the players files by checking them with the .bisign signatures. Works properly from 1.08 on
equalModRequired = 0; // Outdated. If set to 1, player has to use exactly the same -mod= startup parameter as the server.
// VOTING
voteMissionPlayers = 1; // Tells the server how many people must connect so that it displays the mission selection screen.
voteThreshold = 1.1; // 33% or more players need to vote for something, for example an admin or a new map, to become effective
// INGAME SETTINGS
disableVoN = 1; // If set to 1, Voice over Net will not be available
vonCodecQuality = 0; // Quality from 1 to 10
persistent = 0; // If 1, missions still run on even after the last player disconnected.
// SCRIPTING ISSUES
onUserConnected = ""; // self-explaining
onUserDisconnected = "";
doubleIdDetected = "";
regularCheck = "";
// some ArmA specific stuff - signature verification
//onUnsignedData = "kick (_this select 0)"; // unsigned data detected
//onHackedData = "ban (_this select 0)"; // tampering of the signature detected
onDifferentData = ""; // data with a valid signature, but different version than the one present on server detected
BattlEye = 0; //Server to use BattlEye system
// MISSIONS CYCLE (see below)
class Missions {};
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 16:29
if the server.cfg is in your root folder, just put this in your shortcut target line.
-config=server.cfg
I dont think hacks are a problem with this game, that caution is unnecessary.
Andy1010uk
Dec 2 2011, 16:41
Thanks for your help guys ill try that now
---------- Post added at 05:41 PM ---------- Previous post was at 05:35 PM ----------
What is the shortcut target line ?
Thanks for your help guys ill try that now
---------- Post added at 05:41 PM ---------- Previous post was at 05:35 PM ----------
What is the shortcut target line ?
Something like this;
"I:\Games\Take On Helicopters\takeonhserver.exe" "-config=i:\games\take on helicopters\server.cfg"
Andy1010uk
Dec 2 2011, 17:10
this is my server cfg file does that look ok . //
// server.cfg = "-config=c:\myConfigs\server.cfg"
//
// comments are written with "//" in front of them.
// GLOBAL SETTINGS
//hostname = "BREAKAWAY UK SERVER TEST"; // The name of the server that shall be displayed in the public server list
//password = ""; // Password for joining, eg connecting to the server
//passwordAdmin = ""; // Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
//reportingIP = "armedass.master.gamespy.com"; // This is the default setting. If you change this, your server
//reportingIP = arma2pc.master.gamespy.com"; // In case of ArmA2 might not turn up in the public list. Leave empty for private servers
//reportingIP = "arma2oapc.master.gamespy.com"; // For Operation Arrowhead
//reportingIP = "192.168.0.2" // TEST
logFile = "server_console.log"; // Tells ArmA-server where the logfile should go and what it should be called
// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
// Empty messages "" will not be displayed at all but are only for increasing the interval
motd[] = {
"", "", "",
"Welcome to my server",
"",
"Just have fun!",
"",
"",
"Come and see us again soon",
""
};
motdInterval = 5; // Time interval (in seconds) between each message
// JOINING RULES
checkfiles[] = {}; // Outdated.
maxPlayers = 30; // Maximum amount of players. Civilians and watchers, beholder, bystanders and so on also count as player.
kickDuplicate = 0; // Each ArmA version has its own ID. If kickDuplicate is set to 1, a player will be kicked when he joins a server where another player with the same ID is playing.
verifySignatures = 2; // Verifies the players files by checking them with the .bisign signatures. Works properly from 1.08 on
equalModRequired = 0; // Outdated. If set to 1, player has to use exactly the same -mod= startup parameter as the server.
// VOTING
voteMissionPlayers = 1; // Tells the server how many people must connect so that it displays the mission selection screen.
voteThreshold = 1.1; // 33% or more players need to vote for something, for example an admin or a new map, to become effective
// INGAME SETTINGS
disableVoN = 0; // If set to 1, Voice over Net will not be available
vonCodecQuality =5; // Quality from 1 to 10
persistent = 0; // If 1, missions still run on even after the last player disconnected.
// SCRIPTING ISSUES
onUserConnected = ""; // self-explaining
onUserDisconnected = "";
doubleIdDetected = "";
regularCheck = "";
// some ArmA specific stuff - signature verification
//onUnsignedData = "kick (_this select 0)"; // unsigned data detected
//onHackedData = "ban (_this select 0)"; // tampering of the signature detected
onDifferentData = ""; // data with a valid signature, but different version than the one present on server detected
BattlEye = 0; //Server to use BattlEye system
// MISSIONS CYCLE (see below)
class Missions {};
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 17:27
// server.cfg = "-config=c:\myConfigs\server.cfg"
this line is unnecessary, and dont post your admin password
Andy1010uk
Dec 2 2011, 17:36
ok thanks just changed that and removed password from cfg file on here. Was not thinking lol.
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 18:14
Jedra has given you all the info you need.
... So I will be redundant and provide my own examples, as I often use the dedicated server exe :D
shortcut target line
"G:\Program files\Bohemia Interactive\Take On Helicopters\takeonhserver.exe" -config=server.cfg
server.cfg
//
// server.cfg
//
// comments are written with "//" in front of them.
// GLOBAL SETTINGS
hostname = "TakeOnH -Autotrim Disabled"; // The name of the server that shall be displayed in the public server list
password = ""; // Password for joining, eg connecting to the server
passwordAdmin = ""; // Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
//reportingIP = "armedass.master.gamespy.com"; // This is the default setting. If you change this, your server
//reportingIP = arma2pc.master.gamespy.com"; // In case of ArmA2 might not turn up in the public list. Leave empty for private servers
//reportingIP = "arma2oapc.master.gamespy.com"; // For Operation Arrowhead
logFile = "server_console.log"; // Tells ArmA-server where the logfile should go and what it should be called
// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
// Empty messages "" will not be displayed at all but are only for increasing the interval
motd[] = {
"", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "",
"Welcome !",
"",
"**AUTOTRIM is DISABLED**",
"",
"server uses modified Trainee difficulty",
"",
"voting is Enabled, #vote admin (name or number)",
"",
"",
"",
};
motdInterval = 7; // Time interval (in seconds) between each message
// JOINING RULES
//checkfiles[] = {}; // Outdated.
maxPlayers = 10; // Maximum amount of players. Civilians and watchers, beholder, bystanders and so on also count as player.
//kickDuplicate = 1; // Each ArmA version has its own ID. If kickDuplicate is set to 1, a player will be kicked when he joins a server where another player with the same ID is playing.
//verifySignatures = 1; // Verifies the players files by checking them with the .bisign signatures. Works properly from 1.08 on
//equalModRequired = 0; // Outdated. If set to 1, player has to use exactly the same -mod= startup parameter as the server.
// VOTING
voteMissionPlayers = 1; // Tells the server how many people must connect so that it displays the mission selection screen.
voteThreshold = 0.33; // 33% or more players need to vote for something, for example an admin or a new map, to become effective
// INGAME SETTINGS
disableVoN = 0; // If set to 1, Voice over Net will not be available
vonCodecQuality =7; // Quality from 1 to 10
persistent = 1; // If 1, missions still run on even after the last player disconnected.
// SCRIPTING ISSUES
//onUserConnected = ""; // self-explaining
//onUserDisconnected = "";
//doubleIdDetected = "";
//regularCheck = "";
// some ArmA specific stuff - signature verification
//onUnsignedData = "kick (_this select 0)"; // unsigned data detected
//onHackedData = "ban (_this select 0)"; // tampering of the signature detected
//onDifferentData = ""; // data with a valid signature, but different version than the one present on server detected
//BattlEye = 1; //Server to use BattlEye system
// MISSIONS CYCLE (see below)
class Missions
{
class CO
{
template =CO10_Suburban_Hell_DDz.United_States_H;
cadetmode = 1;
};
};
Andy1010uk
Dec 2 2011, 18:43
giving up tonight still not working.....server still shows up as andy pc. lots to learn on this new game. Too used to flight sim i.e fsx thanks for your help guys...will get there in time i hope lol
That's because it is not picking up your config file (it will default to your computer name). Post the exact target line you are using.
Just had a thought. In your OS are showing file extensions? If not, you have called your config file config.cfg.txt - this is a fairly common mistake.
Andy1010uk
Dec 2 2011, 18:50
"D:\take on helies\Take On Helicopters\takeonhserver.exe" "-config=c:\myconfigs\server.cfg"
"D:\take on helies\Take On Helicopters\takeonhserver.exe" "-config=c:\myconfigs\server.cfg"
That looks OK - I edited my previous post. Are you showing file extensions in your operating system?
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 18:52
then here is link to my server.cfg
http://dl.dropbox.com/u/30579259/server.rar
Jedra I think you are making it more complicated than it has to, ie; separate folder containing the server.cfg, extra length of code for target line.
keep it simple, drop the server.cfg into your root folder and add -config=server.cfg to your target line, as I indicated.
I assume the -config is not being seen because its within quotes...
Andy1010uk
Dec 2 2011, 18:54
ermm i did the cfg file in notepad and changed it to a .cfg file dont know how to check file extentions im running windows 7 64 bit my server cfg file is in c drive in a folder named c:\myconfigs\server.cfg
ermm i did the cfg file in notepad and changed it to a .cfg file dont know how to check file extentions im running windows 7 64 bit
OK, do this...
1. From the START menu, choose Computer.
2. In the window that opens on the toolbar, choose Tools. If the toolbar is not there, press the ALT key.
3. From the tools menu choose Folder Options.
4. On the Window that opens, choose the 'View' tab.
5. Scroll down the Advanced settings part until you see 'Hide extensions for known filetypes'. It is probably ticked. Untick it and press OK.
Now, go to where you put your config file and you will probably see it is called server.cfg.txt. Rename it so it just says server.cfg
Bob's your granny - it should work now!
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 18:59
download the server.cfg I provided, and follow my instructions...
Andy1010uk
Dec 2 2011, 19:03
it said server.cfg.cfg
it said server.cfg.cfg
Ah, well I was close ;-) Should work if you rename it though.
You're not allowed to go out on the pish until you have this working ;-)
Andy1010uk
Dec 2 2011, 19:04
-Ziggy-;2065535']download the server.cfg I provided, and follow my instructions...
ok will do that now cheers
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 19:07
3GwjfUFyY6M
Andy1010uk
Dec 2 2011, 19:09
lol not heard that in a while
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 19:11
:thumb_down::clap::dancehead::thumb_down::clap:
Andy1010uk
Dec 2 2011, 19:22
where you from ziggy ?
[DirTyDeeDs]-Ziggy-
Dec 2 2011, 19:24
New Hampshire
Andy1010uk
Dec 2 2011, 19:28
just opened a can of beer lol doing my head in this cfg stuff
just opened a can of beer lol doing my head in this cfg stuff
Once it's done, you'll not need to touch it again though. Unless you are going to start rotating missions and that's a lesson for another evening - you'll need more beer!
Andy1010uk
Dec 2 2011, 19:35
lol ok hope it works ;) still waiting for help lol fink you all went to pub ;)
Andy1010uk
Dec 3 2011, 12:23
Anyone got any new missions for multiplayer yet that i could use for my server kinda bored only having 3 and not got a clue how to make more atm .:j:
The only one made so far is this one (http://forums.bistudio.com/showthread.php?t=127598). BeePee is currently converting his Cowboy mission though and when it's done it should be good!
Andy1010uk
Dec 3 2011, 13:49
The only one made so far is this one (http://forums.bistudio.com/showthread.php?t=127598). BeePee is currently converting his Cowboy mission though and when it's done it should be good!
Only problem i dont have arma to get the addons i need :(
You can use the cows from Arma2 Free (http://www.arma2.com/free)for BeePee's mission. It will probably take a while for missions to start comming through.
Andy1010uk
Dec 3 2011, 14:03
You can use the cows from Arma2 Free (http://www.arma2.com/free)for BeePee's mission. It will probably take a while for missions to start comming through.
Ahh ok got arma 2 free so thats ok. do you just add all the files to addon folder in toh ?
Ahh ok got arma 2 free so thats ok. do you just add all the files to addon folder in toh ?
No, the only one you need is animals.pbo. You can either drop this into the addons folder in ToH or create a new folder structure in your ToH directory;
@<hidden>\addons
and drop animals.pbo into there.
You then launch ToH with a switch;
-mod=@<hidden>
-Ziggy-;2065435']I dont think hacks are a problem with this game, that caution is unnecessary.
That caution would most certainly be necessary, even with this game. The scripting language and functions are the same, so I don't think it'd be difficult to port over OA hacks.
If you're going to have your config in the main game folder, at least name it something unique (e.g. "4j98fw5sfe.cfg").
[DirTyDeeDs]-Ziggy-
Dec 4 2011, 14:14
I am quite aware of how similar the game is to the Arma series, my point was that cheating is unlikely. Lets allow him to get the config working before complicating the process further.
That caution would most certainly be necessary, even with this game. The scripting language and functions are the same, so I don't think it'd be difficult to port over OA hacks.
If you're going to have your config in the main game folder, at least name it something unique (e.g. "4j98fw5sfe.cfg").
-Ziggy-;2066507']I am quite aware of how similar the game is to the Arma series, my point was that cheating is unlikely. Lets allow him to get the config working before complicating the process further.
Both fair points. At this stage of the game it was enough to get his server working. Unfortunately it is inevitable that the script kiddies will hit ToH at some point in the future so a similar level of protection will be needed eventually.
For the moment we can basque in the unusual atmosphere of a hack-free zone!
Andy1010uk
Dec 5 2011, 08:13
server cfg file seems to be working ok but still shows up as Andy-pc for some reason, player numbers working when changing cfg. etc etc seem ok, just name of the server not right. very odd. I can move the cfg file if we start running into problems with hackers at a later date. Again thanks to everyone for your help and hope to fly with you peps on my server soon.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.