Jump to content

[Developing] Anomalies v0.1


Spodermayt

Recommended Posts

So editing the coords will be liek this

 

case 0: {["BalottaAirstrip",1.5,4829.9868,2450.1104]};

 

to this

 

ParaisoCity1

10558.7,9575.59,0.0382309

 

case 0: {["ParaisoCity1",1.5,10558.7,9575.59,0.0382309]};

 

ParisoCity2

10689.6,9502.97,0.00149536

 

case 0: {["ParaisoCity2",1.5,10689.6,9502.97,0.00149536]};

 

or do i have to replace the 1.5 also just i noticed the 1.5 is on all the locations

Let me explain clearly, First the case, its like 1-2-3-4... Its so the random selector can pick a city. Then comes the city name, the 1.5 is only the height. And 1.5 is enough. It goes like Z.X.Y. When you place an item in the editor the coordinates are XYZ. Its about as easy as it gets ;)

Link to comment
Share on other sites

Thank you Spodermayt your Changes now work, in the RPT log i see "Anomalies successfully loaded" now I will test whether you can hear it too =)

 

I'm really looking forward to more features, for now many thanks for the help.
 
I´m now waiting on the further development =)
Link to comment
Share on other sites

Hello me again, i get a new error inside the RPT log

 

11:51:15 "REMOVED SIREN AT: any | any"


11:51:15 Error in expression <;
_siren = createVehicle ["HeliHEmpty",position _coords,[], 0, "NONE"];
_siren >
11:51:15   Error position: <position _coords,[], 0, "NONE"];
_siren >
11:51:15   Error position: Type Array, expected Object,Location
11:51:15 File mpmissions\__cur_mp.chernarus\custom\anomalies\maps\cherno_siren.sqf, line 63
11:51:15 Error in expression <y,_coords];
};
sleep 900;
deletevehicle _siren;
diag_log format ["REMOVED SIREN >
11:51:15   Error position: <_siren;
diag_log format ["REMOVED SIREN >
11:51:15   Error Undefined variable in expression: _siren
11:51:15 File mpmissions\__cur_mp.chernarus\custom\anomalies\maps\cherno_siren.sqf, line 68

 

How it could be fixed?

Link to comment
Share on other sites

Hello me again, i get a new error inside the RPT log

 

11:51:15 "REMOVED SIREN AT: any | any"

11:51:15 Error in expression <;

_siren = createVehicle ["HeliHEmpty",position _coords,[], 0, "NONE"];

_siren >

11:51:15   Error position: <position _coords,[], 0, "NONE"];

_siren >

11:51:15   Error position: Type Array, expected Object,Location

11:51:15 File mpmissions\__cur_mp.chernarus\custom\anomalies\maps\cherno_siren.sqf, line 63

11:51:15 Error in expression <y,_coords];

};

sleep 900;

deletevehicle _siren;

diag_log format ["REMOVED SIREN >

11:51:15   Error position: <_siren;

diag_log format ["REMOVED SIREN >

11:51:15   Error Undefined variable in expression: _siren

11:51:15 File mpmissions\__cur_mp.chernarus\custom\anomalies\maps\cherno_siren.sqf, line 68

 

How it could be fixed?

You messed the coordinates somehow. Every line should be like this:

case 0: {["Cherno",1.5,4829.9868,2450.1104]};
case 1: {["Balota",1.5,4129.6238,4650.2124]}; //<These are not real locations. Dont copy from here>
...
First is "Cherno" <- City/place's name.
Second is the 1.5 this is the height
Third is Y
Fourth is X

The coordinates you get in your editor are YXZ.
you flip the values so its ZYX

You can read the RPT on your own too,

11:51:15 "REMOVED SIREN AT: any | any" <- Any | Any So location is given incorrectly or is missing.
11:51:15 Error in expression <;
_siren = createVehicle ["HeliHEmpty",position _coords,[], 0, "NONE"];
_siren >
11:51:15   Error position: <position _coords,[], 0, "NONE"];
_siren >
11:51:15   Error position: Type Array, expected Object,Location
11:51:15 File mpmissions\__cur_mp.chernarus\custom\anomalies\maps\cherno_siren.sqf, line 63
11:51:15 Error in expression <y,_coords]; <- We can see that you have probably misplaced something.
};
sleep 900;
deletevehicle _siren;
diag_log format ["REMOVED SIREN >
11:51:15   Error position: <_siren;
diag_log format ["REMOVED SIREN >
11:51:15   Error Undefined variable in expression: _siren
11:51:15 File mpmissions\__cur_mp.chernarus\custom\anomalies\maps\cherno_siren.sqf, line 68
So just fix the coordinates. Undefined variable in _siren is the _coords, because you have placed the location wrong, so the script can't make the coordinates out.

Hope this helps! :)

Link to comment
Share on other sites

I want to change the sound of the siren ,on the sound of Namalsk , ambient sound file that has children shouting and stuf)

A big problem with doing that is the size of the file, CfgSounds will not allow you to use a file over 500kb, since that particular file you are talking about is I almost 2 megs, you'd either have to create a CfgMusic which would override the music that is played on the server by default thus increasing the size of your mission pbo or use a tool like audacity and cut out the last quarter of that file where the little girl screams for help and fade into the music and then fade out and save it as a ogg file while keeping the file under 500kb. I actually did that once myself with that exact file and wasn't satisfied with how it turned out so I decided against it. But give it a go, you might like it.

Link to comment
Share on other sites

@Spodermayt: i thought in your "cherno_siren.sqf" are already the right coordinates, i don´t changed anything in this .sqf File, below the sqf i´m using, it is the original content.

 

REPEATSIREN = {


_randdist = floor(random 2000);
_sounddist = (1000 + _randdist);
_selectSpot=floor(random 49);
_loc=
switch (_selectSpot) do {
case 0: {["BalottaAirstrip",1.5,4829.9868,2450.1104]};
case 1: {["Berenzino",1.5,12954.624,9783.1533]};
case 2: {["Berezino2",1.5,12043.963,9091.3477]};
case 3: {["BlackMountain",1.5,10276.416,12049.6640]};
case 4: {["Bor",1.5,3320.1643,3938.3496]};
case 5: {["Cherno",1.5,6743.8853,2581.1865]};
case 6: {["DevilsCastle",1.5,6891.9189,11438.73]};
case 7: {["DonsCamp",1.5,7788.2856,12613.048]};
case 8: {["Drozhino",1.5,3442.2849,4955.7129]};
case 9: {["Dubrovka",1.5,10445.011,9868.9912]};
case 10: {["Electro",1.5,10480.69,2217.8027]};
case 11: {["Factory",1.5,13060.078,7094.0596]};
case 12: {["Gorka",1.5,9659.084,8795.334]};
case 13: {["Grishno",1.5,5979.6953,10343.341]};
case 14: {["Guglovo",1.5,8517.8682,6676.3276]};
case 15: {["Gvozdno",1.5,8614.4316,11868.967]};
case 16: {["Kabanino",1.5,5318.8369,8602.6328]};
case 17: {["Kamyshovo",1.5,12127.406,3496.2185]};
case 18: {["Khelm",1.5,12290.833,10904.328]};
case 19: {["Komarovo",1.5,3654.0908,2475.9468]};
case 20: {["Kozlovka",1.5,4483.6777,4616.1675]};
case 21: {["Krastonav",1.5,11212.624,12256.609]};
case 22: {["Lopatino",1.5,2780.3135,10018.82]};
case 23: {["Moglievka",1.5,7544.5845,5148.7822]};
case 24: {["Msta",1.5,11275.323,5495.4053]};
case 25: {["Myshkino",1.5,2019.2487,7327.7178]};
case 26: {["Nadezhdino",1.5,5846.4434,4706.708]};
case 27: {["NEAF",1.5,12073.906,12724.305]};
case 28: {["Nizhnoye",1.5,13002.393,8285.8574]};
case 29: {["NovySobor",1.5,7074.4854,7683.4883]};
case 30: {["NWAF",1.5,4480.0781,10375.544]};
case 31: {["Orlovets",1.5,12146.174,7266.5801]};
case 32: {["Pavlovo",1.5,1693.9392,3845.0657]};
case 33: {["Petrovka",1.5,5014.1143,12493.039]};
case 34: {["Pogorevka",1.5,4473.5957,6411.3198]};
case 35: {["Polana",1.5,10753.393,8132.6606]};
case 36: {["Prigorodki",1.5,7976.5557,3299.5386]};
case 37: {["Pulkovo",1.5,4915.0903,5605.6401]};
case 38: {["Pusta",1.5,9156.2549,3897.7598]};
case 39: {["Pustoshka",1.5,3072.9629,7945.4404]};
case 40: {["Rogovo",1.5,4808.0024,6805.0518]};
case 41: {["Shakhovka",1.5,9654.5244,6555.2583]};
case 42: {["Solnichny",1.5,13454.279,6233.647]};
case 43: {["Soosnovka",1.5,2528.7561,6354.9839]};
case 44: {["Staroye",1.5,10140.659,5434.4302]};
case 45: {["StarySobor",1.5,6143.6167,7721.5176]};
case 46: {["Tulga",1.5,12803.296,4450.7466]};
case 47: {["Vybor",1.5,3815.0635,8865.0938]};
case 48: {["Vyshnoye",1.5,6590.3159,6029.1128]};
case 49: {["Zelenogorsk",1.5,2758.7144,5304.3457]};
};
_city = _loc select 0;
_z = _loc select 1;
_x = _loc select 2;
_y = _loc select 3;
_coords = [_x,_y,_z]; ////////////////////////////////////////////////does this need spaces?
_siren = createVehicle ["HeliHEmpty",position _coords,[], 0, "NONE"];
_siren say ["siren",_sounddist];
diag_log format ["SOUNDING SIREN AT: %1 | %2",_city,_coords];
};
sleep 900;
deletevehicle _siren;
diag_log format ["REMOVED SIREN AT: %1 | %2",_city,_coords];
call REPEATSIREN;

Link to comment
Share on other sites

@Spodermayt: i thought in your "cherno_siren.sqf" are already the right coordinates, i don´t changed anything in this .sqf File, below the sqf i´m using, it is the original content.

 

REPEATSIREN = {

_randdist = floor(random 2000);

_sounddist = (1000 + _randdist);

_selectSpot=floor(random 49);

_loc=

switch (_selectSpot) do {

case 0: {["BalottaAirstrip",1.5,4829.9868,2450.1104]};

case 1: {["Berenzino",1.5,12954.624,9783.1533]};

case 2: {["Berezino2",1.5,12043.963,9091.3477]};

case 3: {["BlackMountain",1.5,10276.416,12049.6640]};

case 4: {["Bor",1.5,3320.1643,3938.3496]};

case 5: {["Cherno",1.5,6743.8853,2581.1865]};

case 6: {["DevilsCastle",1.5,6891.9189,11438.73]};

case 7: {["DonsCamp",1.5,7788.2856,12613.048]};

case 8: {["Drozhino",1.5,3442.2849,4955.7129]};

case 9: {["Dubrovka",1.5,10445.011,9868.9912]};

case 10: {["Electro",1.5,10480.69,2217.8027]};

case 11: {["Factory",1.5,13060.078,7094.0596]};

case 12: {["Gorka",1.5,9659.084,8795.334]};

case 13: {["Grishno",1.5,5979.6953,10343.341]};

case 14: {["Guglovo",1.5,8517.8682,6676.3276]};

case 15: {["Gvozdno",1.5,8614.4316,11868.967]};

case 16: {["Kabanino",1.5,5318.8369,8602.6328]};

case 17: {["Kamyshovo",1.5,12127.406,3496.2185]};

case 18: {["Khelm",1.5,12290.833,10904.328]};

case 19: {["Komarovo",1.5,3654.0908,2475.9468]};

case 20: {["Kozlovka",1.5,4483.6777,4616.1675]};

case 21: {["Krastonav",1.5,11212.624,12256.609]};

case 22: {["Lopatino",1.5,2780.3135,10018.82]};

case 23: {["Moglievka",1.5,7544.5845,5148.7822]};

case 24: {["Msta",1.5,11275.323,5495.4053]};

case 25: {["Myshkino",1.5,2019.2487,7327.7178]};

case 26: {["Nadezhdino",1.5,5846.4434,4706.708]};

case 27: {["NEAF",1.5,12073.906,12724.305]};

case 28: {["Nizhnoye",1.5,13002.393,8285.8574]};

case 29: {["NovySobor",1.5,7074.4854,7683.4883]};

case 30: {["NWAF",1.5,4480.0781,10375.544]};

case 31: {["Orlovets",1.5,12146.174,7266.5801]};

case 32: {["Pavlovo",1.5,1693.9392,3845.0657]};

case 33: {["Petrovka",1.5,5014.1143,12493.039]};

case 34: {["Pogorevka",1.5,4473.5957,6411.3198]};

case 35: {["Polana",1.5,10753.393,8132.6606]};

case 36: {["Prigorodki",1.5,7976.5557,3299.5386]};

case 37: {["Pulkovo",1.5,4915.0903,5605.6401]};

case 38: {["Pusta",1.5,9156.2549,3897.7598]};

case 39: {["Pustoshka",1.5,3072.9629,7945.4404]};

case 40: {["Rogovo",1.5,4808.0024,6805.0518]};

case 41: {["Shakhovka",1.5,9654.5244,6555.2583]};

case 42: {["Solnichny",1.5,13454.279,6233.647]};

case 43: {["Soosnovka",1.5,2528.7561,6354.9839]};

case 44: {["Staroye",1.5,10140.659,5434.4302]};

case 45: {["StarySobor",1.5,6143.6167,7721.5176]};

case 46: {["Tulga",1.5,12803.296,4450.7466]};

case 47: {["Vybor",1.5,3815.0635,8865.0938]};

case 48: {["Vyshnoye",1.5,6590.3159,6029.1128]};

case 49: {["Zelenogorsk",1.5,2758.7144,5304.3457]};

};

_city = _loc select 0;

_z = _loc select 1;

_x = _loc select 2;

_y = _loc select 3;

_coords = [_x,_y,_z];

_siren = createVehicle ["HeliHEmpty",position _coords,[], 0, "NONE"];

_siren say ["siren",_sounddist];

diag_log format ["SOUNDING SIREN AT: %1 | %2",_city,_coords];

};

sleep 900;

deletevehicle _siren;

diag_log format ["REMOVED SIREN AT: %1 | %2",_city,_coords];

call REPEATSIREN;

Oh lol! Thats the old version. I updated the post with the working one :P HF

Link to comment
Share on other sites

how about an air raid siren then shortly after the world goes either dark or foggy like in Silent Hill with the sound of screaming, children running about/playing, and growling all around you

 

have it a configurable format so we can pick what we want out of a bigger list of options :)_

I would know how to do it... Just that to get dark, you would have to alter the color correction, which looks ugly/or use accelerated time. Even though i love Silent Hill its an awesome movie, i just don't think it belongs to DayZ. It would probably make players just WTF and think is this dayz or silent hill.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Don't know if this ever worked? fresh install.

 

RPT ERRORS:

 

13:13:27 "REMOVED SIREN AT: any | any"
13:13:27 Error in expression <; 
_siren = createVehicle ["HeliHEmpty",position _coords,[], 0, "NONE"];
_siren >
13:13:27   Error position: <position _coords,[], 0, "NONE"];
_siren >
13:13:27   Error position: Type Array, expected Object,Location
13:13:27 File mpmissions\DayZ_Overpoch_1.Chernarus\custom\anomalies\maps\cherno_siren.sqf, line 63
13:13:27 Error in expression <y,_coords];
};
sleep 900;
deletevehicle _siren;
diag_log format ["REMOVED SIREN >
13:13:27   Error position: <_siren;
diag_log format ["REMOVED SIREN >
13:13:27   Error Undefined variable in expression: _siren
13:13:27 File mpmissions\DayZ_Overpoch_1.Chernarus\custom\anomalies\maps\cherno_siren.sqf, line 68

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

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
  • Discord

×
×
  • Create New...