Halvhjearne / simple_earplugs

"simple" earplugs
0 stars 0 forks source link

Action menu integration dissapears #1

Open briankgregory opened 9 years ago

briankgregory commented 9 years ago

I THINK this has something to do with your new script you shared with me, however the action menu to toggle the auto insert seems to be completely disappearing at some point. It may be after re-arming a vehicle.

Halvhjearne commented 9 years ago

did you disable your old earplug script?

also did the player die at some point?

nvm, i just tested it and you are right, it does remove the action when you open the rearm menu, ill see what i can do to fix it

Halvhjearne commented 9 years ago

my guess is its a bug in arma with addactions, i was only ably to replicate it once first time i logged in my server.

after a relogging, the scroll action was back and i cant replicate it again. consistent through multiple relogs ...

briankgregory commented 9 years ago

I am able to replicate it pretty consistently. It's happened for me every server restart at some point until I relog.. And yes, that other script is long gone. All of it.

I will keep watching and let you know if I can find a pattern.

Halvhjearne commented 9 years ago

i think its a bug with addaction, as im saying i cant replicate again after relogging once, atleast it wont happend again untill next restart.

briankgregory commented 9 years ago

Ya, I just got it to replicate again once I actually added ammo to the vehicle. And Ok on the bug with addaction.. If I need to I can switch back to that other one and see if I can maybe clean it up some as you can't adjust your volume unless you can toggle it off from the action menu and that is going to be an issue with some of my players I think.

Thanks for checking on that for me.

Halvhjearne commented 9 years ago

try use the hotkey when its gone and see if it still switches on and off (default "User3")

briankgregory commented 9 years ago

Actually i set it but I couldn't get the hotkey to work at all. I thought you said you had disabled it so I didn't bother with it anymore. If that isn't the case I will fiddle with it and see what I did wrong. However I do know it's enabled in the settings.

Halvhjearne commented 9 years ago

try set it back to "User3" and remap user action 3 in the controls panel, then see if it works.

briankgregory commented 9 years ago

Oh I definitely have User3 set. I have tried several different keys but I can't see to get any response from any of them when I use it.

Per my settings file: _autohotkey = "User3";

http://steamcommunity.com/id/bkgregory/screenshot/1468524577305491608

Halvhjearne commented 9 years ago

some keys are blocked by epoch for some reason, insert or + & - seems to work fine tho.

try a few diffent ones to see if they work, you can also assign multiple buttons, for faster checking.

briankgregory commented 9 years ago

Will check ASAP, yesterday I spent the entire day redoing my team server. What a PITA :)

briankgregory commented 9 years ago

Those keys did work and it tested them to make sure it toggled them which it did. However once I re-armed and lost the action menu item the hotkey also stopped working.

Halvhjearne commented 9 years ago

there is only one way the script will remove the action and thats if the player dies, so we can easily test if thats the case, cause in that case it would be added in again, if the player dies and is revived again.

can you try this for me: do whatever you do to make it dissapear, then kill yourself and revive to see if it returns. if it does, then i think i know how i can possibly fix it.

briankgregory commented 9 years ago

That seems to have done it and now it doesn't seem to be going away? I will test further though but yes that worked.

briankgregory commented 9 years ago

Well, until next restart I mean :)

Halvhjearne commented 9 years ago

it seems pretty random to me .. ill take it as not that important for now as it will be back if you die or relog and it still sets volume when entering or exiting vehicles either way.

briankgregory commented 9 years ago

It's actually not random at all. It's very precise on when it happens.

But the problem is that you actually lock the volume control when not in a vehicle making people unable to adjust it manually at all...

That's why I may end up switching back out to the other as much as I hate to. I get what you are saying and I know you are doing a lot... just food for thought. I think you would be better off removing the lock, removing the action menu item all together and just make it where when entering a vehicle it reduces it and when exiting it sets it back to 100% and users can freely use the EPOCH controls to increase and decrease it anytime they want.

Halvhjearne commented 9 years ago

ill change it so you can still set volume if it dissapears