Jump to content

Mr.Exodus

Member
  • Posts

    45
  • Joined

  • Last visited

Posts posted by Mr.Exodus

  1. So i found this script a while ago, can´t remember who made it. (i think it was a dude called matt).

    Anyway i cant get it to work since its outdatet, if anyone could take a look at the script! Since im kinda lost..

     

    The script should place a marker on the map, when a crashsite is spawned. 

     

     //Heli crash Markers and alert player         

         heliCrash = _pos;
         [heliCrash] execVM "\z\addons\dayz_server\modules\crashmarker.sqf"; //call the spawn marker spawn script
         publicVariable "heliCrash";//not sure if needed but its there :P
     

     

    I place the code in Crash_spawner.sqf right under my:   "diag_log(format["CRASHSPAWNER: Crash completed! Wreck at: %2 - Runtime: %1 Seconds || Distance from calculated POC: %3 meters", round(_endTime), str(getPos _crash), round(_position distance _crash)]); "

     

    And added a new file called crashmarker.sqf, in my modules folder. And added this code;

     

    //CRASH SITE MAP MARKERS AND MESSAGE
         private["_nul"];
         _CrashCoords = _this select 0;
         //create marker at crash site
         _event_marker = createMarker ["HeliCrashsiteMarker", _CrashCoords];
         _event_marker  setMarkerColor "ColorBlue";
         _event_marker  setMarkerShape "ELLIPSE";
         _event_marker  setMarkerBrush "Grid";
         _event_marker  setMarkerSize [175,175];
        _event_marker  setMarkerText "Crash site";
         //DEBUG
         diag_log(format["CRASH MARKER: marker created at %1", _CrashCoords]);
     
         systemChat("A Military unit have been shot down! check your map for location!");
         
    _wait_time = 600; //wait 10 min   
    // Wait
    sleep _wait_time;
    // Clean up marker

     

    deleteMarker _event_marker;

     

    My crashsites are working fine, but still no marks! Thx for the help!

  2. I have been looking though the code and the most makes sense for me. But i just can´t find the place to change the random amount of loot at the missions! :)  I had the "ikea truck mission" and they said that the loot was 44 wood floors, 24 metal floors, and 22 wood garage doors... a bit OP after my meining  :rolleyes:

  3. Well i was using the old version of the EMS, when i had a public server 6months ago! Its a great mission system, and i would highly recommend trying out the EMS 0.3 version, with the fixes from defents post! 

    im going to install it tonight, will turn back with some info about the situation. :)

  4. So i have just been trying out ur "testbranch" version. 

    And its working great! :) Every command i tested worked fine, with no problems!.

    I havent tested "teleport to player,teleport to me, spectate" since im on a test server with pass on. 

     

     

    I had one wierd bug where i deleted a perm vehicle, it kinda just got invis and i where able to get in as driver. which made me stuck in the car, after relogging the problem was gone :)

     

    The only RPT error i got was:

     

    Error in expression <ivate.sqf"
    if ((getPlayerUID player) in AdminList || (getPlayerUID player) in Mo>
    15:01:06   Error position: <AdminList || (getPlayerUID player) in Mo>
    15:01:06   Error Undefined variable in expression: adminlist
    15:01:06 File mpmissions\__cur_mp.Chernarus\admintools\Activate.sqf, line 1
     
    which wasen´t a ingame problem for any of the functions i testet. 
     
    EDIT: not able to make keys for vehicles which have the ID:0
     
    Keep up the good work, its some great tools!
  5. Well i must agree it´s not the best way to say it. 

    But its the true, if u cant manage small server scripts like these then don´t own a server. Its the best for the forums, and for ur players. 

  6. osted 29 December 2013 - 09:34 AM

    prosims, on 28 Dec 2013 - 10:04 PM, said:snapback.png

    Enjoy your trip Fuchs! have a nice hoildays! I have a question.

     

    If I insert these lines (see below) in  dayz_server\compile\server_updateObject.sqf as you say in the description of version 0.2.6 https://github.com/T...-Mission-System

     

    if (_object getVariable "Sarge" == 1) exitWith {};

    if (!_parachuteWest and !(locked _object)) then {
    //if (_objectID == "0" && _uid == "0") then
    if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then

     

    Items which you place in cars, tents, etc are not saved in sql database. The positions of the cars do not save as well. I have to remove these lines in order to get it working back. Any mistake here?

     

    Is it bad if I leave the missiona working without these lines? (I do not understand what these lines are responsible for)

     

    I had the same problem untill i found out that i at first misunderstood the part on how to change the server_updateObject.sqf.

     

    In the install instructions is says:

    Around line 22 look for this:

    {
    diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
    //force fail
    _objectID = "0";
    _uid = "0";
    }; 

    Insert this after it:

    if (_object getVariable "Sarge" == 1) exitWith {};

    if (!_parachuteWest and !(locked _object)) then {
    //if (_objectID == "0" && _uid == "0") then
    if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then

    but actually you only need to insert the line that says: 

    if (_object getVariable "Sarge" == 1) exitWith {};

    Then change the following:

    if (!_parachuteWest and !(locked _object)) then {
        if (_objectID == "0" && _uid == "0") then
        {
            _object_position = getPosATL _object;
        _isNotOk = true;
        };
    };

    to

    if (!_parachuteWest and !(locked _object)) then {
        //if (_objectID == "0" && _uid == "0") then
        if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
        {
            _object_position = getPosATL _object;
        _isNotOk = true;
        };
    };

    Well that atleast fixed the problem for me, so if that's not your problem then i don't know, but atleast i might have helped someone who misunderstood the instructions as i did  :)

     

     

    HERE IS THE LINK FOR THE ORIGINAL POST, ITS MUCH MORE EASY TO READ: 

     

    - Give the guy a like if it helped ;)

     

     

     

    ----------------------------------------------------- I Only Copy and pasted what the Epic guy "ThaThing" wrote in the thread!!!----------------------------------------------------------------------

×
×
  • Create New...