Jump to content
Sign in to follow this  
Lachesis580

Custom function "CurrentGrenade"

Recommended Posts

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)

ACwAAAAAAQABAAACADs%3D#pwsc-{SnNsWUJlYzJFSjdUSVk4TG93QTRvUHhCY0U5REh6Nlkza21xMSt4MWNDbVpDUlJsM055YVg0WS9WWTZCUnFPZkp5MEoxTUsyczB1Z2NIOTE2cmtabUt5ejdEYWREMTlzQWZHbEtDb2hzOHlQazdQUkF5ZE9uMVhvL2U2VEowdzQ=}

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 by Legion1337

Share this post


Link to post
Share on other sites
Guest

Thanks for sending us the release :cool:

Release frontpaged on the Armaholic homepage.

================================================

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

New mod 1.0 available at withSIX. Download now by clicking:

banner-420x120.png

@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

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
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 by Legion1337

Share this post


Link to post
Share on other sites
Guest

Fixed version frontpaged on the Armaholic homepage.

================================================

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

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

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

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

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

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:

DEzeLw9.png

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×