Jump to content
RimBlock

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

Recommended Posts

On 28.5.2016 at 6:07 AM, Daddy Kropp said:

So I have that issue where people can build but not upgrade. Mind sharing what steps you took to fix that?

My problem was that I had more than one fn_selfActions.sqf so looked for the differences in the //upgrade category and changed every difference, so that it looked exactly like the selfAction.sqf from the plot for life folder

Hope that could help you with your problem

Share this post


Link to post
Share on other sites

I wanted to uninstall this, so i completely reset both dayz_server.pbo and my mission file, to the ones i had before i installed this. I also deleted the folders in the root server folder.

My server is now stuck at "Waiting for server to start authentication"

Anybody know how to fix this? Do i need to do more to uninstall it?

Share this post


Link to post
Share on other sites
41 minutes ago, TheCobra said:

I wanted to uninstall this, so i completely reset both dayz_server.pbo and my mission file, to the ones i had before i installed this. I also deleted the folders in the root server folder.

My server is now stuck at "Waiting for server to start authentication"

Anybody know how to fix this? Do i need to do more to uninstall it?

If u install it manually u can uninstall it getting back step by step, but if u copy and paste on a vanilla server, its not so easy.

see in your arma2oaserver.RPT  the errors.

Share this post


Link to post
Share on other sites
4 hours ago, juandayz said:

If u install it manually u can uninstall it getting back step by step, but if u copy and paste on a vanilla server, its not so easy.

see in your arma2oaserver.RPT  the errors.

I did uninstall it by undoing everything i had done. The only thing that worked was wiping my entire database. It works now!

Share this post


Link to post
Share on other sites

Hi community!!

 

I have a  small error and I cant seem to nip it in the butt. I am able to build items within my plot pole area. However upgrading them isn't allowed. I get the message, "plot pole nearby". Thanks any help would be great!

Share this post


Link to post
Share on other sites
On 29/07/2015 at 5:59 PM, SmokeyBR said:

found an error on client RPT

if player in combat mode and tries to build something this happens

Spoiler

Error in expression < player_build_getConfig;
 
 
_classname = _itemConfig select 0; 
_classnametmp = _>
  Error position: <_itemConfig select 0; 
_classnametmp = _>
  Error Undefined variable in expression: _itemconfig
File mpmissions\__CUR_MP.Chernarus\dayz_code\actions\modular_build.sqf, line 48

 

 

I had the same problem.  The bug is in player_build_states.sqf.  The script is checking the variable _isFine and expecting Boolean (true or false) but it's returning "Strings".

@RimBlock - The way I saw the true error was to wrap the the "[] call player_build_states;" with a waitUntil control structure.  This brought out the proper error in my RPT as to _isFine should be boolean and not strings.  Please double check because I am admitedly using a modified version of P4L but I'm fairly certain this is a bug in your release.  Correct me if I'm wrong.

To fix it open player_build_states.sqf and change the _isFine variables to Boolean like this:

Spoiler
if(!DZE_ActionInProgress) exitWith {};
//disallow building if these conditions are not met
private ["_isFine","_onLadder","_vehicle","_inVehicle"];

_isFine = true; //define variable to avoid RPT errors
_onLadder =	(getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
_vehicle = vehicle player;
_inVehicle = (_vehicle != player);

if (dayz_isSwimming) exitWith { //end script if player is swimming
	DZE_ActionInProgress = false;
	cutText [localize "str_player_26", "PLAIN DOWN"];
	_isFine = false;
	_isFine
};

if (_inVehicle) exitWith { //end script if player is in vehicle
	DZE_ActionInProgress = false;
	cutText [(localize "str_epoch_player_42"), "PLAIN DOWN"];
	_isFine = false;
	_isFine
};

if (_onLadder) exitWith { //end script if player is climbing on ladder
	DZE_ActionInProgress = false;
	cutText [localize "str_player_21", "PLAIN DOWN"];
	_isFine = false;
	_isFine
};

if (player getVariable["combattimeout", 0] >= time) exitWith { //end script if player is in combat
	DZE_ActionInProgress = false;
	cutText [(localize "str_epoch_player_43"), "PLAIN DOWN"];
	_isFine = false;
	_isFine
};

_isFine //returns string to caller, default is "ok" if conditions were not met

 

Also, however, while debugging this I also found some other nasty, and related, bugs...  

If you pass the player_build_states.sqf  (ie. you aren't swimming or in a vehicle or on a ladder) it gives you the ghost preview of the object you are about to build.  The problem is that once you have the ghost preview, you can mount a vehicle (or go swimming, or climb on a ladder) and the build doesn't get interupted.  It will infact try to build the object and although it wont actually publish the object (it sort of gets frozen during the build) this is a problem if your server supports static weapons (like mine does) because it will not stop you from mounting an unpublished weapon (or vehicle).  So for me this is not good.

So I'm sure there's a better way to fix this but my solution so far is to modify the player_build_publish.sqf to essentially recheck the player's "state".  Like so: (don't forget to ADD the extra variables to the private ["..."]  (variables array).

Spoiler
private ["_passArray","_cancel","_position","_reason","_classnametmp","_classname","_tmpbuilt","_dir","_location","_text","_limit","_isOk","_proceed","_counter","_dis","_sfx","_started","_finished","_animState","_isMedic","_num_removed","_lockable","_combinationDisplay","_combination_1","_combination_2","_combination_3","_combination_4","_combination","_combination_1_Display","_playerUID","_OwnerUID","_toohigh","_isWater","_vehicle","_inVehicle","_onLadder"];

//defines
_cancel = _this select 0;
_position = _this select 1;
_classnametmp = _this select 2;
_isAllowedUnderGround = _this select 3;
_text = _this select 4;
_isPole = _this select 5;
_lockable = _this select 6;
_dir = _this select 7;
_reason = _this select 8;
_requireplot = _this select 9;

_playerUID = [player] call FNC_GetPlayerUID;

_passArray = [];

_isOk = true;
_proceed = false;
_counter = 0;
_location = [0,0,0];

_isWater = dayz_isSwimming;
_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
_onLadder =		(getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_isWater) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_26", "PLAIN DOWN"];};
if (_inVehicle) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_42"), "PLAIN DOWN"];};
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_21", "PLAIN DOWN"];};

//No building on roads unless toggled
if (!DZE_BuildOnRoads) then {
	if (isOnRoad _position) then {
		_cancel = true;
		_reason = "Cannot build on a road.";
	};
};

 

If anyone knows a better way to interupt the build when the player goes swimming, gets on a ladder, or jumps in a vehicle, please let me know! 

Lastly.. OP please try to condense this mod back into player_build.sqf because this is a bit of a mess as many have already commented.  Also as an opinion I think safes, lockboxes, combos etc should not have been changed.. please change it back to normal or give people the option to keep it normal.  Nonetheless great work.  Keep it up =)

Share this post


Link to post
Share on other sites
On 2015/03/03 at 3:34 PM, RimBlock said:

They are all undefined variable errors.

 

Find out in the original files where they should be defined and make sure their initial definitions have been merged.

 

These ones are causing your issues with A Plot for Life

 

Error Undefined variable in expression: dze_aplotforlife

Error Undefined variable in expression: _playeruid

Can you explain how to fix the problem in a bit more depth?

Share this post


Link to post
Share on other sites

Hey :)

I seem to have this mod working fine.. But when i restart my server my plot and the things i build are not getting saved to the database :\ 

Any suggestions ??? 

 

Nevermind got it working fine :) 

 

Great script and fairly easy :)

Share this post


Link to post
Share on other sites
33 minutes ago, EagerBeaver said:

Hey guys :) Me again :P 

Umm how can i shorten the building time..

@ the moment it takes 3 actions to complete building something i would like it shortened to just 1 action.. ( NOT INSTANT BUILD ) 

open your init.sqf and add lines in blue:


MaxVehicleLimit = 1; // Default = 50
MaxDynamicDebris = 50; // Default = 100
dayz_MapArea = 14000; // Default = 10000
dayz_maxLocalZombies = 3; // Default = 30

dayz_paraSpawn = false;

dayz_minpos = -1;
dayz_maxpos = 16000;

DZE_SelfTransfuse = true; // default value
DZE_StaticConstructionCount = 1;

DZE_PlayerZed = false;
DZE_MissionLootTable = true;

dayz_sellDistance_vehicle = 20;
dayz_sellDistance_boat = 30;
dayz_sellDistance_air = 40;

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 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 totis
      Hi
      This is a restriction to vehicle seat according to humanity.
      It may be handy to PVE servers out there.
      Special thanks to Juandayz with his fantastic skills and salival. Both sometimes working unseen for the benefit of this community.
      Step 1.
      Make a new file, Name it veh_hum.sqf with the below contents and put into dayz_epoch/addons folder. If you dont have addons just create one.
      In this example we have a hero superhero and agenthero traders with 20k/40k/60k humanity respectively. Adjust according to your needs.
       
      private ["_vehicle","_inVehicle","_driver","_humanity","_txt"]; while {true} do { _vehicle = vehicle player; _inVehicle = (_vehicle != player); if (_inVehicle) then { _driver = driver (vehicle player); if (({(isPlayer _driver) && (alive _driver)} count (crew _vehicle) > 0)) then { _humanity = _driver getVariable["humanity",0]; if (typeOf _vehicle in DZE_heroHumanity && _humanity <= 20000 || (typeOf _vehicle in DZE_superHeroHumanity && _humanity <= 40000) || (typeOf _vehicle in DZE_agentHumanity && _humanity <= 60000)) then { player action ["getOut", (vehicle player)]; titleText ["","WHITE IN"]; _txt = "<img image='addons\vehicon.paa' /><br/><t size='0.7' color='#ea2828' align='center'>prohibited vehicle</t>"; [_txt, [safezoneX, safezoneW], [0.20 * safezoneH + safezoneY, 0.3 * safezoneH], 2, 0.5] spawn BIS_fnc_dynamicText; }; }; }; sleep 3; };  Step 2: Download this file http://www.mediafire.com/file/bdpt5d96o5cttk3/vehicon.rar
      Unzip and put paa file into addons folder.
      Step 3: Edit your custom variables file    dayz_code/init/variables.sqf
      Put the vehicles you want to restrict below call dayz_resetselfactions; ike this:
      // Custom below s_givemoney_dialog = -1; s_bank_dialog = -1; s_player_checkWallet = -1; s_bank_dialog1 = -1; s_bank_dialog2 = -1; s_player_copyToKey = -1; s_player_claimVehicle = -1; s_collect_heli = -1; }; call dayz_resetSelfActions; DZE_heroHumanity = ["Mi17_rockets_RU","Mi24_D","UH1Y_DZE"]; DZE_superHeroHumanity = ["Mi24_V","Mi24_P","Ka52"]; DZE_agentHumanity = ["AV8B2","AV8B","A10","F35B"]; DZE_safeVehicle = DZE_heroHumanity + DZE_superHeroHumanity + DZE_agentHumanity +["ParachuteWest","ParachuteC"]; Step 4: Edit your init file to exec the script. Above the   (false,12)execVm.... like below
          [] execVM "addons\veh_hum.sqf";
          //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
      Thats it. Enjoy!
        Hide contents
    • By Kovicson
      Hi Folks!
      I was wondering if theres a way to stop players from removing plot poles that aren't theres?
      Using a toolbox, crowbar and Etool players can remove Plot poles that dont belong to them, anyway to fix and remove that option?
       
      Thanks :)
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...