Zupa Posted August 29, 2014 Report Share Posted August 29, 2014 Plot Management 2.1 With Object Counter By Zupa & rosska85 Explanation This scripts adds a dialog to the plotpole where you can add people form the surroundings to your plotpole. They will be able to build for ALWAYS in the radius of that plotpole untill he gets removed from the plotpole. Everyone on the plot can "Manage" the plot. Owner will always be the highest power on the plote. If you dont use plotForLife mod and you add yourself to the plot, you will alwyas be able to build even after you die. Add yourself in admin list (fn selfactions section), so admin can manage all plots. Technical The people on the plotpole gets saved to the DB in the gear variable of the plotpole. The friends are in the plotfriends variable. [["46446465","Zupa],["456749879","MyLonelyFriend"] Maintain Version: You can use the maintain version with Default of SingleCurrency version of Epoch. This will allow you to maintain the area in your plot management menu! Show the plot area with a fancy dome made by Zero Remorse's Scripter! Preview any cost before it gets spent! Credits rosska85 : His people saving on the plotpole gear field! Maca: The idea and code inspiration for this public mod Zero Remorse: Great Dome to show plot area. Screenshot Default Version: NEW Maintain version: OK updated to 2.2 Instructions updated on place 5C and 6 to support the removing of objects correctly. OPTIONAL FOR YOU Replace your Defines.sqf and plotManagement.hpp from your folder with the ones from github to have a visual update. The visual update wil make the buttons into blue buttons like the following dialog: Installation Files needed: https://github.com/DevZupa/PlotManagement Download it with the zip button on right side. Installation Instructions are on the github readme's MAINTAIN VERSION 2.1 !: Which files are updated: plotObjects.sqf (new) initPlotManagement.sqf (udpated) plotManagement.hpp add extra line in compiles.sqf change 1 number in player_build.sqf Same as the default but also add MaintainPlot = compile preprocessFileLineNumbers "zupa\plotManagement\maintain_area.sqf"; PlotPreview = compile preprocessFileLineNumbers "zupa\plotManagement\plotToggleMarkers.sqf"; PlotObjects = compile preprocessFileLineNumbers "zupa\plotManagement\plotObjects.sqf"; // NEW to your compiles.sqf after if (!isDedicated) then { Now default max range is 30m to check if there are too many objects in one spot. Lets change that to the plotRadius, so my plot menu can show u how many objects ( that can be maintain) are still able to be build. 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. INFINISTAR: Add the following number to the dialogs array: 711194 AND Add "PlotManagement" to _cMenu = You've succesfull have plotManagement NEW Update 1.1: Github updated with file: plotNearbyHumans - ALLPLAYERS.sqf Rename to: plotNearbyHumans.sqf (overwrite default) IF YOU WANT ALL PLAYERS LISTED ON THE LEFT New Update 2.0: Fixed all players showing in list Added maintain area/ preview area cost/ preview area (in a dome) IF you have single currency user the maintain_areaSC as maintain_area ( rename it and delete the other one). Important info: #EDIT 1 NVM, but as a information, you cant add players to the list who have not ASCII characters in his name, database cant execute it then. #EDIT 2 For everyone who want too use it with the latest plot for life version (2.33) you need to do the step from player_build.sqf also in the player_build_plotcheck.sqf greetz Anarior, F507DMT, BigDaddy and 12 others 15 Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Reserved Link to comment Share on other sites More sharing options...
f3cuk Posted August 29, 2014 Report Share Posted August 29, 2014 Thanks guys. This seems like a must have :) Will probably add it to our dev server later today, gotta get the SCC working first :P Link to comment Share on other sites More sharing options...
freakystyle Posted August 29, 2014 Report Share Posted August 29, 2014 Nice zupa...:D Link to comment Share on other sites More sharing options...
PeterBeer Posted August 29, 2014 Report Share Posted August 29, 2014 Not to thinking on the down side but ... What if someone is raiding a base and the owner is in the base couldn't he open dialogue just to see if someone is there, Surly that could be abused in some way Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Not to thinking on the down side but ... What if someone is raiding a base and the owner is in the base couldn't he open dialogue just to see if someone is there, Surly that could be abused in some way yes, we can fix that, to only show people who are tagged friendly first? Link to comment Share on other sites More sharing options...
rosska85 Posted August 29, 2014 Report Share Posted August 29, 2014 Just tried testing your instructions. For the fn_selfActions you need to have a variation for people not running plot for life because _owner = _thePlot getVariable ["ownerPUID","010"]; will not work. Also you need to add s_player_plotManagement = -1; to variables.sqf after dayz_resetSelfActions = { It also appears to be causing a kick when running infistar antihack. I keep hitting a grey screen when I log into the game, and when checking the RPT I've actually been disconnected. Not to thinking on the down side but ... What if someone is raiding a base and the owner is in the base couldn't he open dialogue just to see if someone is there, Surly that could be abused in some way It only searches for players within 10 meters. If you think that's too far, just change it to 1 or 2 meters, should work ok. plotNearbyHumans.sqf _closePeople = player nearEntities ["CAManBase", 10]; 10 is the distance in meters. Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Changed first post on the bottom with the infinistar dialog exception Link to comment Share on other sites More sharing options...
PeterBeer Posted August 29, 2014 Report Share Posted August 29, 2014 Couldn't you make it so its a list of all the players online ? Link to comment Share on other sites More sharing options...
rosska85 Posted August 29, 2014 Report Share Posted August 29, 2014 I've disabled my antihack so I could get in to test it. Seem to be getting some major FPS issues, may not be related though. Did find a bug though, it doesn't delete the name you've selected, it deletes the name at the bottom of the list. Edit: I already whitelisted that menu before posting and it didn't stop the kicks. Weird. Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 I've disabled my antihack so I could get in to test it. Seem to be getting some major FPS issues, may not be related though. Did find a bug though, it doesn't delete the name you've selected, it deletes the name at the bottom of the list. Edit: I already whitelisted that menu before posting and it didn't stop the kicks. Weird. Lookin ginto it with you, ( i'm also using Infistar btw) U get kicked as admin? Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Have you added "PlotManagement" to _cMenu = Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 I've disabled my antihack so I could get in to test it. Seem to be getting some major FPS issues, may not be related though. Can u check if there are any rpt errors? i did some last minut changes (not tested ) to selfactions Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Bug Fixed ^^ removefrends.sqf https://github.com/DevZupa/PlotManagement/commit/000f731af9103781e97262dcc7bf3c5b4ba2630c Did find a bug though, it doesn't delete the name you've selected, it deletes the name at the bottom of the list. Link to comment Share on other sites More sharing options...
rosska85 Posted August 29, 2014 Report Share Posted August 29, 2014 Lookin ginto it with you, ( i'm also using Infistar btw) U get kicked as admin? Have you added "PlotManagement" to _cMenu = Can u check if there are any rpt errors? i did some last minut changes (not tested ) to selfactions It's strange, it didn't record Inifistar as kicking me, but in the server RPT I was getting this "infiSTAR.de Log: [Holo] Kham (76561198000461831) | CheatEngine2 573: RscGUIEditor ("")" Followed by "DISCONNECT: [Holo] Kham (76561198000461831) Object: B 1-1-B:1 ([Holo] Kham) REMOTE, _characterID: 129 at loc [6246.93,4639.12,0.00196075]" On my client, the game just went to a grey screen and didn't respond so I kept having to force close it. I had command menu filter turned off whilst testing. I'm going to try re-enabling the antihack and see if I can figure it out. Bug Fixed ^^ removefrends.sqf https://github.com/DevZupa/PlotManagement/commit/000f731af9103781e97262dcc7bf3c5b4ba2630c Ah cool, I was just testing to see if it was that section causing the bug. :D Link to comment Share on other sites More sharing options...
js2k6 Posted August 29, 2014 Report Share Posted August 29, 2014 about to try this out on my test server now. but i want to say thanks in advance. and that i love your work. Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Update: Github updated with file: plotNearbyHumans - ALLPLAYERS.sqf Rename to: plotNearbyHumans.sqf (overwrite default) IF YOU WANT ALL PLAYERS LISTED ON THE LEFT rosska85 1 Link to comment Share on other sites More sharing options...
rosska85 Posted August 29, 2014 Report Share Posted August 29, 2014 Got my grey screen disconnect sorted. I forgot I had a GUI Editor in my folders, it shared defines with the plot management so seemed to be causing an issue. I've removed it and can get on the server fine with anti hack active. Totally forgot I had that in there because it's been so long since I last used it haha. Zupa 1 Link to comment Share on other sites More sharing options...
cobramike Posted August 29, 2014 Report Share Posted August 29, 2014 Zupa this is working for plot pool for life. Dit a test with 10 players and its working, Thanks Zupa 1 Link to comment Share on other sites More sharing options...
cen Posted August 29, 2014 Report Share Posted August 29, 2014 Zupa seems there's an issue where people NOT on the list CANNOT remove the plot pole. Anyone should be able to remove plot pole. Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Zupa seems there's an issue where people NOT on the list CANNOT remove the plot pole. Anyone should be able to remove plot pole. aw shit, u get this right? You are not allowed to remove this structure. Link to comment Share on other sites More sharing options...
cen Posted August 29, 2014 Report Share Posted August 29, 2014 aw shit, u get this right? You are not allowed to remove this structure. Yes, that's the exact message. Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 Yes, that's the exact message. Edited main post: remove.sqf if(!((getPlayerUID player) in _allowed)) exitWith { cutText ["You are not allowed to remove this structure." , "PLAIN DOWN"]; }; change to this: _obj = _this select 3; if(!((getPlayerUID player) in _allowed || typeOf _obj == "Plastic_Pole_EP1_DZ")) exitWith { cutText ["You are not allowed to remove this structure." , "PLAIN DOWN"]; }; Link to comment Share on other sites More sharing options...
Zupa Posted August 29, 2014 Author Report Share Posted August 29, 2014 I'm releasing door management today or tomorrow aswell ^^ ;) depends when i get back from nighty out ^^ Link to comment Share on other sites More sharing options...
cen Posted August 29, 2014 Report Share Posted August 29, 2014 Thanks I'll test it out. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now