Jump to content
salival

[Release] Virtual Garage for 1.0.6.1+

Recommended Posts

Hi guys,

Here's my version of Virtual Garage, it's not far off a full rewrite but includes some of the original code that the original author contributed.

Fixes a lot of problems and adds a lot of newer features:

  • Single UI for storing/retrieving vehicles
  • Dynamic pricing based on vehicle type/classname
  • Dynamic limits based on vehicle type/classname
  • Adds support for removing a helipad nearby
  • Able to see storage in stored vehicles
  • RPT logging for storing/retrieving vehicles
  • Fixes dupes for more than 2 people depositing the same vehicle
  • Supports briefcases and coins
  • Localization support (currently german and russian)
  • Has uninstall information for the previous version

Please see my github repo for install instructions:

https://github.com/oiad/virtualGarage

Share this post


Link to post
Share on other sites

THIS IS FOR USERS WHO PREVIOUSLY USED THE REMOVE THERMAL AND UPDATE TO THE NEW VERSION

 

Remove thermal and remove ammo

[email protected]_Epoch_Server\addons\dayz_server\compile\garage/server_spawnvehicle.sqf

 

find clearWeaponCargoGlobal  _object;

replace like so

 

 

working on my server

clearWeaponCargoGlobal  _object;
	clearMagazineCargoGlobal  _object;

		{
	if (_object isKindOf _x) then {
		_object disableTIEquipment true;
	};
	} forEach vehsRemoveThermal;
	// _object setVehicleAmmo DZE_vehicleAmmo;

	_object setFuel _fuel;
	_object setDamage _damage;
	_object setVehicleAmmo 0;

 

Share this post


Link to post
Share on other sites

That won't work for anyone else though, since they won't have the array 

vehsRemoveThermal

ill add support for it properly in the next few days, I just wanted to get it out for release (it's still on my GitHub issues post)

Share this post


Link to post
Share on other sites

Just put this on my test server and love it. Working great so far. I have been playing around with it and only thing I have found is when getting a vehicle out of the garage it allows you to get the vehicle even if you have no slots available for a key. It appears to just move the inventory to a blank slot so you don't loss anything, but i could see that being an issue possibly. I know if you try to buy a vehicle from a trader they will tell you that you do not have space on your toolbelt or something like that. Not sure if you could add something like that. I will keep lookout for any other things, but great script and I am glad you were able to get it released :)

Share this post


Link to post
Share on other sites

Hi guys,

I fixed the issues listed on gitHub / mentioned to me, thanks to @DieTanx @azzdayz and @BigEgg for the heads up.

Fix traders not working as a garage: https://github.com/oiad/virtualGarage/commit/3f074795fcd2f34d8e62c757cd4f96d3c2758ffc

Fix wrong price for storing vehicle with gear: https://github.com/oiad/virtualGarage/commit/61cbd87d1995a5dd43db957b00bd9f98c917aece

Fix getVehicle when toolbelt full: https://github.com/oiad/virtualGarage/commit/4075381933c7909de6fcf1556e8f54abd394119b

 

Share this post


Link to post
Share on other sites

Found this issue:

Error in expression <lect 0;
_magazineCount_raw = _inventory select 1;
_backPackCount_raw = _inventor>
  Error position: <select 1;
_backPackCount_raw = _inventor>
  Error Zero divisor
File mpmissions\__CUR_MP.Panthera2\scripts\virtualGarage\vehicleInfo.sqf, line 33

Share this post


Link to post
Share on other sites
2 minutes ago, Hooty said:

@@ -68,6 +68,7 @@ _vehicleUID    = _vehicle>
  Error position: <@@ -68,6 +68,7 @@ _vehicleUID    = _vehicle>
  Error Invalid number in expression
File mpmissions\__CUR_MP.Chernarus\scripts\virtualGarage\player_storeVehicle.sqf, line 8
Error in expression <nt","_woGear"];

disableSerialization;

Hey,

I'm not sure what's going on there, that error looks broken, can you send me your client RPT?

Line 8 in player_storeVehicle.sqf is a findDisplay line.. that stuff is like down line 67

What are you doing when you get that error?

Share this post


Link to post
Share on other sites

If I had to guess, the UID of that vehicle is broken, So what are you doing to get that error? Selecting a vehicle to store?

What sort of vehicle?

infistar spawned? trader spawned? Just that one vehicle? All vehicles? 

Share this post


Link to post
Share on other sites

No complete uninstall of Dukes and replaced withe yours last night. Seen the traders were broke and someone already told you so I just waited for you to fix. Applied fixes when I got home from work and got that error. Still confused how  @@ -68,6 +68,7 @@ was in the file lol.

Share this post


Link to post
Share on other sites
2 minutes ago, Hooty said:

No complete uninstall of Dukes and replaced withe yours last night. Seen the traders were broke and someone already told you so I just waited for you to fix. Applied fixes when I got home from work and got that error. Still confused how  @@ -68,6 +68,7 @@ was in the file lol.

Looking at it now, I'm guessing you copied the diff fix from github:

@@ -68,6 +68,7 @@ _vehicleUID	= _vehicle getVariable ["ObjectUID","0"];
  _weaponsCount = ((getWeaponCargo _vehicle) select 1) call _gearCount;
  _magazineCount = ((getMagazineCargo _vehicle) select 1) call _gearCount;
  _backPackCount = ((getBackpackCargo _vehicle) select 1) call _gearCount;
 +_cargoAmount = (_weaponsCount + _magazineCount + _backPackCount);

Instead of the actual file

Share this post


Link to post
Share on other sites

Hi all, the script works fine, but I had to modify slightly the table in the database. The whole thing again in the russian language. When a variable _displayName enters the vehicle name in english(for example _displayName = GAZ (grey)), then it is processed normally and the transport is written to the database. If the variable _displayName will come the vehicle name with russian letters(for example _displayName = Внедорожник (белый)), then in the database it will not be recorded and will cause an error.

[13:25:38 +00:-1] [Thread 456002976] extDB: Found extdb-conf.ini
[13:25:38 +00:-1] [Thread 456002976] extDB: Detected 4 Cores, Setting up 4 Worker Threads
[13:25:38 +00:-1] [Thread 456002976] extDB: Database Type: MySQL
[13:25:38 +00:-1] [Thread 456002976] extDB: Database Session Pool Started
[13:25:38 +00:-1] [Thread 456002976] extDB: DB_RAW_V3: Initialized: ADD_QUOTES True
[13:34:31 +00:-1] [Thread 544609928] extDB: DB_RAW_V3: Error StatementException: MySQL: [MySQL]: [Comment]: mysql_stmt_execute error	[mysql_stmt_error]: Incorrect string value: '\xD0\x92\xD0\xBD\xD0\xB5...' for column 'DisplayName' at row 1	[mysql_stmt_errno]: 1366	[mysql_stmt_sqlstate]: HY000	[statemnt]: INSERT INTO garage (PlayerUID, Name, DisplayName, Classname, CharacterID, Inventory, Hitpoints, Fuel, Damage, Colour, Colour2) VALUES ('76561198225362352','Snow','Внедорожник (белый)','hilux1_civil_3_open_DZE','0','[[["G17_DZ"],[1]],[[],[]],[[],[]]]','[["motor",0.245],["sklo predni P",0.401]]','0.476596','0','0','0')
[13:34:31 +00:-1] [Thread 544609928] extDB: DB_RAW_V3: Error StatementException: SQL: INSERT INTO garage (PlayerUID, Name, DisplayName, Classname, CharacterID, Inventory, Hitpoints, Fuel, Damage, Colour, Colour2) VALUES ('76561198225362352','Snow','Внедорожник (белый)','hilux1_civil_3_open_DZE','0','[[["G17_DZ"],[1]],[[],[]],[[],[]]]','[["motor",0.245],["sklo predni P",0.401]]','0.476596','0','0','0')
[13:35:55 +00:-1] [Thread 456002976] extDB: Stopping ...

A solution to this problem is to change the encoding in the table from latin1_swedish_ci to utf8_general_ci. Here is an example SQL query to the database:

ALTER TABLE `garage` ADD `displayName` VARCHAR(50) CHARACTER SET utf8 NOT NULL DEFAULT '' AFTER `Name`;

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Vladick
      BSBS Server IP: 216.244.93.103:7802
      Website: https://bsbsepoch.000webhostapp.com/
      Discord: https://discord.gg/PVn8PvG
      Server Features:
      PvPvE Database wiped 1/5/18 ESS V3 spawn selection Coins and Global Banking WAI missions and Roaming DZAI Bandits Customized map additions Skalisky Bridge Skalisky Island Bandit Camp with high loot (fun mission!) Garage Door Opener Virtual Garage Deploy bike Refuel, Repair, Rearm Take clothes Bury Body Butcher Body Locate vehicle with keys and GPS One plot poll per player Indestructible bases Trader Safe Zones Day/Night Schedule 4-hour restarts
    • By JakeQue
      Hi, me again.
       
      For some reason when i spawn in and collect coins or loadout the next time i disconnect and come back it puts me back into spawn and money is all disappeared. 

      There's no hive errors.
      The only error in the Server RPT is :
      And I have 2 errors in my client RPT. Looks like they relate to zsc but I have reinstalled it from scratch and still the same.
      and 
       
      Sorry to be such a noob with this one!!
    • By Mattiman338
      Hi all, doing up a server for myself and a few friends but am having one issue which I am clueless as to why it is happening. It doesn't really affect game play but does make it difficult navigating through certain tasks.
      The issue arises with ZSC and Virtual Garage dialogs only as far as I have tested. Certain buttons within dialogs do not show, such as the deposit and withdraw buttons for the bankers and the store vehicle button in the Virtual Garage dialog.
      I am running InfiSTAR admin tools and antihack and as far as I know, that could be the culprit with these problems but I have checked the servers .RPT and checked for errors with ZSC and the Virtual Garage with nothing coming up.
      There are InfiSTAR logs showing though and one refers to a dialog. 
       
      In-game screens
      And my .RPT from the last restart to when I tested the dialogs to gather screenshots
       
       
      All help is appreciated as I can't find anything to do with infiSTAR in the script installs.
      Thanks all!
    • By iben
      Hello guys,
      do you remember old "Paint vehicles" script? Let's look back to idea fathers:
      ===
      CREDITS:
      All credits goes to its original authors:
      DayZ Epoch developers, collaborators and contributors (thank you guys for your excellent work!) (visit them on github)
      Maca134 for orginal color vehicle script.
      @Zupa for the idea of painting vehicles in two different colors.
      @0verHeaT for script public release - this version we are updating for 1.0.6.1+ (see original thread)
      @raymix for list of paintable vehicles for this script (see original thread)
      ---
      Special Thank you goes to @DAmNRelentless for taking care of Github repo.
       ===
      This script was updated for Epoch 1.0.6.2 and upgraded.
      ===
      FEATURES:
      Vehicles can be painted in two different colors Only vehicles which you own can be painted (vehicles with key) Only vehicles in ColourVehicles array can be painted Script is designed to be used along with Single currency. Player will pay for painting vehicles. UPDATED: Color values are saved in the worldspace field in database NEW: Vehicles can be unpainted to default state (default textures are loaded) UPDATED: Vehicles can be painted using GUI with visual enhancements. Use PaintVehicles defines.hpp for defining custom GUI color scheme UPDATED: Script is now fully compatible with Virtual Garage and Vehicle Key Changer (VKC) script thanks to @salival (2017-08-22).
      All scripts by @salival and this one prior update date should be upgraded to get much better player experience! UPDATED: for Epoch 1.0.6.2 ===
      Changelog:
      [2017-05-22], v1.0 | Initial release [2017-05-25], v1.1 | Optimized compiles: 5 files reduced to 1. See changes: [commit  ae29c13] [2017-08-20], v1.2 | Regular code maintenance. See changes: [commit 682f99a] and [commit 7cd8fce] [2017-10-23], v1.3 | Roll back to full version of player_forceSave (uniCoins fix: Issue not related to script itself). [2017-12-04], v1.4 | Safer manipulation with data sending to server. Basic defines fix - from sqf to hpp.  See changes: [commit 2735dea] [2017-29-04], v1.5 | Update for Epoch 1.0.6.2 [2017-29-04], v1.5.1 | FIX: fn_selfAction path (thx @hooty): [commit 38fe105] ===
      How it looks like:

      === database screenshot

      ===
      MiniShowcase
      ===
      How to install:
      We are not using common way how is script included to current folder structure (like grab whole folder and put it to the root of mission folder) - 
      that's why read carefully, use repo folder structure (or similar) and compare tool like diffmerge! If you have troubles, just ask here or send me PM.
      Source files are available at Github repo. You can download them from here.
      For client side we need these folders in the root of your 'MPMissions\Dayz_Epoch_11.Chernarus' folder:
      actions: we will store file with scroll action menu command Paint vehicle here compile: we will store core script client files here Configs: we will store defines && dialog config files for script GUI here gui:  we will store your "Money" or "Coins" picture here (Change path inside: `dayz_code\compile\player_paintVehicle.sqf`) init: we will load all compiles and variables from here ... and finaly files:
      description.ext: we will load your defines and dialogs from here via master.hpp init.sqf: we will load your custom compiles and variables from here For server side (dayz_server) we need to touch these files:
      compiles\paintVehicles  (copy whole folder to compiles) compiles\server_updateObject.sqf system\server_monitor.sqf init\server_functions.sqf (compile init.sqf) ===
      Battleye
      // Add an exception to publicvariable.txt !="PVDZE_veh_Color" ===
      infiSTAR
      // Add an exception to allowed dialogs 571113 ===
      ...that's all, Have Fun!!
      Cheers...
      ===
    • By Bricktop
      **NEW** Manup-PvPvE | v1.0.6.2 | 5-Mil + KITS | Player Teleport | VirtGarage | Banks | Checks | Perks | Cap&Hold | GemCraft | Semi-Mil | High [email protected]@T

       
      ==============================
      M A N U P - 1.0.6.2 - U P D A T E
      The NEW SERVER is Unlocked! 
      DayZ Overpoch Chernarus 1.0.6.2
      IP: 216.244.87.253:6302
      This is a PvPvE Militarized Server with High Loot and High Risk 
      $5,000,000 Start coins + Cinder & Metal Base kit

      ==============================
      MODS - EDITS - SCRIPTS
      ==============================
      > Suicide
      > Earplugs
      > Auto Run
      > Tow & Lift
      > Safe Zones
      > Flip Vehicle 
      > Plot For Life
      > Bury Bodies
      > Take Clothes
      > Click Actions
      > Harvest Hemp
      > Service Points
      > Locate Vehicle
      > Virtual Garage
      > Player Teleport
      > Custom Traders
      > Global Banking
      > Free Spawn Kits
      > Tanks and APC's
      > Attack Choppers
      > Scan For Players
      > Deploy Anything
      > KO Melee Combat
      > Plot Management
      > Scan For Animals
      > Scan For Zombies
      > Treasure Hunting
      > Turn On/Off Grass 
      > Snap With Vectors
      > Custom Trader City
      > Group Management
      > Garage Door Opener
      > Safe Zone Relocate
      > Custom Action Wheel 
      > Vehicle Key Changer
      > Humanity Spawn Kits
      > Custom Event Crates
      > No Spawn Restriction
      > Sell On Site Missions
      > Change View Distance
      > Custom Debug Monitor
      > Player Zombie Shields
      > remote vehicle options
      > Humanity spawn vehicles 
      > Community Localizations
      > Humanity Spawn Classes
      > Custom Military locations
      > Custom Cap & Hold Missions
      > Custom NEAF / NWAF / BALOTA
      > Door Management With Eye Scan
      > More custom stuff inside ....

      ==============================
      Special thanks to @salival  for all his help with the conversion. I couldn't of done it with out you!
      ==============================
      Thanks For Playing ManUp - Enjoy and Please report any bugs.
      http://steamcommunity.com/groups/manupsurvival#
      https://discord.gg/V85spbD


  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...