-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store errors feature #476
Comments
Something I forgot to add and mention, we need to store only errors from GCA, in case Gladiatus will make some. An identifier... |
And since I know Thanos will not like this, we could possibly move the button to settings, under the Data section, however, to log the errors, the script must run in the background all the time anyways. But I leave those things to you. |
Ah, yes Thanos, I see your point. No more adding new features, which I also wanted, in this case, I thought this might prove useful tho, especially for us. Only keeping GCA on life support was and is the main goal. I'll close this for now, I mean, you can always find it here, if you want. |
Well I didn't say anything. I know how to implement this, but this is a bad period for me, so you have to give me more time. |
FYI, this may not be able to catch all the errors, as some of the errors may be fired before the handler starts to listen for errors. |
Oh! This is even better than I imaged it! Very nice, I only wish we had this sooner. I do hope that this will prove useful, in the future, actually, let's hope we won't need that, heh. Thank you. |
If you want, we can improve the message by adding the OS and Browser (+version) in it. Less asking, more copy-pasting. If it won't cause any issues, that is. |
Maybe even user's language, because that can sometimes cause issues too. Just my ideas, we want only the useful info. |
Thanos, I may need your skill and expertise, you see, I really like this feature, I really do. However, I was hunting down errors, oh and boy, I found some. You can produce countless errors during traveling between countries (or to the underworld), since pages are blocked by the travel and elements required does not exist. First, I thought about editing every function that does this, I already did something like that in e1838d6 (tho that was mostly because of a conflicting feature, and this fixed it), but this solution is far from being ideal, editing so many features isn't best and can create other issues, it's just, meh. Second, I thought that maybe we could do a check if the player is traveling and disable this feature completely. Third, give players the option to disable this feature (but 100% leave it on by default), if they dont want it OR ignore (specific?) errors (by the player). Best approach? I don't know, and I don't want to dig alone in it honestly, so I leave this in your capable hands, thanks. |
In general, error handling should be a bit independent as a system, thus, mixing it with settings is a bad idea. There are pages where scripts should not run, and thus putting a check before executing something is the way to do it. |
I am a bit overloaded these days, I can look into it next week. |
Sure, no rush, I don't think GCA is going anywhere, when you have the time, feel free to take a look at it. Rather you than me. There are some things I don't want to touch. |
In hopes this may save you some time next week, I have created a collection of all the errors I found. A player can access any of these during traveling between countries (or exiting the Underworld), since those pages are restricted: mod=reports
mod=arena&submod=serverArena&aType=2 and mod=arena&submod=serverArena&aType=3
mod=guildLibrary
mod=guildMarket
mod=guildStorage
mod=guildBankingHouse
mod=guild_jail
mod=player&p= and mod=settings&submod=charSettings
mod=underworld&submod=exit
For the last one, the Underworld one, I know adding this to it works, but I already said I will let you handle it, because we have multiple errors like these:
|
This time I won't hesisate to ask for your help, because this is something I wanted to have a long time ago, but never finished it, and instead of scrapping it completely, for you it should be child's play, not to mention you do your own tweaks anyways.
The basics are set, from my own testing, it's working as expected. All I am asking from you is the implementation into global.js, I have encountered a few issues and errors during the implementation and it... let's just say it got too messy.
The code
Description
I was inspired by another browser extension (also for a browser game) that has this. The script is supposed to store console errors and if errors are detected, it will create a button, this button is in the footers links, I have chosen this position so it's not in the way.
This button, when clicked, brings out a modal with logged errors, so you can also copy&paste them.
This feature is not for us, but for casual players, some will tell you "I have a problem" and that's pretty much it, if the console returns an error, you can point those players at this specific button, I believe in some cases this could help.
Notes:
showErrorButton();
needs to be called during page load (inject)style_gca.css line 1507 - height needs to be changed to auto:
gca_modal_wrapper .blackoutDialog_body{height: auto;}
To do - it might need a "clear" button, to flush the storage, could be added to the modal.
It might also need other small tweaks, but basic implementation comes first.
I thank you.
The text was updated successfully, but these errors were encountered: