Sapiens
Dec 31 2010, 07:39
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;
};
};
};
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;
};
};
};