Jump to content

Search the Community

Showing results for tags 'piggd'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 4 results

  1. Mod Features: This allows user to purchase skins from a menu. You can change skins with a backpack. Humanity is backed up and restored after change. You can make all skins free. Or some/none skins free, set a global price and define up to four additional special pricing for 4 sets of skins. Persistent on logout and login. Removes radio, gps, map, compass and NVG included in some skins but leaves original equipment if equipped before skin purchase (both at purchase and re-log). Supports both Epoch (351 skins) and Overpoch (175 skins) by setting a variable. Known Issues: Even though all skin class names are all unique some of the skins have identical appearances. You have to change back into an epoch skin to use epoch clothes items again (1st one in male and female list - suggest you leave those free) Testing: All skins have been tested to insure that the inventory, weapon, and backpack slots work. Special thanks to my user community for all their hard work in testing, especially iSaeko and Laura. I could not have done this without them! Installation: 1. Download the addon from my github by clicking on this link. (Contains a vanilla epoch chernarus mission.pbo example file). 2. On the lower left corner click on the button "Download Zip" 3 Create a directory called dayz_code and mission_pbo 4. Take your mission.pbo file and extract it into the mission_pbo directory 5. Unzip the zip file you download from my github and move the custom directory into your mission_pbo directory. 6. Copy C:\Program Files (x86)\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@DayZ_Epoch\addons\dayz_code.pbo into this new directory (path may vary based on steam installation). 7. Extract the dayz_code.pbo into the dayz_code directory you created. 8. if you do not already have a fixes directory create one. 9. If you do not already have a custom compile then follow these steps otherwise you can skip this step. copy dayz_code/init/compiles.sqf mission_pbo/fixes/compules.sqf 10. Copy dayz_code/compile/player_switchModel.sqf mission_pbo/fixes/player_switchModel.sqf 11. 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) // ------------------------------------------------------------------------ Chameleon - Skin Changer Start ------------------------------------------------------------------------ call compile preprocessFileLineNumbers "custom\chameleon\chameleon_init.sqf"; // ------------------------------------------------------------------------ Chameleon - Skin Changer End ------------------------------------------------------------------------from: progressLoadingScreen 0.4; call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions to : progressLoadingScreen 0.4; // ------------------------------------------------------------------------ Chameleon Skin Changer Start ------------------------------------------------------------------------ //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions call compile preprocessFileLineNumbers "fixes\compiles.sqf"; //Compile regular functions // ------------------------------------------------------------------------ Chameleon Skin Changer End ------------------------------------------------------------------------ from: //Lights //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; to: ** NOTE - If you are using this entry will already exist with a different comment. //Lights //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; // ------------------------------------------------------------------------Chameleon Skin Changer Start ------------------------------------------------------------------------ // Activate Player Menu for Tools [] execVM "custom\playertools\activate_player_menu.sqf"; // ------------------------------------------------------------------------Chameleon Skin Changer Start ------------------------------------------------------------------------ }; 12. Edit your fixes\compiles.sqf file and make the following modifications: from: player_switchModel = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_switchModel.sqf"; to: // ------------------------------------------------------------------------ Chameleon Skin Changer Start ------------------------------------------------------------------------ // player_switchModel = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_switchModel.sqf"; player_switchModel = compile preprocessFileLineNumbers "fixes\player_switchModel.sqf"; // ------------------------------------------------------------------------ Chameleon Skin Changer End ------------------------------------------------------------------------ 13. Edit your fixes\player_switchModel.sqf file and make the following modifications: from //private ["_weapons","_backpackWpn","_backpackMag","_currentWpn","_backpackWpnTypes","_backpackWpnQtys","_countr","_class","_position","_dir","_currentAnim","_tagSetting","_playerUID","_countMags","_magazines","_primweapon","_secweapon","_newBackpackType","_muzzles","_oldUnit","_group","_newUnit","_playerObjName","_wpnType","_ismelee"]; to: // ------------------------------------------------------------------------ Chameleon Skin Changer Start ------------------------------------------------------------------------ //private ["_weapons","_backpackWpn","_backpackMag","_currentWpn","_backpackWpnTypes","_backpackWpnQtys","_countr","_class","_position","_dir","_currentAnim","_tagSetting","_playerUID","_countMags","_magazines","_primweapon","_secweapon","_newBackpackType","_muzzles","_oldUnit","_group","_newUnit","_playerObjName","_wpnType","_ismelee"]; private ["_weapons","_backpackWpn","_backpackMag","_currentWpn","_backpackWpnTypes","_backpackWpnQtys","_countr","_class","_position","_dir","_currentAnim","_tagSetting","_playerUID","_countMags","_magazines","_primweapon","_secweapon","_newBackpackType","_muzzles","_oldUnit","_group","_newUnit","_playerObjName","_wpnType","_ismelee","_hasCompass","_hasRadio","_hasGPS","_hasWatch","_hasMap","_hasNVG"]; // ------------------------------------------------------------------------ Chameleon Skin Changer End ------------------------------------------------------------------------ from: //BackUp Player Object _oldUnit = player; to: //BackUp Player Object _oldUnit = player; // ------------------------------------------------------------------------ Chameleon Duplicate Item Fix Start ------------------------------------------------------------------------ _hasCompass = false; _hasRadio = false; _hasGPS = false; _hasWatch = false; _hasMap = false; _hasNVG = false; if (player hasWeapon "ItemCompass") then {_hasCompass = true;}; if (player hasWeapon "ItemRadio") then {_hasRadio = true;}; if (player hasWeapon "ItemGPS") then {_hasGPS = true;}; if (player hasWeapon "ItemWatch") then {_hasWatch = true;}; if (player hasWeapon "ItemMap") then {_hasMap = true;}; if (player hasWeapon "NVGoggles") then {_hasNVG = true;}; // ------------------------------------------------------------------------ Chameleon Duplicate Item Fix End ------------------------------------------------------------------------ from: if (_ismelee == "true") then { call dayz_meleeMagazineCheck; }; to: if (_ismelee == "true") then { call dayz_meleeMagazineCheck; }; // ------------------------------------------------------------------------ Chameleon Duplicate Item Fix Start ------------------------------------------------------------------------ if (!_hasCompass) then {_newUnit removeWeapon "ItemCompass";}; if (!_hasRadio) then {_newUnit removeWeapon "ItemRadio";}; if (!_hasGPS) then {_newUnit removeWeapon "ItemGPS";}; if (!_hasWatch) then {_newUnit removeWeapon "ItemWatch";}; if (!_hasMap) then {_newUnit removeWeapon "ItemMap";}; if (!_hasNVG) then {_newUnit removeWeapon "NVGoggles";}; // ------------------------------------------------------------------------ Chameleon Duplicate Item Fix End ------------------------------------------------------------------------ 14. Edit description.ext add the following lines to the end of the file. //------------------------------------------------------------------------ Chameleon - Skin Changer Start ---------------------------------------------------------------- #include "custom\chameleon\dialog\common.hpp" #include "custom\chameleon\dialog\SkinGui.hpp" //------------------------------------------------------------------------ Chameleon - Skin Changer End------------------------------------------------------------------- **NOTE if you already have installed you only need one common.hpp , comment out the second one by placing a // in front of it. Optional Additional Configuration: ** Enable Overpoch 1. Edit custom/chameleon/ chameleon_init.sqf and change the following: ** NOTE: This variable can be placed in the init.sqf or variables.sqf if you prefer. from: // ************************************************************************************************************************* // Uncomment the line below to activate Overpoch Skins or add this variable to your init.sqf file. Above your chameleon_init.sql call. // CSC_WORLD = "overpoch"; // ************************************************************************************************************************* to: // ************************************************************************************************************************* // Uncomment the line below to activate Overpoch Skins or add this variable to your init.sqf file. Above your chameleon_init.sql call. CSC_WORLD = "overpoch"; // ************************************************************************************************************************* ** Change Pricing 1. Edit custom/chameleon/ chameleon_init.sqf and change the following: //CSCFreeSkins = true; CSCFreeSkins = false; CSCFreePrice = ["ItemGoldBar",0]; // Regular Skin Price CSCGlobalPrice = ["ItemGoldBar",4]; // Do not set to 0 unless you have CSCFreeSkins = true; //CSCGlobalPrice = ["ItemGoldBar10oz",2]; // Do not set to 0 unless you have CSCFreeSkins = true; //CSCGlobalPrice = ["ItemBriefcase100oz",2]; // Do not set to 0 unless you have CSCFreeSkins = true; // Special Skin Prices CSCSpecialPrice1 = ["ItemGoldBar",2]; // Do not set to 0 CSCSpecialPrice2 = ["ItemGoldBar10oz",1]; // Do not set to 0 CSCSpecialPrice3 = ["ItemGoldBar",6]; // Do not set to 0 CSCSpecialPrice4 = ["ItemGoldBar",7]; // Do not set to 0 Change the CSCFreeSkins to true to make all skins free or adjust individual variables for the prices you want and then add or remove skins from the list array to match. ** DZE Banking System If you are using and have replaced custom/playertools/player_tools_main.sqf you will need to uncomment the following lines. from: playermenustart = [ ["",true], ["Chameleon Male Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "male_dialog.sqf"]]],"1","1"], ["Chameleon Female Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "female_dialog.sqf"]]],"1","1"], // ["DZE Piggd Banking System >>", [], "#USER:bankmenu", -5, [["expression", ""]], "1", "1"], // ["Weather/Time Menu (Local Only) >>", [], "#USER:WTMenu", -5, [["expression", ""]], "1", "1"], ["", [], "", -5, [["expression", ""]], "1", "0"], ["Main Menu", [20], "#USER:playermenustart", -5, [["expression", ""]], "1", "1"] ]; to: playermenustart = [ ["",true], ["Chameleon Male Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "male_dialog.sqf"]]],"1","1"], ["Chameleon Female Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "female_dialog.sqf"]]],"1","1"], ["DZE Piggd Banking System >>", [], "#USER:bankmenu", -5, [["expression", ""]], "1", "1"], // ["Weather/Time Menu (Local Only) >>", [], "#USER:WTMenu", -5, [["expression", ""]], "1", "1"], ["", [], "", -5, [["expression", ""]], "1", "0"], ["Main Menu", [20], "#USER:playermenustart", -5, [["expression", ""]], "1", "1"] ]; 15. Repack your mission pbo and upload to your sever. Original Framework and Dialog based on from Email: [email protected] Website: Piggd Dayz Gaming Donate to piggd
  2. Mod Features: Configurable Service points (service_point.sqf) Adjustable pricing of each service. (service_point.sqf) Disable dfeatures you do not want ((service_point.sqf)) Rearms by vehicle postion and turrent. Non-Epoch vehicles will rearm like a re-arm truck back to there spawned loadout Pulls the loadout from the ingame configuration instead of the config file ( This is important if you mod your vehicles on spawn ) Epoch vehicles spawn with 0 magazines so rearm+ will add one magazine to the turrent. Download: 1) Download from GutHub 2) Left side towards the bottom click download zip. 3) Unzip and move cusom into your mission pbo. Installation: Edit your init.sqf Modify the following block of code: if (!isDedicated) then { //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; //anti Hack [] execVM "\z\addons\dayz_code\system\antihack.sqf"; //Lights //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; if (!isDedicated) then { //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; //anti Hack [] execVM "\z\addons\dayz_code\system\antihack.sqf"; //Lights //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; // Service Point Rearm+ [] execVM "custom\service_point\service_point.sqf"; }; Refuel and Repair scripts are 100% Axe Cops work. Rearm was rewritten to provide new rearm capabilities. Email: [email protected] Website: Piggd Dayz Gaming Donate to piggd
  3. WARNING ** THIS REPLACES THE HUMANITY SYSTEM Mod Features: Allows the player to have access to their money all the time. Bank is tied to the player via the humanity system and survives character death. Auto Deposit bars/brief cases on every sale or purchase Player can access balance, deposit and withdraw via player tool menu. If a player goes to a negative balance displaying the balance, withdraw or deposit will restore them to zero balance. Known Issues: First time character creation start the player with 2500 humanity which equates to 25gb. Any event that modifies humanity will effect the bank balance (usally in a minor way silve bars in most cases) Thank you too iSaeko for making this video for me. 1. Download the addon from my github by clicking on this link. (Contains a vanilla epoch chernarus mission.pbo example file). 2. On the lower left corner click on the button "Download Zip" 3 Create a directory called dayz_code and mission_pbo 4. Take your mission.pbo file and extract it into the mission_pbo directory 5. Unzip the zip file you download from my github and move the custom directory into your mission_pbo directory. 6. Copy C:\Program Files (x86)\Steam\SteamApps\common\ARMA 2 Operation Arrowhead\@DayZ_Epoch\addons\dayz_code.pbo into this new direttory (path may vary based on steam installation). 7. Extract the dayz_code.pbo into the dayz_code directory you created. 8. if you do not already have a fixes directory create one. 9. If you do not already have a custom compile then follow these steps other wise you can skip this step. copy dayz_code/init/compiles.sqf mission_pbo/fixes/compules.sqf 10. Copy dayz_code/compile/epoch_returnChange.sqf mission_pbo/fixes/epoch_returnChange.sqf 11. Edit your init.sqf file and make the following modifications: from: //Load in compiled functions to: // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ PDZE_PiggdBankSystem = true; // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ //Load in compiled functions from: call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions to: // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions call compile preprocessFileLineNumbers "fixes\compiles.sqf"; //Compile regular functions // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ From: //Lights //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; ** NOTE - If you are using this entry will already exist with a different comment. to: //Lights //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ // Activate Player Menu for Tools [] execVM "custom\playertools\activate_player_menu.sqf"; // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ }; 12. Edit your fixes\compiles.sqf file and make the following modifications: From: epoch_totalCurrency = { // total currency _total_currency = 0; { _part = (configFile >> "CfgMagazines" >> _x); _worth = (_part >> "worth"); if isNumber (_worth) then { _total_currency = _total_currency + getNumber(_worth); }; } count (magazines player); _total_currency }; epoch_itemCost = { _trade_total = 0; { _part_in_configClass = configFile >> "CfgMagazines" >> (_x select 0); if (isClass (_part_in_configClass)) then { _part_inWorth = (_part_in_configClass >> "worth"); if isNumber (_part_inWorth) then { _trade_total = _trade_total + (getNumber(_part_inWorth) * (_x select 1)); }; }; } count _this; //diag_log format["DEBUG TRADER ITEMCOST: %1", _this]; _trade_total }; epoch_returnChange = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\epoch_returnChange.sqf"; // usage [["partinclassname",4]] call epoch_returnChange; to: epoch_totalCurrency = { // total currency _total_currency = 0; { _part = (configFile >> "CfgMagazines" >> _x); _worth = (_part >> "worth"); if isNumber (_worth) then { _total_currency = _total_currency + getNumber(_worth); }; } count (magazines player); // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ if(PDZE_PiggdBankSystem) then { _humanity = player getVariable["humanity",0]; _total_currency = _total_currency + _humanity; }; // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ _total_currency }; epoch_itemCost = { _trade_total = 0; { _part_in_configClass = configFile >> "CfgMagazines" >> (_x select 0); if (isClass (_part_in_configClass)) then { _part_inWorth = (_part_in_configClass >> "worth"); if isNumber (_part_inWorth) then { _trade_total = _trade_total + (getNumber(_part_inWorth) * (_x select 1)); }; }; } count _this; //diag_log format["DEBUG TRADER ITEMCOST: %1", _this]; _trade_total }; // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ // epoch_returnChange = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\epoch_returnChange.sqf"; epoch_returnChange = compile preprocessFileLineNumbers "fixes\epoch_returnChange.sqf"; // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ // usage [["partinclassname",4]] call epoch_returnChange; 13. Edit fixes/epoch_returnChange.sqf From: //diag_log format["DEBUG TRADER CHANGE: %1", _return_change]; if (_return_change >= 0) then { // total currency to: // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ if (_return_change >= 0 and !PDZE_PiggdBankSystem) then { // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ From: if (_silver_1oz > 0) then { if (_silver_1oz == 1) then { player addMagazine "ItemSilverBar"; //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; } else { player addMagazine format["ItemSilverBar%1oz",_silver_1oz]; //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; }; }; _successful = true; }; }; _successful to: if (_silver_1oz > 0) then { if (_silver_1oz == 1) then { player addMagazine "ItemSilverBar"; //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; } else { player addMagazine format["ItemSilverBar%1oz",_silver_1oz]; //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; }; }; _successful = true; // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ } else { if (PDZE_PiggdBankSystem) then { _total_currency_dry = player getVariable["humanity",0]; _total_currency_dry = _total_currency_dry + _return_change; player setVariable["humanity",_total_currency_dry,true]; _successful = true; }; // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ }; }; _successful 14. Edit server_traders.sqf From: menu_RU_Functionary1 = [ [["Ammunition",478],["Clothes",476],["Helicopter Armed",493],["Military Armed",562],["Trucks Armed",479],["Weapons",477]], [], "hero" ]; to: menu_RU_Functionary1 = [ [["Ammunition",478],["Clothes",476],["Helicopter Armed",493],["Military Armed",562],["Trucks Armed",479],["Weapons",477]], [], // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ // "hero" "neutral" // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ ]; from: menu_GUE_Soldier_MG = [ [["Ammunition",577],["Clothing",575],["Helicopter Armed",512],["Military Armed",569],["Trucks Armed",534],["Weapons",627]], [], "hostile" ]; to: menu_GUE_Soldier_MG = [ [["Ammunition",577],["Clothing",575],["Helicopter Armed",512],["Military Armed",569],["Trucks Armed",534],["Weapons",627]], [], // ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------ // "hostile" "neutral" // ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------ ]; 15. Repack your mission pbo and upload to your sever. Optional Additional Configuration: ** Chameleon Skin Changer If you are using and have replaced custom/playertools/player_tools_main.sqf you will need to uncomment the following lines. from: playermenustart = [ ["",true], // ["Chameleon Male Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "male_dialog.sqf"]]],"1","1"], // ["Chameleon Female Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "female_dialog.sqf"]]],"1","1"], ["DZE Piggd Banking System >>", [], "#USER:bankmenu", -5, [["expression", ""]], "1", "1"], // ["Weather/Time Menu (Local Only) >>", [], "#USER:WTMenu", -5, [["expression", ""]], "1", "1"], ["", [], "", -5, [["expression", ""]], "1", "0"], ["Main Menu", [20], "#USER:playermenustart", -5, [["expression", ""]], "1", "1"] ]; to: playermenustart = [ ["",true], ["Chameleon Male Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "male_dialog.sqf"]]],"1","1"], ["Chameleon Female Skins Menu",[],"", -5,[["expression",format[_EXECscript1,_pathtochameleon + "female_dialog.sqf"]]],"1","1"], ["DZE Piggd Banking System >>", [], "#USER:bankmenu", -5, [["expression", ""]], "1", "1"], // ["Weather/Time Menu (Local Only) >>", [], "#USER:WTMenu", -5, [["expression", ""]], "1", "1"], ["", [], "", -5, [["expression", ""]], "1", "0"], ["Main Menu", [20], "#USER:playermenustart", -5, [["expression", ""]], "1", "1"] ]; 15. Repack your mission pbo and upload to your sever. Email: [email protected] Website: Piggd Dayz Gaming Donate to piggd
  4. 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
×
×
  • Create New...