Jump to content
Sign in to follow this  
Sapiens

Difficulty customizing mission params in server.cfg

Recommended Posts

I seem to be having trouble defining custom mission settings in server.cfg. As far as I can tell my syntax is correct, but when I join my server it still uses the default settings instead of those I've defined. Would someone be so kind as to have a look below and tell me if I'm making any mistakes? I'm at a loss.

Snippet of params defined in the mission's description.ext (working with Domination here, if that helps):

class Params {
class GVAR(TimeOfDay) {
	title = "Time of day:";
	values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
	default = 16;
	texts[] = {"00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"};
};

class GVAR(InitialViewDistance) {
	title = "Initial Viewdistance:";
	values[] = {1000,1500,2000,2500,3000,3500,4000,4500,5000};
	default = 1500;
	texts[] = {"1000 m","1500 m","2000 m","2500 m","3000 m","3500 m","4000 m","4500 m","5000 m"};
};
};

Snippet of the relevant section in my server.cfg:

class Missions
{
class DomiOA
{
	template="co30_Domination_2_54A2_West_R_OA.Takistan";
	difficulty="regular";
	class Params
	{
		TimeOfDay = 16;
		InitialViewDistance = 2000;
	};
};
};

Edited by Sapiens

Share this post


Link to post
Share on other sites

class Params {
class GVAR(TimeOfDay) {
	title = "Time of day:";
	values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
	default = [b][u]16[/u][/b];
	texts[] = {"00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"};
};

class GVAR(InitialViewDistance) {
	title = "Initial Viewdistance:";
	values[] = {1000,1500,2000,2500,3000,3500,4000,4500,5000};
	default = [b][u]1500[/u][/b];
	texts[] = {"1000 m","1500 m","2000 m","2500 m","3000 m","3500 m","4000 m","4500 m","5000 m"};
};
};

You change the marked values in the mission to change the default values for params, not the server.cfg The value you change has to have already been defined in the "values[]" section.

Share this post


Link to post
Share on other sites
You change the marked values in the mission to change the default values for params, not the server.cfg The value you change has to have already been defined in the "values[]" section.

Am I misunderstanding this post? I realize I can modify description.ext directly, but forcing players to re-download the PBO seems a bit excessive. Is this type of setup not supported by Domination?

Share this post


Link to post
Share on other sites

Not sure if you got this figured out but I believe that Domi params actually end up being

d_TimeOfDay = yourValue;

d_InitialViewDistance = yourValue;

or you may need to use

GVAR(TimeOfDay) = yourValue;

GVAR(InitialViewDistance) = yourValue;

Don't remember which it is, I havn't played with the domi stuff in a while.

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  

×