Jump to content

HazJ

Member
  • Content Count

    2571
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

1116 Excellent

About HazJ

  • Rank
    Warrant Officer

core_pfieldgroups_3

  • Interests
    Gaming & Coding

Contact Methods

  • Website URL
    http://hazjohnson.com
  • Twitter
    https://twitter.com/hazj95
  • Youtube
    https://www.youtube.com/channel/UCFX5xzGBV1SLjPsEQnuD1qw
  • Steam url id
    http://steamcommunity.com/id/iamhaz/
  • MySpace
    Seriously... Who uses this anymore? lol!
  • Twitch.Tv
    https://www.twitch.tv/hazj_

Profile Information

  • Gender
    Male
  • Location
    In your head. I'm an figment of your imagination.
  • Interests
    Eat, sleep, code and repeat.

Recent Profile Visitors

2673 profile views
  1. What is it you are using EachFrame for exactly? Just wondering. What code?
  2. Here you go: https://hazjohnson.com/ArmA/slider.VR.zip Please learn from it. bfMenu1Begin.sqf: sliderSetRange [100, 5, 121]; sliderSetSpeed [100, 1, 10]; sliderSetPosition [100, gameTime]; _text = if !(gameTime isEqualTo 121) then {format ["Time remaining: %1 minutes", gameTime]} else {"Time remaining: Unlimited"}; ctrlSetText [200, _text]; ((uiNamespace getVariable "sliderExample") displayCtrl 100) ctrlAddEventHandler ["SliderPosChanged", { params ["_control", "_newValue"]; gameTime = round _newValue; hintSilent str _this; _text = if !(gameTime isEqualTo 121) then {format ["Time remaining: %1 minutes", gameTime]} else {"Time remaining: Unlimited"}; ctrlSetText [200, _text]; }]; (uiNamespace getVariable "sliderExample") displayAddEventHandler ["Unload", { params ["_display", "_exitCode"]; publicVariable "gameTime"; // only update across network upon closing }]; Used your control values from above. Changed IDCs for my sake. Used latest GUI defines 1.88 (thanks to Larrow). Preview example mission.
  3. Huh??? What is 5? Nothing. Unless I am missing something? Did you try without?
  4. I personally would use Stacked EachFrame EH for different things. Not split one up. https://community.bistudio.com/wiki/BIS_fnc_addStackedEventHandler
  5. HazJ

    inidbi with remoteExec?

    Why remoteExec in the first place? The DB should only be on server. Take a look at the documentation for inidbi as well. Will teach you quite a lot. There is also inidbi2 which is newer. I would create function on server to handle DB requests. Pass whatever arguments are needed, etc...
  6. HazJ

    Stuck at ARMA 3 Apex logo screen

    Share your client RPT, upload to PasteBin and share URL. C:\Users\Username\AppData\Local\Arma 3 Also, is this without mods? Any specific parameters set on startup? Have you tried repairing the game as well?
  7. @johnnyboy - Two options come to mind. https://community.bistudio.com/wiki/ppEffectCreate Or if you want it to be an actual thing rather than an effect that occurs to nearby players then maybe look into particle effects. https://community.bistudio.com/wiki/Arma_3_Particle_Effects
  8. onSliderPosChanged You pass 5 as an argument. _select 0 - _control _select 1 - _newValue Your control IDC is 1904, it wants the control, not IDC. You are overwriting it with 5. Remove it. onSliderPosChanged = "0 = [] execVM 'settings\bfMenu1.sqf';";
  9. Remove mods ??? Just hope you didn't binarize the .sqm file else you are stuck. I guess you could find some tool to reverse it. If it isn't then open and search for addOns then remove all mods. KP has new version of Liberation so probably best to update and re-edit anyway.
  10. https://community.bistudio.com/wiki/ctrlDelete 31357 is the IDC. I recommend not using display #46. It was just a quick example/test in debug.
  11. Me and @Tankbuster needed a similar solution. screenToWorld always gives 0 for surface. Made a little hacky work around. I know this isn't exactly what you are after but thought I'd share anyway. I'm sure Tank will share his input on what we use it for. Debug: [] spawn { _ctrl = findDisplay 46 ctrlCreate ["RscPicture", 31357]; _ctrl ctrlSetPosition [0.48, 0.4799, 0.04, 0.04]; _ctrl ctrlSetText "\A3\ui_f\data\map\markers\military\destroy_CA.paa"; _ctrl ctrlSetTextColor [1, 0, 0, 1]; _ctrl ctrlCommit 0; }; Probably a better way to do this but couldn't figure it out with drawIcon3D. https://i.imgur.com/st8WiDn.jpg https://i.imgur.com/9MgscfK.jpg
  12. HazJ

    remoteExec ctrlSetText

    You can't do that. At least last time I checked. You have to put it in a function else it doesn't work, it also spams RPT with errors. https://forums.bohemia.net/forums/topic/210759-remoteexec-a-display/
  13. I am on phone so can't help much but you can use params here too. Something like: _arr = [10, ["Something", 100, TRUE], "LALALA"]; _var = _arr params ["_level", "_nestedArr", "_message"]; This saves you keep using select over and over. It is cleaner as you can use whatever _varName you want. Etc.
  14. I would say it depends. What is the variable for? If you are passing it to the function then use params as they also privates variables.
  15. KK added possible solution on Wiki somewhere. it remember coming across I recently. https://community.bistudio.com/wiki/ctrlSetStructuredText
×