Jump to content
RimBlock

[Release] - A Plot for life v2.5. Keep your buildables on death. Take plot ownership

Recommended Posts

I've got 2.5 version working with Snapping/Precise Build/Vector Build/Door Management but I have to add myself to the plot pole first to build, even if I place it.

 

Is there a way we can have it "automatically" add the person who places the plot pole so they can build right away?

Share this post


Link to post
Share on other sites

something like this:

(not tested!)

if (_tmpbuilt isKindOf "Plastic_Pole_EP1_DZ") then {
	_tmpbuilt setVariable ["plotfriends", [player], true];
	PVDZE_veh_Update = [_tmpbuilt,"gear"];
	publicVariableServer "PVDZE_veh_Update";
	if (isServer) then {
				PVDZE_veh_Update call server_updateObject;
	};
};

must be placed after (the part without setting a code)

publicVariableServer "PVDZE_obj_Publish";

Share this post


Link to post
Share on other sites

im starting to merge all that too cen

 

when it came to plot management and editing player_build, player_upgrade, player_downgrad

 

ive only edit fn_check_owner to this

// Check Ownership by RimBlock (http://epochmod.com/forum/index.php?/user/12612-rimblock/)
 
private ["_player","_object","_playerUID","_ObjectOwner","_owner","_friendlies","_friendly","_return"];
 
_player = _this select 0;
_Object = _this select 1;
_Owner = false;
_friendly = false;
 
_playerUID = [_player] call FNC_GetPlayerUID;
_ObjectOwner = _object getVariable ["ownerPUID","0"];
_friendlies = _nearestPole getVariable ["plotfriends",[]];
_fuid  = [];
{
      _friendUID = _x select 0;
      _fuid  =  _fuid  + [_friendUID];
} forEach _friendlies;
_builder  = getPlayerUID player;
// check if friendly to owner
if(_builder in _fuid) then {
    _canBuildOnPlot = true;
};
 
//_friendlies = _player getVariable ["friendlyTo",[]];
 
if (_playerUID == _ObjectOwner) then {
_owner = true;
};
 
/*if (_ObjectOwner in _friendlies) then {
_friendly = true;
};*/
 
_return = [_owner, _friendly];
_return

 

i kept this and owner does not need to be in friends list of plot management

if (_playerUID == _ObjectOwner) then {
_owner = true;
};

im still testing thou....

Share this post


Link to post
Share on other sites

 

Error in expression <;

} else {


if ((isPlayer _unit) && !(_targetUID in _friendlies)) then {
r_act>
  Error position: <_targetUID in _friendlies)) then {
r_act>
  Error Undefined variable in expression: _targetuid
File mpmissions\__CUR_MP.chernarus\Custom\A_Plot_for_Life\Compile\fn_damageActions.sqf, line 185
Error in expression <nit getVariable ["CharacterID", 0];
if (DZE_APlotforLife) then {
_targetUID = [_>
  Error position: <DZE_APlotforLife) then {
_targetUID = [_>
  Error Undefined variable in expression: dze_aplotforlife
File mpmissions\__CUR_MP.chernarus\Custom\A_Plot_for_Life\Compile\fn_damageActions.sqf, line 91
Error in expression <uild = true;
};
};



if(_isModular && (_playerUID == _ownerID)) then {
if(_hasT>
  Error position: <_playerUID == _ownerID)) then {
if(_hasT>
  Error Undefined variable in expression: _playeruid
File mpmissions\__CUR_MP.chernarus\Custom\actions\fn_selfActions.sqf, line 265
Error in expression < = 	"ItemToolbox" in _itemsPlayer;

if (DZE_APlotforLife) then {
_playerUID = [p>
  Error position: <DZE_APlotforLife) then {
_playerUID = [p>
  Error Undefined variable in expression: dze_aplotforlife
File mpmissions\__CUR_MP.chernarus\Custom\actions\fn_selfActions.sqf, line 163

Error in expression <;

} else {


if ((isPlayer _unit) && !(_targetUID in _friendlies)) then {
r_act>
  Error position: <_targetUID in _friendlies)) then {
r_act>
  Error Undefined variable in expression: _targetuid
File mpmissions\__CUR_MP.chernarus\Custom\A_Plot_for_Life\Compile\fn_damageActions.sqf, line 185
Error in expression <nit getVariable ["CharacterID", 0];
if (DZE_APlotforLife) then {
_targetUID = [_>
  Error position: <DZE_APlotforLife) then {
_targetUID = [_>
  Error Undefined variable in expression: dze_aplotforlife
File mpmissions\__CUR_MP.chernarus\Custom\A_Plot_for_Life\Compile\fn_damageActions.sqf, line 91
Error in expression <uild = true;
};
};


[SPOILER
if(_isModular && (_playerUID == _ownerID)) then {
if(_hasT>
  Error position: <_playerUID == _ownerID)) then {
if(_hasT>
  Error Undefined variable in expression: _playeruid
File mpmissions\__CUR_MP.chernarus\Custom\actions\fn_selfActions.sqf, line 265
Error in expression < = 	"ItemToolbox" in _itemsPlayer;

if (DZE_APlotforLife) then {
_playerUID = [p>
  Error position: <DZE_APlotforLife) then {
_playerUID = [p>
  Error Undefined variable in expression: dze_aplotforlife
File mpmissions\__CUR_MP.chernarus\Custom\actions\fn_selfActions.sqf, line 163
[/SPOILER]

Well, Myself and the staff have been fighting with this for a while now,

We have merged the files and continue to get an error (Spoiler) the Client RPT goes full retard.

Problem(s) as follow

   No Upgrading - "Plot pole with in 30m" Pole must be removed and replaced

   Unlock Safe (No Option)

 

We have installed :

   P4L

   Precision Build

   Vector

   ZSC

 

Everything Else Is just gravy and has no issues. This is Seriously impeding our progress

Any Complete Answers are very welcome.

 

If you are willing to get hands on in EU TZ, Private Message me for contact information.

        Contact methods available - Skype / TeamSpeak 3 / Mumble

        For Compensation with services rendered you need to have an Active PayPal account.

Share this post


Link to post
Share on other sites

Would agree.

 

The key error seems to be 

Error Undefined variable in expression: dze_aplotforlife

To be fair, whilst the install instructions do say

*** Turn on options ***


Turn on A plot for Life (check ownership against SteamID).
DZE_APlotforLife = true;

They do not say where.

 

Put the options lines in the init.sqf file in the mpmissions\[mapname]\ folder or add them to the variables.sqf file.

 

I will amend the instructions when I get a chance this week,

Share this post


Link to post
Share on other sites

They Say if you place enough apes with typewriters in a room, they will eventually type the constitution.

The same can now be said for a Dayz Overpoch Server.

 

I will flog the staff until moral improves (and not the happy flogging kind either)

 

Problem Solved, Thanks Gents o/

Share this post


Link to post
Share on other sites

ya rimblock i ran into the same issue when installing, at first i didnt care to put the variable on init.sqf because i figured it was in variables.sqf, then i came up with the same errors took a second look at variables.sqf and noticed these variables were not in `variables.sqf`

DZE_APlotForLife = true;
DZE_modularBuild = true;

didnt know if you meant it to leave like that

 

Edit:

also could you explain what exactly helperDetach does ? if its not a bother, i took a look at the code but couldnt figure it out. it helps with manual selection when above water ?

Share this post


Link to post
Share on other sites

server owners that have several scripts already implemented, should know how to do this already ...

I would really like to be born with your knowledge.  People have to start somewhere.  Even if i had your brain maybe id be a bit smarter, but then again my EGO would blow up.

 

Only if everyone was smart like you...

Share this post


Link to post
Share on other sites

I would really like to be born with your knowledge.  People have to start somewhere.  Even if i had your brain maybe id be a bit smarter, but then again my EGO would blow up.

 

Only if everyone was smart like you...

 

 

too bad you arent even smart enough to realize this is a 2 months old post ... lol

Share this post


Link to post
Share on other sites

question....redid one of my servers...database wipe - NO other mods,,,plot4life works til server restart - then the plot needs to be uprooted and placed again - cycle starts over...no rpt errors

once laid down player can die 10 times and plot4life works....server restarts then have to start over ? any ideas .... never had this issue in the past  THANKS

 

 

 

sry posted this on plot management...

Share this post


Link to post
Share on other sites

I have this error: Error in expression <then

{
_dir = _worldspace select 0;
if (count (_worldspace select 1) == 3) then >
 2:33:36   Error position: <count (_worldspace select 1) == 3) then >
 2:33:36   Error count: Type String, expected Array,Config entry
 2:33:36 File custom\system\server_monitor.sqf, line 105
 
This is a test server so I am not adding anything new. If I wipe the object_data table the server will restart fine, but as soon as I build anything and restart the server I get the above error.  I am not importing anything from an old server, just simply building something new.  
 
My installed scripts are A Plot for Life 2.5 which includes Precise Base Building and Snap-Pro.  I also have Vectors installed.   
This is an example of what an object in world space looks like:
["355.169647","10999.567383,17277.123047,1.0469246]","76561197960443125",[[-0.084,0.996,0],[0,0,1]]]
 
I really need help with this as I have been digging for an answer and can't find one.

Share this post


Link to post
Share on other sites

In an effort to insure there could be no conflicts with my above problem. I stripped my server down to no mods except for the ones listed above, and after the redo I get the same error and problem!  The server runs fine with just A Plot for Life, but breaks after I add Vectors and build something then restart the server.  The only things in the object_data table are the items I build for testing.  I am sure I am not the only person that has run into this problem!

Share this post


Link to post
Share on other sites

In an effort to insure there could be no conflicts with my above problem. I stripped my server down to no mods except for the ones listed above, and after the redo I get the same error and problem! The server runs fine with just A Plot for Life, but breaks after I add Vectors and build something then restart the server. The only things in the object_data table are the items I build for testing. I am sure I am not the only person that has run into this problem!

There are some posts from the author about the version of p4l you can use with vector. Have you checked that? You can only go up to 2.35 I think from memory.

Also, I use precise with vector and installed that at the same time. So, my advice is if you are on the correct version of p4l, try adding precise and see if that fixes it.

Good luck man.

Share this post


Link to post
Share on other sites

I finally figured it out and will write it here so others like me might avoid long hours of pulling hair.  The problem was in the server_monitor.sqf.  When installing vectors after installing A Plot for Life 2.5 the directions in vectors states:

"Start by opening your **server_monitor.sqf**(Remove anything done from P4L installation) which is located in the system folder and find the following code block"

 

The problem with this statement is there is code that was put in by A Plot for Life that is needed: 


 

if ((typeName (_worldspace select 0)) == "STRING") then {

    _worldspace set [0, call compile (_worldspace select 0)];
    _worldspace set [1, call compile (_worldspace select 1)];};
 
It should look like this: 
_pos = [0,0,0];
_wsDone = false;
if (count _worldspace >= 2) then
{
     if ((typeName (_worldspace select 0)) == "STRING") then {
         _worldspace set [0, call compile (_worldspace select 0)];
         _worldspace set [1, call compile (_worldspace select 1)];
     };
     _dir = _worldspace select 0;
     if (count (_worldspace select 1) == 3) then {
          _pos = _worldspace select 1;
          _wsDone = true;
     }
};
So it should not be said to disregard everything done by A Plot for Life, because if you do that part of the code will be left out and you will get the error I described above.  If you use the server_monitor.sqf file provided by A Plot for Life then be careful when you see the instructions: 
 
Once that is complete, find this next line:
```
_object setVariable ["ObjectID", _idKey, true];
```
And place the following after it:
```
_object setVariable ["ownerPUID", _ownerPUID, true];
```
 
That line is already in the script so if you are not paying attention you will apply the same line twice.

Share this post


Link to post
Share on other sites

Why to install this do I have to replace all my files that I have already edited to add other mods to my server? Is there a tutorial on how to edit my current files so I don't have to reinstall all my other mods?

Share this post


Link to post
Share on other sites

How come nobody gets the option to unlock their safes? Nobody can get access to their safes unless I open them with admin powers.

if it's working correctly they don't need to enter codes anymore as the safe code is saved to their character ID. If they don't get the option to just open it then I guess you have something messed up.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By vbawol
      Open world survival mod set just two years after the mass extinction of billions of people. Those that remain are left with remnants of a once technological society. Try to survive, build, or explore your way through the harsh dynamic environment.
      Features
      Powerful persistence framework for Arma 3 with native Windows and Linux dedicated server support. Fully configurable script based security checks. Base Building re-envisioned for Arma 3 PhysX. Persistent secure and insecure storage devices. Upgradeable locking doors. Barter based economy and trading systems backed a single currency ¤ called "Krypto". Hostile Environment with several different types of antagonists, Air and Water temperature extremes, and Earthquakes. Hunting, Fishing, Tame Dogs, Explore & Loot: Wrecked ships, Abandoned vehicles and buildings, Perform task based missions and more! Open source APL-SA Epoch Survival MP gamemode. Open source APL-SA Modders resource configs and Class List. Assets can be used as a mod dependency on Steam workshop.
    • By McLovin
      NOTICE: Duplicate of another question posted in the wrong section.
       
      So I've been playing this server that has a number of mods installed. I've been playing it for quite a while with the only errors I've been getting are regarding a 45 round RPK mag being missing, but other than that I've had no errors or any issues loading. Upon trying to place a plot pole, nothing happens; absolutely nothing, like no preview shows up, no prompt saying "starting construction" or anything like that, just blankness. When I try to do it again it says "building already in progress" and I can't do anything, not even lock my vehicle. Is there anything that can be done, or that can explain this phenomenon? To further the understanding of how this came to be, I bought a plot pole from the trader in Trader City Stary and tried placing it near Stary, but not too near it (near a thicket of bushes in the distance). Upon right clicking and hitting the build option, that's when I face my issue.
    • By xtrmsnpr
      Hello to all.

      So, the old company from {grof communty} is back,this time away from that clan.We are operating by ourselves and we have opened a new dayz mod epoch server!
      https://steamcommunity.com/groups/kirterpos

      And we want you to join us and have fun!
      It runs 24/7

      Server IP:
      144.76.99.158:2600

      Name:
      Kir Terpos Playground Epoch|DAY/NIGHT|Startkit|Custom events

      Map: Chernarus

      Slots:
      30

      Location:
      Germany


      --------

      In order to join the server, you need to download through DZlauncher these files:

      dayz Epoch 1.0.6.2

      and of course ARMA 2OA beta patch (obsolete) through STEAM.
      and arma2oa beta version from steam options!

      ---------------

      Server will restart every 6hours (no notification yet).
      Server will backup database every 8hours.

      Server has custom random events.
      Server has day/night circle (UTC+6)
      You start with custom gear,ready for PVP with a shiny m9SD and some surprises as well.

      @Sandbird is an extra feature to this server
      ---
      Discord for you:
      https://discord.gg/684KQH

      Welcome all,and we hope you like it.

      kir terpos aka kir menios aka xtrmsnpr
    • By victorks
      my first work in editin :) https://uploaddeimagens.com.br/imagens/20180307202515_1-jpg https://uploaddeimagens.com.br/imagens/20180307202245_1-jpg DOWNLOAD: https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0 AI M2 NEED WAI: https://pastebin.com/GJMnPvZP ON THE MAP: https://pastebin.com/cyqH9rNV  
       
      https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0
       
       
       
       
       
       
       
       
       
    • By UGRexie
      Dayz epoch server 
      Name: Dayz Epoch Tavi -missions-Hardcore-unitedgamers   Connection Info: 193.111.186.225:2302 Map  - Taviana
      List of mods in sever , 
      -Single Coin Currency
      Plot For Life
      Plot Management
      Group Management
      Lift & Tow
      Service points
      Custom start gear
      No weight limit
      Slow zombies
      1 Step build
      Andre Convoys
      Para Spawn
      DZAI 
      Wai Missions
      DZMS Missions
       
      -Our Server is Hardcore ,
      -if you has a idea for a mod ask a admin , 
       
       
      -Server Restart every 4 hours 
      -Admin Teamspeak support, 
        ts- ts3.unitedgamers.eu
      Server Admin - Ask in ts for them if needed,
       [UG]Chieff,[UG]Rexie
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...