Jump to content

[Release] 2.1 Plot Management - UPDATED Object Counter


Zupa

Recommended Posts

ok i made a couple little tiny changes.. if this doesnt work then I think it migth be in the banking system that might be causing some issues and i dont use the banking system so i dont know much about it. 

 

  Reveal hidden contents

Link to comment
Share on other sites

Ok for

STEP 3 (Modifying compiles.sqf)
Add

/*Plot*/
PlotGetFriends      = compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";
PlotNearbyHumans    = compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";
PlotAddFriend       = compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";
PlotRemoveFriend    = compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";
/*Plot End*/

It did not show my name or players near me so I moved it to my fn_selfActions.sqf and it worked i can see my name and other players near but even if i add it my Compiles or my fn_selfActions

 

players can't upgrade walls , doors...etc

 

i went to my RPT to see if there is an error but could not find any errors

I also added my self to the plot and killed myself to see if it works and yes i can build but i lost the ability to upgrade walls and doors...etc can you help me ?

I'm running Dayz Epoch Chernarus 1.0.5.1

Link to comment
Share on other sites

  On 1/30/2015 at 11:04 PM, Sami said:

Ok for

STEP 3 (Modifying compiles.sqf)

Add

/*Plot*/
PlotGetFriends      = compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";
PlotNearbyHumans    = compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";
PlotAddFriend       = compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";
PlotRemoveFriend    = compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";
/*Plot End*/

It did not show my name or players near me so I moved it to my fn_selfActions.sqf and it worked i can see my name and other players near but even if i add it my Compiles or my fn_selfActions

 

players can't upgrade walls , doors...etc

 

i went to my RPT to see if there is an error but could not find any errors

I also added my self to the plot and killed myself to see if it works and yes i can build but i lost the ability to upgrade walls and doors...etc can you help me ?

I'm running Dayz Epoch Chernarus 1.0.5.1

 

 

did you have it like this under the is dedicated

 

 

//Player only
if (!isDedicated) then {
 

 

/*Plot*/
PlotGetFriends = compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";
PlotNearbyHumans = compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";
PlotAddFriend = compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";
PlotRemoveFriend = compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";
/*Plot End*/
BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";
Link to comment
Share on other sites

  On 1/30/2015 at 11:11 PM, lostandcrazy34 said:

 

did you have it like this under the is dedicated

 

 

//Player only
if (!isDedicated) then {
 

 

/*Plot*/
PlotGetFriends = compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";
PlotNearbyHumans = compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";
PlotAddFriend = compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";
PlotRemoveFriend = compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";
/*Plot End*/
BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";

 

I did this

 

//Player only

if (!isDedicated) then {

    "filmic" setToneMappingParams [0.07, 0.31, 0.23, 0.37, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

    /*Plot*/

    PlotGetFriends = compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";

    PlotNearbyHumans = compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";

    PlotAddFriend = compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";

    PlotRemoveFriend = compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";

    /*Plot End*/

    BIS_Effects_Burn =                 compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";

 

 

 

BTW when i want to upgrade it says "Unable to upgrade Plot pole nearby"

post-29244-0-11018500-1422661923_thumb.j

Link to comment
Share on other sites

  On 1/31/2015 at 12:10 AM, lostandcrazy34 said:

what are you mods your using? like snapbuild/plotforlife and so on

 I got Snap Building pro 1.4.1

I got Tow script

I got selfbloodbag

I got paint vehicles

I got service point

I got safe zones

I got anti theft

I got Take clothes v2

 

 
Link to comment
Share on other sites

  On 1/31/2015 at 12:25 AM, lostandcrazy34 said:

ok im working with someone on the same issues and when we get them resolved then I will help by sending you the fixed in the playerbuild, player upgrade and player downgrade files. they have just the snap pro as well and none of the plot for life and stuff so these fixes might help you

ok cool thanks also I might try to delete snap pro to see if it works

Link to comment
Share on other sites

Having an issue whereby players are unable to dismantle stuff like cinder walls, ladders, metal floors, etc where they could before I installed Plot Management. I have gone over the install instructions again and again but can find nothing I have done wrong?

 

Also, the buttons on the Plot Management screen are a little finicky for me? When you select a players name to add them to the Plot Friendlies list, you sometimes have to click the "add" button multiple times to add them or when you click the "add" button it actually moves down the player list once for each button press? 

 

Everything (except not being able to remove buildables) still works, and no errors are shown in the .rpt except one that comes up when you enable the dome feature, but I'm not worried about that for now.

 

Really need the other two problems addressed though. Any ideas Zupa, or anyone else? Please.

 

 

 

 

EDIT : I should note I am NOT using Plot for Life but I AM using Snap Build Pro, Vector Build, Precise Build, ZSC Version 3.0 and other minor mods like Service Points, Zupa's Walking Zombies, etc, etc.  

Link to comment
Share on other sites

  On 1/31/2015 at 12:25 AM, lostandcrazy34 said:

ok im working with someone on the same issues and when we get them resolved then I will help by sending you the fixed in the playerbuild, player upgrade and player downgrade files. they have just the snap pro as well and none of the plot for life and stuff so these fixes might help you

Mite have found something not sure if you have it too. If you try removing the lock off a door it don't come away and you don't have to re-enter your code afterwords, I tried this with both your player_downgrade and my old one both with the same issue. I'm gonna consider removing this part of the plot management code as I can't remove any of the other build able's either

///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 = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["ownerPUID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if ( _playerUID in _allowed && _ownerID in _allowed ) then {  
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_ownerID == _playerUID)then{
                    _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 = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["ownerPUID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if ( _playerUID in _allowed && _ownerID in _allowed) then {
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_ownerID == _playerUID)then{
                    _player_deleteBuild = true;
                };
            };                              
        };      
};

Ok it works now, in your player_buildingDowngrade you have an extra }; on line 60 you mite wanna delete. I removed that ^ bit out of my selfactions and I am able to remove stuff again not sure about friends right now though

Link to comment
Share on other sites

I spent what felt like a life time today trying to help get this working without plot for life and it just doenst like it... I would recommend installing the plot for life/snap pro 2.3x and then do this.. It makes life so much easier..

 

the same goes for the uses for plot for life for admins.. knowing whose safe is whose and whose walls are whose really helps out when it comes to finding dupers and hacker when running a server. I know its saved me a lot of headace and searching and stalking when i can just check my database. 

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...