Jump to content
salival

[Release] Vehicle Service Point (Refuel, Repair, Rearm) [Updated for 1.0.7]

Recommended Posts

Hi,

With Axe Cops permission I am releasing my updated version of his amazing Service Points script. 

This includes support for original briefcases, gems (from epoch 1.0.7) and coins.

    (original github url: https://github.com/vos/dayz/tree/master/service_point)
    (original install/discussion url: https://epochmod.com/forum/topic/3935-release-vehicle-service-point-refuel-repair-rearm-script/)
    
**** *REQUIRES DAYZ EPOCH 1.0.7* ****
    
Major Changes:

    This version adds support for both single currency and gems (from the epoch 1.0.6 update) as well as the original epoch briefcase currency system. 
    Instead of pricing things like the original way, prices are now done on a "worth" similar to how coins are done. The price value of items are below.
    If you are using coins, I would recommend using the _currencyModifier variable since coins typically are 10x the value of briefcase based currency (1 brief == 100,000 coins)
    (You can either set this _currencyModifier variable to 1 then set the proper value or use the modifier, the modifier is mainly for dual currency servers)

    1 silver = 1 worth
    1 10oz silver = 10 worth
    1 gold = 100 worth
    1 10oz gold = 1,000 worth
    1 briefcase = 10,000 worth

    Please see dayz_code\configVariables.sqf for the value of gems (DZE_GemWorthArray) and their relevant worth if they are enabled.

    Example config settings for _refuel_costs, _repair_costs and _rearm_costs:

    All 3 sections can either be made free, disabled or a specifc price with the following examples:

    ["Air","free"] will make the vehicle config class of "Air" free for the specific action.
    ["Air","disabled"] will make the vehicle config class of "Air" disabled for the specific action.
    ["Air",2000] will make the vehicle config class of "Air" have a worth of 2000 for the specific action.
    ["Armored_SUV_PMC",2000] will make the specific vehicle have a worth of 2000 for the specific action.
    ["Armored_SUV_PMC","free"] will make the specific vehicle be free for the specific action.
    ["Armored_SUV_PMC","disabled"] will make the specific vehicle be disabled for the specific action.

    Valid vehicle config classes as an example: "Air", "AllVehicles", "All", "APC", "Bicycle", "Car", "Helicopter", "Land", "Motorcycle", "Plane", "Ship", "Tank"

Visit my Github page to download and read the README.MD : https://github.com/oiad/service_points

Old Epoch 1.0.6.2 Version can be found here: https://github.com/oiad/service_points/archive/refs/tags/Epoch_1.0.6.2.zip

Share this post


Link to post
Share on other sites

found a error

 

3) Place the files that you've downloaded below into the "scripts/service_points" folder

the service_points folder needs to be service_point 

your calling for 

if (!isDedicated) then {
    // ... some other stuff ...
    // add the next line somewhere in this block
    execVM "service_point\service_point.sqf";
};

so dont add the s to the map name

Share this post


Link to post
Share on other sites

this is how it should be 

if (!isDedicated) then {
    // ... some other stuff ...
    // add the next line somewhere in this block
    execVM "scripts\service_point\service_point.sqf";
};

 

also 

// general settings
_folder = "scripts\service_point\"; // folder where the service point scripts are saved, relative to the mission file

in the service_point.sqf

Share this post


Link to post
Share on other sites

Hi Sorry Bad English :-)

The Skript are god but no Funktion on Namalsk

_servicePointClasses = ["Map_A_FuelStation_Feed","Land_A_FuelStation_Feed","FuelPump_DZ","Land_A_FuelStation_Feed","Land_Ind_FuelStation_Feed_EP1",
"Land_FuelStation_Feed_PMC","FuelStation","Land_ibr_FuelStation_Feed","Land_fuelstation_army","Land_fuelstation","land_fuelstation_w",
"Land_benzina_schnell"]; // service point classes (can be house, vehicle and unit classes)

i put more Fuelstations in the Skript the 3 green are the original ... Namalsk in Funktion :-) 

Wallnuss

Share this post


Link to post
Share on other sites

when used with 106 some players are able to repair just fine and others are not.. the players who are not able to repair do see the animations and have  the gold removed, even get the "vehicle repaired" message but vehicle still has same damage as prior to the repair... i have tested this with three separate accounts from the same pc so i am sure this is not a file issue.... refuel seems to work for everyone

Share this post


Link to post
Share on other sites
57 minutes ago, [email protected] said:

when used with 106 some players are able to repair just fine and others are not.. the players who are not able to repair do see the animations and have  the gold removed, even get the "vehicle repaired" message but vehicle still has same damage as prior to the repair... i have tested this with three separate accounts from the same pc so i am sure this is not a file issue.... refuel seems to work for everyone

Are there any client RPT errors? I have not seen that/heard of that before and i've repaired/rearmed hundreds of vehicles with this version.

Also, what vehicles were being repaired to try and narrow it down

Share this post


Link to post
Share on other sites
2 hours ago, salival said:

Are there any client RPT errors? I have not seen that/heard of that before and i've repaired/rearmed hundreds of vehicles with this version.

Also, what vehicles were being repaired to try and narrow it down

i said the same thing to more than half a dozen players on my server. i had them try uninstall and reinstall arma2 and the epoch 106 mod, removed their id's from the db thinking maybe some glitch associated with their server side profile all without fixing it on their end... then i attempted it with all three of my steam accounts, from the SAME pc and was proven wrong....  currently there is  a pt.1 video showing that it works flawlessly from my main steam account here:

i work tomorrow but have the weekend off, i will add pt.2 video to my youtube that will show in great detail what is happening along with an accurate visual account of all vehicles and fuel stations that i have attempted this with and failed, i will post the rpt file into the details section of this video and upload it by the end of the day Saturday proving that it has nothing to do with the client side files as i had previously thought... thank you for your time and any ideas you may come up with

-peace- 

Share this post


Link to post
Share on other sites

Same issue here - I didn't notice myself, but it looks like repair is intermittent. Worked just fine for me yesterday on my mi17, but a friend reported he was not able to repair so I watched logs and he tried his armored suv, little bird and his humvee and no repair and unfortunately nothing in the RPT or hive logs. Not sure if it matters but it was at a pump at their base, not at a gas station, same for my pump.

Share this post


Link to post
Share on other sites
1 minute ago, _Lance_ said:

Same issue here - I didn't notice myself, but it looks like repair is intermittent. Worked just fine for me yesterday on my mi17, but a friend reported he was not able to repair so I watched logs and he tried his armored suv, little bird and his humvee and no repair and unfortunately nothing in the RPT or hive logs. Not sure if it matters but it was at a pump at their base, not at a gas station, same for my pump.

in the rpt file over several days of testing, i found that repairs from multiple uid's looked identical... the only noticeable difference was on the end users end the repairs didn't actually happen even though they had the gold removed.... for me the easiest solution was to simply remove the option to repair in an effort to make it fair to all players.

Share this post


Link to post
Share on other sites
30 minutes ago, _Lance_ said:

Yeah I disabled repair too but that's just a workaround. Any ideas Salival? Did anything even have to be converted in regards to the repair function to update the mod for 1.0.6?

Honestly, I repaired hundreds of vehicles testing this script, my players have done the same, enevr seen this bug before

Without steps to reproduce it or client / server rpts I'm at a loss as to where the problem lies.

 

The repair function changed with 1.0.6 but as I said, it works perfectly for me. Not to say others don't have an issue though.

I'm keen to fix it just need more information

Share this post


Link to post
Share on other sites

I'll do some add/remove mods and testing this sunday and report back if I can figure out what the deal is, or if I can get server or client rpt to spit something out. I think it has something to do with plot pumps, stations never failed for me on any vehicle. Just at my plot a few times. Anyways I'll report back..thanks man.

Share this post


Link to post
Share on other sites

I have updated the git repo with some tidyness fixes and removing a function that shouldn't have been included (This could have been causing the problems people were describing)

Please update to this version and see if the repair problem still exists.https://github.com/oiad/service_points

@_Lance_ @[email protected] 

Share this post


Link to post
Share on other sites
38 minutes ago, DAKA said:

I am unable to get this to work at all. I have no RPT errors. I have followed the instructions to the T, even changed service_points to point and still nothing?

You must have done something wrong because it does work fine. If you can rar/pbo up your mission file and private message me I can have a look at it.

That script should work straight out of the box.

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 Harkness
      Please consider joining our customised Epoch | DayZ | Expansion | Namalsk servers, we have 2 long term Admins on both UK/US continents and run our servers completely for charity and from 100% clean and renewable energy too!
      https://discord.gg/eyMymYv
      DayZSA Expansion Namalsk     |     DayZSA Expansion Takistan     |     A2 DayZ Epoch Namalsk (Stalker)
      86.10.6.13:2402                      |     86.10.6.13:2602                         |     86.10.6.13:2302
      CPU: Xeon-X5690 @ 3.46GHz
      RAM: 16GB
      Storage: SSD
      Stalker Exclusion Zone Time2Kill Epoch Namalsk (1.0.7/144629)
      Contents: 
      Epoch Content:
      - Single Currency Traders & Global Banking tied to your Player ID and NOT your character. (keeps rubles after death)
      - 200 new zombie models, over 100 new weapons and magazines with attachment support
      - New Vehicles and trucks, skins, backpacks, items, planes, helis even a submarine
      - New weapon sounds, Backpack Upgrades, Vehicle Upgrades, Tons of new clothing
      - Over 30 new base building items like a drawbridge, metal and wood gates, glass floors and many more
      - Epoch AntiHack, Trader SafeZones, Refundable Base Deconstruction!
      - Two Primaries, No Stamina Limit, One Step Building, No Plot, Self Bloodbag, Kill Feed, Group System(press F5)
      Namalsk Content:
      - Customized Harsh Weather System - Dynamic Snow/Blizzards and Storms! Warm Clothing at hero/bandit zones
      - Namalsk EVR Blowouts Events
      - Blood Sucker Monsters! (Note: Killing Strelok will destroy his "PSY" abilities and no more Bloodsuckers will spawn until mission restart)
      - APSI Masks and Mutant Heart Crystal Artefacts!
      Stalker Content:
      - STALKER Factions: Monolith = Bandit Duty = Hero
      - Stalker Faction Skins at Traders Hero/Bandit
      - Strelok - Bloodsucker PSY Leader | Search the exclusion zone for tips
      - Mutant Heart Artefact Crystal
      - Radioactive Exclusion Zone! (Must have Stalker Hazmat suit to survive here) AI faction Monolith patrols this island heavily
      Custom Content:
      - Navy Zone
      - Military Airfield Zone
      - LandBridge Zone
      - Intro Radio Broadcast Story and secret radio broadcasts in the exclusion zone
      - Roaming AI groups. 1 AI Helicopter Patrol and several Land/Sea Patrols, AI bandits, AI Heros
      - AI Mission system, AI Cash Wallets, AI Humanity/Cash Rewards System
      - Custom Player Skins
      - Vorkuta Hospital
      - ADDED: over 150 Base Building Kits to traders
      - Money on Zombies/AI  10-100 // Min/Max
      - Taking Clothes from the dead Added
      - Vehicle Towing added
      - Vehicle Service Stations Added. (Service for coins)
      - Spawn selection added - Choice Land/Air Spawn(c130 drop), Loadout Spawn Hero/Bandit lvl 1-3
      - Custom Server loadingScreen Added - Stalker of course
      - Craft Bicycle | Craft Mozzi (Press TAB)
      - Set Custom View Distances (TAB)
       
      Server is password protected and will remain so due to the low price of CD keys for this game.
      To access the server please join the discord "Server Announcements Channel" will have all the info you need to connect.
      Your admins for this server are "DarkIQ" and "Harkness"
    • By mudzereli
      Outdated, does not work with Epoch 1.0.7
      DEPLOYABLE BIKE 2.8.2
      all of this information is available in an easier-to-read format on github pages>>
      version 2.8.2 updates the code to work with Epoch Mod 1.0.6. Thanks @ebaydayz!
      version 2.8.1 should hopefully fix the long-standing non-moving-bike problem! Thanks @SchwEde!
      FYI: 2.8.0 adds the _condition and _ammo parameters to the config array so you will need to add a value for these parameter in each record of the DZE_DEPLOYABLES_CONFIG array in the appropriate spot if you are upgrading from 2.6
       
      Out of the box, it adds a deployable bike with a right click action on a toolbox and a couple other neat deployables.
      Really, it can be used to deploy just about anything. See the configuration section below.
      For some samples of what it can do, check out this gallery on imgur
       
      Installation
      download the files extract the addons and overwrites folder from the downloaded zip file into your mission file root find this line in your mission file init.sqf (warning: if you have a custom compiles file, find that line instead of the one below!) call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; place this line directly after the line you found call compile preprocessFileLineNumbers "addons\bike\init.sqf"; edit addons\bike\config.sqf to change some options or add different deployables (see configuration section for more info) Warning:
      due to the way the way arma handles numbers and the way addon is coded, using the save-to-database option may not allow you to re-pack some objects if you have Character ID's over 500,000 (which I don't think will be an issue for 99.99% of people).  
      Adding Your Own Custom Actions
      If you use another right click method like extra_rc.hpp and want to switch to my method, see my click actions configuration github page.
      The click actions script is included in the deploy script as part of the core, so you don't need to download anything, just follow the instructions for adding your own actions.
      * note: before attempting to troubleshoot issues with adding your own actions, make sure you are using the most recent version of the addon.
       
      Configuration
      This addon is highly configurable, you can deploy just about anything, not just bikes.
      open addons\bike\config.sqf and edit the array to add your own deployables.
       
      DZE_DEPLOYABLES_CONFIG format -- (note no comma after last array entry)
      DZE_DEPLOYABLES_CONFIG = [ [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_hive,_plot,_simulation,_deployables,_near,_parts], [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_hive,_plot,_simulation,_deployables,_near,_parts], [...more stuff here...] ]; DZE_DEPLOYABLES_CONFIG array values (view on github to read easier):
      parameter | description | type | example --------------|---------------------------------------------------------------------|--------|-------- _clickItem | class name of the item to click on | string | "ItemToolbox" _deployOffset | [_side,_front,_up] array to offset the deployable when buiding | array | [0,2,1] _packDistance | how close does the packer need to be to pack the object? | number | 5 _damageLimit | item can't be repacked if damage is > this. (-1 = no re-packing) | number | 0.1 _packAny | can anyone repack the deployable? | bool | false _cargo | clear the cargo of the deployable? | bool | false _ammo | should vehicle ammo be cleared? (does not persist through restart) | bool | true _hive | write deployable to database? | bool | false _plot | require a plot from the owner to build the deployable? | bool | false _simulation | enable simulation (movement/damage) for the object? (true for cars) | bool | true _road | enable road building for this object? | bool | true _deployables | array of class names that can be deployed with this method | array | ["MMT_Civ"] _near | array of items required nearby to build (workshop/fire/fueltank) | array | [] _parts | array of parts required to build (will be taken from player) | array | ["ItemToolbox"] _condition | string of code to evaluate to determine whether action is shown | string | "!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}" DZE_DEPLOYABLE_NAME_MAP array -- allows you to rename the deployable (on the right click/messages)
      format (note no comma after last array entry)
      DZE_DEPLOYABLE_NAME_MAP = [ [_class,_name], [_class,_name], [... more ...] ];  array parameters
      parameter    | description                                                         |  type  | example --------------|---------------------------------------------------------------------|--------|-------- _class        | class name of the item you want to replace the name of              | string | "Notebook" _name         | new name to display when right clicking                             | string | "Macbook Pro" Change Log
      version | change --------|------- 2.8.2 | updates for 1.0.6! Thanks @ebaydayz! 2.8.1 | fix from SchwEde that should fix bike not moving. Thanks @SchwEde! 2.8.0 | option to clear vehicle ammo 2.7.1 | better exit reasons 2.7.0 | option to add condition for showing action in config 2.6.1 | fix for unrideable bikes 2.6.0 | road building options, deployable name mapping 2.5.1  | fix a bug where preview items would sometimes disappear  2.5.0  | now uses a modified epoch building system to deploy the objects  2.4.3  | better click actions build conflict detection  2.4.2  | updated for new click actions handler build  2.4.1  | fixed deployables spawning in locked after restart  2.4.0  | multi-part deployables. yay!  2.3.1  | big fix on packing temp objects  2.3.0  | optional saving to database with post-restart memory of deployed items (see warning below about this) | configurable damage limits on re-packing | admin list for packing/deploying instantly & being able to remove all deployables  2.2.1  | positioning fix for deployed items  2.2.0  | option for clearing cargo of spawned items  2.1.0  | change way dependency call is made, only one line needed in init.sqf now for setup  2.0.0  | major update, allow multiple deployables, pretty much any class  1.1.0  | configuration options / code optimization  1.0.0  | release Issues/FAQ
      1) people are getting kicked for createvehicle restriction when building a stone wall
      open your battleye filter createvehicle.txt and change this line
      5 "Fort_" !="Fort_RazorWire" !="Fort_RazorWirePreview" to this:
      5 "Fort_" !="Fort_RazorWire" !="Fort_RazorWirePreview" != "Fort_StoneWall_EP1" 2) I am using "A Plot For Life" and this is not working!
    • By salival
      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) Please see my github repo for install instructions:
      https://github.com/oiad/virtualGarage
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...