Private Parking Addon

  • Offline micovery
  • Moderator
  • Hardened
  • ******
  • Posts: 159

Private Parking Addon

« posted: Dec 29, 2014, 11:32 AM »
This addon allows players to have persistent private parking.


Here is the config for the addon (no need to edit mission.sqm):

Code: [Select]
//List of cities where private parking is available (empty or unset means all cities)
pp_cities_whitelist = ["Katalaki", "Agios Konstantinos", "Ioannina", "Panagia"];

//whether or not to show map markers for private parking locations
pp_markers_enabled = true;

//shape, type, color, size, text (for map markers, if enabled)
pp_markers_properties = ["ICON", "mil_dot", "ColorKhaki", [1.2,1.2], "Parking"];

//number of seconds to wait (after parking a vehicle) before it can be retrieved (0 = no wait)
pp_retrieve_wait = 0;

//amount of money to charge player for retrieving a vehicle from parking (0 = no charge)
pp_retrieve_cost = 0;

//maximum number of vehicles that a player can park (0 = no limit)
pp_max_player_vehicles = 0;

//List of class names for vehicles that are not allowed to be parked
pp_disallowed_vehicle_classes = [];


See source over at: https://github.com/micovery/ArmA3_Wasteland.Altis/pull/31

Screenshots:


http://i.imgur.com/OdsKVAF.png
Private Parking Addon

Demo video

Re: Private Parking Addon

« Reply #1 posted: Dec 29, 2014, 09:10 PM »
I like the mods and stuff, but is there a way to post extDB mods that support the build here. which most people use here, or a way to convert the addons to extDB. I personal like merging things ;-) just kidding. but seems to be a little conflict between the 2 database codes here. Truthfully I haven't look at your database structure, I know you have merged it, so is there a benefit to using it over plain Jane extDB which will improve overtime?
  • Offline micovery
  • Moderator
  • Hardened
  • ******
  • Posts: 159

Re: Private Parking Addon

« Reply #2 posted: Dec 30, 2014, 06:58 AM »
extDB is still in beta ... once it's stable (merged back into Development_main branch), I can try port the mods to extDB.

But honestly, even after that, consider that deviating from the vanilla extDB schema is both a pain, and a dangerous proposition.

The moment you start tweaking your schema (which is needed for this and other mods) ... is like digging yourself into a hole that may be hard to get out of.

I imagine AgentRev would be careful, and try to avoid introducing major schema changes that break backwards compatibility unless absolutely necessary. However, I would not expect any guarantees once you've deviated from the vanilla schema.
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2354

Re: Private Parking Addon

« Reply #3 posted: Dec 30, 2014, 09:01 PM »
If you put your stuff in separate tables, then it's pretty much a painless experience, imho.

Re: Private Parking Addon

« Reply #4 posted: Jan 02, 2015, 12:59 PM »
Hi,

you have Deleted the Addon?

"micovery deleted the private_parking branch Dec 30, 2014" ??



  • Offline micovery
  • Moderator
  • Hardened
  • ******
  • Posts: 159

Re: Private Parking Addon

« Reply #5 posted: Jan 02, 2015, 01:46 PM »
Hi,

you have Deleted the Addon?

"micovery deleted the private_parking branch Dec 30, 2014" ??

That's the usual git workflow. When a feature branch has been merged into master/develop branch, then the feature branch is deleted.

The "private_parking" branch has been merged into the "Development_main_addons" branch:

Code: [Select]
https://github.com/micovery/ArmA3_Wasteland.Altis/tree/Development_main_addons

as well as the  "extDB_beta_addons" branch:
Code: [Select]
https://github.com/micovery/ArmA3_Wasteland.Altis/tree/extDB_beta_addons

In these  "_addons" branches  I keep the extra addons that are not part of the vanilla mission.


If you are just looking for the list of files that were modified/added for a certain addon, that's available under the "Files Changed" tab in the pull request itself:

Code: [Select]
https://github.com/micovery/ArmA3_Wasteland.Altis/pull/31




Re: Private Parking Addon

« Reply #6 posted: Jan 02, 2015, 02:04 PM »
Thx for the Infos!

Re: Private Parking Addon

« Reply #7 posted: Jan 02, 2015, 08:08 PM »
I've merged your script but I've got this error when  I'm connecting to the server:


addons\parking\list_simple_menu.hpp, line17: /list_simple_menu_header: Undefined base class 'gui_RcsMenuTitle'

And my server crash
  • Offline micovery
  • Moderator
  • Hardened
  • ******
  • Posts: 159

Re: Private Parking Addon

« Reply #8 posted: Jan 02, 2015, 08:40 PM »
You'll also need:

https://github.com/micovery/ArmA3_Wasteland.Altis/tree/Development_main_addons/addons/gui

I started to put the generic UI stuff for my addons in a separate directory, to avoid duplication.

Also add this (in your description.ext):
Code: [Select]
#include "addons\gui\gui.hpp"
#include "addons\parking\list_simple_menu.hpp"

See this commit for the full list of changes:

https://github.com/micovery/ArmA3_Wasteland.Altis/commit/0c90f6601549d02454b4a763f5ba63737141c967#diff-3fe87f820313f8ad967cc3de79802de7

Note that if you are using vanilla extDB, or iniDB ... this addon won't work correctly. This is specific to the Node.js (sock-rpc-stats) persistence. When extDB is out of beta, I might port it to it as well, if no-one has done it by then.

Re: Private Parking Addon

« Reply #9 posted: Jan 02, 2015, 08:50 PM »
OK thanks!

(I missed to add #include "addons\gui\gui.hpp")
  • Offline WastelandZ.uk
  • For the love of ARMA!
  • Geared Up
  • **
  • Posts: 46
  • Teamspeak - wastelandz.uk

Re: Private Parking Addon

« Reply #10 posted: Jan 05, 2015, 03:40 AM »
Hey guys can someone help having a bit of bother cannot save anything .. Using inidb and wasteland version 1.0b

http://i1346.photobucket.com/albums/p681/CODExTreme1/BlackWidowGaming%20Wasteland%20Z/arma32015-01-0502-37-08-10_zps14a60b86.png
Private Parking Addon
Teamspeak - ts.wastelandz.uk, www.wastelandz.uk
  • Offline micovery
  • Moderator
  • Hardened
  • ******
  • Posts: 159

Re: Private Parking Addon

« Reply #11 posted: Jan 05, 2015, 05:17 AM »
Hey guys can someone help having a bit of bother cannot save anything .. Using inidb and wasteland version 1.0b

Hey, this addon does not work yet with extDB, or iniDB. Once extDB is officially out of beta, I'll consider porting it to work with extDB.
  • Offline WastelandZ.uk
  • For the love of ARMA!
  • Geared Up
  • **
  • Posts: 46
  • Teamspeak - wastelandz.uk

Re: Private Parking Addon

« Reply #12 posted: Jan 05, 2015, 05:19 AM »
Ohhh okay so how do I use it on my server then if possible. I love it btw great work  :)
Teamspeak - ts.wastelandz.uk, www.wastelandz.uk

Re: Private Parking Addon

« Reply #13 posted: Jan 31, 2015, 07:38 PM »
Can we considered extdb version of Wasteland is out of beta?   8)

Re: Private Parking Addon

« Reply #14 posted: Feb 02, 2015, 06:25 PM »
This addon allows players to have persistent private parking.


Here is the config for the addon (no need to edit mission.sqm):

Code: [Select]
//List of cities where private parking is available (empty or unset means all cities)
pp_cities_whitelist = ["Katalaki", "Agios Konstantinos", "Ioannina", "Panagia"];

//whether or not to show map markers for private parking locations
pp_markers_enabled = true;

//shape, type, color, size, text (for map markers, if enabled)
pp_markers_properties = ["ICON", "mil_dot", "ColorKhaki", [1.2,1.2], "Parking"];

//number of seconds to wait (after parking a vehicle) before it can be retrieved (0 = no wait)
pp_retrieve_wait = 0;

//amount of money to charge player for retrieving a vehicle from parking (0 = no charge)
pp_retrieve_cost = 0;

//maximum number of vehicles that a player can park (0 = no limit)
pp_max_player_vehicles = 0;

//List of class names for vehicles that are not allowed to be parked
pp_disallowed_vehicle_classes = [];


See source over at: https://github.com/micovery/ArmA3_Wasteland.Altis/pull/31

Screenshots:


http://i.imgur.com/OdsKVAF.png
Private Parking Addon

Demo video

Do you need mysql for this? or can it work with iniDB?