Skip to content
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

BCC compatibility + some older problem fixes. #220

Closed
wants to merge 11 commits into from

Conversation

Road-block
Copy link

BCC compatibility is a side-effect from a bunch of dead code fixes.

Commit messages have the details.

replace dead code for group scaching in playernames module
add a sanity check for toast button in originalbuttons module
@Road-block
Copy link
Author

This supercedes #218 #214 completely, and #211 partially. It does not include the chat bubble border coloring fix.

@Road-block
Copy link
Author

Road-block commented May 25, 2021

So.. I'm going to leave it alone for now.
With the last commits it can close #218 , #214 and #211

I tried to keep things nice and separate in different commits rather than a big one so they can be cherry picked as needed.

@Road-block Road-block changed the title BCC compatibility + some outstanding problems fixes. BCC compatibility + some older problem fixes. May 25, 2021
@Road-block
Copy link
Author

Road-block commented May 25, 2021

This should also close #219 #206 #202 and #221

refactor backdrop compatibility for bcc and classic era
@Road-block
Copy link
Author

Road-block commented May 27, 2021

New package for testing.

Prat-3.0-3.9.1-5-571c1f6-bc.zip

Download, extract in AddOns, answer Yes to any overwrite prompts.

@Daeveren
Copy link

New package for testing.

Prat-3.0-3.9.1-3-085c8d7-bc.zip

Download, extract in AddOns, answer Yes to any overwrite prompts.

The scrolldown button no longer appears when I scroll chat to see old messages (display > buttons > show scrolldown reminder)

@Road-block
Copy link
Author

Road-block commented May 28, 2021

New package for testing.
Prat-3.0-3.9.1-3-085c8d7-bc.zip
Download, extract in AddOns, answer Yes to any overwrite prompts.

The scrolldown button no longer appears when I scroll chat to see old messages (display > buttons > show scrolldown reminder)

What version of the game (BCC, Classic Era)?
Was it working with a previous Prat version? On what version of the game was it working if yes.
Is it with OriginalButtons module enabled or not?

@ConKou
Copy link

ConKou commented May 29, 2021

Is there any way to make it so that WoWUp and other addon managers, can auto-detect files from PRs and update automatically? Because unless we do it manually, they still see Prat as a classic addon and issue a warning

@Road-block
Copy link
Author

Road-block commented May 29, 2021

Is there any way to make it so that WoWUp and other addon managers, can auto-detect files from PRs and update automatically? Because unless we do it manually, they still see Prat as a classic addon and issue a warning

There are workarounds for WowUp and Ajour (not sure about Overwolf client) to point it to a new repository for updates.
I know some people close to Sylvanaar are trying to figure out a way to hand over the project so it can continue but that will take some time.

I could probably keep Prat going for Classic Era / BCC but I do not play retail, nor do I intend to in the future so I will not be involved in maintaining the addon going forward.
It also has a huge install base and that's more "work" to support it than I'm willing to give.

TL;DR: Wait for a new main repository to show up or the project to be handed over.
In the mean-time you could use WowUp's Install from URL and point it to this tag
https://github.com/Road-block/prat-3-0/releases/latest
wowup
for BCC

@Daeveren
Copy link

New package for testing.
Prat-3.0-3.9.1-3-085c8d7-bc.zip
Download, extract in AddOns, answer Yes to any overwrite prompts.

The scrolldown button no longer appears when I scroll chat to see old messages (display > buttons > show scrolldown reminder)

What version of the game (BCC, Classic Era)?
Was it working with a previous Prat version? On what version of the game was it working if yes.
Is it with OriginalButtons module enabled or not?

In BCC it doesn't show the button. I only noticed this now installed your fork few days ago (before that I was using the normal addon, with some fixes from Curse comments).

@ConKou
Copy link

ConKou commented May 29, 2021

New package for testing.
Prat-3.0-3.9.1-3-085c8d7-bc.zip
Download, extract in AddOns, answer Yes to any overwrite prompts.

The scrolldown button no longer appears when I scroll chat to see old messages (display > buttons > show scrolldown reminder)

What version of the game (BCC, Classic Era)?
Was it working with a previous Prat version? On what version of the game was it working if yes.
Is it with OriginalButtons module enabled or not?

In BCC it doesn't show the button. I only noticed this now installed your fork few days ago (before that I was using the normal addon, with some fixes from Curse comments).

Its a thing with OriginalButton and Buttons Modules. Play around with them and you will find the fix. Happened to me as well, had to reload them one by one for it to work in the end

@Daeveren
Copy link

Only when I disabled Buttons and enabled Original Buttons I got the original up/down and Scrooldown buttons, but that's not what I wanted (and that disables the Buttons section in the Prat options completely). I didn't managed to make the Scrolldown button load from the Buttons module.
So far testing each of the buttons in the Buttons category goes like this:

  • show arrows - works
  • show social menu - does nothing
  • show minimize button - does nothing
  • show channel button - works
  • show scrolldown reminder - does nothing
  • show menu - works
  • show voice buttons - does nothing.

@Road-block
Copy link
Author

Only when I disabled Buttons and enabled Original Buttons I got the original up/down and Scrooldown buttons, but that's not what I wanted (and that disables the Buttons section in the Prat options completely). I didn't managed to make the Scrolldown button load from the Buttons module.
So far testing each of the buttons in the Buttons category goes like this:

  • show arrows - works
  • show social menu - does nothing
  • show minimize button - does nothing
  • show channel button - works
  • show scrolldown reminder - does nothing
  • show menu - works
  • show voice buttons - does nothing.

I'll take a look when I find some time but if I'm honest I did not touch anything related to those modules (other than fixing a bug in OriginalButtons module) so I doubt this is a new bug.
Probably default UI has changed and Prat has not followed those changes.

@ConKou
Copy link

ConKou commented May 31, 2021

Screenshot_5
small thing, in colored chat bubbles there is the little part where the bubble starts that doesnt get colored

@Road-block
Copy link
Author

Road-block commented May 31, 2021

New package with minor fix for bubble coloring. Prat-3.0-3.9.1-5-571c1f6-bc.zip

@watchout-mods
Copy link

@Road-block Oh nice, I didn't get a notification for this, bad github! I see you're much more invested in maintaining Prat :)

@KonstantinosKoubetsos I think the tail was never coloured in prat, or at least when I updated the code in my PR, it seemed so

@ConKou
Copy link

ConKou commented Jun 1, 2021

@Road-block thanks for the tail fix
Im noticing on WoW Interface its updated to the bcc libraries and picked up by WoW Up
https://www.wowinterface.com/downloads/info10783#other
Is that you with the same file commits as here?

@Road-block
Copy link
Author

@Road-block thanks for the tail fix
Im noticing on WoW Interface its updated to the bcc libraries and picked up by WoW Up
https://www.wowinterface.com/downloads/info10783#other
Is that you with the same file commits as here?

It is.

@ConKou
Copy link

ConKou commented Jun 1, 2021

@Road-block thanks for the tail fix
Im noticing on WoW Interface its updated to the bcc libraries and picked up by WoW Up
https://www.wowinterface.com/downloads/info10783#other
Is that you with the same file commits as here?

It is.

That's great. So i can just change providers and monitor from WoW Interface

@ConKou
Copy link

ConKou commented Jun 1, 2021

@Road-block weird thing, i just installed from WoW Interface and colored bubbles stopped working all together. I have no color at all. I checked your commit and the lines of code are not existant on the file.

@Road-block
Copy link
Author

@Road-block weird thing, i just installed from WoW Interface and colored bubbles stopped working all together. I have no color at all. I checked your commit and the lines of code are not existant on the file.

I just downloaded manually to check I uploaded the correct package and I did.
It's possible your updater is picking the main addon rather than the patched one.
https://www.wowinterface.com/downloads/info26044

@ConKou
Copy link

ConKou commented Jun 2, 2021

Another minor thing i noticed. Colored bubbles dont work inside (certain?) instances. Confirmed by going in Blood Furnance. Inside theres no coloring, while outside there is

@Road-block
Copy link
Author

Another minor thing i noticed. Colored bubbles dont work inside (certain?) instances. Confirmed by going in Blood Furnance. Inside theres no coloring, while outside there is

That is likely a Blizzard limitation, same as for friendly Nameplates. Some frames cannot be modified when inside instances.

@ConKou
Copy link

ConKou commented Jun 4, 2021

I am getting the 'no player named xxx currently playing' spam in my chat pretty regularly and some Ace library lua errors when doing scan on the auction house with TSM. Since prat is the only not officially tbc supported addon i am running, im inclined to think theres a problem there, but i really can't tell for sure because the chat spam error comes and goes randomly.

@Road-block
Copy link
Author

I am getting the 'no player named xxx currently playing' spam in my chat pretty regularly and some Ace library lua errors when doing scan on the auction house with TSM. Since prat is the only not officially tbc supported addon i am running, im inclined to think theres a problem there, but i really can't tell for sure because the chat spam error comes and goes randomly.

https://github.com/sylvanaar/prat-3-0/issues with the actual errors posted. If actual Prat files (not libraries) are not mentioned anywhere in the callstack it means nothing.

@Road-block
Copy link
Author

Prat-3.0-3.9.1-5-571c1f6-bc.zip with fix for buttons module.

@Daeveren
Copy link

Prat-3.0-3.9.1-5-571c1f6-bc.zip with fix for buttons module.

I can confirm that the ScrollDown button now works!
Thank you!

@dfherr
Copy link

dfherr commented Jun 24, 2021

GROUP_ROSTER_UPDATE triggers on party and raid changes, but the updateParty method only checks for party units. RAID_ROSTER_UPDATE is also deprecated since MOP.

I just fixed it for myself like this:
in onModuleEnable:

- self:RegisterEvent("RAID_ROSTER_UPDATE", "updateRaid")
- if select(4, GetBuildInfo()) < 80000 and select(4, GetBuildInfo()) >= 20000 then
-     self:RegisterEvent("PARTY_MEMBERS_CHANGED", "updateParty")
- end
+self:RegisterEvent("GROUP_ROSTER_UPDATE", "updateGroup")

and right above the updateRaid/updateParty calls:

function module:updateGroup()
    if IsInRaid() then
      self:updateRaid()
    elseif IsInGroup() then
      self:updateParty()
    end
  end

probably not ideal, but a bit cleaner.

@Road-block
Copy link
Author

Road-block commented Jun 24, 2021

New package with some cleanup of dead code per dfherr comment

Prat-3.9.1-6-f65d85e-bc.zip

Also reminder that you can feed your WowUp or Ajour addon updater Install from URL with
https://github.com/Road-block/prat-3-0/releases/latest link
to get updates like this automatically.

- pick some modifications from upstream
- add an editbox service file to prevent taint issues from touching ACTIVE_CHAT_EDIT_BOX global
- embeds refresh for wotlkc
- update interface numbers
@Road-block Road-block closed this Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants