Jump to content
Sign in to follow this  
BCA Cat Toaster

Dedi: HowTo setup Difficulty Level?

Recommended Posts

I´m completely new to ArmA(2) related hosting so please don´t kill me for asking this question. I searched the board and the wiki and at least i did not understand what i found or used the wrong matchworks OR maybe both.

I put the AAS-Missions from Coolbox-SBS (thank you so much, at least I´m a JO-Veteran and without your AAS-Mod i wouldn´t think a second about playing ArmA2!) and all runs smooth so far. My small problem is: How do i setup the difficulty level to "Veteran", because it runs at "Recruit" by default?

Is there any global Server-Config-Switch i have to set?

Here is my config so far:

HostName="Basecamp ArmA2 AAS GER";
Password="";
PasswordAdmin="isklar";
reportingIP="arma2.master.gamespy.com";
logFile="server_console.log";


class Missions
{
  class Mission01
  {
  template = aas50_ChernogorskConflict.Chernarus;
  cadetmode = 2;
  };//end of this mission

  };//end of missions

motd[]=
{
    "Bla",
};


checkfiles[]=
{
};

motdInterval=50;
maxPlayers=50;
kickduplicate =1;
voteThreshold =1;
persistent=0;
verifySignatures=1;
RegularCheck = "{}";
onHackedData = "kick (_this select 0)";
onDifferentData = "kick (_this select 0)";
onUnsignedData = "kick (_this select 0)";
disableVoN=1;
NetStats=1;

I alread tried to change the "cadetmode" values without effect, added a "difficulty=0;" Switch which does not seem to exist and some other senseless stuff for some hours now. I guess the solution is obvious and easy for you...

Thank you already!

Share this post


Link to post
Share on other sites

try putting this into your servers arma2profile

version=1;

blood=1;

singleVoice=0;

gamma=1;

brightness=1;

shadingQuality=3;

shadowQuality=3;

soundEnableEAX=1;

soundEnableHW=0;

activeKeys[]=

{

"BIS_IAmBeingNaughty1",

"BIS_IAmBeingNaughty2",

"BIS_IAmBeingNaughty3",

"BIS_IAmBeingNaughty4",

"BIS_IAmBeingNaughty5",

"BIS_IAmBeingNaughty6",

"BIS_IAmBeingNaughty7",

"BIS_IAmBeingNaughty8",

"BIS_IAmBeingNaughty9",

"BIS_IAmBeingNaughty10",

"BIS_IAmBeingNaughty11",

"BIS_IAmBeingNaughty12",

"BIS_IAmBeingNaughty13",

"BIS_IAmBeingNaughty14",

"BIS_IAmBeingNaughty15",

"BIS_IAmBeingNaughty16",

"BIS_IAmBeingNaughty17",

"BIS_IAmBeingNaughty18",

"BIS_IAmBeingNaughty19",

"BIS_IAmBeingNaughty20",

"BIS_IAmBeingNaughty21",

"BIS_IAmBeingNaughty22",

"BIS_IAmBeingNaughty23",

"BIS_IAmBeingNaughty24",

"BIS_IAmBeingNaughty25"

};

class Difficulties

{

class recruit

{

class Flags

{

Armor=1;

FriendlyTag=1;

EnemyTag=0;

HUD=1;

HUDPerm=1;

HUDWp=0;

HUDWpPerm=0;

HUDGroupInfo=0;

AutoSpot=0;

Map=1;

WeaponCursor=1;

AutoGuideAT=0;

ClockIndicator=1;

3rdPersonView=1;

Tracers=1;

UltraAI=0;

AutoAim=0;

UnlimitedSaves=1;

DeathMessages=1;

NetStats=1;

VonID=1;

};

skillFriendly=1;

skillEnemy=0.65000004;

precisionFriendly=1;

precisionEnemy=0.65000004;

};

class regular

{

class Flags

{

Armor=1;

FriendlyTag=1;

EnemyTag=0;

HUD=1;

HUDPerm=1;

HUDWp=1;

HUDWpPerm=1;

HUDGroupInfo=0;

AutoSpot=0;

Map=1;

WeaponCursor=1;

AutoGuideAT=0;

ClockIndicator=1;

3rdPersonView=1;

Tracers=1;

UltraAI=0;

AutoAim=0;

UnlimitedSaves=1;

DeathMessages=1;

NetStats=1;

VonID=1;

};

skillFriendly=0.75;

skillEnemy=0.75;

precisionFriendly=0.75;

precisionEnemy=0.75;

};

class veteran

{

class Flags

{

Armor=0;

FriendlyTag=1;

EnemyTag=0;

HUD=1;

HUDPerm=1;

HUDWp=0;

HUDWpPerm=0;

HUDGroupInfo=0;

AutoSpot=0;

Map=1;

WeaponCursor=1;

AutoGuideAT=0;

ClockIndicator=1;

3rdPersonView=1;

Tracers=1;

UltraAI=0;

AutoAim=0;

UnlimitedSaves=1;

DeathMessages=1;

NetStats=1;

VonID=1;

};

skillFriendly=0.85000002;

skillEnemy=0.85000002;

precisionFriendly=0.85000002;

precisionEnemy=0.85000002;

};

class mercenary

{

class Flags

{

Armor=0;

FriendlyTag=1;

EnemyTag=0;

HUD=1;

HUDPerm=1;

HUDWp=0;

HUDWpPerm=0;

HUDGroupInfo=0;

AutoSpot=0;

Map=1;

WeaponCursor=1;

AutoGuideAT=0;

ClockIndicator=1;

3rdPersonView=1;

Tracers=1;

UltraAI=1;

AutoAim=0;

UnlimitedSaves=1;

DeathMessages=1;

NetStats=1;

VonID=1;

};

skillFriendly=1;

skillEnemy=1;

precisionFriendly=1;

precisionEnemy=1;

};

};

sceneComplexity=300000;

viewDistance=1600;

terrainGrid=35;

volumeCD=5;

volumeFX=5;

volumeSpeech=5;

Share this post


Link to post
Share on other sites

Hi and thank you so far. I pasted that in my profile but the server starts still in "Recruit". As far as i understand that profile you posted defines the level and their special settings (which is definetely more than i had before!) but how i set up which of those four modes the server will use at startup?

Share this post


Link to post
Share on other sites

Add

difficultyMP="Veteran";

in your ArmA2Profile file.

Xeno

Share this post


Link to post
Share on other sites

Server still starts in "Recruit". :-(

OK: My fault, server says recruit until mission is loaded. Now it is loaded and it´s VETERAN! Thank you both 1000 times!

Edited by BCA Cat Toaster

Share this post


Link to post
Share on other sites

Sorry for DP....

These settings now work for just one mission. In the next mission in the mapcycle the server switches back to "recruit" difficulty level. Any ideas?

Share this post


Link to post
Share on other sites

In each mission of your mission rotation list, put

difficulty="veteran";

Share this post


Link to post
Share on other sites

Hi Whisper,

like this?

class Mission01
  {
  template = aas32_ChernogorskConflict.Chernarus;
  cadetmode = 2;
  difficulty="veteran";	
  };//end of this mission

and not difficultyMP="veteran";?

Edited by BCA Cat Toaster
another Question

Share this post


Link to post
Share on other sites

It seems that it works now...Wasn´t that easy? ;-) Thank you very much!

Is there any chance that setting up "mission time (Duration)" and "AI-Deactiviation" in the same "easy way"? If you login as admin to the server and than use the #missions command you can change the mission and their standard duration from 45minutes to 60 and the standard "AI until more than 6 six players" to "no Ai". Is it possible to change these values via script like we did it with the difficulty level?

Share this post


Link to post
Share on other sites

Tried and failed. Theorically it should be done through the

param1= "...";
param2= "...";

but I coudln't get it to work for AAS disabling AI

I tried this :

param1 = 1;
param2 = 45;

Again, in each individual entry of the missions section

Share this post


Link to post
Share on other sites

Try the actual values defined in the description.ext of the mission

Share this post


Link to post
Share on other sites
Try the actual values defined in the description.ext of the mission

Excerpt from the description.ext:

#define SUPPORT_OFF   1	
#define SUPPORT_LTE4  2 
#define SUPPORT_LTE6  3  
#define SUPPORT_EAST  4   
#define SUPPORT_WEST  5  
#define SUPPORT_ON    6

valuesParam1[] = { SUPPORT_OFF , SUPPORT_LTE4 , SUPPORT_LTE6 , SUPPORT_EAST, SUPPORT_WEST , SUPPORT_ON };
defValueParam1 = SUPPORT_LTE6;
textsParam1[] = { "Always Off" , "On when <= 4 players" , "On when <= 6 players" , "East AI Only" , "West AI Only" , "Always On" };

So I tried param1 = 1;

maybe

param1 = "Always Off"

would do it, didn't test

Share this post


Link to post
Share on other sites

Hey guys, you´re getting hardcore...

The description.ext is part/merged in the mission.pbo, isn´t it? If i open the mission.pbo with notepad i can find these default values i want to change for time and AI as you already statet, but i guess the mission.pbo can´t be easily edited with notepad...

Share this post


Link to post
Share on other sites

Not to be done ;)

Kegetys released a tool to pack/unpack files to/from .pbo archives (don't remember the URL though, google will help ;) )

But finding the correct way through the server setup instead of modifying every mission would be better. Each modified mission must be redownloaded by clients

You could try with only param1 in your server.cfg mission list.

Try first

param1 = 1;

if it doesn't work, try

param1 = "Always Off";

Share this post


Link to post
Share on other sites

Ok, i tried

param1 = 1;

param1 = "Always Off";

param1 = "SUPPORT_OFF";

but none of them worked. I really loaded a mission, killed myself and spawned on the point seeing the bots.

Share this post


Link to post
Share on other sites

Damn. Best to make a bug report at the A2 CIT.

Share this post


Link to post
Share on other sites

I´ll give it a try tomorrow morning and report back, server is full right now running in veteran on all maps thx to you guys!

Share this post


Link to post
Share on other sites

class Mission01
  {
  template = aas32_ChernogorskConflict.Chernarus;
  veteranmode = 2;
  difficulty="veteran";
  param1="1"; 		
  };//end of this mission

Sorry, no effect.

Share this post


Link to post
Share on other sites
class Mission01
  {
  template = aas32_ChernogorskConflict.Chernarus;
  veteranmode = 2;
  difficulty="veteran";
  param1="1"; 		
  };//end of this mission

Sorry, no effect.

Try this:

class Mission01
  {
  template=aas32_ChernogorskConflict.Chernarus;
  cadetMode=0;
  };//end of this mission

or

class Mission01
  {
  template=aas32_ChernogorskConflict.Chernarus;
  difficulty="veteran";
  };//end of this mission

Cheers

Edited by MJK-Ranger

Share this post


Link to post
Share on other sites

How i can use my difficulty profile from arma2profile file in my docs?

That i used in Arma1 and was working:

-profiles=C:\Users\Dan\Documents\ArmA 2 -name=Dan

this should do work but i cant get it to work. Any ideas?

Share this post


Link to post
Share on other sites

@MJK-Ranger

Sorry for the confusion, but the original problem with the difficulty level works now and just fine as i posted and you quoted it. We were now into changing the standard "AI-Setting" from the missions default "<=6 players" to "always off" with that param1="1" stuff or and changing the "mission time" value by several parameters.

@Dan86

I don´t add the arma2profile to my starting parameters manually, its getting used automatically from its default position.

Share this post


Link to post
Share on other sites

Yea but when i start dedicated server without or with -profiles parameter it dosnt use difficulty setting i set up there. Looks like it loads default difficulty setting( and i dont like that i want enemy waste some ammo before they can hit me or any1 from squad, want battle more immersive with bullets soniccracks near my head not in my head after second shot of enemy AI)

@echo on
"D:\Gry\ArmA 2\arma2server.exe" -cpucount=4 -cfg=gca2dst_basic.cfg -config=server.cfg -profiles=C:\Users\Dan\Documents\ArmA 2 -name=Dan -port=2302 -mod=@editor;@my;@hifi -netlog
FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET DATE=%%B
FOR /F "TOKENS=*" %%A IN ('TIME/T') DO SET TIME=%%A
ECHO 3 %TIME% 0.33 %DATE%
GOTO RESTART

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  

×