Jump to content

I need a little bit of help


Recommended Posts

First of all, tho I am not sure if the file is in such format because you shared it, so I'll just doubt that, Description.ext should be a .ext file, not a .txt. To achieve this, select "Save As" and then choose "All Files" and then name the file Description.ext.


I didn't test your code, but I had a look at it. The opened { curly brackets don't add up with the closed }; ones and you forget a whole bunch of semicolons all over the place.

The code should probably look more like this (hidden because lots of code):


class CfgORBAT {

	class 7thBattalion {

		id = 1;
		idtype = 0;
		side = "West";
		size = "Battalion";
		type = "Assault";
		commander = "Edwards";
		commanderRank = "Lieutenant";
		text = "%1%2%3";
		textShort = "1%3%";
		color[] = {0, 0, 1, 1};
		description = "Camp Rogain will be under the command of Lt. Edwards and will provide infantry support on Stratis.";
		assets[] = {{B_APC_Tracked_01_rcws_F}, {B_APC_Tracked_01_rcws_F}, {B_Heli_Light_01_armed_F,4}, {B_MRAP_01_hmg_F}};
		subordinates[] = {Battalion};

        class 1stPlatoon {

            side = "West";
            size = "Platoon";
            type = "Support";
            commander = "James";
            commanderRank = "Lieutenant";
            text = "1stPlatton";
            textShort = "1st Platoon";
            color[] = {1, 1, 1, 1};
            description = "A support unit for 7thBattalion.";
            assets[] = {B_Mortar_01_F}, {B_Mortar_01_F}, {B_MRAP_01_gmg_F}, {B_MRAP_01_gmg_F}, {B_MRAP_01_gmg_F};


        class 6thRegiment {

            id = 2;
            idType = 0;
            side = "West";
            size = "Regiment";
            type = "MotorizedInfantry";
            commander = "Dixon";
            commanderRank = "Sergeant";
            text = "6thRegiment, motorized infantry, they help 1stPlatoon";
            textShort = "1stPlat";
            subordinates[] = {1stPlatoon};
            color[] = {1, 1, 1, 1};
            description = "A small group reinforcing 1stPlatoon.";






Notice that classes 1stPlatoon and 6thRegiment are part of class 7thBattalion, making them both subordinates of the 7th Battalion, yet you list none of them in the subordinates array of class 7thBattalion. What you do list there is a class you didn't make at all. At the same time, 1stPlatoon is a subordinate of 6thRegiment but not part of its class?

As the BIS documentation for the assets array is not unambiguous about wether to put its definition in curly brackets or not, I used both options in the code; you'll find out what works.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Forum Statistics

    Total Topics
    Total Posts
  • Create New...