IDEAS

Help shape the future of CurseForge!

[suggestion] 2 new packager tags for pkgmeta to parse WoW addons

The two new tags would be to flag code sections for WoW Classic and WoW retail. This would allow addon authors to have two ## Interface: wowversionnumber lines in their ToC files, or to specify that a chunk of code should only run in a particular version of WoW. Maybe something like:

#@enable-wow-classic@

#@end-enable-wow-classic@

And

#@enable-wow-retail@

#@end-enable-wow-retail@

That way we could do this in MyAddOn.toc:

#@enable-wow-classic@

## Interface: 11305

#@end-wow-classic@

#@enable-wow-retail@

## Interface: 90001

#@-end-wow-retail@

Now both versions of the game are flagged with the correct Interface versions and will load without the user needing to specifically load out of date addons.

We could also use the same tags in Lua or XML files to activate or comment out code chunks depending on the game version.

  • Paul Vandersypen
  • Oct 21 2020