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
shortcut target line
Code:
"G:\Program files\Bohemia Interactive\Take On Helicopters\takeonhserver.exe" -config=server.cfg
server.cfg Spoiler:
//
// 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.
// 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;
};
};
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
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...
Last edited by [DirTyDeeDs]-Ziggy-; Dec 2 2011 at 19:05.
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