Jump to content
The Boogaloo Stick

ErrorMessage: File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 77: /cfgVehicles/: ';' encountered instead of '{'

Recommended Posts

Uploaded MRH Milsimtools on dedicated server and now im getting ErrorMessage: File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 77: /cfgVehicles/: ';' encountered instead of '{' on .rpt

Here is the entire cfgvehicles.hpp. I use NFO servers.

 

    #include "MRH_C_Path.hpp"
/*
["H_PilotHelmetFighter_B","H_HelmetB","ItemCore","Default"]
class H_PilotHelmetFighter_B 
{
    MRH_hypoxiaRebreather = 1;
};
*/
class Bag_Base;
class B_Parachute : Bag_Base
{};
class MRH_AADEquippedParachute : B_Parachute
{
    displayName = $STR_MRH_MRHHaloGear_AADChute;
    scope = 2;
};
class ACE_NonSteerableParachute;
class MRH_AADEquippedNSParachute : ACE_NonSteerableParachute
{
    displayName = $STR_MRH_MRHHaloGear_AADChuteNS;
    scope = 2;
};

class Man;
    class CAManBase: Man 
    {
        /*
        class EventHandlers {
        init = "_this call MRH_fnc_MilsimTools_EnhancedMap_replaceVanillaMap;";
        
        };
        */
        class ACE_SelfActions 
        {
            class ACE_Equipment {

                class MRH_SetAAS
                {
                    displayName = $STR_MRH_MRHHaloGear_AADSettingSelfAC;
                    condition = "(([player] call MRH_fnc_MilsimTools_HaloGear_hasAADParachute) && (['MRH_MilsimTools_HaloGear_allowManualAADSetting']call cba_settings_fnc_get))";
                    exceptions[] = {"isNotSitting","isNotInside"};
                    statement = "[_player] call MRH_fnc_MilsimTools_HaloGear_AADMenuOnload";
                    icon = "";
                    
                };
                
            };

        };
    };

        //["ReammoBox_F","ThingX","Thing","All"]
    //["MRAP_01_base_F","Car_F","Car","LandVehicle","Land","AllVehicles","All"]
    //["I_G_Boat_Transport_01_F","Rubber_duck_base_F","Boat_F","Ship_F","Ship","AllVehicles","All"]
    #define MACRO_ATTACHAAD \
    class ACE_Actions \
    { \
       class ACE_MainActions  { \
                    class MRH_AttachAAD { \
                        displayName = $STR_MRH_MRHHaloGear_ATTACHAAD; \
                        condition = "(!(_target getVariable ['MRH_HaloGear_itemAsAAD',false]) && ('MRH_AAD_Item' in items _player))"; \
                        statement = "_target setVariable ['MRH_HaloGear_itemAsAAD',true,true]; _player removeItem 'MRH_AAD_Item';hint localize 'STR_MRH_MRHHaloGear_HintAADAdded'"; \
                        exceptions[] = {"isNotSwimming"}; \
                        showDisabled = 0; \
                        icon = ""; \
                    }; \
                    class MRH_DetachAAD { \
                        displayName = $STR_MRH_MRHHaloGear_REMOVEHAAD; \
                        condition = "_target getVariable ['MRH_HaloGear_itemAsAAD',false]"; \
                        statement = "[_target] call MRH_fnc_MilsimTools_HaloGear_removeObjectAAD;_player addItem 'MRH_AAD_Item';hint localize 'STR_MRH_MRHHaloGear_HintAADRemoved'"; \
                        exceptions[] = {"isNotSwimming"}; \
                        showDisabled = 0; \
                        icon = ""; \
                    }; \
                    class MRH_ChangeAADSetting { \
                        displayName = $STR_MRH_MRHHaloGear_AADSettingSelfAC; \
                        condition = "_target getVariable ['MRH_HaloGear_itemAsAAD',false]"; \
                        statement = "[_target] call MRH_fnc_MilsimTools_HaloGear_AADMenuOnLoad"; \
                        exceptions[] = {"isNotSwimming"}; \
                        showDisabled = 0; \
                        icon = ""; \
                    }; \
        }; \
    };
    class ThingX;
    class ReammoBox_F : ThingX;
    {
        MACRO_ATTACHAAD
    };
    class LandVehicle;
    class Car : LandVehicle;
    {
        MACRO_ATTACHAAD
    };

    class Ship;
    class Ship_F : Ship;
    {
        MACRO_ATTACHAAD
    };

    class Tank: LandVehicle;
    {
        MACRO_ATTACHAAD
    };

    class Motorcycle: LandVehicle;
    {
        MACRO_ATTACHAAD
    };

 

Can anyone help?

Share this post


Link to post
Share on other sites
class ReammoBox_F : ThingX;
class Car : LandVehicle;
class Ship_F : Ship;
class Tank: LandVehicle;
class Motorcycle: LandVehicle;

All these lines should not have a following ; as they are followed by a class structure. ie

 

class ReammoBox_F : ThingX ;    //<<< incorrect ;
{
    MACRO_ATTACHAAD
};

 

Share this post


Link to post
Share on other sites

 0:00:54 File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 79: '/cfgVehicles/ReammoBox_F/ACE_Actions/ACE_MainActions/MRH_DetachAAD.statement': Missing ';' at the end of line
 0:00:54 File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 84: '/cfgVehicles/Car/ACE_Actions/ACE_MainActions/MRH_DetachAAD.statement': Missing ';' at the end of line
 0:00:54 File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 90: '/cfgVehicles/Ship_F/ACE_Actions/ACE_MainActions/MRH_DetachAAD.statement': Missing ';' at the end of line
 0:00:54 File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 95: '/cfgVehicles/Tank/ACE_Actions/ACE_MainActions/MRH_DetachAAD.statement': Missing ';' at the end of line
 0:00:54 File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 100: '/cfgVehicles/Motorcycle/ACE_Actions/ACE_MainActions/MRH_DetachAAD.statement': Missing ';' at the end of line
 0:00:54 File MRHSoldierTab\dialogs\dialogsSoldierTablet.hpp, line 27: '/MRHSoldierTablet/controls/MRHIconBar.rowHeight': Missing ';' at the end of line
 0:00:54 File MRHSoldierTab\dialogs\dialogsSoldierTablet.hpp, line 243: '/MRHSoldierTablet/controls/MRHScr4TreeView.onTreeSelChanged': Missing ';' at the end of line
 0:00:54 File MRHSoldierTab\dialogs\videoChoiceMenu.hpp, line 58: '/MRHVideoChoice/controls/MRH_playVidButton.action': Missing ';' at the end of line

 

This is what rpt is saying now after removing the ';'

Share this post


Link to post
Share on other sites
12 hours ago, The Boogaloo Stick said:

0:00:54 File MRHSoldierTab\dialogs\dialogsSoldierTablet.hpp, line 27: '/MRHSoldierTablet/controls/MRHIconBar.rowHeight': Missing ';' at the end of line
 0:00:54 File MRHSoldierTab\dialogs\dialogsSoldierTablet.hpp, line 243: '/MRHSoldierTablet/controls/MRHScr4TreeView.onTreeSelChanged': Missing ';' at the end of line
 0:00:54 File MRHSoldierTab\dialogs\videoChoiceMenu.hpp, line 58: '/MRHVideoChoice/controls/MRH_playVidButton.action': Missing ';' at the end of line

Don't know what these are, they are unrelated to the file/class structures shown in OP.

 

The other errors are saying there is something wrong with your macro MACRO_ATTACHAAD, specifically MRH_DetachAAD's statement, although I am not seeing it in the OP.

I can even take the class structure from your OP (applying changes from my previous post ) and everything packs, loads up and structure is correct in configViewer. So you have made a mistake somewhere.

My bastardised version from testing.

Spoiler

class CfgPatches
{
	class MRH
	{
		requiredAddons[]= { "ace_parachute" };
		requiredVersion=0.1;
		units[]={"MRH_AADEquippedParachute", "MRH_AADEquippedNSParachute"};
		weapons[]={};
	};
};

class CfgVehicles {

	//#include "MRH_C_Path.hpp"
	/*
	["H_PilotHelmetFighter_B","H_HelmetB","ItemCore","Default"]
	class H_PilotHelmetFighter_B
	{
	    MRH_hypoxiaRebreather = 1;
	};
	*/
	class Bag_Base;
	class B_Parachute : Bag_Base
	{};
	class MRH_AADEquippedParachute : B_Parachute
	{
	    displayName = $STR_MRH_MRHHaloGear_AADChute;
	    scope = 2;
	};
	class ACE_NonSteerableParachute;
	class MRH_AADEquippedNSParachute : ACE_NonSteerableParachute
	{
	    displayName = $STR_MRH_MRHHaloGear_AADChuteNS;
	    scope = 2;
	};

	class Man;
	class CAManBase: Man
	{
	    /*
	    class EventHandlers {
	    init = "_this call MRH_fnc_MilsimTools_EnhancedMap_replaceVanillaMap;";

	    };
	    */
	    class ACE_SelfActions
	    {
	        class ACE_Equipment {

	            class MRH_SetAAS
	            {
	                displayName = $STR_MRH_MRHHaloGear_AADSettingSelfAC;
	                condition = "(([player] call MRH_fnc_MilsimTools_HaloGear_hasAADParachute) && (['MRH_MilsimTools_HaloGear_allowManualAADSetting']call cba_settings_fnc_get))";
	                exceptions[] = {"isNotSitting","isNotInside"};
	                statement = "[_player] call MRH_fnc_MilsimTools_HaloGear_AADMenuOnload";
	                icon = "";

	            };

	        };

	    };
	};

	//["ReammoBox_F","ThingX","Thing","All"]
	//["MRAP_01_base_F","Car_F","Car","LandVehicle","Land","AllVehicles","All"]
	//["I_G_Boat_Transport_01_F","Rubber_duck_base_F","Boat_F","Ship_F","Ship","AllVehicles","All"]
	#define MACRO_ATTACHAAD \
	class ACE_Actions \
	{ \
	   class ACE_MainActions  { \
	            class MRH_AttachAAD { \
	                displayName = $STR_MRH_MRHHaloGear_ATTACHAAD; \
	                condition = "(!(_target getVariable ['MRH_HaloGear_itemAsAAD',false]) && ('MRH_AAD_Item' in items _player))"; \
	                statement = "_target setVariable ['MRH_HaloGear_itemAsAAD',true,true]; _player removeItem 'MRH_AAD_Item';hint localize 'STR_MRH_MRHHaloGear_HintAADAdded'"; \
	                exceptions[] = {"isNotSwimming"}; \
	                showDisabled = 0; \
	                icon = ""; \
	            }; \
	            class MRH_DetachAAD { \
	                displayName = $STR_MRH_MRHHaloGear_REMOVEHAAD; \
	                condition = "_target getVariable ['MRH_HaloGear_itemAsAAD',false]"; \
	                statement = "[_target] call MRH_fnc_MilsimTools_HaloGear_removeObjectAAD;_player addItem 'MRH_AAD_Item';hint localize 'STR_MRH_MRHHaloGear_HintAADRemoved'"; \
	                exceptions[] = {"isNotSwimming"}; \
	                showDisabled = 0; \
	                icon = ""; \
	            }; \
	            class MRH_ChangeAADSetting { \
	                displayName = $STR_MRH_MRHHaloGear_AADSettingSelfAC; \
	                condition = "_target getVariable ['MRH_HaloGear_itemAsAAD',false]"; \
	                statement = "[_target] call MRH_fnc_MilsimTools_HaloGear_AADMenuOnLoad"; \
	                exceptions[] = {"isNotSwimming"}; \
	                showDisabled = 0; \
	                icon = ""; \
	            }; \
	    }; \
	};
	class ThingX;
	class ReammoBox_F : ThingX
	{
	    MACRO_ATTACHAAD
	};
	class LandVehicle;
	class Car : LandVehicle
	{
	    MACRO_ATTACHAAD
	};

	class Ship;
	class Ship_F : Ship
	{
	    MACRO_ATTACHAAD
	};

	class Tank: LandVehicle
	{
	    MACRO_ATTACHAAD
	};

	class Motorcycle: LandVehicle
	{
	    MACRO_ATTACHAAD
	};

};

 

 

Share this post


Link to post
Share on other sites

Did a full wipe of the mod and it uploads normally -mods=@CBA_A3;@ace;@MRHMilSimTools with NFO Servers but now the issue is when i upload ITC Land Systems It crashes. 

Share this post


Link to post
Share on other sites

The file you posted is not from the original mod. You should use the original version where there are no such errors  😉

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

×