Now that the resource packs are implemented, I have finally decided to start converting my texture packs to resource packs. While doing so and playing around with the resource pack GUI, I noticed a few bugs.
To get right into it, I decided to start with Skies of Arcadia. This is a small pack, and only has two optional textures to adjust the flight meter depending on 4:3 or 16:9 aspect ratio. So I thought, why not make it 3 resource packs: a core pack, and two packs for the flight meters.
At first glance, everything seems fine, but the Install/Uninstall button is bugging out. It gives the option to "Uninstall" on packs that are not installed, and sometimes pressing the "Install" option doesn't make the background green or even install the pack.
In this example, I have the 16:9 mod highlighted, which isn't installed, but the button wants to "uninstall". If I press uninstall, it just deselects the pack and does nothing.
Changing the orders around can really start to mess stuff up, and the ini doesn't reflect the order shown in the GUI. Manually editing it can fix this much, but only the "core" pack wants to install, and its the only one written to the ini. I thought maybe the names were too similar and causing conflicts but changing them didn't matter.
Code:
[Order]
skies-of-arcadia-hd-core-pack = 2
skies-of-arcadia-hd-flight-meter-wide = 0
skies-of-arcadia-hd-flight-meter-standard = 1
[Installed]
skies-of-arcadia-hd-core-pack = True
On packs that are bugged with just "install", pressing the install button does indeed copy the textures. But it does not write that it is installed to the ini, nor does it turn green, instead it just keeps the "install" option.
I have uploaded the packs if anyone wants to test them out and confirm this is indeed an issue and I'm not doing something wrong.
http://www.mediafire.com/file/28uf8pu5k08lwku/SoA_Resource_Pack_v0.05.7z/file
Edit: An idea just hit me shortly after. Would it be possible to give 2 resource packs the same ID, so when installing one of them, both appear "Installed"? It would be impossible to know which is really installed, so maybe installing one grays out the other or something. Then when uninstalling either one, it would "uninstall" whichever one is installed and both are available to install again. This would be useful in a situation such as the one above, where two different packs share the same textures.
It might not be worth the effort, but it was just a thought. Users could also just copy the packs they actually need instead of one that will never be activated.