• 0
Sign in to follow this  
goemon

DMS static mission Error Missing ; problem

Question

Why does this error occur?
I am very embarrassed.

Quote

 


22:21:20 Error in expression <5","_vehicle6","_vehicle7"];


_vehicle0 = "Cha_Mi24_D_DDR";
_vehicle4 = ">
22:21:20   Error position: < = "Cha_Mi24_D_DDR";
_vehicle4 = ">
22:21:20   Error Missing ;
22:21:20 File x\addons\DMS\missions\static\slums.sqf, line 10
22:21:20 Error in expression <5","_vehicle6","_vehicle7"];


_vehicle0 = "Cha_Mi24_D_DDR";
_vehicle4 = ">
22:21:20   Error position: < = "Cha_Mi24_D_DDR";
_vehicle4 = ">
22:21:20   Error Missing ;
22:21:20 File x\addons\DMS\missions\static\slums.sqf, line 10

 

Quote

 


/*
	"slums" static mission for Altis.
	Created by eraser1
	Credits to "William" for creating the base.
*/
//set up all private variables in a list with comma except last entry
private["_veh","_veh1","_veh2","_veh3","_veh4","_veh5","_veh6","_veh7","_vehicle0","_vehicle1","_vehicle2","_vehicle3","_vehicle4","_vehicle5","_vehicle6","_vehicle7"];
// For logging purposes












_vehicle7 = "HAFM_FREMM";
_vehicle0 = "Cha_Mi24_D_DDR";
_vehicle4 = "HAFM_ABurke";
_vehicle3 = "AH1Z";
_vehicle2 = "Burnes_M1A1_MEU_01_Public";
_vehicle1 = "Burnes_M1A1_MEU_01_Public";


_num = DMS_MissionCount;


// Set mission side (only "bandit" is supported for now)
_side = "bandit";

_pos = [23258.7,22496.5];

if ([_pos,DMS_StaticMinPlayerDistance] call DMS_fnc_IsPlayerNearby) exitWith {"delay"};


// Set general mission difficulty
_difficulty = "hardcore";


// Define spawn locations for AI Soldiers. These will be used for the initial spawning of AI as well as reinforcements.
// The center spawn location is added 3 times so at least 3 AI will spawn initially at the center location, and so that future reinforcements are more likely to spawn at the center.
_AISoldierSpawnLocations =
[
					
					[23372.8,22059.1,0],             // AI spawn position (X,Y,Z)
                    [23222.2,22093,0],
                    [23324.5,22350.6,0.61687],
                    [23313.2,22208.4,0],
                    [23399.6,22192.6,0],     
                    [23222.4,22856.1,12.7343],     
                    [22936.3,22852.1,18.6255],
                    [22995.9,22897.4,28.5568],     
                    [23041.1,22830.8,26.5505],
                    [23411.3,22339.8,17.9407]
];

// Create AI
_AICount = 25*3 + (round (random 20*3));


_group =
[
	_AISoldierSpawnLocations+[_pos,_pos,_pos],		// Pass the regular spawn locations as well as the center pos 3x
	_AICount,
	_difficulty,
	"random",
	_side
] call DMS_fnc_SpawnAIGroup;


_staticGuns =
[
	[
						[23414,22336.2,20.5512],
						[23498.2,22251.5,22.4722],
                        [23552.5,22163.3,20.4589],
						[23479.7,21991,20.4825],
						[23296.8,21983.5,20.4585],
						[23174.2,22061.3,19.4072],
						[23229.5,22089.6,22.4412],
						[23327.8,22347.6,22.5627],
						[23411.7,22174,8.01348],
						[23302.4,22180,7.99973],
						[23294.8,22864.1,13.3192],
						[23215.8,22821.5,38.1854],
						[22987.2,22821.4,45.0285],
						[22909.8,22907.7,43.6596],
						[23138.6,22907.1,38.2649]
	],
	_group,
	"assault",
	_difficulty,
	"bandit",
	"random"
] call DMS_fnc_SpawnAIStaticMG;



_veh =  [
            [
                [23375,22298.6,3000],
				[23375,22298.6,450]
            ],
            _group,
			_vehicle0
            
        ] call DMS_fnc_SpawnAIVehicle;
		

_veh1 = [
            [
                [23472.6,22312.5,0] 
            ],
           _group,
           _vehicle1
        ] call DMS_fnc_SpawnAIVehicle;

 
_veh2 = [
            [
                [23248,22023.3,0] 
            ],
            _group,
            _vehicle2
        ] call DMS_fnc_SpawnAIVehicle;


_veh3 = [
            [
                [22971,22419.4,3500],
				 [22971,22419.4,750]
            ],
           _group,
            _vehicle3
        ] call DMS_fnc_SpawnAIVehicle;


_veh4 = [
            [
               [22747,23185.4,14.087] // Using just one location will make the vehicle stay put unless engaged.
            ],
            _group,
            _vehicle4
        ] call DMS_fnc_SpawnAIVehicle;

		_vehicle5 = "HAFM_Admiral"; // Class name of vehicle *Change This*
_veh5 = [
            [
               [23017.3,22712,8.41934] // Using just one location will make the vehicle stay put unless engaged.
            ],
            _group,
            _vehicle5
        ] call DMS_fnc_SpawnAIVehicle;
		
		_vehicle6 = "HAFM_Russen"; // Class name of vehicle *Change This*
		_veh6 = [
            [
               [23475.2,22768.3,6.68716] // Using just one location will make the vehicle stay put unless engaged.
            ],
            _group,
           _vehicle6
        ] call DMS_fnc_SpawnAIVehicle;
		
		
		 // Class name of vehicle *Change This*
		_veh7 = [
            [
               [23752.8,21327.3,13.329] // Using just one location will make the vehicle stay put unless engaged.
            ],
            _group,
            _vehicle7
        ] call DMS_fnc_SpawnAIVehicle;





// Define the classnames and locations where the crates can spawn (at least 2, since we're spawning 2 crates)
_crateClasses_and_Positions =
[
	[[23258.7,22496.5],"I_CargoNet_01_ammo_F"],
	[[23258.7,22490.5],"I_CargoNet_01_ammo_F"]
];

{
	deleteVehicle (nearestObject _x);		// Make sure to remove any previous crates.
} forEach _crateClasses_and_Positions;

// Shuffle the list
_crateClasses_and_Positions = _crateClasses_and_Positions call ExileClient_util_array_shuffle;


// Create Crates
_crate0 = [_crateClasses_and_Positions select 0 select 1, _crateClasses_and_Positions select 0 select 0] call DMS_fnc_SpawnCrate;
_crate1 = [_crateClasses_and_Positions select 1 select 1, _crateClasses_and_Positions select 1 select 0] call DMS_fnc_SpawnCrate;

// Disable smoke on the crates so that the players have to search for them >:D
{
	_x setVariable ["DMS_AllowSmoke", true];
} forEach [_crate0,_crate1];





// Define mission-spawned AI Units
_missionAIUnits =
[
	_group 		// We only spawned the single group for this mission
];

// Define the group reinforcements
_groupReinforcementsInfo =
[
	[
		_group,			// pass the group
		[
			[
				120,		// Let's limit number of units instead...
				0
			],
			[
				150,	// Maximum 100 units can be given as reinforcements.
				0
			]
		],
		[
			10,		// About a 4 minute delay between reinforcements.
			diag_tickTime
		],
		_AISoldierSpawnLocations,
		"random",
		_difficulty,
		_side,
		"reinforce",
		[
			30*3,			// Reinforcements will only trigger if there's fewer than 10 members left in the group
			30*3			// 7 reinforcement units per wave.
		]
	]
];

// Define mission-spawned objects and loot values
_missionObjs =
[
	_staticGuns+[_veh]+[_veh1]+[_veh2]+[_veh3]+[_veh4]+[_veh5]+[_veh6]+[_veh7],			// static gun(s) & AI Vehicles. Note, we don't add the base itself because it already spawns on server start.
	[],
	[[_crate0,[0,0,0]],[_crate1,[10,10,0]]]
];

// Define Mission Start message
_msgStart = ['#FFFF00', "A large group of mercenaries are trying to hide in some slums! They were seen stockpiling multiple crates..."];

// Define Mission Win message
_msgWIN = ['#0080ff',"Convicts have successfully rooted out the mercenaries and claimed the caches for themselves!"];

// Define Mission Lose message
_msgLOSE = ['#FF0000',"The mercenaries got spooked and left..."];

// Define mission name (for map marker and logging)
_missionName = "rig war";

// Create Markers
_markers =
[
	_pos,
	_missionName,
	_difficulty
] call DMS_fnc_CreateMarker;

_circle = _markers select 1;
_circle setMarkerDir 50;
_circle setMarkerSize [1000,1000];


_time = diag_tickTime;

// Parse and add mission info to missions monitor
_added =
[
	_pos,
	[
		[
			"kill",
			_group
		],
		[
			"playerNear",
			[_pos,100]
		]
	],
	_groupReinforcementsInfo,
	[
		_time,
		DMS_StaticMissionTimeOut call DMS_fnc_SelectRandomVal
	],
	_missionAIUnits,
	_missionObjs,
	[_missionName,_msgWIN,_msgLOSE],
	_markers,
	_side,
	_difficulty,
	[]
] call DMS_fnc_AddMissionToMonitor_Static;

// Check to see if it was added correctly, otherwise delete the stuff
if !(_added) exitWith
{
	diag_log format ["DMS ERROR :: Attempt to set up mission %1 with invalid parameters for DMS_fnc_AddMissionToMonitor_Static! Deleting mission objects and resetting DMS_MissionCount.",_missionName];

	_cleanup = [];
	{
		_cleanup pushBack _x;
	} forEach _missionAIUnits;

	_cleanup pushBack ((_missionObjs select 0)+(_missionObjs select 1));

	{
		_cleanup pushBack (_x select 0);
	} foreach (_missionObjs select 2);

	_cleanup call DMS_fnc_CleanUp;


	// Delete the markers directly
	{deleteMarker _x;} forEach _markers;


	// Reset the mission count
	DMS_MissionCount = DMS_MissionCount - 1;
};


// Notify players
[_missionName,_msgStart] call DMS_fnc_BroadcastMissionStatus;



if (DMS_DEBUG) then
{
	(format ["MISSION: (%1) :: Mission #%2 started at %3 with %4 AI units and %5 difficulty at time %6",_missionName,_num,_pos,_AICount,_difficulty,_time]) call DMS_fnc_DebugLog;
};

 

 

Edited by goemon

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

The problem was solved.

_vehicle5 = "HAFM_Admiral";

_vehicle5 = "HAFM_Admiral";

 

It looks exactly the same, but when pasting in notepad ++ it looks like this.

The cause is unknown, but deleting the space after "=" returns to original.

miss.PNG

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
  • 0
6 hours ago, Z80CPU said:

Hello @goemon,

 

Use/Try this:

 

:)

 

Thank you very much.
I tried it but there was no mistake.
I did not know what caused it, and I slept only 8 hours last night.

キャプチャ.PNG

Share this post


Link to post
Share on other sites
  • 0

That's good!  It seems that your response was not there when I made mine...but the 'checker' is still a good thing to have, it can save you HOURS.  ;)

Glad it is working!

:)

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.