Results 1 to 3 of 3

Thread: [WAR BE] A way to set parameters other than editing file in each mission's .pbo?

  1. #1

    [WAR BE] A way to set parameters other than editing file in each mission's .pbo?

    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:

    Code:
    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;
    	};
    };
    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?
    Last edited by muniek85; Jun 19 2011 at 20:57.

  2. #2
    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;
    };
    };
    };
    Last edited by nuxil; Jun 19 2011 at 23:48.

    -- BEC, Battleye Extended Controls --
    -- BEC Forum Thread --

    Spoiler:

  3. #3
    Private First Class
    Join Date
    Jul 8 2010
    Posts
    33
    Author of the Thread
    thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •