Jump to content

[Release] 2.1 Plot Management - UPDATED Object Counter


Zupa

Recommended Posts

Those are loot file errors, nothing to do with Plot Management.

 

Google or search the forums for this : 

Warning Message: No entry 'bin\config.bin/CfgWeapons.'.

As for this : 

Dome does not work and neither does Maintain

You have stuffed up the Plot Management install.

Link to comment
Share on other sites

  On 3/30/2015 at 9:01 PM, Halvhjearne said:

this will always return 0, you cant use an array with nearObjects.

 

That's why i said or not? Read the right above that is standing: "Since something like this wouldn't work:".. But i know it was a long post and i often don't read every single word so don't worry :P

Link to comment
Share on other sites

  On 3/31/2015 at 12:44 PM, UKMartin said:

That's why i said or not? Read the right above that is standing: "Since something like this wouldn't work:".. But i know it was a long post and i often don't read every single word so don't worry :P

 

i posted before it was that long ...  :rolleyes:

 

you can use nearestObjects instead, if you open up the files and look at the code, there will be plenty of examples on how to do this ...

Link to comment
Share on other sites

For those that don't use P4L it seems this fix is now working for me so i offer this up as it may help others that struggled like me. 

No other changes from the install directions are needed. but testing so far seems this seems to work perfectly as long as you remember to add yourself to each plot pole you build before you die. 

 

In fn_selfctions.sqf

  Reveal hidden contents
 if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then {
if (s_player_plotManagement < 0) then {
        _adminList = [""]; // Add admins here if you admins to able to manage all plotpoles
_owner = _cursorTarget getVariable ["CharacterID","0"];
_friends = _cursorTarget getVariable ["plotfriends", []];
_fuid = [];
{
_friendUID = _x select 0;
_fuid = _fuid + [_friendUID];
} forEach _friends;
_allowed = [_owner];    
_allowed = _allowed + _adminList + _fuid;
if(_owner == dayz_characterID || (getPlayerUID player) in _allowed)then{            
s_player_plotManagement = player addAction ["<t color='#0059FF'>Manage Plot</t>", "plotManagement\initPlotManagement.sqf", [], 5, false];
};
};
} else {
    player removeAction s_player_plotManagement;
s_player_plotManagement = -1;
};

 

farther down in fn_selfActions.sqf

  Reveal hidden contents
///Allow owners to delete modulars
if(_isModular) then {
if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
_friends = [];
if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _friends = _thePlot getVariable ["plotfriends", []];
_fuid = [];
{
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
} forEach _friends;
  _allowed = [];    
_allowed = _fuid; 
if ((getPlayerUID player) in _allowed) then {  // // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
   };                  
               };
            };                                        
        };
 
 
//Allow owners to delete modular doors without locks
if(_isModularDoor) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {         
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
_friends = [];
if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _friends = _thePlot getVariable ["plotfriends", []];
_fuid = [];
{
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
} forEach _friends;
  _allowed = [];    
_allowed = _fuid; 
if ((getPlayerUID player) in _allowed) then {  // // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
                };                  
            };                              
        };      
};

Link to comment
Share on other sites

  On 4/1/2015 at 4:33 AM, fobi3s said:

where can i change the default 30m plot radius to 50m?

 

Really?

DZE_PlotPole = [50,100];

In your init.sqf. [50 is the radius of the build area,100 is the distance required to place another plotpole]. You can make these numbers whatever you like.

Link to comment
Share on other sites

Im having some trouble getting the maintenance to work. I click the maintenance tab and nothing happens. Everything else seems to work fine. Im using the maintain_areaSC.sqf because I use soul's coin system. Im all for looking through the threads, and I made a valiant effort.. I got through about ~20 pages before my head exploded... but I didnt see anything related to the maintenance script. So if anyone would be kind enough to point out what Im doing wrong that'd be great!

Link to comment
Share on other sites

Without trying to sound condescending, you do have maintenance enabled on your server, right?

CleanupPlacedAfterDays = 21 
DROP EVENT IF EXISTS `setDamageOnAge`;
DELIMITER ;;
CREATE EVENT `setDamageOnAge` ON SCHEDULE EVERY 1 DAY COMMENT 'This sets damage on a wall so that it can be maintained' DO UPDATE `Object_DATA` SET `Damage`=0.1 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )
;;
DELIMITER ; 

Etc, etc.

 

Sorry man, have to ask :)

Link to comment
Share on other sites

  On 4/5/2015 at 4:55 AM, ElDubya said:

Without trying to sound condescending, you do have maintenance enabled on your server, right?

CleanupPlacedAfterDays = 21 
DROP EVENT IF EXISTS `setDamageOnAge`;
DELIMITER ;;
CREATE EVENT `setDamageOnAge` ON SCHEDULE EVERY 1 DAY COMMENT 'This sets damage on a wall so that it can be maintained' DO UPDATE `Object_DATA` SET `Damage`=0.1 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )
;;
DELIMITER ; 

Etc, etc.

 

Sorry man, have to ask :)

LOL no problem and yes Ive been using this for quite awhile now.just fine. Ive only recently been inspired to add plot management because everyone told me it was working fine.

OLD

  Reveal hidden contents

 

NEW

  Reveal hidden contents

 

EDIT - I do see this in my client RPT

Error Undefined variable in expression: maintainplot
File mpmissions\__CUR_MP.chernarus\plotManagement\initPlotManagement.sqf, line 4
Link to comment
Share on other sites

  On 4/5/2015 at 6:38 AM, ElDubya said:

I use Single Currency 3.0, but the money variable is the same. Here is my maintain_area.sqf for comparison : 

 

http://pastebin.com/RVu6xztq

 

I don't use Plot For Life either. 

they're exactly the same except you've changed your prices and Ive commented out a section that I tried to bring over from my old script. Im stumped.

Link to comment
Share on other sites

  On 4/5/2015 at 7:51 AM, ElDubya said:

 

Do you have these in your compiles? 

MaintainPlot    	= compile preprocessFileLineNumbers "plotManagement\maintain_area.sqf";
PlotPreview    		= compile preprocessFileLineNumbers "plotManagement\plotToggleMarkers.sqf";

HAHAHA thanks man I knew it was something completely dumb. This is why you don't edit scripts at 3AM

Link to comment
Share on other sites

Don´t work for me....

 

Have followed the instructions now for the 10th time. Step by Step checked all files.

 

when i build a PP and add a Friend he can´t build. Only when i tagged him friendly he can build....

 

 

any fix for this or need something?

Link to comment
Share on other sites

Hi everyone,

 

is there a way to restrict players so that they only can have one plot pole? I use Zupa's Plot Pole Management and players who are listed in the Plot Management only should be able to build on this Plot Pole and should not have the opportunity to build a other Plot Pole. Is it possible to configure this?

 

Best regards,

 

GudrunGisela

Link to comment
Share on other sites

  On 4/10/2015 at 2:02 PM, GudrunGisela said:

Hi everyone,

 

is there a way to restrict players so that they only can have one plot pole? I use Zupa's Plot Pole Management and players who are listed in the Plot Management only should be able to build on this Plot Pole and should not have the opportunity to build a other Plot Pole. Is it possible to configure this?

 

Best regards,

 

GudrunGisela

 

it would be a mess and might take some time to run through if you have a lot of plotpoles on your server ... but possible, yes

Link to comment
Share on other sites

I searched in this thread for my problem, but didn't find a solution for it.
 

When I add a friend to the plot he can build, all fine.

But when I remove him again, he's gone from the list, but after a restart he's back in the list. :blink:

Any ideas?

 

Using Single Currency 3.0 from Zupa, Advanced Trading, Snap Pro, Vector & Precise Building so far.

 

Thanks in advance.

Link to comment
Share on other sites

  On 4/11/2015 at 4:25 PM, R0lling said:

 

Don´t work for me....

 

Have followed the instructions now for the 10th time. Step by Step checked all files.

 

when i build a PP and add a Friend he can´t build. Only when i tagged him friendly he can build....

 

 

any fix for this?

 

Here is my Serverlog: http://pastebin.com/8MRp6DG3

 

 

Here is my Clientlog: http://pastebin.com/TZnh4ai1

 

make sure you go through all of the threads and find the fixes people posted

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...