Recent Topics

Ads

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

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
Luth
Posts: 2840

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

Post#31 » Mon Mar 09, 2015 7:59 am

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.

Ads
User avatar
TenTonHammer
Posts: 3807

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

Post#32 » Mon Mar 09, 2015 5:15 pm

Can some one please upload a fixed version of ges? I keep trying to edit it but it's not working
Image

Luth
Posts: 2840

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

Post#33 » Mon Mar 09, 2015 5:28 pm

I updated the first post yesterday with the fixed version (attachment at the bottom).

User avatar
TenTonHammer
Posts: 3807

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

Post#34 » Tue Mar 10, 2015 3:57 pm

Thanks
Image

User avatar
CarlistRieekan
Posts: 237

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

Post#35 » Mon Jul 13, 2015 6:43 am

Thank you very much, sir.

May Gods of Chaos give you great gifts!
Image

User avatar
Malvaroth
Posts: 6

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

Post#36 » Tue Sep 08, 2015 3:51 pm

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.
Last edited by Malvaroth on Tue Sep 08, 2015 4:26 pm, edited 2 times in total.
Image

Penril
Posts: 4441

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

Post#37 » Tue Sep 08, 2015 3:53 pm

Anyone knows if there is a fix like this for GDeS addon?

User avatar
Malvaroth
Posts: 6

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

Post#38 » Tue Sep 08, 2015 4:40 pm

Penril wrote:Anyone knows if there is a fix like this for GDeS addon?
What is GDeS?
Image

Ads
Penril
Posts: 4441

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

Post#39 » Tue Sep 08, 2015 4:45 pm

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.

User avatar
Malvaroth
Posts: 6

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

Post#40 » Tue Sep 08, 2015 5:20 pm

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.
Image

Who is online

Users browsing this forum: TheBlazers and 72 guests