-
Posts
181 -
Joined
-
Last visited
Reputation Activity
-
Soul got a reaction from 31_D!4b10 in Custom HiveExt.dll Release
SHORTCODE LEGEND:
These shortcodes are used in the repo titles, this indicates what the specific repo is for.
SC >>> SingleCurrency
MC >>> MultiChar
999 >>> 998/999 custom query supported
Custom HiveExt.dll and needed sqf files + sql query file available on:
Variant 1:DayZ-Epoch_SCHiveExt
Variant 2: Dayz-Epoch_SCMCHiveExt
Variant 3: DayZ_epoch_SCMC999HiveExt
Variant 4: DayZ_epoch_SC999HiveExt
All 4 variants have the following in common.
- New CHILD:298 >>> fetching player bank data, used while player joins server
- New CHILD:299 >>> updates player bank data, used when banking.
- New CHILD:104 >>> gets all adminuids + their adminlevel from the admin_data table. (can be used to restrict access to admin tools aswell as infiSTAR AH)
- Updated CHILD: 101 >>> checks if player exists in banking_data table and adds ifnot or updates playername if change detected
- Updated CHILD:102 >>> added selection of cashMoney field during retrieving survivor data on login.
- Updated CHILD:201 >>> added element to handle players cashmoney during updates to database.
What is in variant 1?
Everything stated above.
What is in variant 2?
Added support for AxeCop's multi char mod. and everything that you have in variant 1.
What is in variant 3?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1 & 2. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What is in variant 4?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What else can i find on the github repo's?
SCDBQuery.sql:
Run this file on your database by dragging and dropping
It will add the field "CashMoney" to the character_data table and
it will create a new table called "banking_data" with fields "PlayerUID,"PlayerName","BankSaldo"
SCDBQuery_TransferGoldCoins.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the headshots field.
It will grab the value from "HeadShots" and put it in "CashMoney" for each row in your "character_data" table.
SCDBQuery_TransferGoldCoins2.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the "morality" field?
It will make db entries for all players in "player_data" in the "banking_data" table and add the corresponding values from the "morality" field
into the "banksaldo" field.
admin_data.sql:
This file will add a table called "admin_data", this can be used in combination with infiSTAR AH or any other tool you need restricted access
to. Intended for advanced users.
Server folder:
Contains all files that where modified from Zupa's v1.1 version
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
Mission folder:
Contains all files that where modified from Zupa's v1.1 version.
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
BE filters:
This needs to be added in the first line with !="" values inside the publicvarible.txt if using BE filters.
Add it after the last !="" value. If using BE filters and you skip this step your players will get kicked for trying to send this PV to the server.
!="PVDZE_bank_Save" Before installing:
Always make backups of everything!
Q&A:
Q: Will support for AxeCops multi char mod be added in this hive?
A: There is a 2nd version of the custom hiveext.dll that has support added for this mod.
Q: Will there be 999 call support in this custom hiveext.dll
A: There is a 3rd version of the custom hiveext.dll that has support for everything in version 1 & 2 and added support for 999 calls.
Q: Does this hive have support vanilla epoch base maintenance?
A: Yes it has the required funtionality as this hive was build of the last version released by VB[Awol]
Q: Why are there 4 different variants of this custom hive?
A: More flavours to choose from really. It enables you to either use or stay away from the unsafe 999 calls and still use this custom hive for single currency.
Got any more question? Leave a post and i'll add them to the main post's Q&A section.
Cheers Soul!
-
Soul got a reaction from Rythron in Door Escape Blocker | DEB
This is a modified version of a script i was using a long time to block esc on a custom spawn selection screen i'm using on our
vanilla dayz servers.
What this does is check for keypresses when the doorlock ui is active, when it detects the user pressing esc it cancles the actions.
This effectivly blocks the user from closing the dialog with the escape button. Have fun with it.
Create a new file called antiBruteForce.sqf
NPG_fnc_cKeyDownGenericDisplay = { private["_keypressed","_return"]; _keypressed = _this select 1; _return = false; #define KEYSCODE_ESC_KEY 1 // disable esc while in dialog switch (_keypressed) do { case KEYSCODE_ESC_KEY: { _return = true; }; }; _return; }; [] spawn { waitUntil {sleep 0.01; (!(isNull (findDisplay 41144)))}; disableSerialization; _foundComboLockUI = findDisplay 41144; _foundComboLockUI displayAddEventHandler ["KeyDown","_this call NPG_fnc_cKeyDownGenericDisplay"]; }; Now you can include the file. It has to be run on the client so make shure it is somewhere included
inside a if(!isDedicated) {}; check and make shure that your path to this file is set according to its location in your mission.
#include "antiBruteForce.sqf" I'll try to update this script tonight as i dont think it needs the spawn and waituntill. But this version does work for shure.
-
Soul got a reaction from Mendo in [FIX] cashmoney & bankmoney loss after skinchange/humanity morph
Edits required in compiles.sqf in your mission pbo or whatever file you use for redirecting mod files.
Redirect player_wearClothes.sqf back to mod folder directory and delete the file in your mission folder.
player_wearClothes = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_wearClothes.sqf"; Get player_switchModel.sqf from "dayz_code\compile" in the epoch mod pbo and then redirect it to your mission folder.
In the line below you can see that i have a folder structure "dayz_code\compile" in my mission root
if yours is different make shure the path is changed to whatever your folder structure is.
player_switchModel = compile preprocessFileLineNumbers "dayz_code\compile\player_switchModel.sqf"; Then in player_switchModel.sqf find this:
_class = _this; _position = getPosATL player; _dir = getDir player; _currentAnim = animationState player; _tagSetting = player getVariable["DZE_display_name",false]; _playerUID = getPlayerUID player; _weapons = weapons player; _countMags = call player_countMagazines; _magazines = _countMags select 0; And add these 2 after it:
For my update to single currency:
_cashMoney = player getVariable["cashMoney",0]; _bankMoney = player getVariable["bankMoney",0]; For Zupa's v1.0 & 1.1 release:
_cashMoney = player getVariable["headShots",0]; _bankMoney = player getVariable["bank",0]; You dont need both of the above, just for what version of this single currency mod you are using.
Warning: This might change with release version 2.
Then find this part:
if (_tagSetting) then { DZE_ForceNameTags = true; }; Add above:
For my update to single currency:
player setVariable ["cashMoney",_cashMoney,true]; player setVariable ["bankMoney",_bankMoney]; For Zupa's v1.0 & 1.1 release:
player setVariable["headShots",_cashMoney,true]; player setVariable["bank",_bankMoney]; You dont need both of the above, just for what version of this single currency mod you are using.
Warning: This might change with release version 2.
-
Soul got a reaction from hansi in Custom HiveExt.dll Release
SHORTCODE LEGEND:
These shortcodes are used in the repo titles, this indicates what the specific repo is for.
SC >>> SingleCurrency
MC >>> MultiChar
999 >>> 998/999 custom query supported
Custom HiveExt.dll and needed sqf files + sql query file available on:
Variant 1:DayZ-Epoch_SCHiveExt
Variant 2: Dayz-Epoch_SCMCHiveExt
Variant 3: DayZ_epoch_SCMC999HiveExt
Variant 4: DayZ_epoch_SC999HiveExt
All 4 variants have the following in common.
- New CHILD:298 >>> fetching player bank data, used while player joins server
- New CHILD:299 >>> updates player bank data, used when banking.
- New CHILD:104 >>> gets all adminuids + their adminlevel from the admin_data table. (can be used to restrict access to admin tools aswell as infiSTAR AH)
- Updated CHILD: 101 >>> checks if player exists in banking_data table and adds ifnot or updates playername if change detected
- Updated CHILD:102 >>> added selection of cashMoney field during retrieving survivor data on login.
- Updated CHILD:201 >>> added element to handle players cashmoney during updates to database.
What is in variant 1?
Everything stated above.
What is in variant 2?
Added support for AxeCop's multi char mod. and everything that you have in variant 1.
What is in variant 3?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1 & 2. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What is in variant 4?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What else can i find on the github repo's?
SCDBQuery.sql:
Run this file on your database by dragging and dropping
It will add the field "CashMoney" to the character_data table and
it will create a new table called "banking_data" with fields "PlayerUID,"PlayerName","BankSaldo"
SCDBQuery_TransferGoldCoins.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the headshots field.
It will grab the value from "HeadShots" and put it in "CashMoney" for each row in your "character_data" table.
SCDBQuery_TransferGoldCoins2.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the "morality" field?
It will make db entries for all players in "player_data" in the "banking_data" table and add the corresponding values from the "morality" field
into the "banksaldo" field.
admin_data.sql:
This file will add a table called "admin_data", this can be used in combination with infiSTAR AH or any other tool you need restricted access
to. Intended for advanced users.
Server folder:
Contains all files that where modified from Zupa's v1.1 version
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
Mission folder:
Contains all files that where modified from Zupa's v1.1 version.
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
BE filters:
This needs to be added in the first line with !="" values inside the publicvarible.txt if using BE filters.
Add it after the last !="" value. If using BE filters and you skip this step your players will get kicked for trying to send this PV to the server.
!="PVDZE_bank_Save" Before installing:
Always make backups of everything!
Q&A:
Q: Will support for AxeCops multi char mod be added in this hive?
A: There is a 2nd version of the custom hiveext.dll that has support added for this mod.
Q: Will there be 999 call support in this custom hiveext.dll
A: There is a 3rd version of the custom hiveext.dll that has support for everything in version 1 & 2 and added support for 999 calls.
Q: Does this hive have support vanilla epoch base maintenance?
A: Yes it has the required funtionality as this hive was build of the last version released by VB[Awol]
Q: Why are there 4 different variants of this custom hive?
A: More flavours to choose from really. It enables you to either use or stay away from the unsafe 999 calls and still use this custom hive for single currency.
Got any more question? Leave a post and i'll add them to the main post's Q&A section.
Cheers Soul!
-
Soul got a reaction from Slimdickens in Custom HiveExt.dll Release
SHORTCODE LEGEND:
These shortcodes are used in the repo titles, this indicates what the specific repo is for.
SC >>> SingleCurrency
MC >>> MultiChar
999 >>> 998/999 custom query supported
Custom HiveExt.dll and needed sqf files + sql query file available on:
Variant 1:DayZ-Epoch_SCHiveExt
Variant 2: Dayz-Epoch_SCMCHiveExt
Variant 3: DayZ_epoch_SCMC999HiveExt
Variant 4: DayZ_epoch_SC999HiveExt
All 4 variants have the following in common.
- New CHILD:298 >>> fetching player bank data, used while player joins server
- New CHILD:299 >>> updates player bank data, used when banking.
- New CHILD:104 >>> gets all adminuids + their adminlevel from the admin_data table. (can be used to restrict access to admin tools aswell as infiSTAR AH)
- Updated CHILD: 101 >>> checks if player exists in banking_data table and adds ifnot or updates playername if change detected
- Updated CHILD:102 >>> added selection of cashMoney field during retrieving survivor data on login.
- Updated CHILD:201 >>> added element to handle players cashmoney during updates to database.
What is in variant 1?
Everything stated above.
What is in variant 2?
Added support for AxeCop's multi char mod. and everything that you have in variant 1.
What is in variant 3?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1 & 2. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What is in variant 4?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What else can i find on the github repo's?
SCDBQuery.sql:
Run this file on your database by dragging and dropping
It will add the field "CashMoney" to the character_data table and
it will create a new table called "banking_data" with fields "PlayerUID,"PlayerName","BankSaldo"
SCDBQuery_TransferGoldCoins.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the headshots field.
It will grab the value from "HeadShots" and put it in "CashMoney" for each row in your "character_data" table.
SCDBQuery_TransferGoldCoins2.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the "morality" field?
It will make db entries for all players in "player_data" in the "banking_data" table and add the corresponding values from the "morality" field
into the "banksaldo" field.
admin_data.sql:
This file will add a table called "admin_data", this can be used in combination with infiSTAR AH or any other tool you need restricted access
to. Intended for advanced users.
Server folder:
Contains all files that where modified from Zupa's v1.1 version
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
Mission folder:
Contains all files that where modified from Zupa's v1.1 version.
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
BE filters:
This needs to be added in the first line with !="" values inside the publicvarible.txt if using BE filters.
Add it after the last !="" value. If using BE filters and you skip this step your players will get kicked for trying to send this PV to the server.
!="PVDZE_bank_Save" Before installing:
Always make backups of everything!
Q&A:
Q: Will support for AxeCops multi char mod be added in this hive?
A: There is a 2nd version of the custom hiveext.dll that has support added for this mod.
Q: Will there be 999 call support in this custom hiveext.dll
A: There is a 3rd version of the custom hiveext.dll that has support for everything in version 1 & 2 and added support for 999 calls.
Q: Does this hive have support vanilla epoch base maintenance?
A: Yes it has the required funtionality as this hive was build of the last version released by VB[Awol]
Q: Why are there 4 different variants of this custom hive?
A: More flavours to choose from really. It enables you to either use or stay away from the unsafe 999 calls and still use this custom hive for single currency.
Got any more question? Leave a post and i'll add them to the main post's Q&A section.
Cheers Soul!
-
Soul got a reaction from Sukkaed in Custom HiveExt.dll Release
_key2 = format["CHILD:298:%1:",_playerID]; _primary2 = _key2 call server_hiveReadWrite; if(count _primary2 > 0) then { if((_primary2 select 0) != "ERROR") then { _bankMoney = _primary2 select 1; } else { _bankMoney = 0; }; } else { _bankMoney = 0; }; -
Soul reacted to piggd in [Release] textBoxx
Description:
Ever wish you could show a player some data but it is too big to dump to system chat? Wish you had a handy dialog box to display that data too but your not good at dialog boxes? Now you can. I designed texxBoxx because I wanted to display all the objects around my players plot poles and did not have a good medium to display them in. i also wanted a way to display my server list, rules, mods and admin lists. I am not just starting to write my in game help system code and using textBoxx to display the information.
Mod Features:
Display 50 character wide, 100 character wide and 150 character wide text boxes from an array of text,
Re useable and not application specific.
Easy to configure new windows using the templates each addon you want to use it with,
texxBoxx50
textBoxx100
textBoxx150
textBoxx Demo Script
Known Issues:
textBoxx was designed for resolutions 1300x#### and above. Some of the boxes will consume the whole screen on the lower resolutions.
Installation:
1. Download from my textBoxx GitHub (Contains a vanilla epoch chernarus mission.pbo example file).
2. Create a directory called mission_pbo
3 Take your mission.pbo file and extract it into the mission_pbo directory
4. Unzip the zip file you download from my github and move the custom directory into your mission_pbo directory.
5. Edit your init.sqf file and make the following modifications:
from:
//Load in compiled functions call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early) to:
//Load in compiled functions call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early) //------------------------------------------------------------------------ TextBoxx Start --------------------------------------------------------------------------------- call compile preprocessFileLineNumbers "custom\textBoxx\textBoxx_init.sqf"; //------------------------------------------------------------------------ TextBoxx End ----------------------------------------------------------------------------------- 6. Edit description.ext add the following lines to the end of the file.
//------------------------------------------------------------------------ TxtBoxx Start --------------------------------------------------------------------------------- // Uses the same common as Chameleon leave comment out the line below if using Chameleon common.hpp #include "custom\textBoxx\dialog\common.hpp" #include "custom\textBoxx\dialog\textBoxxGui.hpp" //------------------------------------------------------------------------ TxtBoxx End ----------------------------------------------------------------------------------- ** NOTE if using only one common.hpp needs to be used. Comment out the 2nd one by placing a // in front of the include. They share the same common file.
Configuration:
Displaying Static Data:
1) Create a directory in custom\textBoxx that is meaningful
for example if I was creating a file to display information about my server such as an admin list , I would create a directory called custom\textBoxx\serverInfo
2) copy custom\textBoxx\template\template_textBoxx50_dialog.sqf to custom\textBoxx\serverInfo\admin_list_dialog.sqf
3) edit the file to look something like this: Remember to change the title and replace the example lines with your own array of text leaving the comma off the last element.
/* textBoxx by piggd Email: [email protected] Website: http://dayzpiggd.enjin.com Donations Accepted via paypal to [email protected] */ //TextBoxxTitle = "1234567890ABCDEFGHIJ1234567890ABCDEFGHIJ1234567"; private ["_textBoxxSaveLine"]; _textBoxxSaveLine = " "; TextBoxxTitle = "Piggd Admin List"; textBoxx_TEXT_LIST = [ "Big Green - Cmdr. Hall", "Commander Dark - DUKE", "Dutch5o- Euro", "Father McGruder - Fixxer", "iSaeko - Jane Doe", "jumpshot - Kevin", "Knightsofra1 - Laura", "Lithh - Lorgar", "Mack Bolan - Master_Yoda", "Meat Shield - piggd", "Pvt Beans - Raven", "Shadowlee - Spike Spiegel", "Warmonkey" ]; textBoxx_TEXT_LIST set [(count textBoxx_TEXT_LIST),_textBoxxSaveLine]; createDialog "DisplaytextBoxx50"; 4) Then in your self action or a menu program you might have a block of code that looks something like this:
if( _canDo) then { if (s_player_display_admnin_list < 0) then { s_player_display_admnin_list = player addaction [("<t color=""#0074E8"">" + ("Display Admin List") +"</t>"),"custom\textBoxx\serverInfo\admin_list_dialog.sqf","",1,false,true,"",""]; }; } else { player removeAction s_player_display_admnin_list; s_player_display_admnin_list = -1; }; Displaying Dynamic Data From a script/addon:
1) Create a directory in custom\textBoxx that is meaningful ( I would use the addon name or script function name)
for example if I was creating a script to display all the objects around a player in a 100m radius , I would create a directory called custom\textBoxx\objects
2) copy custom\textBoxx\template\example_with _script_call_dialog.sqf to custom\textBoxx\objects\display_objects_100m_dialog.sqf
3) edit the file to look something like this: You need to change the custom\textBoxx\template\example_script.sqf with the name of the script you want to execute display_objects_100m.sqf for this example.
You would also need to change DisplaytextBoxx100 to the size you want DisplaytextBoxx50, DisplaytextBoxx100, or DisplaytextBoxx150 . It set to 100 for the example.
/* textBoxx by piggd Email: [email protected] Website: http://dayzpiggd.enjin.com Donations Accepted via paypal to [email protected] */ private ["_textBoxxSaveLine","_handle"]; _textBoxxSaveLine = " "; TextBoxxTitle = "Show All Objects 100m from the Character"; textBoxx_TEXT_LIST = []; //_handle = player execVM "custom\textBoxx\template\example_script.sqf"; _handle = player execVM "custom\textBoxx\objects\display_objects_100m.sqf"; waitUntil {scriptDone _handle}; textBoxx_TEXT_LIST set [(count textBoxx_TEXT_LIST),_textBoxxSaveLine]; createDialog "DisplaytextBoxx100"; 4) Create your script or modify your addon:
In your script you want to initialize the variable textBoxx_TEXT_LIST = []; to make sure that it is empty.
Then you need to format your text data and insert it into your array as I have done in the example with these two lines.
_textBoxxSaveLine = format["Object %1 - %2 is with in a 100m radius from %3.",_indx, _x, dayz_playerName];
textBoxx_TEXT_LIST set [(count textBoxx_TEXT_LIST),_textBoxxSaveLine];
/* textBoxx by piggd Email: [email protected] Website: http://dayzpiggd.enjin.com Donations Accepted via paypal to [email protected] */ private ["_tmpList","_indx","_textBoxxSaveLine"]; // Make sure the player UID has been converted before moving forward. _tmpList = []; // Empties the DialogBox list since it is a global variable. textBoxx_TEXT_LIST = []; _indx = 0; //Gets all the objects wih in a 100m of the player _tmpList = (getPosATL player ) nearObjects ["All",100]; { // These two line load the global array with the text that will be displayed when the script exits excution when called from the dialog program. _indx = _indx + 1; _textBoxxSaveLine = format["Object %1 - %2 is with in a 100m radius from %3.",_indx, _x, dayz_playerName]; textBoxx_TEXT_LIST set [(count textBoxx_TEXT_LIST),_textBoxxSaveLine]; } count _tmpList; Email: [email protected]
Website: Piggd Dayz Gaming
Donate to piggd
-
Soul reacted to Zupa in [ALL] The Great Library Of Single Currency Scripts & Solutions
The following topic contains addons or rewritten scripts for single currency.
Core Scripts
Single Currency 3.0 Storage - Zupa
New independet release, RECOMMENDED
Single Currency 1.1 - Zupa
The Scripts that makes this all happen. Currently always start installing the currency with this topic. It will set up your first version for you to choose to update to souls 2.0 updates (recommendend.)
In the close future i will make an officia SC 2.0 release.
Single Currency 2.0 ( Extension) - Soul
The soon to be official release but currently only an update to 1.1. Install 1.1 and update to this version to enjoy the best performace and support on your server.
Single Currency Development functions - Zupa
These functions provide easy implementation of adding and removing money in your script to support single currency. They should be in the 1.1 and 2.0 release but better check to be sure.
Single Currency Traders - Zupa
This folder contains compatible traders with the cfgtraders provided. I'll try to extend it as soon as possible, if someone has working traders and is willing to share them to the list, please do contact me.
SC Traders
Script Extensions
Maintain Single Currency (2.0 only) - Mcgough
This script allows you maintain at a plotpole with cash.
Smelting Items-Coins - Storm
This script allows you to smelt your coins into bars and the otherway arround next to a burning object.
Admins Tools & Infistar AH Single Currency actions on players - Rocu, Chunk
This script allows an admin to remove/give coins from a player.
Infistar AH Spectate players bank and cash - PeterBeer
This script allows an admin to see cash and bank while spectating a person.
Transfer Money from ATM - Rocu
Allows you to transfer money form one account to antother one.
Scripts made compatible with SC
JAEM Chopper Evac SC - Zupa
Changes to the original script to work with single currency.
Axe Cop Service Points SC - Zupa
Changes to the original script to work with single currency.
http://epochmod.com/forum/index.php?/topic/15464-release-single-currency-axe-cop-service-points-for-sc/
Advanced Alchemical Crafting SC - Zupa
Changes to the original script to work with single currency.
http://epochmod.com/forum/index.php?/topic/16203-advanced-alchemical-crafting-v33/?p=126080
Axe Cop Multy Character Select SC - Soul
Changes to the original script to work with single currency.
Map Addons/Changes
Central Chernarus Bank - Chunk, No Captain Chunk
A big bank in stary
http://epochmod.com/forum/index.php?/topic/16004-addon-central-chernarus-bank/
Napf Banks - Pwn3dNexus
Banks for Napf
Napf Banks
Banker NPC's - MGM
NPC's as bankers
http://epochmod.com/forum/index.php?/topic/16597-release-banker-npcs-to-replace-atm-objects/
Sahrani Banks & Changes - KingRaymond795
Banks for Sahrani
http://epochmod.com/forum/index.php?/topic/28432-sahrani-map-addons/
Usefull Guides
Money on AI - Zupa
Allows you to put money on AI.
http://epochmod.com/forum/index.php?/topic/15737-put-coins-on-ai/?p=117979
Freeze Objects & Banks into place - Soul, Storm
Allows you to make an item static, so it will never move. This stops players from knocking over banks.
http://epochmod.com/forum/index.php?/topic/15485-how-to-stop-users-from-knocking-down-the-atm/?p=121203
Custom Debug Monitor - PeterBeer
Guide + files for a more detailed debug monitor.
http://epochmod.com/forum/index.php?/topic/15437-tutorial-custom-debug-stats/
Custom Default Ammount in Fields - Zupa
Allows you to change the default 1 in your bank and give player dialogs.
http://epochmod.com/forum/index.php?/topic/16591-resolved-in-banking-menu-default-amount-is-prepopulated-with-1/
Remove trade animations - Peterbeer, Zupa
Allows you remove the trading animation
http://epochmod.com/forum/index.php?/topic/15911-tutorial-remove-animation-for-trading/
Add Traders and TradersItems with Single Currency - Chunk
Guide how to make new traders and add items to traders.
http://epochmod.com/forum/index.php?/topic/16386-tutorial-adding-custom-traders-with-single-currency-extras/
Common Issues -> Fixed
Bank Not Saving - Rocu, Soul, Zupa
Common Solution to fix bank value not saving to DB.
http://epochmod.com/forum/index.php?/topic/15924-issue-banking-data-not-saving-for-new-players-fixed/
Fix Money And Bank after skin change - Soul
Fixes the reset of money and bank when you change clothes
http://epochmod.com/forum/index.php?/topic/15449-fix-cashmoney-bankmoney-loss-after-skinchangehumanity-morph/
Fix - Better trade files - Rocu
Fixes the issue of the rpt logs when trading. Does bettter logging of trade activties
http://epochmod.com/forum/index.php?/topic/16750-fix-better-trade-files-proper-logging-etc/
More added later
Do you think your scripts/addon/guide should get added? Give me a message and i will evaluate the possibility. -
Soul reacted to Rocu in Taviana Overpoch Vendors Empty
If you followed the installation correctly you should have a folder called CfgServerTrader in your mission folder am I right?
In that folder there are files that have category ID and items in it. The beginning of one of those files should look something like this:
class Category_577 { class 30Rnd_556x45_StanagSD { type = "trade_items"; buy[] ={400,"Coins"}; sell[] ={200,"Coins"}; }; and so on... The number at the end of Category_ represents the category ID for these items (577 in this example). Now you have to match that up with the trader that sells those items.
Open up your server_traders.sqf. In this file there are all the traders and their categories. This is where you have to match up your trader with your category ID.
So for example, let's say that this Category 577 is an "Ammunition" category for Bandit vendor. So we search for the Bandit vendor (usually there's a comment right next to it, so it's easier to search) and we add that number 577 to it's list of categories, like so:
/*--------------------------------------------------------------------------- BANDIT VENDORS ---------------------------------------------------------------------------*/ //COMBINATION VENDOR menu_GUE_Woodlander1 = [ [["Ammunition",577],["Helicopter Armed",512],["Military Armed",569],["Trucks Armed",534],["Weapons",627]], [], "hostile" ]; (Note the '["Ammunition",577]' in there)
So basically you have to match up every number with it's correct category ID. For example in the code above "Helicopters Armed" has an ID of 512. Now you would need to look up the file that has unarmed helicopters in them and see if it's ID is indeed 512. Hope my explanation was understandable enough.
For time saving purposes I recommend just setting up a couple of categories correctly at first and see if that even works. If that doesn't work then this is not the solution for your problem.
-
Soul got a reaction from mgm in Custom HiveExt.dll Release
SHORTCODE LEGEND:
These shortcodes are used in the repo titles, this indicates what the specific repo is for.
SC >>> SingleCurrency
MC >>> MultiChar
999 >>> 998/999 custom query supported
Custom HiveExt.dll and needed sqf files + sql query file available on:
Variant 1:DayZ-Epoch_SCHiveExt
Variant 2: Dayz-Epoch_SCMCHiveExt
Variant 3: DayZ_epoch_SCMC999HiveExt
Variant 4: DayZ_epoch_SC999HiveExt
All 4 variants have the following in common.
- New CHILD:298 >>> fetching player bank data, used while player joins server
- New CHILD:299 >>> updates player bank data, used when banking.
- New CHILD:104 >>> gets all adminuids + their adminlevel from the admin_data table. (can be used to restrict access to admin tools aswell as infiSTAR AH)
- Updated CHILD: 101 >>> checks if player exists in banking_data table and adds ifnot or updates playername if change detected
- Updated CHILD:102 >>> added selection of cashMoney field during retrieving survivor data on login.
- Updated CHILD:201 >>> added element to handle players cashmoney during updates to database.
What is in variant 1?
Everything stated above.
What is in variant 2?
Added support for AxeCop's multi char mod. and everything that you have in variant 1.
What is in variant 3?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1 & 2. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What is in variant 4?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What else can i find on the github repo's?
SCDBQuery.sql:
Run this file on your database by dragging and dropping
It will add the field "CashMoney" to the character_data table and
it will create a new table called "banking_data" with fields "PlayerUID,"PlayerName","BankSaldo"
SCDBQuery_TransferGoldCoins.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the headshots field.
It will grab the value from "HeadShots" and put it in "CashMoney" for each row in your "character_data" table.
SCDBQuery_TransferGoldCoins2.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the "morality" field?
It will make db entries for all players in "player_data" in the "banking_data" table and add the corresponding values from the "morality" field
into the "banksaldo" field.
admin_data.sql:
This file will add a table called "admin_data", this can be used in combination with infiSTAR AH or any other tool you need restricted access
to. Intended for advanced users.
Server folder:
Contains all files that where modified from Zupa's v1.1 version
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
Mission folder:
Contains all files that where modified from Zupa's v1.1 version.
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
BE filters:
This needs to be added in the first line with !="" values inside the publicvarible.txt if using BE filters.
Add it after the last !="" value. If using BE filters and you skip this step your players will get kicked for trying to send this PV to the server.
!="PVDZE_bank_Save" Before installing:
Always make backups of everything!
Q&A:
Q: Will support for AxeCops multi char mod be added in this hive?
A: There is a 2nd version of the custom hiveext.dll that has support added for this mod.
Q: Will there be 999 call support in this custom hiveext.dll
A: There is a 3rd version of the custom hiveext.dll that has support for everything in version 1 & 2 and added support for 999 calls.
Q: Does this hive have support vanilla epoch base maintenance?
A: Yes it has the required funtionality as this hive was build of the last version released by VB[Awol]
Q: Why are there 4 different variants of this custom hive?
A: More flavours to choose from really. It enables you to either use or stay away from the unsafe 999 calls and still use this custom hive for single currency.
Got any more question? Leave a post and i'll add them to the main post's Q&A section.
Cheers Soul!
-
Soul got a reaction from SideShowFreak in Door Escape Blocker | DEB
This is a modified version of a script i was using a long time to block esc on a custom spawn selection screen i'm using on our
vanilla dayz servers.
What this does is check for keypresses when the doorlock ui is active, when it detects the user pressing esc it cancles the actions.
This effectivly blocks the user from closing the dialog with the escape button. Have fun with it.
Create a new file called antiBruteForce.sqf
NPG_fnc_cKeyDownGenericDisplay = { private["_keypressed","_return"]; _keypressed = _this select 1; _return = false; #define KEYSCODE_ESC_KEY 1 // disable esc while in dialog switch (_keypressed) do { case KEYSCODE_ESC_KEY: { _return = true; }; }; _return; }; [] spawn { waitUntil {sleep 0.01; (!(isNull (findDisplay 41144)))}; disableSerialization; _foundComboLockUI = findDisplay 41144; _foundComboLockUI displayAddEventHandler ["KeyDown","_this call NPG_fnc_cKeyDownGenericDisplay"]; }; Now you can include the file. It has to be run on the client so make shure it is somewhere included
inside a if(!isDedicated) {}; check and make shure that your path to this file is set according to its location in your mission.
#include "antiBruteForce.sqf" I'll try to update this script tonight as i dont think it needs the spawn and waituntill. But this version does work for shure.
-
Soul got a reaction from Rocu in Door Escape Blocker | DEB
This is a modified version of a script i was using a long time to block esc on a custom spawn selection screen i'm using on our
vanilla dayz servers.
What this does is check for keypresses when the doorlock ui is active, when it detects the user pressing esc it cancles the actions.
This effectivly blocks the user from closing the dialog with the escape button. Have fun with it.
Create a new file called antiBruteForce.sqf
NPG_fnc_cKeyDownGenericDisplay = { private["_keypressed","_return"]; _keypressed = _this select 1; _return = false; #define KEYSCODE_ESC_KEY 1 // disable esc while in dialog switch (_keypressed) do { case KEYSCODE_ESC_KEY: { _return = true; }; }; _return; }; [] spawn { waitUntil {sleep 0.01; (!(isNull (findDisplay 41144)))}; disableSerialization; _foundComboLockUI = findDisplay 41144; _foundComboLockUI displayAddEventHandler ["KeyDown","_this call NPG_fnc_cKeyDownGenericDisplay"]; }; Now you can include the file. It has to be run on the client so make shure it is somewhere included
inside a if(!isDedicated) {}; check and make shure that your path to this file is set according to its location in your mission.
#include "antiBruteForce.sqf" I'll try to update this script tonight as i dont think it needs the spawn and waituntill. But this version does work for shure.
-
Soul got a reaction from mgm in How to stop users from knocking down the ATM
_this enableSimulation false;
does magic to
-
Soul got a reaction from Turtle II in Custom HiveExt.dll Release
I have only fixed most if not all problems in variant 1. Havent found time to update the other 2 but will do so shortly.
-
Soul got a reaction from McPimpin in Custom HiveExt.dll Release
in player_login or setup
if its a freshspawn assing a value to banksaldo var and setvariable it, that will work
EDIT:
Reminder to all, at this moment only v1.1 is a copy past tutorial installation.
Adding my updates and using my hiveext is only advised for people with a high level of experience
in scripting for arma and people with endurance and patientce and most important of all
the ability and willpower to learn something in the process
-
Soul got a reaction from Sukkaed in Custom HiveExt.dll Release
add a new field and let it do a timestamp whenver the row is manipulated in your sql database.
going to add it to the banking_data query and post the seperate query you need here as a snippet.
Edit:
Allright so run this query to add a lastupdated field that will automatically make a timestamp whenever the row is changed.
ALTER TABLE banking_data ADD LastUpdated timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP AFTER BankSaldo -
Soul got a reaction from Storm in [TUTORIAL] Usage of CHILD 104: AdminLevel from database
This hive call whas writen to work the exact same way as how it retrieves entries from the object_data table.
CHILD 104 expects 1 parameter to be supplied when calling the HiveExt.
The needed parameter is your dayzInstance number
- PlayerUID returns as a string to support the full length of the steamID.
- AdminLevel returns as a integer.
This new functionality that i added in the custom epoch hive can be use to restrict access to anything you want.
Infact it could be used for far more then admin access if you think of it.
Practical usage 1: infiSTAR admin access from the database
Create a new file named: getDBAdmins.sqf
Place this file in the init folder found in your dayz_server.pbo
And put this code in it.
adminUIDs = []; _SAdmins = []; _HAdmins = []; _LAdmins = []; _key = format["CHILD:104:%1:",dayZ_instance]; _data = "HiveEXT" callExtension _key; diag_log format["_data: %1",_data]; _result = call compile format ["%1",_data]; diag_log format["_result: %1",_result]; diag_log "HIVE: Request sent"; //Process result _status = _result select 0; diag_log format["_status: %1",_status]; _myArray = []; if (_status == "ObjectStreamStart") then { _val = _result select 1; diag_log format["%1",_val]; //Stream Objects for "_i" from 1 to _val do { _data = "HiveEXT" callExtension _key; diag_log format["_data: %1",_data]; _result = call compile format ["%1",_data]; diag_log format["_result: %1",_result]; _myArray set [count _myArray,_result]; diag_log format["_myArray: %1",_myArray]; }; }; { _playerId = _x select 0; diag_log format["_playerId: %1",_playerId]; _playerIdType = typeName _playerId; diag_log format["TypeName _playerId: %1",_playerIdType]; _adminLevel = _x select 1; diag_log format["_adminLevel: %1",_adminLevel]; switch (_adminLevel) do { case 1: { _SAdmins = _SAdmins + [_playerId]; adminUIDs = adminUIDs + [_playerId];diag_log "Added to SA+EXT";}; //Super Admin Level + Special custom abilities case 2: { _SAdmins = _SAdmins + [_playerId]; diag_log "Added to SA";}; //Super Admin Level case 3: { _HAdmins = _HAdmins + [_playerId]; diag_log "Added to HA";}; //High Admin Level case 4: { _LAdmins = _LAdmins + [_playerId]; diag_log "Added to LA";}; //Low Admin Level }; } forEach _myArray; Find and comment our like below:
/* if ((preProcessFileLineNumbers ("admins3_dayzpvp.sqf")) != "") then { _tmpLA = call compile preProcessFileLineNumbers "admins3_dayzpvp.sqf"; _LAdmins = _LAdmins + _tmpLA; }; if ((preProcessFileLineNumbers ("admins2_dayzpvp.sqf")) != "") then { _tmpNA = call compile preProcessFileLineNumbers "admins2_dayzpvp.sqf"; _NAdmins = _NAdmins + _tmpNA; }; if ((preProcessFileLineNumbers ("admins_dayzpvp.sqf")) != "") then { _tmpSA = call compile preProcessFileLineNumbers "admins_dayzpvp.sqf"; _SAdmins = _SAdmins + _tmpSA; }; */ if ((preProcessFileLineNumbers ("blacklist.sqf")) != "") then { _tmpBL = call compile preProcessFileLineNumbers "blacklist.sqf"; _BLOCKED = _BLOCKED + _tmpBL; }; Then after the blacklisting part add this:
#include "\z\addons\dayz_server\init\getDBAdmins.sqf"; Then run this query on your database to create the newly needed table.
DROP TABLE IF EXISTS `admin_data`; CREATE TABLE `admin_data` ( `PlayerUID` varchar(20) NOT NULL DEFAULT '0', `PlayerName` varchar(128) NOT NULL DEFAULT 'Null', `AdminLevel` int(1) NOT NULL DEFAULT '0', `Instance` int(11) NOT NULL DEFAULT '11', PRIMARY KEY (`PlayerUID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Your all done and ready to start adding your admins steamID and admin level to your database.
No more sitting around and waiting for a restart to make changes and then miss the damn restart right [ ;)]
No more need to do manual restarts to add a admin.
All it takes for the new admin to have his rights is a server restart automated or manual.
Admin levels explained:
In the switch statement you see case 1, case 2, case 3, case 4 right
Case 1:
Super admin acces just like in infistar ah but this adds the playerid to a custom variable, i use this to give certain super admins base dome access or special markers on their maps and whatnot.
take not that the "adminUIDs" variable needs to be publicVariabled after the script is done, the reason this is not the case in the example is because i use publicVariableClient in the playerlogin.sqf file
it's just my way of making shure that jip clients have the variable to.
Case 2:
Super admin access
Case 3:
High admin access
Case 4:
Low admin access
So obviously in the database you fill in 1, 2, 3 or 4 in the "AdminLevel" field
-
Soul reacted to McPimpin in Custom HiveExt.dll Release
Thanks Soul,
the link you posted lead me to xBowBii's post. I did search, i wasn't trying to be lazy honestly. I guess I wasn't searching for the correct search phrases.
-
Soul got a reaction from mgm in Custom HiveExt.dll Release
well thats alot of information provided from your side right there, euhm let me see.
Your problem is that ... euhm, i have no clue mate!
-
Soul got a reaction from Rocu in Custom HiveExt.dll Release
SHORTCODE LEGEND:
These shortcodes are used in the repo titles, this indicates what the specific repo is for.
SC >>> SingleCurrency
MC >>> MultiChar
999 >>> 998/999 custom query supported
Custom HiveExt.dll and needed sqf files + sql query file available on:
Variant 1:DayZ-Epoch_SCHiveExt
Variant 2: Dayz-Epoch_SCMCHiveExt
Variant 3: DayZ_epoch_SCMC999HiveExt
Variant 4: DayZ_epoch_SC999HiveExt
All 4 variants have the following in common.
- New CHILD:298 >>> fetching player bank data, used while player joins server
- New CHILD:299 >>> updates player bank data, used when banking.
- New CHILD:104 >>> gets all adminuids + their adminlevel from the admin_data table. (can be used to restrict access to admin tools aswell as infiSTAR AH)
- Updated CHILD: 101 >>> checks if player exists in banking_data table and adds ifnot or updates playername if change detected
- Updated CHILD:102 >>> added selection of cashMoney field during retrieving survivor data on login.
- Updated CHILD:201 >>> added element to handle players cashmoney during updates to database.
What is in variant 1?
Everything stated above.
What is in variant 2?
Added support for AxeCop's multi char mod. and everything that you have in variant 1.
What is in variant 3?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1 & 2. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What is in variant 4?
Added support for 999 database calls so you can do custom database queries and
everything found in variant 1. Only use this variant is you really want to use 998/999
calls despite of the security risks attached to them.
What else can i find on the github repo's?
SCDBQuery.sql:
Run this file on your database by dragging and dropping
It will add the field "CashMoney" to the character_data table and
it will create a new table called "banking_data" with fields "PlayerUID,"PlayerName","BankSaldo"
SCDBQuery_TransferGoldCoins.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the headshots field.
It will grab the value from "HeadShots" and put it in "CashMoney" for each row in your "character_data" table.
SCDBQuery_TransferGoldCoins2.sql:
Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the "morality" field?
It will make db entries for all players in "player_data" in the "banking_data" table and add the corresponding values from the "morality" field
into the "banksaldo" field.
admin_data.sql:
This file will add a table called "admin_data", this can be used in combination with infiSTAR AH or any other tool you need restricted access
to. Intended for advanced users.
Server folder:
Contains all files that where modified from Zupa's v1.1 version
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
Mission folder:
Contains all files that where modified from Zupa's v1.1 version.
Take care and use a diffmerge tool like BeyondCompare, better safe then sorry.
BE filters:
This needs to be added in the first line with !="" values inside the publicvarible.txt if using BE filters.
Add it after the last !="" value. If using BE filters and you skip this step your players will get kicked for trying to send this PV to the server.
!="PVDZE_bank_Save" Before installing:
Always make backups of everything!
Q&A:
Q: Will support for AxeCops multi char mod be added in this hive?
A: There is a 2nd version of the custom hiveext.dll that has support added for this mod.
Q: Will there be 999 call support in this custom hiveext.dll
A: There is a 3rd version of the custom hiveext.dll that has support for everything in version 1 & 2 and added support for 999 calls.
Q: Does this hive have support vanilla epoch base maintenance?
A: Yes it has the required funtionality as this hive was build of the last version released by VB[Awol]
Q: Why are there 4 different variants of this custom hive?
A: More flavours to choose from really. It enables you to either use or stay away from the unsafe 999 calls and still use this custom hive for single currency.
Got any more question? Leave a post and i'll add them to the main post's Q&A section.
Cheers Soul!
-
Soul got a reaction from mgm in [FIX] cashmoney & bankmoney loss after skinchange/humanity morph
Edits required in compiles.sqf in your mission pbo or whatever file you use for redirecting mod files.
Redirect player_wearClothes.sqf back to mod folder directory and delete the file in your mission folder.
player_wearClothes = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_wearClothes.sqf"; Get player_switchModel.sqf from "dayz_code\compile" in the epoch mod pbo and then redirect it to your mission folder.
In the line below you can see that i have a folder structure "dayz_code\compile" in my mission root
if yours is different make shure the path is changed to whatever your folder structure is.
player_switchModel = compile preprocessFileLineNumbers "dayz_code\compile\player_switchModel.sqf"; Then in player_switchModel.sqf find this:
_class = _this; _position = getPosATL player; _dir = getDir player; _currentAnim = animationState player; _tagSetting = player getVariable["DZE_display_name",false]; _playerUID = getPlayerUID player; _weapons = weapons player; _countMags = call player_countMagazines; _magazines = _countMags select 0; And add these 2 after it:
For my update to single currency:
_cashMoney = player getVariable["cashMoney",0]; _bankMoney = player getVariable["bankMoney",0]; For Zupa's v1.0 & 1.1 release:
_cashMoney = player getVariable["headShots",0]; _bankMoney = player getVariable["bank",0]; You dont need both of the above, just for what version of this single currency mod you are using.
Warning: This might change with release version 2.
Then find this part:
if (_tagSetting) then { DZE_ForceNameTags = true; }; Add above:
For my update to single currency:
player setVariable ["cashMoney",_cashMoney,true]; player setVariable ["bankMoney",_bankMoney]; For Zupa's v1.0 & 1.1 release:
player setVariable["headShots",_cashMoney,true]; player setVariable["bank",_bankMoney]; You dont need both of the above, just for what version of this single currency mod you are using.
Warning: This might change with release version 2.
-
Soul got a reaction from YuriLowell in Bug Reporting
i really hate it when people just copy paste without reading what the code actually says or try to process the code in their heads and evaluate the code itself.
if you had done that you would have known that what you are looking for is in your variables.sqf file...
-
Soul reacted to Pro_Speedy in Bug Reporting
Just an FYI during the whole installation process i was editing ALL of the files using Beyondcomapre like you said so please.
It was just me looking in every other file apart from that one
Sorry
What about the AI thing?
Thank you
-
Soul got a reaction from kat in Bug Reporting
exactly much like the anti backpack duping
you can try adding this in check_wallet.sqf
find:
_body = _this select 3; add below:
// Check if closest player _PlayerNear = _body call dze_isnearest_player; if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]}; -
Soul reacted to Storm in Custom HiveExt.dll Release
I updated my original post check it.
It works as I tested it on my server and it updated the table.