Jump to content
Sign in to follow this  
Jastreb

Unable to change mission parameters on dedicated server [1.4]

Recommended Posts

Hi lads. I have a very strange issue here. Not sure what is causing it and how to reproduce it, but here is the problem description.

I host a dedicated server, which is downloaded on a separate machine, trough Steam client, from the tools library, so there is no Arma3 ( game ) in there, just the server package.

Steam client is not running, and I am starting a server with batch script, and all is fine there. Server starts, and is visible in server browser, and I am able to connect to it.

Now comes the problem. I login as admin with a predefined password in server.cfg, and after using #missions command to change the mission I am unable to change any parameter of it in the Parameters menu. I have no idea what the problem is here. Its like server is not registering that I am admin for the params menu?

Here is the settings.

Batch script for starting

@echo off
:start
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
echo Server monitored is not running, will be started now 
start "" /wait "C:\Program Files (x86)\Steam\steamapps\common\Arma 3 Server\arma3server.exe" -port=2302 "-config=C:\Users\Administrator\Desktop\configs\SAF\SAF_config.cfg" "-cfg=C:\Users\Administrator\Desktop\configs\SAF\SAF_basic.cfg" "-profiles=C:\Users\Administrator\Desktop\configs\SAF" -name=SAF -pid=pid.log -ranking=ranking.log "-serverMod=@mcc_sandbox_a3;@asm;@asr_ai3;@zeu_serverbriefing" "-mod=@cba_a3;@task_force_radio;@agm;@alive;@rhs_afrf3;@rhs_usf3;@allinarmaterrainpacklite;@leights_opfor" -maxMem=2047 -world=empty -autoInit
echo Server started succesfully
goto started
:loop
cls
echo Server is already running, running monitoring loop
:started
C:\Windows\System32\timeout /t 10
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
C:\Windows\System32\taskkill /im arma3server.exe
goto start

SAF_config.cfg

//
// server.cfg
//
// comments are written with "//" in front of them.

// NOTE: More parameters and details are available at http://community.bistudio.com/wiki/server.cfg

// STEAM PORTS (not needed anymore, it's +1 +2 to gameport)
// steamPort       = 8766;     // default 8766, needs to be unique if multiple serves on same box - obsolete after 1.22 hotfix
// steamQueryPort  = 27016;    // default 27016, needs to be unique if multiple servers on same box - obsolete after 1.22 hotfix

// GENERAL SETTINGS
hostname                = "MyServerName";     // The name of the server that shall be displayed in the public server list
password                = "mypassword";       // Password for joining, eg connecting to the server
passwordAdmin           = "myadminpassword";  // Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
//reportingIP           = ""; //Gamespy Is No Longer available, Steam is reported too automatically, just define the steam ports as per this file, leave this string empty
persistent              = 1;  // If set to 1, missions will continue to run after all players have disconnected; required if you want to use the -autoInit startup parameter
upnp                    = 1;  // Automatically creates port mapping on UPNP/IGD enabled router.
forceRotorLibSimulation = 0;  // Enforces the Advanced Flight Model on the server. Default = 0 (up to the player). 1 - forced AFM, 2 - forced SFM.
maxPlayers              = 20; // Maximum amount of players. Civilians and watchers, beholder, bystanders and so on also count as player.

// VOICE CHAT
disableVoN       = 1;     // If set to 1, voice chat will be disabled
vonCodecQuality  = 15;    // Supports range 1-30; 1-10 is 8kHz (narrowband), 11-20 is 16kHz (wideband), 21-30 is 32kHz (ultrawideband); higher = better sound quality, more bandwidth consumption

// VOTING
voteMissionPlayers  = 1;       // Minimum number of players required before displaying the mission selection screen, if you have not already selected a mission in this config
voteThreshold       = 0.33;    // Percentage (0.00 to 1.00) of players needed to vote something into effect, for example an admin or a new mission. Set to 9999 to prevent random players being voted as admins.

//allowedVoteCmds[] = {
//{"admin", true, true, 0.5},
//{"missions", true, "true", "0.5"},
//{"mission", true, true}, // will use global "voteThreshold"
//{"kick", false, false, 0.75},
//{"restart", false, false}, // invalid threshold value. Will default to global "voteThreshold"
//{"reassign", true, true, 0.5}
//};

//allowedVotedAdminCmds[] = {
//{"mission", true, true}, //
//{"missions", true, true}, //
//{"restart", false, false}, //
//{"reassign", true, true}, //
//{"kick", false, false} //
//};


// 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

// Leave commented out for initial run
// incorrect value will cause server to hang
motd[] = {
"",
"",
"",
"",
""
};

motdInterval         = 10;            // Time interval (in seconds) between each message

// LOGGING
timeStampFormat  = "short";                 // Timestamp format used in the server RPT logs. Possible values are "none" (default), "short", "full"
logFile          = "server_console.log";    // Server console output filename

// SECURITY
BattlEye          = 0;    // If set to 1, BattlEye Anti-Cheat will be enabled on the server (default: 1, recommended: 1)
verifySignatures  = 0;    // If set to 2, players with unknown or unsigned mods won't be allowed join (default: 0, recommended: 2)
kickDuplicate     = 1;    // If set to 1, players with an ID that is identical to another player will be kicked (recommended: 1)
requiredSecureId  = 1;

// FILE EXTENSIONS
allowedLoadFileExtensions[] =       {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; // only allow files with those extensions to be loaded via loadFile command (since Arma 3 v1.19.124216) 
allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; // only allow files with those extensions to be loaded via preprocessFile/preprocessFileLineNumber commands (since Arma 3 v1.19.124323)
allowedHTMLLoadExtensions[] =       {"htm","html","xml","txt"}; // only allow files with those extensions to be loaded via HTMLLoad command (since Arma 3 v1.27.126715)

// EVENT SCRIPTS (see http://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting)
onUserConnected     = "";    // command to run when a player connects
onUserDisconnected  = "";    // command to run when a player disconnects
doubleIdDetected    = "";    // command to run if a player has the same ID as another player in the server
onUnsignedData      = "kick (_this select 0)";    // command to run if a player has unsigned files
onHackedData        = "kick (_this select 0)";    // command to run if a player has tampered files


// MISSIONS CYCLE
class Missions
{
class Mission_1
{
	template = "RHS_RUS_MCC_Cherno.Chernarus_Summer";
	difficulty = "veteran";
};
class Mission_2
{
	template = "RHSInsurgencyALiVE.Takistan";
	difficulty = "veteran";
};
class Mission_3
{
	template = "RHS_USA_MCC_Cherno.Chernarus_Summer";
	difficulty = "veteran";
};

};

missionWhitelist[] = {}; //an empty whitelist means there is no restriction on what missions' available

// HEADLESS CLIENT
headlessClients[]  = {"127.0.0.1"};    // list of IP addresses allowed to connect using headless clients; example: {"127.0.0.1", "192.168.1.100"};
localClient[]      = {"127.0.0.1"};    // list of IP addresses to which are granted unlimited bandwidth; example: {"127.0.0.1", "192.168.1.100"};

SAF_basic.cfg

// Basic config file generated 3/10/2015 1:18 AM with TADST.

language="English";
adapter=-1;
MinBandwidth = 131072;
MaxBandwidth = 20097152;
MaxMsgSend=128;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=256;
MinErrorToSend=0.001;
MinErrorToSendNear=0.01;
MaxCustomFileSize=100000;
3D_Performance=1;
Resolution_W=0;
Resolution_H=0;
Resolution_Bpp=32;
terrainGrid=25;
viewDistance=5000;
Windowed=0;
serverLongitude=10;
serverLatitude=59;
serverLongitudeAuto=0;
serverLatitudeAuto=59;

Im not sure what is going on. Any ideas?

Update:

Well I hate it when this happens. I fixed it. Removed @asm, @mcc_sandbox_a3, and zeu_serverbriefing from -serverMods line, and removed -autoinit and -maxmem=2047 parameter from the server launch line and it works. Which one was breaking it Im not sure. Highly suspected is MCC and zeu_serverbriefing possible -autoinit also. Others should not interfere but I removed them anyway, cause I dont find any use of them.

Hope this will help someone.

Edited by _MaSSive
fixed it ;/

Share this post


Link to post
Share on other sites

I had similiar problem. But I also figured out.

 

-autoInit

Quote

Automatically initialize mission just like first client does.

Note: Server config file (server.cfg) must contain "Persistent=1;", if it's 0 autoInit skips.
Warning: This will break the Arma_3_Mission_Parameters function, so do not use it when you work with mission parameters, only default values are returned!

 

https://community.bistudio.com/wiki/Arma_3_Startup_Parameters#Server_Options

 

 

Edited by Bacardi_
sry necro post

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×