Jump to content

[Release] 2.1 Plot Management - UPDATED Object Counter


Zupa

Recommended Posts

So I've recently moved my server over to a dedicated box and we're just noticing a bit of a problem For some reason, the plot management is not showing that objects need to be maintained. However, the bases are still decaying and being removed.

Here is the database query I use
UPDATE `Object_DATA` SET `Damage`=0.11 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

UPDATE `Object_DATA` SET `Damage`=0.11 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

I noticed my HiveExt.ini had to cleanup commented out.

;CleanupPlacedAfterDays = 14

I also have


DZE_DamageBeforeMaint = 0.11;

in my init.sqf but still no option to maintain. I checked the objects in the database and they definitely should have a maintenance option.

I haven't made any changes to plot management that Im aware of and I never had this issues on my old server.

Any help would be huge thanks!

Link to comment
Share on other sites

Are you sure it has taken damage so that it can be maintained otherwise it will show as 0 parts in range (normally shows after 3 days )

are you able to see and use other feature like add friends to plot (If not check infistar and white list IDD)

Try to maintain without plot management just to see the cuz of it 

 

Link to comment
Share on other sites

  On 5/15/2016 at 2:48 AM, Akku14 said:

Are you sure it has taken damage so that it can be maintained otherwise it will show as 0 parts in range (normally shows after 3 days )

are you able to see and use other feature like add friends to plot (If not check infistar and white list IDD)

Try to maintain without plot management just to see the cuz of it 

 

Expand  

Yes it seems that my database events aren't running.. they're scheduled to run but just aren't. Any ideas? I can run them manually as queries but they scheduled events aren't running.

Link to comment
Share on other sites

  On 5/15/2016 at 11:58 AM, DangerRuss said:

Yes it seems that my database events aren't running.. they're scheduled to run but just aren't. Any ideas? I can run them manually as queries but they scheduled events aren't running.

Expand  

Just copy the event 

/* Set Damage on all other objects */
UPDATE `Object_DATA`
SET `Damage`=0.2
WHERE `ObjectUID` <> 0
AND `CharacterID` <> 0
AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY)
AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') );

Run it as SQl query  restart server and see if does sets the damage make correction in events then 

Link to comment
Share on other sites

Script is working fine. But since the install, players do not get the "check wallet" option on dead players/ ai. 

I'm using the Zupa SC with Souls 2.0 found here http://epochmod.com/forum/topic/17675-release-single-currency-souls-20-with-fixes-all-in-one-and-more-v05/

I installed Plot for Life from here : http://epochmod.com/forum/topic/11042-release-a-plot-for-life-v25-keep-your-buildables-on-death-take-plot-ownership/

I do not see any errors in the server .rpt, in the client.rpt I am finding

Error in expression <;
call PlotGetFriends;
["preview"] call MaintainPlot;
call PlotObjects;
>
  Error position: <MaintainPlot;
call PlotObjects;
>
  Error Undefined variable in expression: maintainplot
File mpmissions\__CUR_MP.Chernarus\plotManagement\initPlotManagement.sqf, line 4

 

Any Ideas what could have caused that to disappear?

Link to comment
Share on other sites

  On 5/25/2016 at 10:47 PM, Daddy Kropp said:

Script is working fine. But since the install, players do not get the "check wallet" option on dead players/ ai. 

I'm using the Zupa SC with Souls 2.0 found here http://epochmod.com/forum/topic/17675-release-single-currency-souls-20-with-fixes-all-in-one-and-more-v05/

I installed Plot for Life from here : http://epochmod.com/forum/topic/11042-release-a-plot-for-life-v25-keep-your-buildables-on-death-take-plot-ownership/

I do not see any errors in the server .rpt, in the client.rpt I am finding

Error in expression <;
call PlotGetFriends;
["preview"] call MaintainPlot;
call PlotObjects;
>
  Error position: <MaintainPlot;
call PlotObjects;
>
  Error Undefined variable in expression: maintainplot
File mpmissions\__CUR_MP.Chernarus\plotManagement\initPlotManagement.sqf, line 4

 

Any Ideas what could have caused that to disappear?

Expand  

 

The function is never 'MaintainPlot' defined.  Check if it excists in your compiles i think? ( been too long to know by head where it is compiled).

ABout the wallet. That means you deleted it out of the fn_selfactions file and should readd it. Compare the files to see where it went away.

Link to comment
Share on other sites

  On 6/1/2016 at 7:57 PM, V1ruz said:

Getting a Resource plotmanagement not found can't seem to figure out why. only getting it on the menu when i click on it. doesn't show friends or anything.

 

 

Expand  

 

you didn't add the define file call to description.ext or haven't put the file in properly

Link to comment
Share on other sites

  • 5 weeks later...

*****FOR PLAYERS WITH ISSUES ABOUT INSTALL GUIDE*************

 

***NON Plot4 life***

**IF YOU DONT HAVE CUSTOM COMPILES-VARIABLES-FN_SELFACTIONS.sqf

  Reveal hidden contents

 

*Steps 1 & 2 same as zupa´s guide.

  Reveal hidden contents

*STEP 3:

into  compiles.sqf:
Add lines in blue bellow : if (!isDedicated) then {

  Reveal hidden contents

*Step 4: same as zupa´s guide.

  Reveal hidden contents

*Step 5 A & B  same as Zupa´s guide:

  Reveal hidden contents

*Step 5-C //Out of the Zupa´s Guide. (taked from a post of @ElDubya) //this is for players who have problems to remove modulars.
Find

  Reveal hidden contents

Replace with :

  Reveal hidden contents

***Note: if u wanna remove the default maintain in red...  delete this part.

  Reveal hidden contents

**Step 5 D: same as zupa´s guide.

  Reveal hidden contents

**Step 5 E. (out of Zupa´s guide)

Zupa´s say : "Remember to change the paths to any files you've moved to your mission folder!"

thats means you need copy from  @Dayz_Epoch\addons\dayz_code\actions\ this files:

  Reveal hidden contents
onces you make this copy and paste into for example : MPMISSIONS\YOUR INSTANCE\plotManagement\ 

go to your Custom fn_selfActions.sqf and find :

  Reveal hidden contents

to change paths like  lines in blue:

  Reveal hidden contents

for player_build.sqf   if u have snap pro, you have this call in your CUSTOM compiles.sqf

  Reveal hidden contents

***if u dont have snap pro, then copy and paste a player_build from  @Dayz_Epoch\addons\dayz_code\actions\ in "plotManagement" folder and into your custom compiles.sqf paste this lines in blue.

  Reveal hidden contents

 

**Step 6 As Zupa´s guide.

  Reveal hidden contents

**STEP 7 as Zupa´s say:

  Reveal hidden contents

**for step 7: this chnges goes into the recent copied and pasted files. for this example the files are located into plotManagement folder-

*STEP 8 A as zupa´s guide but: (_intentory must be _inventory) // (just copy and paste i change it for you)

  Reveal hidden contents

*STEP -8 B as Zupa´s guide but: (_intentory must be _inventory) // (just copy and paste i change it for you)

 

  Reveal hidden contents

 

*****Change all words called intentory by inventory into server_monitor.sqf

**NOTE: Take care about server_monitor.sqf  some others mods uses it outside from dayz_server.pbo  if ure not shure.. go to your init.sqf and find:

  Reveal hidden contents

** and remember repack the pbo if u have into.

**STEP 9: As Zupa´s guide:

  Reveal hidden contents

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

**if u have problems with objet counter then  (taked from @BigEgg post)

open plotObjects.sqf  located in plotManagement folder and.

replace:

_range = DZE_PlotPole select 0;
_count = count ((getPosATL player) nearObjects ["All",_range]);

for

_range = DZE_PlotPole select 0;
_cptarget = player;
_objectClasses = DZE_maintainClasses;
_objects = nearestObjects [_cptarget, _objectClasses, _range];
 
_objectsnearcount = count _objects;
_count = _objectsnearcount;

 

***in your custom variables.sqf  you can find and change:

if(isNil "DZE_DamageBeforeMaint") then {
    DZE_DamageBeforeMaint = 0.9;
};

for

if(isNil "DZE_DamageBeforeMaint") then {
    DZE_DamageBeforeMaint = 0.1; //or 0 to get maintain option all time.
};

 

***into your serverroot/instance_11.chernarus or other/  find and open your HiveExt.ini

change this line:

  Reveal hidden contents

**and remember sql damageonage events.

Link to comment
Share on other sites

  On 7/1/2016 at 7:01 PM, juandayz said:

_inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object ];

Expand  

i can´t find this line in my server_updateObject.sqf.

and if i try to place it inside it just gives me an error in my RPT.

Also it only shows as humans nearb only me and the id´s don´t get saved into db.

thanks in advance

Link to comment
Share on other sites

  On 7/2/2016 at 2:06 PM, Cherdenko said:

i can´t find this line in my server_updateObject.sqf.

and if i try to place it inside it just gives me an error in my RPT.

Also it only shows as humans nearb only me and the id´s don´t get saved into db.

thanks in advance

Expand  
  Reveal hidden contents

find this lines around Line 65.

*in red: original lines from server_updateobjet.sqf

*in blue: plotmanagement lines.

*Orange: ZSC lines.

Link to comment
Share on other sites

  On 7/2/2016 at 2:40 PM, juandayz said:
  Reveal hidden contents

find this lines around Line 65.

*in red: original lines from server_updateobjet.sqf

*in blue: plotmanagement lines.

*Orange: ZSC lines.

Expand  

Nothing of that is in my sqf file

not even:

        _inventory = [
            getWeaponCargo _object,
            getMagazineCargo _object,
            getBackpackCargo _object
]

 

Below is my server_updateObject.sqf

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 7/2/2016 at 8:40 PM, Cherdenko said:

Nothing of that is in my sqf file

not even:

        _inventory = [
            getWeaponCargo _object,
            getMagazineCargo _object,
            getBackpackCargo _object
]

 

Below is my server_updateObject.sqf

  Reveal hidden contents

 

Expand  

yep is very diferent of mine....    are u taken this updateObjets.sqf from other mod?

well see this lines in red are the whole code for your updateobjets.sqf... (black lines are your lines)

  Reveal hidden contents

@Cherdenko

Link to comment
Share on other sites

  On 7/2/2016 at 8:52 PM, juandayz said:

yep is very diferent of mine....    are u taken this updateObjets.sqf from other mod?

well see this lines in red are the whole code for your updateobjets.sqf... (black lines are your lines)

  Reveal hidden contents

 

Expand  

im using the one which was with the soul hive version of single currency

Link to comment
Share on other sites

  • 4 weeks later...

HI,

juanda

juandayz helped me a lot today and for that I am thankful - to try to get this to work. Even setup a sample server and added the mod.

On reboot the Friends list does not save to the DB. My understanding is is suppose to save you UID to the variables in the sql. When i look in the SQL nothing is written to the plot pole's inventory.

I spent two days looking at this. even try to put my UID in the inventory of a plot pole but not working. Was unsure the format it needed to be in.

 

Maybe I need to enable something on my database to allow it to work?

 

There does not seem to be any logs in the RPT etc to indicate the issue.

Note i am on a dedicated server.

Thanks in advance.

 

(If i can not get this sorted just going to give up and not build the rest of the server).

 

Link to comment
Share on other sites

  • 5 weeks later...

Hi,

I have just tried installing this but in these 2 instructions the 'nearObjects ["All",20]' and '_theCost = _count *1;'  weren't in the files suggested here.

Anyone got any ideas please ?

Thanks,

Nick

 

in player_build.sqf 

 

look in a IF for:

 

nearObjects ["All",30]

change that to

 

nearObjects ["All",DZE_PlotPole select 0]

To change maintani price ( for default very obvious in maintain_area.sqf). for single currency

change the 1 to any price you want per object.

 

_theCost = _count * 1;

For example

 

_theCost = _count * 150; // 150 coins per object.
Link to comment
Share on other sites

_theCost = _count * 1;

@snipercymraeg

you will find it in:

\MPMissions\DayZ_Epoch_11.Chernarus\plotManagement\maintainarea.sqf

 

the maths here are:

_theCost = _count * 150;

example:

Total price to maintain =  Total objets amount in plot area * Price in Coins

 $7.500 50 objets in plot * $150

 $15.000 100 objets in plot * $150

 $22.500 150 objets in plot * $150

 

 

And about player_build.sqf  if u have plot 4 life this have a diferent name if my memory its no bad :D .. something like player modulars....

any way try it:

open your plotObjets.sqf and replace the whole file for it:

  Reveal hidden contents

this fix the bad count of objets in the plot area

Link to comment
Share on other sites

  • 4 weeks later...

Running with this A_Plot_for_Life not having any issue apart from not being able to build on a friends plot and vice versa. Which files or where can I check for fixing this? If you need any lines or more information. Let me know

 

Using Epoch 1.0.5.1 and Arma 2 131129

Mods: "-mod=@DayzOverwatch;@DayZ_Epoch"

 

 

Link to comment
Share on other sites

  • 2 weeks later...

hello friends I'm trying to deploy this mod however the option to manage plot appears not am I putting wrong?

my fnselfaction

// ---------------------------------------Maintain Area Start------------------------------------
    if (_canDo && (speed player <= 1) && (cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then {
    if (s_player_plotManagement < 0) then {
    _adminList = ["0152"]; // 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 = [_owner] + _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];
    };
};
	if (s_player_maintain_area < 0) then {
    	s_player_maintain_area = player addAction ["<t color=""#ffffff"">Maintain Area</t>", "\z\addons\dayz_code\actions\maintain_area.sqf", "maintain", 5, false];
    	s_player_maintain_area_preview = player addAction ["<t color=""#ccffffff"">Maintain Area Preview</t>", "\z\addons\dayz_code\actions\maintain_area.sqf", "preview", 5, false];
    };
    } else {
    player removeAction s_player_plotManagement;
    s_player_plotManagement = -1;
    player removeAction s_player_maintain_area;
    s_player_maintain_area = -1;
    player removeAction s_player_maintain_area_preview;
    s_player_maintain_area_preview = -1;
};
// ---------------------------------------Maintain Area End------------------------------------

http://ap.imagensbrasil.org/image/p4dO5v

Link to comment
Share on other sites

  On 10/3/2016 at 1:08 PM, WagnerMello said:

hello friends I'm trying to deploy this mod however the option to manage plot appears not am I putting wrong?

my fnselfaction

// ---------------------------------------Maintain Area Start------------------------------------
    if (_canDo && (speed player <= 1) && (cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then {
    if (s_player_plotManagement < 0) then {
    _adminList = ["0152"]; // 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 = [_owner] + _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];
    };
};
	if (s_player_maintain_area < 0) then {
    	s_player_maintain_area = player addAction ["<t color=""#ffffff"">Maintain Area</t>", "\z\addons\dayz_code\actions\maintain_area.sqf", "maintain", 5, false];
    	s_player_maintain_area_preview = player addAction ["<t color=""#ccffffff"">Maintain Area Preview</t>", "\z\addons\dayz_code\actions\maintain_area.sqf", "preview", 5, false];
    };
    } else {
    player removeAction s_player_plotManagement;
    s_player_plotManagement = -1;
    player removeAction s_player_maintain_area;
    s_player_maintain_area = -1;
    player removeAction s_player_maintain_area_preview;
    s_player_maintain_area_preview = -1;
};
// ---------------------------------------Maintain Area End------------------------------------

http://ap.imagensbrasil.org/image/p4dO5v

Expand  

are u using a custom selfactions?

are u using Coins? take care sometimes ... your selfaction is taken from this mod

ZSCConfig.sqf

  Reveal hidden contents

 

your edit in selfaction seem be right... compare with mine:

  Reveal hidden contents

 

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
  • Advertisement
×
×
  • Create New...