muniek85 10 Posted June 19, 2011 (edited) Hey i just realised how to change default parameters in each of the .pbo files by editintg parameters.hpp, and i started to wonder if there is any way to change these parameters from server.cfg somehow with these: class Missions { }; ? That would save a lot of mess with downloading unpacking, editing, packing and uploading to ftp again with each change... This way i would only edit the paremeters in server.cfg file. Is it possible? I have found something. Could you verify if what im goign to do is valid way of implementing it? I could add to my server.cfg following code: [size="2"]class Missions { class Takistan Heavy Resistance { template = "WarfareV2_069LiteCO.Takistan"; difficulty = "regular"; }; class Params { class aiGroupSizeAI { title = "$STR_WF_Gameplay_GroupSizeAI"; values[] = {2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,35,40,45,50,60,70,80,90,100}; texts[] = {"2","4","6","8","10","12","14","16","18","20","22","24","26","28","30","35","40","45","50","60","70","80","90","100"}; default = 10; }; class aiGroupSizePlayer { title = "$STR_WF_Gameplay_GroupSizePlayer"; values[] = {2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,35,40,45,50,60,70,80,90,100}; texts[] = {"2","4","6","8","10","12","14","16","18","20","22","24","26","28","30","35","40","45","50","60","70","80","90","100"}; default = 12;[/size] }; }; Would that then work? Or i need to create some additional file and stuff? I mean... would that succesfully overwrite the parameters in the parameters file in the mission's .pbo file? Edited June 19, 2011 by muniek85 Share this post Link to post Share on other sites
nuxil 2 Posted June 19, 2011 (edited) i think you are mixing up titileparamX with params. but you almost got it correct. here is a example. cant say its working since i dont know the names. but you will figure it out also keep in mind. if it complains about a . encounted instead of { use underscore instead of dot! class Missions { class Takistan_Heavy_Resistance { template = "WarfareV2_069LiteCO.Takistan"; difficulty = "regular"; class Params { aiGroupSizeAI = 10; aiGroupSizePlayer = 12; }; }; class Chernarus_Heavy_Resistance { template = "WarfareV2_069LiteCO.Chernarus"; difficulty = "regular"; class Params { aiGroupSizeAI = 10; aiGroupSizePlayer = 12; }; }; }; Edited June 19, 2011 by nuxil Share this post Link to post Share on other sites