Killswitch/Sandbox – User
< Killswitch
Category: Sandbox
Killswitch (talk | contribs) mNo edit summary |
Killswitch (talk | contribs) mNo edit summary |
||
| Line 21: | Line 21: | ||
(A "pre environment" will result in tabs being rendered properly. This is useful for presenting properly indented code.) | (A "pre environment" will result in tabs being rendered properly. This is useful for presenting properly indented code.) | ||
== ArmA server config file example == | == OFP/ArmA server config file example == | ||
<pre>// comments are | <pre>// comments are preceded by "//" and extend to the end of the line | ||
// | // | ||
| Line 41: | Line 41: | ||
"Have fun!" | "Have fun!" | ||
}; | }; | ||
motdInterval=1; | motdInterval=1; // if motd has multiple lines this setting | ||
// determines the delay in seconds between showing | |||
// lines (default is 5 seconds). | |||
voteMissionPlayers=3; | voteMissionPlayers=3; // start voting for missions when 3 players connect | ||
voteThreshold=0.33; | voteThreshold=0.33; // when one third agrees, this is enough to confirm a vote | ||
reportingIP=""; | reportingIP=""; // private server - don't report | ||
// Use "armedass.master.gamespy.com" to | |||
// report to the master server | |||
checkFiles[]={ //list of files to check | |||
"HWTL\dta\data3d.pbo", | |||
"dta\data3d.pbo" | |||
}; | |||
kickDuplicate=1; // do not allow duplicate id | |||
// If equalModRequired is set, players will need | // If equalModRequired is set, players will need | ||
// to connect to the server using the *exact same* | // to connect to the server using the *exact same* | ||
// -mod=... shortcut parameter the server is using. | // -mod=... shortcut parameter the server is using. | ||
// | |||
// Possible values: 0 and 1 (or false/true, "false"/"true") | |||
// Default: 0 / false / "false" | |||
// | // | ||
// As an example: if the server was started with | // As an example: if the server was started with | ||
| Line 70: | Line 76: | ||
equalModRequired=1; | equalModRequired=1; | ||
class Missions {}; | class Missions {}; // an empty Missions list will lead to | ||
// players being presented with the full | |||
// list of missions the server has. | |||
// Players will have to vote | |||
// to select a mission | |||
</pre> | </pre> | ||
[[Category:Sandbox]] | [[Category:Sandbox]] | ||
Revision as of 16:10, 4 March 2007
Title
Regular paragraph of text. Talk talk blah blah.
Subtitle
Subsection text.
Sub-subtitle
Even more text.
A config.cpp snippet inside a <pre> environment:
class CfgPatches
{
class Something
{
units[] = {};
weapons[] = {};
requiredAddons[] = {};
requiredVersion=1.00;
};
};
(A "pre environment" will result in tabs being rendered properly. This is useful for presenting properly indented code.)
OFP/ArmA server config file example
// comments are preceded by "//" and extend to the end of the line
//
// Example server.cfg
//
password = "xyz"; // password required to connect to server
passwordAdmin = "xyzxyz"; // admin password. Use "#login xyzxyz" in global chat in-game to login as admin
// The name of our server
hostname="Example OFP server";
// Welcome message. This is a list of strings
// separated by comma signs. Each string will be
// displayed on a new line. The example motd below
// will display two lines
motd[]= {
"Welcome to the Example OFP server.",
"Have fun!"
};
motdInterval=1; // if motd has multiple lines this setting
// determines the delay in seconds between showing
// lines (default is 5 seconds).
voteMissionPlayers=3; // start voting for missions when 3 players connect
voteThreshold=0.33; // when one third agrees, this is enough to confirm a vote
reportingIP=""; // private server - don't report
// Use "armedass.master.gamespy.com" to
// report to the master server
checkFiles[]={ //list of files to check
"HWTL\dta\data3d.pbo",
"dta\data3d.pbo"
};
kickDuplicate=1; // do not allow duplicate id
// If equalModRequired is set, players will need
// to connect to the server using the *exact same*
// -mod=... shortcut parameter the server is using.
//
// Possible values: 0 and 1 (or false/true, "false"/"true")
// Default: 0 / false / "false"
//
// As an example: if the server was started with
//
// -mod=@mymod
//
// all players will need to have exactly that parameter
// in their shortcuts. Note that the argument ("@mymod")
// is case significant. In other words, if a player used
// "-mod=@MyMod" connection would be refused.
//
equalModRequired=1;
class Missions {}; // an empty Missions list will lead to
// players being presented with the full
// list of missions the server has.
// Players will have to vote
// to select a mission