WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Twitch Game Version column (https://www.wowinterface.com/forums/showthread.php?t=57300)

bsmorgan 07-21-19 06:52 AM

Twitch Game Version column
 
When I update my addon (Skillet) on WoWInterface one of the options is Addon Compatibility where I can pick which versions the addon is compatible with.

For better or worse, my addon's SVN repository is hosted on WowAce and packaged by their package manager who knows where.

When my addon appears on Twitch, there is a Game Version column that is updated for some addons but not mine. What do I need to do to set that for my addon?

Xrystal 07-21-19 10:22 AM

The Game Version column on CurseForge/Twitch is set when you upload the addon.

At the bottom of the upload file page there are two newish options.

Supported WoW Versions - 8.2.0 current latest choice
Supported WoW Classic Versions - 1.13.2 current latest choice

It might be that you haven't updated recently there to have seen the options. But I think you can edit your downloads to make the necessary changes.

bsmorgan 07-21-19 12:27 PM

I don't upload my addon, the packager does that for me. It sounds like I have to tell the packager somehow.

MooreaTv 07-21-19 11:50 PM

it's been a random number/text for both my own addons and others

oh and if you want to see another random label/version, click any addon you have installed (detailed page/view) and check for the zip name showing there next to the addon title

Xrystal 07-22-19 05:57 AM

Quote:

Originally Posted by bsmorgan (Post 332948)
I don't upload my addon, the packager does that for me. It sounds like I have to tell the packager somehow.

It might be that Twitch hasn't applied that functionality to the packager if there is no clear option to set it. You may have to contact them and report the issue to them.

Rilgamon 07-22-19 08:00 AM

One way I found was editing the file meta.
You find it when you pick the file directly eg for one of my addons it would be
https://www.curseforge.com/wow/addon.../files/2732803
there you find an edit option that allows to set the versions
https://www.curseforge.com/project/3...s/2732803/edit

for your addon it should be this
https://www.curseforge.com/wow/addon.../files/2744775

bsmorgan 07-22-19 08:47 AM

Quote:

Originally Posted by Rilgamon (Post 332952)
One way I found was editing the file meta.
for Skillet it should be this
https://www.curseforge.com/wow/addon.../files/2744775

Thanks! That's the closest I've gotten but when I clicked on "Edit", the game version was already set to 8.2.0. Twitch, however, still says 5.3.0 so I'm still confused, but at a higher level :)

Rilgamon 07-22-19 10:04 AM

If its just the client it might be that you did not use the twitch-client to install/update your addon.
So the client cant know what version is installed? (I dont use twitch so I dont know how it works)

bsmorgan 07-22-19 10:32 AM

Quote:

Originally Posted by Rilgamon (Post 332954)
If its just the client it might be that you did not use the twitch-client to install/update your addon.
So the client cant know what version is installed?

I try and use all the different methods that others might use so that I can verify that they work. This particular Skillet update, Twitch informed me that there was a new version and I updated it via Twitch.

I'm beginning to believe that the solution will involve me telling the packager somehow. It's going to be even more complicated when Classic releases in a month.

wildcard25 07-31-19 10:03 AM

It's not a packaging problem, the Twitch client just isn't putting the correct Game Version in the Game Version column. It's been broken since an update they did around the time that BFA launched. Of the addons that I have installed, the ones that show the correct Game Version have that version stored in their local database metafile. All of the one's that are showing an incorrect Game Version don't have any data stored (ie. '"gameVersion": [],'). I could make a guess where they are pulling the info that they are showing from, but my post might get moderated if I do. :)

They also haven't remapped the addon version info.
Code:

old version info = "FileName", new version info = "displayName"
I guess that's why it's showing the filename now ;)
Code:

old filename = "FileNameOnDisk", new file name = "fileName"
("FileNameOnDisk" is still hanging around though and has the same info as "fileName")

bsmorgan 07-31-19 01:14 PM

Quote:

Originally Posted by wildcard25 (Post 333025)
It's not a packaging problem, the Twitch client just isn't putting the correct Game Version in the Game Version column. It's been broken since an update they did around the time that BFA launched.

My contention all along. Twitch Support has a different opinion (probably from the same place the current info is from) :D

Quote:

Hello there,

Unfortunately, Twitch Support does not provide in regards to Modpack or Addon Projects. Project Authors are solely responsible for keeping their projects up to date and fully functional. We recommend reaching out to the Addon Author for any further questions or concerns.

Thanks!

wildcard25 07-31-19 08:04 PM

Well my guess was right, and while I don't particularly like js, I can use it if I have to. From their code
Code:

t.getInstalledVersion = function() {
    return t.props.instance.installedData.installedFile.fileName
}

it should be
Code:

    return t.props.instance.installedData.installedFile.displayName
And their Game Version code filters an unordered list by release type, then just takes the Game Version from the last entry of the unordered list. So, basically, it could be any version of the game that has a release of the same type.
Code:

t.getGameVersion = function() {
    var e = t.props.instance.addon.gameVersionLatestFiles && t.props.instance.addon.gameVersionLatestFiles.filter(function(e) {
        return 1 === e.fileType
    }) || [];
    return e.length ? e[e.length - 1].gameVersion : Object(m.d)("N/A", "InstalledAddon")
}

On the plus side, they corrected the spelling mistake and it's now called "gameVersion" instead of "GameVesion" :D

edit: Funny thing is, where they get the fileName attribute (again they should be using displayName) for the latest addon version, the game version is also there as an attribute.

myrroddin 08-01-19 05:57 AM

So, um, is there a fix or something we can do as authors? I was looking at this page and saw the line
Code:

## Globe: check-classic
I have never heard of that line in any .toc before. What is Globe, what are its arguments, where did it come from, why isn't it documented anywhere?

wildcard25 08-01-19 06:16 AM

We can't fix it ourselves, it's a Twitch client bug. Fortunately, it looks like it is just a display bug. As far as I can tell, the correct 'latest version' of the addon is being shown. Whether that will still hold true when classic is released, I have no idea.

'## Globe: check-classic' is for Globe. Info about Globe

bsmorgan 08-01-19 06:41 AM

Globe is a wonderful tool. I think we should start a new thread for it (as far from Twitch as possible :D ).

myrroddin 08-01-19 12:32 PM

Ah. I misunderstood Globe's purpose. I thought it was a new, undocumented Blizzard addition to the ToC and that was why addons were being incorrectly displayed. Globe is a third party. Good to know.


All times are GMT -6. The time now is 12:46 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI