Jump to content

Sundowner

Member
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Sundowner

  1. Giving out my custom ai alert sound to all the hard working server owners out there!

    I can't upload ogg sound so email me at ambientwaves and I'll send it to you.

    To use it with WAI Radio announcements, just replace radio.ogg with mine.

    See pic for it's location in my setup (GTX server).

    Please let me know if you like and use it!

    If you would like some other kind of custom voice-over like this let me know and I can probably do it for you :)

    2016-09-20 23_45_47-Radio.png

  2. On 19/1/2016 at 7:30 AM, theduke said:

    sprry to hear vilayer is treating you like the treat the rest lol.  Id recommend host havoc. You could transfer everything over and the prices are cheaper.

    Thx for your suggestion. I looked at them but I don't see any hosting options for Arma2 DayZ Epoch.

  3. Hi x,

    PBO Manager v1.4 works fine on my Win 10 x64. I probably installed it with admin rights.56934b5140bb0_PBOManagerWorking.thumb.jp

    I have some time to help with your mods because my 1-year old server has been offline for nearly a month now thanks to zero vilayer support :/

    I had over 20 mods in my server and I had tweaked most of them.

    I have been coding as a hobby for some 30 years.

    Cheers, Sun

  4. 23 hours ago, Bricktop said:

    How do I remove the restriction "cannot build in a city" ?

    I remove this restriction in my player_build.sqf (for my admins)

    Around line 600 find this and comment it all out like this:

            //No building in trader zones
            //if (!canbuild) then {
            //    _cancel = true;
            //    _reason = "Cannot build in a city.";
            //};

    There may be other places where canbuild is set to false but I think this is the main one.

  5. Raymix, many thanks for your great contributions to a great game!

    Just a side note on showing/hiding the Snap Pro Tutorial:

    If you DO want the Tutorial to be shown, you should NOT put

    snapTutorial = true;

    in your init.sqf as it will disable the tutorial. The test is for NIL, not true or false.

    (See snap_build.sqf around line 182: if (isNil "snapTutorial") then { ...

     
     
     
  6. Hello to all, I get this error in RPT. I have checked the code many times :(

    Error in expression <jNull,objNull,objNull,objNull];
    {player removeAction _x} count s_player_parts;s_>
      Error position: <removeAction _x} count s_player_parts;s_>
      Error Type Nothing, expected Bool
    File fn_selfActions.sqf, line 885

    Can anyone see the cause of this error?

     
     
     
     
     
     
     
     
     
  7.  

    Hello everyone!

    I am getting this error with 2.35 and 2.5

    From fn_check_owner.sqf:

     

    if (_ownerUID == _objectOwner) then {
      _owner = true;
    };

    if (_ownerUID == _ObjectOwner) then {
    _owner = true;
    }>
      Error position: <== _ObjectOwner) then {
    _owner = true;
    }>
      Error ==: Type Array, expected Number,String,Object,Side,Group,Text,Config entry,Display (dialog),Control,Team member,Task,Location
    File mpmissions\__CUR_MP.Napf\custom\A_Plot_for_Life\compile\fn_check_owner.sqf, line 20
    

    I have Striker's Build Vectors 1.4.1 + Snap Pro

     

    This error is a real showstopper :( I cannot open the server to my many regulars.

    I am happy to pay for any help resolving this error! (paypal)

    After 2 days looking at all the code I can not see the problem :(

     

     
     
  8. I am trying to call a generic base protection script from a sensor in mission.sqm but cannot get the params working.

     

    Exerpt from mission.sqm:

    // Sun base


    class Item10
    {
    position[]={10625,30,9182};
    a=50;
    b=50;
    activationBy="WEST";
    repeating=1;
    interruptable=1;
    age="UNKNOWN";
    name="base_generic";
    expCond="(vehicle player) in thislist;";
    expActiv="base_generic = ['Sun',['123456789']] execVM ""markers\base_generic.sqf"";";
    expDesactiv="terminate base_generic; titleText [""You left the base."", ""PLAIN DOWN"", 5];";
    class Effects{};
    };

    It seems expActive is not calling base_generic.sqf

     

    Target sqf:

    //Base Protection by Sun (based on code by ZSquad)
    //private["_c","_ownerName","_owners","_owner","_visitorUID"]; //is this required?

    _c = count _this;
    if(_c < 1) exitWith { cutText[format["Base_Generic Error: _this params count = %1,_c],5]; };

    _ownerName = _this select 0;
    _owners = _this select 1;
    _owner = _owners select 0;

    _visitorUID = getPlayerUID player;

    //Default
    _canEnter = false;

    titleText [format["SCANNING RETINA: %1", _ownerName], "PLAIN", 5];
    sleep 5;

    if (_visitorUID in _owners) then { _canEnter = true; };

    // friendly to owner?
    if(_visitorUID != _owner) then
    {
    _friendlies = _visitorUID getVariable ["friendlyTo",[]];
    if(_owner in _friendlies) then {
    _canEnter = true;
    };
    };

    //Is Admin?
    if (_visitorUID in FastBuilding) then { _canEnter = true; };
    sleep 5;

    if (_canEnter) exitWith {
    titleText [format ["Access Granted: %1", name player], "PLAIN", 10];
    };

    // Access denied to all others
    titleText ["RESTRICTED AREA - NO ACCESS!", "PLAIN", 5];
    sleep 5;
    titleText ["YOU HAVE 15 SECONDS TO LEAVE!", "PLAIN", 5];
    sleep 5;
    titleText ["YOU HAVE 10 SECONDS TO LEAVE!", "PLAIN", 5];
    sleep 5;
    titleText ["YOU HAVE 5 SECONDS TO LEAVE!", "PLAIN", 5];
    sleep 5;
    titleText ["REST IN PEACE...", "PLAIN", 5];
    sleep 2;

    player setPos[16492,18312,0]; // PVP Island 1

     

    Thx in advance for looking at this!

    Any thoughts?

     

    @nedfox: folders should be correct, it's all client-side relative to root (vilayercustomcode folder). I already have working player-specific files in there.

     

    The point of my efforts here is to get a generic routine working so I don't have to make a specific .sqf for every new player base with UID's etc.

     

    @KiloSwiss: I have looked at triggers for other purposes but I'm not that advanced.

     

    I suspect -

    1/ the params need to be double or triple quoted? or

    2/ the mission.sqf was never intended to pass params in this way.

     

    UPDATE: At last I found the error - double quotes in the right places did it. Thx for input guys.

×
×
  • Create New...