Jump to content

SmokeyBR

Member
  • Posts

    193
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    SmokeyBR reacted to Airwaves Man in [Release] Deploy Anything 3.0.1 [Updated for 1.0.7.1+]   
    Ive added some fixes for Deploy Anything: https://github.com/oiad/deployAnything
    Also if you are using statics replace in your server_monitor this line with the line from that link: https://github.com/oiad/modPack/blob/master/dayz_server/system/server_monitor.sqf#L105
  2. Thanks
    SmokeyBR reacted to icomrade in Simple Check for Scripts Filter Bypass   
    Yeah it needs an exception in publicvariable.txt.
    to execute every 30 minutes you just need to execute LogMyLogin = [getPlayerUID player]; publicVariableServer "LogMyLogin"; in a loop + uisleep 1800;
    in the most basic example
    [] spawn { while {1 == 1} do { LogMyLogin = [getPlayerUID player]; publicVariableServer "LogMyLogin"; uisleep 1800; }; };  
  3. Like
    SmokeyBR reacted to icomrade in Simple Check for Scripts Filter Bypass   
    I've finally had time to build the Hive extension with a custom player check for a scripts bypass. it's rather basic but may still be quite effective for the majority of those bypassing the scripts filter.
    To start you must download this custom HiveExt.dll (includes virtual garage calls) and edit your HiveExt.ini as in the one in the linked repo (add the Battleye section to your Hive.ini). https://github.com/icomrade/icomradeHiveEpoch/tree/master/Pre-Compiled
     
    Some client side code is required, you can place it inside the !isDedicated check of init.sqf: https://github.com/EpochModTeam/DayZ-Epoch/blob/Release_1.0.6.2/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf#L81
    waitUntil {(getPlayerUID player) != ""}; LogMyLogin = [getPlayerUID player]; publicVariableServer "LogMyLogin";  
    You also need to have a line which you log in scripts.txt. the simplest way to get 1 line per login is by adding a textLog to one vehicle's init line
    for example add an object with an init line to your mission.sqm, or append you desired textLog line to it (this example uses textLog 'Amadeus Amadeus log me Amadeus'; )
    class Vehicles { class Item0 { position[]={6391.9619, -0.29052943, 7790.3203}; azimut=487.7664; id=0; side=EMPTY; vehicle="TK_GUE_WarfareBLightFactory_base_EP1"; init="this setPos [6391.9619, 7790.3203, -0.29052943]; textLog 'Amadeus Amadeus log me Amadeus';"; skill=1; }; items=1; };  
    Server side code is also required, in server_functions.sqf add after the Server_hiveWrite compile! https://github.com/EpochModTeam/DayZ-Epoch/blob/Release_1.0.6.2/SQF/dayz_server/init/server_functions.sqf#L172
    DZE_LegitPlayers = []; DayZ_LegitCheck = { private ["_closeEnough","_index"]; _closeEnough = false; _index = -1; { private ["_PUID","_lastCheckTime"]; _PUID = _x select 0; _lastCheckTime = _x select 1; if (_PUID == _this select 0) exitWith { if ((_lastCheckTime + 60) > diag_tickTime_) then { _closeEnough = true; } else { _index = _forEachIndex; }; }; } forEach DZE_LegitPlayers; if (!_closeEnough) then { if (_index >= 0) then { DZE_LegitPlayers set [_index, [(_this select 0), Diag_TickTime]]; } else { DZE_LegitPlayers set [(count DZE_LegitPlayers), [(_this select 0), Diag_TickTime]]; }; _key = format["CHILD:777:%1:",_this select 0]; _key call server_hiveWrite; }; }; "LogMyLogin" addPublicVariableEventHandler {(_this select 1) call DayZ_LegitCheck;}; Finally be sure to add the log line to your battleye filter: scripts.txt!!!
    for example
    //check one thing at login 1 "Amadeus"  
    Edit: You may want to manually review these bans, or not idc, but there are sometimes false positives. i.e. the scripts.txt filter fails to log and a legit player will not show up in the scripts.log, subsequently resulting in a ban (strange behavior, probably an issue with the scripts filter on battleye's end). I've observed failure to log on myself when testing, so I use a temp list and transfer overto my real ban list after review
  4. Like
    SmokeyBR reacted to spitfirez404 in [Release] Anti Combat Log 1.0.6.1   
    Yes it was indeed Infistar in AH.sqf I just commented it out. 
    //_fnc_punish_combatlog = {
    //isInCombat = player getVariable['startcombattimer',0];
     //if(str _isInCombat != '0')then{ player setDamage 1; };
     //};
    And in the AHconfig.sqf and turned off 
    _UCL =  false;    // Use Anti Combat Log    /* true or false */
    Works now! :)
    Thanks for your help @SmokeyBR
  5. Like
    SmokeyBR reacted to kmiller in mission_check.sqf takes a lot of time   
    Hi,
    i had the problem that joining the server after a restart took like 4 minutes. To spot the problem, i added many diag_log-Lines to specific serverfiles so I can see where the server gets stuck.
    The problematic files were dayz_server\init\server_functions.sqf and dayz_server\init\mission_check.sqf (the second file gets included in the first file)
    Here you see my RPT:
    As you can see nearly 2 minutes are used between SERVER_FUNCTIONS 21 kk_functions and MISSION_CHECK 22. Thats exactly where the mission_check.sqf is doing his work.
    Even with the default version of this file, it takes two minutes on my server. When I comment everything out there, the server starts noticeable faster.
    So in short terms: With no mission_check.sqf my server starts noticeable faster.
    Does anyone know how I can tackle this? Did I do something wrong?
  6. Thanks
    SmokeyBR reacted to JasonTM in [RELEASE] WAI 2.2.6   
    I already made the changes on a test server and it is not that much of a bother. There are not that many current missions with vehicles. I will post the code tomorrow when I get time.
  7. Haha
    SmokeyBR reacted to JasonTM in [RELEASE] WAI 2.2.6   
    ok
  8. Like
    SmokeyBR reacted to JasonTM in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  9. Thanks
    SmokeyBR reacted to salival in [Release] Safe Zone Relocate   
    Yes, that looks fine.
    The first one will show the safezone postion, the second one will show the vehicle it's currently checking.
  10. Like
    SmokeyBR reacted to salival in [Release] Safe Zone Relocate   
    Working fine here man.
    There's not really anything that can go wrong on this unless you've broken your DZE_SafeZonePosArray since that's what it goes off.
  11. Thanks
    SmokeyBR reacted to icomrade in [Release] Virtual Garage [Updated for 1.0.7]   
    The garage table is tied to the Object DB which can be separated from the per-instance DB, and shared between servers. You can test this out on a local server to ensure it meets your needs by customizing the highlighted config group in HiveExt.ini and matching the settings on all your servers. Ensure VGTable name is also the same on all your servers
    However, as a side effect you will also need to copy your object table contents to the shared ObjectDB
    https://github.com/oiad/virtualGarage/blob/master/DZE_Server_Config/HiveExt.ini#L86-L97
  12. Like
    SmokeyBR reacted to theduke in Preparing Missions scenario   
    i managed to modify macas base manager to get this work... it actually works great. the only thing i havnt figured out yet is how to get the output to only show the directions in their own array... it can be done manually no problem.
    I did have a hard time with positive and negative positions, but mr Salival came to the rescue and fixed that :)
  13. Like
    SmokeyBR got a reaction from Relentless in Marker Events after relog   
    this might be it ?
  14. Like
    SmokeyBR reacted to Relentless in [RELEASE] RLNT Update Panel (26.09.2017, v1.4)   
    This is tested on vanilla and high modded servers so it's working 100%. I guess the reason why you get undefined variables is because you try to call it from server side. This function was made for always calling it from client-side but you can send a global message from client side. If you want to call it from server-side, you need to trigger the server eventHandler manually.
  15. Like
    SmokeyBR reacted to Relentless in [RELEASE] RLNT Update Panel (26.09.2017, v1.4)   
    I guess this is currently not compatible with my RLNT Weapon HUD. If you want to use this as nfcStyle you would have to make the changes yourself or wait until I update it, thanks. Studying is taking a ton of time :*
    LAST UPDATE: 26.09.2017 - go to the bottom for changelog
    Hey there Epoch-Community,
    in this topic, I want to release my Update Panel. This may need some longer explanation so if you are interested, read carefully. 

    Background-Story:
    So I was a bit annoyed by all the vanilla functions that are currently available in ArmA 2.
    Everytime you just see format texts or hint boxes, sometimes even dynamic texts but still not my taste. So I decided to create a Display that is spawned by a function.
    It's like a modern version of hint boxes. The cool thing is that you can adjust nearly everything of it by giving the function different arguments.
    Due to that fact, you could easily manage all your server messages and notifications through this function to have a universal system. It's a bit confusing and ugly
    when you are running multiple mission systems for example and one is using text at the top of the screen and the other one directly in the middle.

    What features does it have:
    Currently, there are 9 different arguments to adjust the Update Panel to your liking. Meanwhile I made ALL arguments optional so you can leave them out.
    Receiver aka the Side - defines whether the Update Panel is only shown to the Client it's running on or whether it should be shown to everyone like a global message Style - At the moment there are four styles, they are different in the box style and whether it contains an image or not Background Color - Ofcourse you can also adjust the Color of the Box Font Color - Aswell as the text color Header - This is the Headline of the Update-Panel, you could use something like your server tag Line 1 - The first textline of the panel that holds up to 40 characters Line 2 - The second textline that can also hold up to 40 characters and also a good option to display a single line update panel Duration - Also you can adjust the time how long the panel will be visible to the clients Image - The second style can hold an image, here you can define the path of an image that should be displayed in the panel If you are interested in how to use all the arguments and how to make them optional, read this: RLNT GITHUB
    So you should be able to see that you can adjust a lot of things. And you can suggest even more. If you want another style with a different position of the panel, no problem!
    Also the function contains a config where you are able to set default variables in case you don't want to write so many arguments each time. Let's say you want to display
    all messages of your server with this panel, then you can just set the Background Color you want to use for all your panels in the config and never write this color array again.
    Instead you just type nil as an argument. The function will automatically recognize this and replaces the nil with the variable from the config.

    All currently available styles:
    Style 1        Style 2    
    Style 3       Style 4    


    Codeexamples:

    Credits:
    @Sp4rkY - teached me the most in sqf @iben - got the wonderful github formatting from him @He-Man - made me familiar with eventHandlers and communication between client and server @DirtySanchez - helps me to improve my scripts (performance and structur) @LordGolias - made an awesome sqf-linter for the Atom-Editor @Epoch-Discord - especially @salival @BigEgg @DirtySanchez @scuba_steve - always helpful and very patient  
    Download and Installation: RLNT GITHUB   Bugs, Issues and Suggestions:
    RLNT GITHUB   Changelog:
    Click here for the Changelog with actual links if you are interested in the commits: Changelog
  16. Thanks
    SmokeyBR reacted to salival in [Release] Virtual Garage [Updated for 1.0.7]   
    Fixed here: https://github.com/oiad/virtualGarage/commit/371e191f719532decb46b37c8def5d076eb1a229
  17. Like
    SmokeyBR got a reaction from DieTanx in Group not saving after death   
    did u guys get it fix after applying Latest groups change ? ive applied them all and still not saving...
  18. Like
    SmokeyBR reacted to salival in Safe Manager help   
    I have not used this mod but that is  the correct value for a UID and a name that has been converted to an array (like how plot/door management do it)
  19. Like
    SmokeyBR reacted to Joshyy in [Release] Safe zone vehicle management - 1.0.6   
    This will unlock vehicles that are left inside safezones and if they are not taken within 15 minutes it will remove them.
    Step 1.
    Define your safe zone positions in config Variables or below #include "configVariables"
    DZE_SafeZonePosArray = [
    [[4064,11665,0],510], // Bash
    [[6326,7809,0],510], // Stary
    [[11447,11364,0],510], // Klen
    [[12944,12766,0],510], // Hero Camp
    [[1606,7803,0],510] // Bandit camp
    ]; 
    ^^ above are my safezones, you could also add the aircraft dealer if you wish
    Step 2.
    go to your server_monitor.sqf located in dayz_server\system
    find
    then find this below it
    add this directly below that
      
     
    This is what it should look like
    If you wish to change the settings e.g the range at which it deletes vehicles, or if you want vehicles to be removed faster or instantly simple edit the "uiSleep (60 * 15);" if you want to remove the 15 minute wait, just remove that line of code or comment it out.
     
    Leave a comment if you need any help.
  20. Like
    SmokeyBR got a reaction from theduke in [Outdated][RELEASE] Virtual Garage update for 1061   
  21. Like
    SmokeyBR reacted to icomrade in [Release] Anti Combat Log 1.0.6.1   
    Updated version of this script: 
    In server_playerSync.sqf
    Find this block of code: https://github.com/EpochModTeam/DayZ-Epoch/blob/Release_1.0.6.2/SQF/dayz_server/compile/server_playerSync.sqf#L142-L149
    Replace with: 
    if (_this select 4) then { //combat logged _medical set [1, true]; //set unconcious to true _medical set [10, 150]; //combat timeout //_character setVariable ["NORRN_unconscious",true,true]; // Set status to unconscious //_character setVariable ["unconsciousTime",150,true]; // Set knock out timer to 2 minutes 30 seconds //_character setVariable ["USEC_injured",true]; // Set status to bleeding //_character setVariable ["USEC_BloodQty",3000]; // Set blood to 3000 //Begin anti combat log _weapons = _playerGear select 0; _weapons_backpack = _playerBackp select 1; _current_magazine = currentMagazine _playerObj; _magazines_backpack = _playerBackp select 2; _magazinesRemove = _magazines; if ((typeName (_magazinesRemove select 0)) == "ARRAY") then { if ((count _magazinesRemove > 1) && {((typeName (_magazinesRemove select 1)) == "STRING") && {((_magazinesRemove select 1) != "")}}) then { _weapons set [(count _weapons), (_magazinesRemove select 1)]; }; _magazinesRemove = _magazines select 0; }; _loot_box = "USBasicAmmunitionBox" createVehicle [0,0,0]; clearMagazineCargoGlobal _loot_box; clearWeaponCargoGlobal _loot_box; { _loot_box addWeaponCargoGlobal [_x,1]; } forEach _weapons; _magazinesRemove set [(count _magazinesRemove),_current_magazine]; { _loot_box addMagazineCargoGlobal [_x,1]; } forEach _magazinesRemove; if (typeOf _backpack != "") then { if ((typename _weapons_backpack) == "ARRAY") then { { _loot_box addWeaponCargoGlobal [_x,((_weapons_backpack select 1) select _forEachIndex)]; } forEach (_weapons_backpack select 0); }; if ((typename _magazines_backpack) == "ARRAY") then { { _loot_box addMagazineCargoGlobal [_x,((_magazines_backpack select 1) select _forEachIndex)]; } forEach (_magazines_backpack select 0); }; _loot_box addBackpackCargoGlobal[(typeOf _backpack),1]; }; _playerBackp = ["",[[],[]],[[],[]]]; _playerGear = [[],[]]; _currentAnim = ""; _currentWpn = ""; //End anti combat log };  
    Above this line: https://github.com/EpochModTeam/DayZ-Epoch/blob/Release_1.0.6.2/SQF/dayz_server/compile/server_playerSync.sqf#L180
    place this code: 
    if (!isNil "_loot_box") then { //anti combat-log _loot_box setPos _charPos; }; YOU MUST ADD "_loot_box" TO YOUR PRIVATE ARRAY AT THE TOP OF THE FILE!
  22. Like
    SmokeyBR reacted to icomrade in [Release] Anti Combat Log 1.0.6.1   
    Updated original post to fix this (untested, but minor changes so meh).
    Edit: Almost forgot, you'll need to add "_loot_box" to the file's private array
  23. Like
    SmokeyBR reacted to theduke in [Outdated][RELEASE] Virtual Garage update for 1061   
    Thanks for the input. The client RPT error is fixed. Please refer to step 5
    As for the server i have yet to reproduce it
    I also added a fix for the currency to remove properly thanks to cherdenko
    @Cherdenko I tried the z_moneyvariable again and it worked for me this time.. dont know why it didnt work the first time.. i might of forgot to save the file haha
    OP has been updated
  24. Like
    SmokeyBR reacted to theduke in [Outdated][RELEASE] Virtual Garage update for 1061   
    Alright so here is the virtual garage.
    ALL CREDITS go to the original authors.
    GZA David for the Virtual Garage script
    Torndeco for the EXT Database
    All i did was change a few variables to update it for 1.0.6.1
     
    DOWNLOAD
    https://github.com/theduke77/Virtual-Garage
    I use the script a little different than intended.
    The only difference, i use vehicle and air traders to access the virtual garage, intended for use with garages, but requires gem crafting...
    The original instructions are in the download in case someone wants to do it that way
    so on with the instructions..
    Tools Required
    Notepad ++
    PBO Tool
    SQL tool such as HeidiSQL
    First we start with the mission folder.
    copy the scripts folder from the downloads into your mission folder.
    1. Open your init.sqf
    look for
    dayz_randomMaxFuelAmount add this bellow
    DZE_garagist = ["Profiteer4","Worker3","RU_Profiteer4","Hooker1","Worker2"]; save and close
    2. Open your description.ext
    add this at the bottom
    #include "scripts\garage\common.hpp" #include "scripts\garage\vehicle_garage.hpp" save and close
    4. Open your fn_selfactions.sqf
    look for
    //Player Deaths add this above
    //Garage if((_typeOfCursorTarget in DZE_garagist) && (player distance _cursorTarget < 5)) then { if (s_garage_dialog2 < 0) then { s_garage_dialog2 = player addAction ["Vehicle Garage", "scripts\garage\vehicle_dialog.sqf",_cursorTarget, 3, true, true, "", ""]; }; if (s_garage_dialog < 0) then { s_garage_dialog = player addAction ["Store Vehicle in Garage", "scripts\garage\vehicle_store_list.sqf",_cursorTarget, 3, true, true, "", ""]; }; } else { player removeAction s_garage_dialog2; s_garage_dialog2 = -1; player removeAction s_garage_dialog; s_garage_dialog = -1; }; still in the fn_selfactions.sqf
    look for
    player removeAction s_player_fuelauto2; s_player_fuelauto2 = -1; player removeAction s_player_manageDoor; s_player_manageDoor = -1; add this bellow
    player removeAction s_garage_dialog2; s_garage_dialog2 = -1; player removeAction s_garage_dialog; s_garage_dialog = -1; save and close.
    5. Open your variables.sqf
    look for dayz_resetSelfActions = {
    add this before the closing bracket     };
    s_garage_dialog = -1; s_garage_dialog2 = -1; save and close
     
    6. Open your compiles.sqf
    look for
    fn_dropItem = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_dropItem.sqf"; add this above
    player_getVehicle = compile preprocessFileLineNumbers "scripts\garage\getvehicle.sqf"; player_storeVehicle = compile preprocessFileLineNumbers "scripts\garage\player_storeVehicle.sqf"; vehicle_info = compile preprocessFileLineNumbers "scripts\garage\vehicle_info.sqf"; Still in the compiles, add this at the bottom
    SC_fnc_removeCoins= { private ["_player","_amount","_wealth","_newwealth", "_result"]; _player = _this select 0; _amount = _this select 1; _result = false; _wealth = _player getVariable[Z_MoneyVariable,0]; if(_amount > 0)then{ if (_wealth < _amount) then { _result = false; } else { _newwealth = _wealth - _amount; _player setVariable[Z_MoneyVariable,_newwealth, true]; _player setVariable ["moneychanged",1,true]; _result = true; call player_forceSave; }; }else{ _result = true; }; _result }; SC_fnc_addCoins = { private ["_player","_amount","_wealth","_newwealth", "_result"]; _player = _this select 0; _amount = _this select 1; _result = false; _wealth = _player getVariable[Z_MoneyVariable,0]; _player setVariable[Z_MoneyVariable,_wealth + _amount, true]; call player_forceSave; _player setVariable ["moneychanged",1,true]; _newwealth = _player getVariable[Z_MoneyVariable,0]; if (_newwealth >= _wealth) then { _result = true; }; _result }; vehicle_gear_count = { private["_counter"]; _counter = 0; { _counter = _counter + _x; } count _this; _counter }; save and close
    7A. Open your publicEH.sqf
    If you don't have a custom publicEH.sqf already, go to step 7B
    look for
    if (dayz_groupSystem) then { "PVDZ_Server_UpdateGroup" addPublicVariableEventHandler {(_this select 1) spawn server_updateGroup}; }; add this bellow
    "PVDZE_queryGarageVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_queryGarageVehicle};
        "PVDZE_spawnVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_spawnVehicle};
        "PVDZE_storeVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_storeVehicle};
    7B. Only do this step if you DON'T have a custom publicEH.sqf
    Open your init.sqf again
    look for
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; replace it with this
    call compile preprocessFileLineNumbers "scripts\garage\publicEH.sqf"; Thats it for the mission file
     
    Now for the server 
    Copy the garage folder from the download, into the compiles folder in your dayz_server folder
    1. Open your server_functions.sqf
    look for this
    spawn_vehicles = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\spawn_vehicles.sqf"; add this bellow
    "extDB" callExtension "9:DATABASE:Database2"; "extDB" callExtension format["9:ADD:DB_RAW_V2:%1",1]; "extDB" callExtension "9:LOCK"; server_queryGarageVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf"; server_spawnVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf"; server_storeVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_storeVehicle.sqf"; fn_asyncCall = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\fn_async.sqf"; Save and close
    Thats it for the server PBO
     
     
    BattlEye
    Add to publicvariable.txt:
    !="PVDZE_queryGarageVehicle" !="PVDZE_storeVehicle" !="PVDZE_spawnVehicle" 
     
    Infistar
    Infistar: 
    Add to _ALLOWED_Dialogs:
    2800,3800
     
    Now for the database
    Using heidi (or your favorite sql tool)
    Open SQL.txt and copy everything in there and run a query on your database.
    This will create a database called extdb
    Copy the @extdb folder to the root of your server.
    In your server launch BAT. add @extdb; before @dayz_epoch_server
    Open the @extdb folder, edit the extdb-conf.ini and change the username and password to suit your needs.
    (you might need to give all permissions for that user for the new database in heidi)
     
    All done.  Log in and go visit your vehicle traders!
    Cheers Enjoy!
     
    EDIT: updated the instructions for the fix of ANY/gear and it not taking coins. Please refer to step 6
    EDIT 22/03/2017 : Added a fix for client RPT error (Step 5) Also changed the variable for the currency
  25. Like
    SmokeyBR reacted to salival in [Outdated] ZSC for Epoch 1.0.6.2 (And OverWatch 0.25)   
    Outdated, already built into Epoch 1.0.7
    Hi,
    This is my modified version of Zupas single currency framework. This drops into an Epoch 1.0.6.1+ server and just "works".
    Credits to Zupa for his amazing work, There's quite a few fixes mentioned in his original release thread in this version to make it more secure.
    GitHub link with install instructions: https://github.com/oiad/ZSC
    Tested as working on a blank Epoch 1.0.6.1+ and OverWatch 0.25 server. Designed to minimize duping/glitching of bank related saving with nearby players (checkWallet etc). Lots of code snippets taken from the original Zupa release thread to stop multiple people checking wallet/depositing into the same safe etc. Supports multiple configuration types, Safes/lockboxes only, vehicles only, safes/lockboxes AND vehicles. Supports any map, currently only has server_traders files for Chernarus (default), napf and tavi. To install global banking: https://github.com/oiad/ZSC#changing-to-global-banking Install:
    This install basically assumes you have NO custom variables.sqf or compiles.sqf or fn_selfActions.sqf, I would recommend diffmerging where possible.  This has all the config traders set up for epoch 1.0.6 items and OverWatch guns/items. You will need to install the specific version you want to use, See install notes further down.
×
×
  • Create New...