• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 12 13 14 15 16 ... 116 Next »

Resource Pack Compression
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Resource Pack Compression
04-09-2019, 10:38 AM
#1
Bighead Offline
Oversized Cranium
*******
Posts: 1,979
Threads: 15
Joined: Aug 2011
I've been procrastinating creating resource pack versions of all my textures packs, mainly because I wanted to figure out how to get compressed resource packs working in Dolphin, plus I would also like to add the ability to compress them with my script if possible. I finally spent some time looking into this, and I still haven't figured it out so I'm hoping someone who knows more can help me out.

I haven't been able to find much talk about it except the PR that added it here:
https://github.com/dolphin-emu/dolphin/pull/7773

And the tidbit mentioned in the spec:
https://gist.github.com/spycrab/9d05056755d8d7908bdb871a99d050bf

Techjar mentions that it only supports "Zlib (aka Deflate)". Looking into it, the ZIP format is using deflate, so I think maybe that will work. I compressed a zip file, added the necessary line to the manifest, and nada. Looking more into it, the GZIP format also uses Zlib library, a.k.a. deflate. I didn't know much about it, so looking into it further I learned that GZIP can only handle a single file, so a "TAR" archive (or tarball) needs to be created, then compress that. So I create a ".tar.gz" archive, and that doesn't work either. Does anyone know exactly what program/settings/archive are needed?

The packs I created and tried are here:
http://www.mediafire.com/folder/dt8q8n5smnt66/ResourcePacks
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
04-09-2019, 07:22 PM (This post was last modified: 04-09-2019, 07:22 PM by spycrab.)
#2
spycrab Offline
Qt guy
**********
Developers (Some Administrators and Super Moderators)
Posts: 86
Threads: 1
Joined: Apr 2017
Your texture pack is mostly fine but your manifest is malformed (and yes it needs to be a zip file).
Code:
{
"name": "New Super Mario Bros. Wii HD",
"id" : "new-super-mario-bros-wii-hd",
"version": "2.8",
"authors": ["Bighead", "razius"],
"website": "https://forums.dolphin-emu.org/Thread-new-super-mario-bros-wii-hd-texture-pack-v2-8-november-13-2017",
"description": "HD texture pack for NSMBW."
"compressed": "true"
}

1. You're missing a comma in the description line
2. Compressed is a boolean an doesn't need to be escaped so just use true instead of "true"

With those small adjustments (see below), your texture pack loads fine for me.


Code:
{
"name": "New Super Mario Bros. Wii HD",
"id" : "new-super-mario-bros-wii-hd",
"version": "2.8",
"authors": ["Bighead", "razius"],
"website": "https://forums.dolphin-emu.org/Thread-new-super-mario-bros-wii-hd-texture-pack-v2-8-november-13-2017",
"description": "HD texture pack for NSMBW.",
"compressed": true
}
Find
Reply
04-09-2019, 08:32 PM
#3
Bighead Offline
Oversized Cranium
*******
Posts: 1,979
Threads: 15
Joined: Aug 2011
Felled by typos. Sad When I added the "compressed" line in my script, I copied the "description" line which didn't have a comma, and I forgot to put one in there. Thank you for the reply, everything works great now! And it even works with standard ZIP so adding compression was as simple as changing a flag which is great. I convinced myself for no reason that I'd probably have to use GZIP.
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
04-09-2019, 09:09 PM
#4
spycrab Offline
Qt guy
**********
Developers (Some Administrators and Super Moderators)
Posts: 86
Threads: 1
Joined: Apr 2017
No big deal. Our error reporting isn't really detailed enough right now.
I'll hopefully address this soon.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode