Page 4 of 6

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Mon Mar 09, 2015 7:59 am
by Luth
I just deleted some lines of code; this is very far from awesome :D
My performance isn't worse with it, but i have lots of CPU power, so maybe i don't realise it.

Edit: maybe you can try to deactivate line 61 and 73 and see if your performance is better:
Spoiler:
Image
Edit#2: Just tried it, it deactivates the chat message.

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Mon Mar 09, 2015 5:15 pm
by TenTonHammer
Can some one please upload a fixed version of ges? I keep trying to edit it but it's not working

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Mon Mar 09, 2015 5:28 pm
by Luth
I updated the first post yesterday with the fixed version (attachment at the bottom).

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Tue Mar 10, 2015 3:57 pm
by TenTonHammer
Thanks

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Mon Jul 13, 2015 6:43 am
by CarlistRieekan
Thank you very much, sir.

May Gods of Chaos give you great gifts!

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Tue Sep 08, 2015 3:51 pm
by Malvaroth
Hi all, joined the ranks of RoR a few days ago and have been working on getting my addons set up when I came across this solution to avoid GES turning itself off.
First of all thanks, this is great, I just wanted add something: the best way of implementing this temporary fix (especially considering some people mentioned concerns about performance issues) would actually be to disable line 55, since that is the only place where the function is called:

change
Ges.CommsJoinChannel()
to
--Ges.CommsJoinChannel()

If you do this you don't need to change any other lines in the file.

I did not take the time to work through all the code but generally speaking it is always better to disable a function call than to disable part of the function itself, because this way you make sure no unnecessary code is being executed.

In this case:
Addon tries to join a new channel because no existing channel was found. In order to prevent infinite attempts of joining a channel, the addon will stop after failing 5 times.
First fix: remove code that shuts down after 5 failed attempts. Result: addon does not shut down but now infinitely tries to join channel, not so good.
Second fix: remove the whole function. Result: every time addon tries to execute the function, an error happens (since the function can't be found), still not ideal.
Third fix: remove function call. Result: if addon can't find existing channel, nothing happens.

It's probably possible to disable more, but this seems good enough to me.

Many thanks to Luth for taking the time to come up with a fix in the first place, I only wanted to suggest a cleaner way ;)
Send me a PM if something is unclear or if it doesn't work.

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Tue Sep 08, 2015 3:53 pm
by Penril
Anyone knows if there is a fix like this for GDeS addon?

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Tue Sep 08, 2015 4:40 pm
by Malvaroth
Penril wrote:Anyone knows if there is a fix like this for GDeS addon?
What is GDeS?

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Tue Sep 08, 2015 4:45 pm
by Penril
Malvaroth wrote:
Penril wrote:Anyone knows if there is a fix like this for GDeS addon?
What is GDeS?
Basically it tells you where the tank who is guarding you is located. It works like GeS. So it helps you stay close to your tank.

It requires the tank to use GeS though, otherwise it doesnt work.

Re: Addon: temporary fix for "GES" - a must have for (!) tan

Posted: Tue Sep 08, 2015 5:20 pm
by Malvaroth
Penril wrote:It requires the tank to use GeS though, otherwise it doesnt work.
In that case, since it needs to actually communicate with the tank's GeS, it will only work once we find a way for GeS to create/join a comms channel.