Lachesis580 10 Posted November 2, 2014 (edited) Hi Since there is no "CurrentGrenade"-command,(CLICK) I decided to make a little workaround function. At the moment, it returns an array: Index 0 = Name of the grenade. Index 1 = Ammo count from the grenade. Example: _curgrenade = [] call SCW_fnc_currentGrenade; hint format ["%1 & %2", _curgrenade select 0,_curgrenade select 1]; Changelog: 02 Nov 2014 - 1.0b -First public release. 04 Nov 2014 - 1.0b -Only added the missing script. Sry for that. (there is no version number change) Download: CLICK Current version: 1.0b Requires CBA (Latest version) PS: Sry for my bad english. :) PPS: I am Lachesis580 but there is no way to change the nickname here. :( (Didn't find anything in the settings.) Edited November 4, 2014 by Legion1337 Share this post Link to post Share on other sites
scorch_052 127 Posted November 2, 2014 Nice, I can see this being really useful in the future. Share this post Link to post Share on other sites
Lachesis580 10 Posted November 2, 2014 Thank you, yeah i hope so. Share this post Link to post Share on other sites
R0adki11 3949 Posted November 3, 2014 PPS: I am Lachesis580 but there is no way to change the nickname here. :( (Didn't find anything in the settings.) If you would like to change your name on the forums, please see this thread: (http://forums.bistudio.com/showthread.php?72049-The-Username-Change-Merge-Thread) Share this post Link to post Share on other sites
Lachesis580 10 Posted November 3, 2014 If you would like to change your name on the forums, please see this thread: (http://forums.bistudio.com/showthread.php?72049-The-Username-Change-Merge-Thread) Nice thank you. Share this post Link to post Share on other sites
Guest Posted November 4, 2014 Thanks for sending us the release :cool: Release frontpaged on the Armaholic homepage. Custom function "CurrentGrenade" v1.0bCommunity Base addons A3 ================================================ We have also "connected" these pages to your account on Armaholic. This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Share this post Link to post Share on other sites
Lachesis580 10 Posted November 4, 2014 @Foxhound Thank you :) Share this post Link to post Share on other sites
kecharles28 197 Posted November 4, 2014 New mod 1.0 available at withSIX. Download now by clicking: @Lachesis580; You are now able to manage your own promo pages of your content on our web platform and soon also publish new content yourself. To do so, please hit 'this is me' button on the page while logged in and follow the quick and safe claim procedure to get connected to your work. For now you can send new content or releases our way through withsix.wetransfer.com or add your notification at getsatisfaction.withsix.com. Share this post Link to post Share on other sites
Lachesis580 10 Posted November 4, 2014 @kecharles28 Thank you :) Share this post Link to post Share on other sites
Make Love Not War 10 Posted November 4, 2014 Great idea, but I downloaded from Armaholic and I'm getting: Warning Message: Script CurrentGrenade\580Addons\CurrentGrenade\CurrentGrenade.sqf not found on startup. Seems like you forgot to pack the actual script file into the .pbo? :) Share this post Link to post Share on other sites
Lachesis580 10 Posted November 4, 2014 (edited) Great idea, but I downloaded from Armaholic and I'm getting: Warning Message: Script CurrentGrenade\580Addons\CurrentGrenade\CurrentGrenade.sqf not found on startup. Seems like you forgot to pack the actual script file into the .pbo? :) Oh gosh sry for that. =D Forgot to change the folder path in the Addon builder. :o Fix is coming. :) Edit: Download Link updated. Changelog: 04 Nov 2014 - 1.0b -Only added the missing script. Sry for that. (there is no version number change) Edited November 4, 2014 by Legion1337 Share this post Link to post Share on other sites
sonsalt6 105 Posted November 4, 2014 Updated mod 1.0.1 available at withSIX. Download now by clicking: Share this post Link to post Share on other sites
Guest Posted November 4, 2014 Fixed version frontpaged on the Armaholic homepage. Custom function "CurrentGrenade" v1.0bCommunity Base addons A3 ================================================ We have also "connected" these pages to your account on Armaholic. This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Share this post Link to post Share on other sites
Make Love Not War 10 Posted November 4, 2014 Hey, OK, addon is running and function is there, but it produces following errors: 13:39:52 Error in expression <idx = 0; _curstr = []; while {_curidx < _countstr} do { _char = _strar select _c> 13:39:52 Error position: <_countstr} do { _char = _strar select _c> 13:39:52 Error Undefined variable in expression: _countstr 13:39:52 File x\cba\addons\strings\fnc_split.sqf, line 26 13:39:52 Error in expression <_fnc_defaultParam; ; _strar = toArray _string; _separ = toArray _separator; _c> 13:39:52 Error position: <_string; _separ = toArray _separator; _c> 13:39:52 Error Undefined variable in expression: _string 13:39:52 File x\cba\addons\strings\fnc_split.sqf, line 13 13:39:52 Error in expression < _replacement = (_this) select 2; ; [[_string, _pattern] call CBA_fnc_split, _> 13:39:52 Error position: <_string, _pattern] call CBA_fnc_split, _> 13:39:52 Error Undefined variable in expression: _string 13:39:52 File x\cba\addons\strings\fnc_replace.sqf, line 12 13:39:52 Error in expression <') displayCtrl 151); _ggtyp = ctrlText _distyp; _ggcountRaw = ctrlText _discoun> 13:39:52 Error position: <_distyp; _ggcountRaw = ctrlText _discoun> 13:39:52 Error Undefined variable in expression: _distyp 13:39:52 File CurrentGrenade\580Addons\CurrentGrenade\CurrentGrenade.sqf, line 6 And the SCW_fnc_currentGrenade function itself is returning: [string,""] I'm on dev build 1.35.128059 and loaded only @CurrentGrenade and latest @CBA (1.0.9.140907 RC4) as addons into SP. Share this post Link to post Share on other sites
Lachesis580 10 Posted November 4, 2014 Yes indeed! :eek: Last time i used it was yesterday and it worked fine.(I'm on the Stable build) I look into it and i publish the update as fast as i can. On the first fast look it seems there is a problem with the BIS HUD Dialog, ctrlText didn't get the text anymore. ---------- Post added at 23:56 ---------- Previous post was at 22:17 ---------- I think the problem is on the BIS side? Because after hard-testing i think PreloadAddons doesn't work anymore. so i can't override BIS things. Then i did a little test and downloaded "UIcorrections" by Beazley and took the "bzly_UIammocount" and yeah didn't work too. Share this post Link to post Share on other sites
Make Love Not War 10 Posted November 5, 2014 Lachesis580, thanks for taking the time to try it out on dev build. Yeah, I had a feeling it might be working on stable and not dev. It might very well be an issue they are aware of, but we should probably let BI know that ctrlText is no longer working with HUD elements in dev build before it is migrated over and becomes a pernament fixture within stable. At a glance, I don't see it reported anywhere. Seeing as you are much more familiar with the issue than me, would it be possible for you to create a feedback ticket or post something in this thread? If you do post a ticket let us know back here so we can go and vote (already voted on your original currentGrenade ticket, BTW). Share this post Link to post Share on other sites
Lachesis580 10 Posted November 6, 2014 Thank you for the upvote Yeah, I had a feeling it might be working on stable and not dev. It might very well be an issue they are aware of, but we should probably let BI know that ctrlText is no longer working with HUD elements in dev build before it is migrated over and becomes a pernament fixture within stable. Too late :( with the Helicopter DLC Release this problem is on the Stable version too. http://feedback.arma3.com/view.php?id=21531 Share this post Link to post Share on other sites
Lachesis580 10 Posted November 7, 2014 Yeah 100% sure the Heli update caused this problem. CfgAddons/Preloadaddons isn't working. I switched to the Legacy Build and hey it's working: Share this post Link to post Share on other sites