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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Tricks
      We are back! Ranked 7th overall in 2014! Classic DayZ Epoch PvP Server!! No stupid start bonus, no heavy military. Just classic Epoch gameplay with new updates!

       
      - Top of the Line Hardware - Overclocked 8700k servers with SSDs. Super high FPS!!

      - XP System & XP Trader - Acquire handy Perks, Skills, and Permits with our XP system!

      - Custom Traders - Totally custom traders unique to this server!

      - Military Bases - High Loot areas perfect for gearing up.

      - Custom Map Content - Aircraft Carriers, Secret Military Bases, New Towns, and more!

      - All The Major Mods - All the major mods like Coin System, Heli Evac, Hide from Zeds, and many more.

      - Lots of AI Missions - Challenging AI missions color-coded by difficulty.

      - Custom AI Missions for Groups - Static missions with super high difficulty and major loot rewards!

      - Realistic Loot Spawns - You wont find high-powered weapons while hunting for loot, realistic loot spawns.

      - No Heavy Weapons, Tanks, Attack Choppers, Jets - Just the classic Epoch vehicles with a few new additions!

      - Lots of Vehicles - Lots of vehicles scattered around the map. Some are ready to go, others need to be fixed first!

      - Base Building - Fully modular base building system with unique build items and crafting recipes.

      - Full Day/Night Cycle - Realistic day and night cycle, no stupid 24 hours daylight!!

      - Full Weather System - Rain, thunderstorms and snow in the winter!!

      - Destructible Base/Garage Doors - Base raiding without losing your whole base! Just the doors are destructible.

      - Abandoned Safes/Lockboxes - Abandoned bases will have their safes unlocked for you to raid!!

      - Fresh Server, All The Best Base Locations Still Available! - No more wipes, server is done and all progress will be saved.

      - Regular Updates/Suggestions Considered - Pass along ideas to the admin staff. We consider all changes.

      - Admin Events - Events with High Loot and great times! See pic below.

      - Active Admin Staff - Find us on Discord anytime or by email!





      Connect to us on DayZ Launcher or directly:

      [SHG]ClassicEpoch|XPSystem|CustomTraders|CustomAImissions|Coins|FPS++

      144.217.62.76:2302

      Discord: http://xn--discrd-zxa.com/join.php?v=OXHD95

      Email: [email protected]

      Website: Under construction


    • 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 xTimeToShine
      Hey guys,
      i'm proud to present our new "Epic Illusion Gaming - DayZ Overpoch server".
       
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
      [EIG] DayZ Overpoch | Chernarus | 1.0.6.2 | Coins | Lift | Groups | Missions | Events | Deploy Bike |
      IP: 94.250.209.139:2302
       
      We are searching for some Players and also for some Admins. Please visit our Server or come to our Teamspeak or Discrod.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
      Visit us on ...
      ...Teamspeak:  94.250.223.10:15111
      ...Discord:  https://discord.gg/MTQuUHP
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Our new special features:
      Global Coins System Deploy a bike (Toolbox) Lift & Tow Selfbloodbagging Groupsystem Virtual Garage AI Missions Special PVP Events Custom Loadout ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Upcoming features:
      Weaponswitch Enhanced Spawn Selection and much more...  
    • By Vladick
      BSBS Server IP: 207.244.146.179
      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
  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×