Jump to content

[Fixed] Animated Crash Spawner 1051


f3cuk

Recommended Posts

 2:23:42 Error in expression <er;
 
if(_show_name) then {
deleteMarker _mdot;
};
};
 
diag_log(format["CRASHSPAW>
 2:23:42   Error position: <_mdot;
};
};
 
diag_log(format["CRASHSPAW>
 2:23:42   Error Undefined variable in expression: _mdot
 2:23:42 File z\addons\dayz_server\modules\animated_crash_spawner.sqf, line 277
 
 
Double checking to make sure I didn't goof.  Noticed it was removed as a private var from the array on the last update.
Link to comment
Share on other sites

i had a problem one time the dynamic crash happen and i got a box that popped out that said weapons config / bin some thing like that this was b4 your updates to the files today i will test the new updates

 

and can we please get Napf cords =] thanks again

 

Since i use the Epoch Hive Tools I just used the map and clicked on a few areas at the edge of the Napf map and made these locations, which could also be done in the editor:

_heliStart = [[176.000,180.000],[20208.0,244.000],[20272.0,14676.0],[20144.0,20116.0],[432.000,20020.0]] call BIS_fnc_selectRandom;
Link to comment
Share on other sites

Thankz for the updates. 

I love seeing the jets flying around.

quick question for anyone...

Why would we want to use coords and not random ?

I do not have any napf coords set and it works great..

 

You set the coordinates to make sure these helicopters and airplanes don't suddenly just spawn in the middle of the map. It's more realistic for them to start flying outside of where players are. If the coordinates are random, they may just suddenly appear above a players head.

Link to comment
Share on other sites

NAPF coordinates :

 

_heliStart = [[3458.7625, 2924.917],[11147.994, 1516.9348],[14464.443, 2533.0981],[18155.545, 1416.5674],[16951.584, 5436.3516],[16140.807, 12714.08],[14576.426, 14440.467],[8341.2383, 15756.525],[2070.4771, 8910.4111],[16316.533, 17309.357]] call BIS_fnc_selectRandom;

 

Sauerland coordinates :

 

_heliStart = [[3143.7053, 519.72656],[14047.064, 736.25336],[19551.301, 1638.9634],[22871.928, 3194.9937],[3216.1506, 8066.9844],[15430.821, 7462.8496],[22722.418, 8578.207],[3399.9622, 13945.776],[16220.508, 14363.767],[10220.176, 18679.586]] call BIS_fnc_selectRandom;

 

Panthera coordinates :

 

_heliStart = [[2354.8118, 2898.7732],[6441.2544, 604.39148],[5837.6265, 3852.1699],[3434.9966, 7324.9521],[1250.1727, 8301.4199],[6353.0869, 5563.6592],[3011.1584, 4440.96],[4967.9551, 6376.479],[8340.8125, 4563.1436],[4582.7534, 2080.5737]] call BIS_fnc_selectRandom;
Link to comment
Share on other sites

Hi

 

Good script, its working for me but i have one single problem with that.

When the heli or plane is crashed, no loot spawns.

 

Can anybody help me to fix that ?

 

Rpt:

17:34:51 "CRASHSPAWNER: Su-25 just exploded at [4311.85,9840.05,2.51965]!"
17:34:51 "_iClass isNil, exiting loot spawn!"
17:34:51 Error in expression <elect _index1;
_itemType  = _itemTypes select _index2;
 
[_itemType select 0, _i>
17:34:51   Error position: <select _index2;
 
[_itemType select 0, _i>
17:34:51   Error Zero divisor
17:34:51 File z\addons\dayz_server\modules\animated_crash_spawner.sqf, line 255
Link to comment
Share on other sites

If you are using custom loot tables please make sure all the used loot tables in this add-on (MilitrySpecial, Hospital, HeliCrash) are defined and got items in them. If you are unsure, please post your custom tables.

Link to comment
Share on other sites

Yes, i was checking my loottables and everything is defined correctly.

 

I was calling the creator of this script (Finest). He tolds me I should change

_index2  = _weights select _index1;

to

_pos  = _weights select _index1;

around line 255 in animated_crash_spawner.sqf

Dont can believe that this should working but i try it...

 

What further information do you need to help me ?  :(

 

 

EDIT:

Doesnt matter if changing _index2 to _pos, the error is the same.

Iam really sure the reason are the 2 lines:

_itemType  = _itemTypes select _index2; 
[_itemType select 0, _itemType select 1, _lootPos, 5] call spawn_loot;
Link to comment
Share on other sites

Ok, this problem will going deep.... 

 

Let me explain:

 

I use the 1.0.4.2 tables because i have modified zombie KI´s. With the zombie files of 1.0.5.1 i dont can get my changes running (and there are many changes, started with Walking Dead etc).

If i use the 1.0.5.1 loottables the zombie system and the loot spawn system doesnt work. And if i use the 1.0.5.1 zombie system, i dont can get my changes running...

 

The actual state of my files is great, so the server runs with no error and iam happy, can u show me the parts in the table, which are related to the crash spawn problem?

Perhaps i can get this running with my chaotic files ;)

Link to comment
Share on other sites

Try changing

 

_itemTypes = [] + getArray(missionConfigFile >> "CfgBuildingLoot" >> _lootTable >> "lootType");

 

To

 

_itemTypes = [] + getArray(missionConfigFile >> "CfgBuildingLoot" >> _lootTable >> "itemType");

--

P.S. Next time you might wanna start of with telling stuff like this lol
Link to comment
Share on other sites

Hey, this is superb! But like usual I have a request...

Is it possible to make these side missions a little tougher by only showing the marker to players equipped with a radio and GPS?

Is it also possible to add a line or two to an existing custom debug monitor if the same conditions are satisfied?

Link to comment
Share on other sites

Hey man, seems simple enough but i don't think it is. Good news is that i'm actually looking into redoing the markers for WAI and when i get that sorted it should be able to make it work with this one.

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
  • Advertisement
×
×
  • Create New...