Jump to content

[Release] 2.1 Plot Management - UPDATED Object Counter


Zupa

Recommended Posts

  On 11/22/2014 at 5:07 PM, Millasaurus said:

I'm using the maintain version of this without P4L.

 

Players are finding that the no. of objects counter moves around a lot when they're not even building anything, this can be especially annoying when they're close to the limit.

 

Is there a fix?

 

Not tested, but try this:

 

--

 

In plotObjects.sqf

 

find

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

replace with

_count = count(nearestObjects [cursorTarget,DZE_maintainClasses,_range]);
Link to comment
Share on other sites

Got a problem just done this and started the server all seemed fine at that point I then jumped onto the game joined the server and BLEEP got a server crash... I took a screen shot of it and you can see it at the link below.

 

The error says:

 

File

mpmissions\DayZ_Epoch_11.Chernarus\plotManagement\plotManagement.hpp, line 27:

/PlotManagement/Controls.RscShortcutButton_7009: Undefined base

class 'Zupa_RscButtonMenu'

 

No Idea what it means tho I'm in the files that It links me to but what am I looking at? cant see anything missing :S

 

https://www.dropbox.com/s/dy7jifdaz9hbe67/Screenshot%202014-11-23%2017.05.53.png?dl=0

Link to comment
Share on other sites

Fixed my above crash It was my own fault I used my own defines.hpp and not your one... So i used a program called Beyond Compare 4 to put the files side by side and move over the parts that where missing :)  and now the server do not crash...

 

BUT...

 

The server loads into the game but now the Dayz Epoch image on the loading screen dont go away... but the good news is I am indeed in the game as I can move and open gear and such I just cant see anything :D

 

 

**EDIT**

I have started over and this time I can get into the server with no isses, However... I try to place my plotpole and nothing happens it just stop instantly then I move and try to place it again and it says "building already in progress" Any Ideas?

Link to comment
Share on other sites

this bit here

if ( _playerUID in _allowed && _ownerID in _allowed) then { // // If u want that the object also belongs to someone on the plotpole.
_player_deleteBuild = true;
};
}else{
if(_ownerID == _playerUID)then{
_player_deleteBuild = true;
};

 

it spams my client RPT _playerUID undefined variable, is this for P4L users ? what it does exaclty, lets you remove the item inside plot if you owner ?

Link to comment
Share on other sites

  On 11/21/2014 at 9:25 PM, smexy said:

Hey Zupa, when you install P4L the player_build is taken by modular_build.sqf. I changed it to player_build.sqf and friendly's building on my plot worked. However without the edit's to player_build friendly building will not work. How would you go about making modular_build.sqf work alongside player_build? You can only have one unless there's another way? Can I just copy what's supposed to go into "player_build.sqf" into modular_build?

 

Still need help with this part

Link to comment
Share on other sites

Okay fixed my previous problem but now I'm having an issue where I can't remove anything. Here is my fn_selfactions.sqf if you could take a look over it please!

  Reveal hidden contents

 

 

 

No idea why it won't work.

Link to comment
Share on other sites

in server monitor for some reason I had

if ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ") && !(typeOf( _object) in  DZE_DoorsLocked)) then {

instead of

if ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ")) then {

could this be a reason for objects going missing?

 

is this correct in server_updateObject?

_object_inventory = {
	private["_inventory","_previous","_key"];
	_isNormal = true;
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then{
    _isNormal = false;
    _inventory = _object getVariable ["plotfriends", []]; //We're replacing the inventory with UIDs for this item
}; 
if (typeOf (_object)in DZE_DoorsLocked) then{
    _isNormal = false;
	_inventory = _object getVariable ["doorfriends", []]; //We're replacing the inventory with UIDs for this item
};

if(_isNormal)then {
    _inventory = [
    getWeaponCargo _object,
    getMagazineCargo _object,
    getBackpackCargo _object
    ];
};
Link to comment
Share on other sites

hi im new here, just have quick question.

on my server i have this mod, but part of my buildings start dissapears, so i found out i have maintenance on ;] i just updated my plotmanagemnet to this version so i see how much i need to pay and how many elements is in maintenance but is shows 0 all the time, 

 

how i can setup every how many days is this maintenance, i know how to setup price, (im using single currency)

i want to just define how many days is this maintenance.

 

 

i don't know if this is working is shows:

 

Objects to maintenain: 0

Price to maintenain: 0 coins

 

 

i have clear my sql even with:

DELETE FROM `Object_DATA` WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 14 DAY) AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 42 DAY)

and i have put this request:

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

so player buldings will desapire after 14 days now?

 

so they need to pay ones every 2 weeks ?

Link to comment
Share on other sites

I'm running basic Epoch and I've deployed plotManagement (default) and I do not have Plot4Life.  I built a plot pole and notice Plot Management in blue and I was able to add myself to the friends list, I killed myself came back and I can still manage the menu but I'm unable to build anything.  States I need a plot pole within 30m almost as if my PlayerID was never saved to that plot pole in the database.   Any suggestion guys?

Link to comment
Share on other sites

Hey Zupa, So i'll get to the point  :P

 

Everything works Counter,Dome, now the maintenance part im running this SQL Event

UPDATE `object_data`
SET `Damage` = IF( `Damage` = 0.0, 0.1, `Damage` + 0.1 )
WHERE `LastUpdated` <= DATE_SUB(NOW(), INTERVAL 1 DAY)
AND `Classname` REGEXP 'wall|floor|door|ladder|stair'

And it damages my objects like intended so when i go and do maintenance all objects are restored to 100% health ingame but it updates nothing in the database even on reset

No change in time or damage

 

Im using SC & Maintain Version of your script

 

maintain_area.sqf SC

  Reveal hidden contents

Any Help would be great

 

Thanks,

Re

Link to comment
Share on other sites

If you don't have custom ones then you can find them in your dayz_code.pbo (navigate to actions folder within pbo) file located in @DayZ_Epoch\addons folder

 

You can get all the files you might want to customize mission side from that same pbo but make sure you don't remove them forever from pbo files :D

Link to comment
Share on other sites

Can't get this to work for my life.. followed the directions to the T.  Im using this

 

 

so I decided to go with the default version of plot management and I am NOT using P4L. I just get insta kicked from game and RPT says
 

Server error: Player without identity DangerRuss (id 429485593)

One bit that stuck out to me.. in the instructions it says if you already have a defines.hpp dont use his.... so I just didnt include his defines.hpp.... at first I'll admit I overlooked this part and I got an error very similar to this
 

ErrorMessage: File mpmissions\DayZ_Epoch_11.Chernarus\plotManagement\defines.hpp, line 12: .RscFrame: Member already defined.

So perhaps I need to somehow combine the two? Honestly with no real error in my RPT I have nothing to go on and Im totally stumped. any help would be awesome Zupa

 

EDIT - It appears that somehow, over night my game files became corrupt and that is why I probably couldnt get on my server. In the process of figuring this out, I somehow broke the server and I am unable to restart it. Im waiting on Vilayer to restart it and then I'll give this another shot.

 

 

EDIT EDIT- All is well.. reinstalled epoch, server is fixed, this appears to be installed properly although I need to test it with other people!

Link to comment
Share on other sites

  On 12/9/2014 at 1:27 AM, Ree said:

 

Hey Zupa, So i'll get to the point  :P

 

Everything works Counter,Dome, now the maintenance part im running this SQL Event

UPDATE `object_data`
SET `Damage` = IF( `Damage` = 0.0, 0.1, `Damage` + 0.1 )
WHERE `LastUpdated` <= DATE_SUB(NOW(), INTERVAL 1 DAY)
AND `Classname` REGEXP 'wall|floor|door|ladder|stair'

And it damages my objects like intended so when i go and do maintenance all objects are restored to 100% health ingame but it updates nothing in the database even on reset

No change in time or damage

 

Im using SC & Maintain Version of your script

 

maintain_area.sqf SC

  Reveal hidden contents

Any Help would be great

 

Thanks,

Re

 

 

I am also having this exact issue... you are able to maintain, but it does not reflect in database. Not using Plot 4 life and also installed SC coin version. 

Link to comment
Share on other sites

I have a small issue, everything works but once I die, the system doesn't recognize me to upgrade existing walls.  It recognizes me only for building new items.  I'm assuming this is becuase Object_data table only saves CharacterID and after you respawn you receive a new CharacterID thus the reason the system can't recognize you as the owner.  I suppose the system reads the PlayerUID for building new objects around the pole which that UID will never change for a player.  Am I correct? 

 

This could be resolved by placing the PlayerUID column within the Object_data table of database and have the game insert that ID each time a player places an object.  Then we have Plot Management code read from PlayerUID instead of CharacterID for upgrading existing structures?

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