Jump to content

HazJ

Member
  • Content Count

    2756
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by HazJ

  1. I don't think you need to parse it if it is an empty string. Try: _ctrltext ctrlSetStructuredText "";
  2. Oh... Yeah, I dunno. Don't use modules. Tip: Include as much information in your first post as possible. This will help people to help you better. Glad you got it sorted.
  3. This may be of use to you:
  4. Joined your server running Chernarus, random game closes... No errors or anything. Verified game... Running latest mods + suggested.
  5. HazJ

    Authority 20 player coop.

    Not sure whether that's sarcasm or not but check this out: https://forums.bohemia.net/forums/topic/194184-authority-20-player-coop/?page=6&tab=comments#comment-3316572
  6. No need for all that code and certainly no need for a while-loop. Check this out: https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#EntityKilled
  7. (vehicle player) animateSource ["beacons", 1]; (vehicle player) animateSource ["startbeaconlight", 1]; (vehicle player) switchLight "on"; Offroad Comms GEN ^ (vehicle player) animateSource ["beacons", 1]; Offroad GEN ^ Video showing how to find out the animateSource: If you wanted to override the standard action behaviour to not turn on the headlights (pointless as you can't see the orange beacon on the Offroad Comms if the headlights are not on): inGameUISetEventHandler ["Action", " if (_this select 4 == 'Beacons On') then { _this select 0 animateSource ['beacons', 1]; _this select 0 animateSource ['startbeaconlight', 1]; true }; "];
  8. Hi all. disableSerialization; // _display = uiNamespace getVariable "disp_loadingScreen"; _display = findDisplay 97531; // _display = findDisplay 0; // copyToClipboard str allDisplays; introQuotes = [ "\a3\missions_f_epa\video\a_hub_quotation.ogv", "\a3\missions_f_epa\video\a_in_quotation.ogv", "\a3\missions_f_epa\video\a_m01_quotation.ogv", "\a3\missions_f_epa\video\a_m02_quotation.ogv", "\a3\missions_f_epa\video\a_m03_quotation.ogv", "\a3\missions_f_epa\video\a_m04_quotation.ogv", "\a3\missions_f_epa\video\a_m05_quotation.ogv", "\a3\missions_f_epa\video\a_out_quotation.ogv", "\a3\missions_f_epa\video\b_hub01_quotation.ogv", "\a3\missions_f_epa\video\b_m01_quotation.ogv", "\a3\missions_f_epa\video\b_m02_quotation.ogv", "\a3\missions_f_epa\video\b_m03_quotation.ogv", "\a3\missions_f_epa\video\b_m06_quotation.ogv", "\a3\missions_f_epa\video\b_out2_quotation.ogv", "\a3\missions_f_epa\video\c_ea_quotation.ogv", "\a3\missions_f_epa\video\c_eb_quotation.ogv", "\a3\missions_f_epa\video\c_in1_quotation.ogv", "\a3\missions_f_epa\video\c_in2_quotation.ogv", "\a3\missions_f_epa\video\c_m01_quotation.ogv", "\a3\missions_f_epa\video\c_m02_quotation.ogv", "\a3\missions_f_epa\video\c_out1_quotation.ogv", "\a3\missions_f_epa\video\a_in2_quotation.ogv", "\a3\missions_f_epa\video\b_m05_quotation.ogv", "\a3\missions_f_epa\video\b_m02_1_quotation.ogv" ]; (_display displayCtrl 3575) ctrlAddEventHandler ["VideoStopped", { params ["_control"]; diag_log format ["Is this working?"]; _quote = selectRandom introQuotes; diag_log format ["Quote :: %1", _quote]; ctrlSetText [_control, _quote]; // returns correct video quote }]; class rsc_loadingScreen { idd = -1; // tried 97531 before - makes no difference movingEnable = 0; duration = 1e011; fadeIn = 0; fadeOut = 0; class controlsBackground { class videoOverlay : RscVideo { idc = 3575; x = safezoneX; y = safezoneY; w = safezoneW; h = safezoneH; loops = 1; video = __EVAL(selectRandom ["\a3\missions_f_epa\video\a_hub_quotation.ogv", "\a3\missions_f_epa\video\a_in_quotation.ogv", "\a3\missions_f_epa\video\a_m01_quotation.ogv", "\a3\missions_f_epa\video\a_m02_quotation.ogv", "\a3\missions_f_epa\video\a_m03_quotation.ogv", "\a3\missions_f_epa\video\a_m04_quotation.ogv", "\a3\missions_f_epa\video\a_m05_quotation.ogv", "\a3\missions_f_epa\video\a_out_quotation.ogv", "\a3\missions_f_epa\video\b_hub01_quotation.ogv", "\a3\missions_f_epa\video\b_m01_quotation.ogv", "\a3\missions_f_epa\video\b_m02_quotation.ogv", "\a3\missions_f_epa\video\b_m03_quotation.ogv", "\a3\missions_f_epa\video\b_m06_quotation.ogv", "\a3\missions_f_epa\video\b_out2_quotation.ogv", "\a3\missions_f_epa\video\c_ea_quotation.ogv", "\a3\missions_f_epa\video\c_eb_quotation.ogv", "\a3\missions_f_epa\video\c_in1_quotation.ogv", "\a3\missions_f_epa\video\c_in2_quotation.ogv", "\a3\missions_f_epa\video\c_m01_quotation.ogv", "\a3\missions_f_epa\video\c_m02_quotation.ogv", "\a3\missions_f_epa\video\c_out1_quotation.ogv", "\a3\missions_f_epa\video\a_in2_quotation.ogv", "\a3\missions_f_epa\video\b_m05_quotation.ogv", "\a3\missions_f_epa\video\b_m02_1_quotation.ogv"]); text = __EVAL(selectRandom ["\a3\missions_f_epa\video\a_hub_quotation.ogv", "\a3\missions_f_epa\video\a_in_quotation.ogv", "\a3\missions_f_epa\video\a_m01_quotation.ogv", "\a3\missions_f_epa\video\a_m02_quotation.ogv", "\a3\missions_f_epa\video\a_m03_quotation.ogv", "\a3\missions_f_epa\video\a_m04_quotation.ogv", "\a3\missions_f_epa\video\a_m05_quotation.ogv", "\a3\missions_f_epa\video\a_out_quotation.ogv", "\a3\missions_f_epa\video\b_hub01_quotation.ogv", "\a3\missions_f_epa\video\b_m01_quotation.ogv", "\a3\missions_f_epa\video\b_m02_quotation.ogv", "\a3\missions_f_epa\video\b_m03_quotation.ogv", "\a3\missions_f_epa\video\b_m06_quotation.ogv", "\a3\missions_f_epa\video\b_out2_quotation.ogv", "\a3\missions_f_epa\video\c_ea_quotation.ogv", "\a3\missions_f_epa\video\c_eb_quotation.ogv", "\a3\missions_f_epa\video\c_in1_quotation.ogv", "\a3\missions_f_epa\video\c_in2_quotation.ogv", "\a3\missions_f_epa\video\c_m01_quotation.ogv", "\a3\missions_f_epa\video\c_m02_quotation.ogv", "\a3\missions_f_epa\video\c_out1_quotation.ogv", "\a3\missions_f_epa\video\a_in2_quotation.ogv", "\a3\missions_f_epa\video\b_m05_quotation.ogv", "\a3\missions_f_epa\video\b_m02_1_quotation.ogv"]); onVideoStopped = "diag_log format [""CONTROL :: %1"", param [0]]; ctrlSetText [param [0], (selectRandom introQuotes)]; diag_log format [""New quote? :: %1"", ctrlText param [0]];"; }; }; class controls {}; }; startLoadingScreen ["Authority mission is setting up. Please wait...", "rsc_loadingScreen"]; waitUntil {initserverfinished}; endLoadingScreen; This all works fine after a lot of time messing with it but the issue is that onVideoStopped doesn't. Originally I did this in an external file (see above) but that didn't work as the specified idd appears to be ignored. Not sure why as it is custom display, even when I changed -1/97531 to something else. I even tried uiNamespace setVariable too. I want to play another video upon the previous ending and stop it when loading is complete. How to change the video? - ctrlSetText doesn't work (although it returns correct quote) - BIS_fnc_playVideo function doesn't work (not for control method) @Larrow
  9. @Larrow - Can you share your version for all? Yours was a bit better. I remember you got the loop to work but couldn't figure out the JIP issue either. Possibly A3 limitation?
  10. Sorry. Been away and busy... Someone added me on Steam recently and informed me. Here is a new link. https://drive.google.com/file/d/19VYYq5WXzUdU-MB22lLjEo95SQJldD1J/view?usp=sharing
  11. Reading my own comment regarding #include, I just remembered another thing though it's been a while so it's either Mikero Tools or another one but thought I'd share anyway. For some reason, in .hpp files (inside classes), using true or false keyword causes issues with packing. A simple fix is to either change to 1/0 or add the #define to the top of the file. #define true 1 #define false 0
  12. I don't think caps should be forced for script command usage but for radio messages either force to caps or at least fix the grammar haha. In the screenshot posted above by Miksuu11, it looks really odd. @Miksuu11 Are you running the modset for that server? I am aware there is one, I can't recall if it has any changes to font UI or not. I haven't never noticed it myself in the past. Haven't played the game for quite a while now though.
  13. HazJ

    Authority 20 player coop.

    When using CBA, the View Distance Settings action isn't added. For those that didn't know, here is how you open the VD UI. @kdjac 😋 These are the default keys. Feel free to change.
  14. You can override the scoring issues. https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HandleHandleScore
  15. HazJ

    Authority 20 player coop.

    Just to confirm, the force save button does not do anything as Tank said. It does however show a hint saying force saved. Disregard this. If you complete an airfield (auto saves) then half do a town and restart. The new town may not be the same. Future plans include half progression saving and possibly route as well. Copied from the original ticket:
  16. HazJ

    Contact Expansion Feedback

    This must of slipped past QA/Testing... Understandable as I could only reproduce once. 😋 https://i.imgur.com/uS6f6vn.jpg Been using custom FOV for well over a year. This doesn't look right... (POSSIBLE SPOILER: from Contact campaign) https://i.imgur.com/a1T76zE.jpg
  17. They do. Just not when packing with Mikero Tools...
  18. Hey @mikero - Having multiple #include in the description.ext file causes the mission to crash on server start, the issue is something to do with the way they are packed, not sure what exactly causes it. Maybe some formatting? When I use another PBO packer, no issues. The PBO is created without any errors. #include "Sounds\description.ext" //--- Header contains the mission tite. #include "Rsc\Header.hpp" //--- Styles #include "Rsc\Styles.hpp" //--- Parameters contains the mission parameters. #include "Rsc\Parameters.hpp" //--- Ressource contains the dialog ressources. #include "Rsc\Ressources.hpp" //--- Dialogs contain all the interfaces (dialogs). #include "Rsc\Dialogs.hpp" //--- Titles contains the titles (overlay). #include "Rsc\Titles.hpp" EDIT: Not my code. I guess there are strict rules when using MakePbo. #include "macros.hpp" #include "Configuration\Header.hpp" #include "Configuration\CfgSounds.hpp" //--- Header contains the mission tite. //--- Include Identities (OA/CO Only). #ifndef VANILLA #include "Configuration\Identities.hpp" #endif #include "Configuration\Parameters.hpp" //--- Styles #include "Rsc\Styles.hpp" //--- Parameters contains the mission parameters. //--- Ressource contains the dialog ressources. #include "Rsc\Resources.hpp" //--- Dialogs contain all the interfaces (dialogs). #include "Rsc\Dialogs.hpp" //--- Titles contains the titles (overlay). #include "Rsc\Titles.hpp" EDIT 2: I spoke too soon. Instant crashing. I get: ErrorMessage: Include file macros.hpp not found. The file exists, in root and in Configuration folder (just in case). Even though it isn't called from there.
  19. HazJ

    [RELEASE] Notification System

    Nice work. Looks great. Don't have to get around to re-writing mine now! Everyone can just use this. 🤣🤣🤣
  20. HazJ

    Can't save a .sqf file

    I use 0: 0 = [] 😁
  21. Damn! Thanks, knew it was something simple. Didn't bother to check type, just assumed. Always a bad idea to do so haha. Thanks.
  22. I am using drawIcon not createMarker therefore they have to be drawn on all. Main map, GPS, and any custom displays with map control.
  23. Resolved. @Tankbuster was using behaviour CARELESS on the waypoint. Upon dismount, their behaviour had to be changed back to COMBAT.
  24. HazJ

    [R3F] Logistics

    @Tetixx - Follow these steps (not tested): Open config.sqf in R3F_LOG and add the following somewhere: R3F_LOG_CFG_force_walk = false; Open deplacer.sqf located in R3F_LOG\objet_deplacable Find this line: _joueur forceWalk true; Replace it with: _joueur forceWalk R3F_LOG_CFG_force_walk;
×