Homebrew Question High-res N64 texture importing to Retroarch?

magelof

Well-Known Member
OP
Newcomer
Joined
Jul 29, 2006
Messages
53
Trophies
0
XP
419
Country
United States
Hi, I'm trying to import high-res n64 textures into Retroarch-- namely this Dijipi cell-shaded Ocarina pack.

Per this Reddit thread, I named the texture pack and the Ocarina rom the same file name and put the .htc texture pack into retroarch/cores/system/Mupen64plus/cache/. I flipped "Use high res textures/Alpha channel" to true in the game settings, restarted Retroarch, and the texture pack just will not take. For reference, the texture pack is called "OCARINA OF TIME_HIRESTEXTURES.htc" and the rom is called "OCARINA OF TIME.z64".

I cannot figure out how to get this working- can my gbatempers please help me?! Thank you in advance.
 

magelof

Well-Known Member
OP
Newcomer
Joined
Jul 29, 2006
Messages
53
Trophies
0
XP
419
Country
United States
No luck :cry: -- I tried renaming both to THE LEGEND OF ZELDA, tried renaming both to OCARINA OF TIME and erased the ".htc" extension on the texture file to match the rom. Any other ideas? It would be so great to get high-res textures working for retroarch mupen64plus!
 
A

a9lh-1user

Guest
Okay here we go:

VERY important ! I use the configs form the Master himselfe @m4xw provided here: https://m4xw.net/nextcloud/index.php/s/g663mit7LA3RwcW

1. DL the nightly build here: http://buildbot.libretro.com/nightly/nintendo/switch/libnx/
You NEED the one from 14.01.2019 (yes that IS the right format to write a date!)
NOT the one from 13.01.2019 or the one from 15.01.2019! ONLY TESTET with the one from 14.01.2019!

2. Then DL those textures:
https://emulationking.com/djipis-2016-cellshade-oot/
https://emulationking.com/djipis-2016-celda-majoras-mask-texture-pack/

3. The names have to be:
THE LEGEND OF ZELDA_HIRESTEXTURES.htc
and
ZELDA MAJORA'S MASK_HIRESTEXTURES.htc

NOTHING ELSE!!! THAT IS IMPORTANT!!!

4. Now put them into:
\retroarch\cores\system\mupen64plus\cache\
"cores" was missing Thanks to @magelof :yay:

THATS on the "root" of your SD card from the Switch!
If there is no "cache" folder ..... make on!

(One at a time not more than one! You have to decide what you want to play)

5. Now the last part:

You NEED to use this How To:
https://gbatemp.net/threads/use-atmosphere-to-access-full-ram-with-homebrews-without-nsp.521240/

Otherwise you will have RAM problems by loading RetroArch from the HB menu!

When RetroArch is running:
Start up Zelda (not important which one first! Remeber what *.htc you put into the "cache" folder!) and let it load ....... be patient!
Let it load!
Can you see the intro? Let it RUN! Patient! Now (IF you use the configs from m4xw) press booth sticks and you are in the menu.

Now look for the "Options" menu and press A

(We are ALMOST there!)

Look for "Use High-Res textures" and "Use High-Res Full Alpha Channel" and set both to TRUE

(We are ALMOST there)

Now get back with B and click A on "Close Content".

(We are ALLMOST there!)

Now load the Zelda game again ..... Looks better now does it :grog:

I hope it works for you it does for me and i'am happy with it!


P.S THANKS to all the BIG and little helpers who made the "Emulation" on th Switch possible! (From Hacking stuff to the Homebrew Dev's! You are the heroes of the Switch scene :ha:)


A last word of advice:
If you use the configs from m4xw take a look at the CPU overclock and set it to 1581MHZ it is enough i think.
You don't need the 1785MHZ ...... even if there will be no harm to your Switch! (It's a personal meaning .... so don't bite me ..... or yeah "Bit Me" :wacko:)
 
Last edited by ,

KTroopA

Well-Known Member
Member
Joined
Mar 15, 2007
Messages
591
Trophies
0
XP
940
Country
Thank you so much for this guide, will give it a go :)

Does the rom name need to match the .htc file. I read on reddit it does but replies here say no. Which is it please?
 
A

a9lh-1user

Guest
Nope thats the trick it doesn't.
It is a "cache" file that will be loaded during runtime of the game.
Thats why there could be only ONE in the cache folder :(
 
Last edited by ,
  • Like
Reactions: KTroopA

Csmrcc

Well-Known Member
Member
Joined
Sep 13, 2018
Messages
412
Trophies
0
Age
37
XP
905
Country
Spain
Okay here we go:

VERY important ! I use the configs form the Master himselfe @m4xw provided here: https://m4xw.net/nextcloud/index.php/s/g663mit7LA3RwcW

1. DL the nightly build here: http://buildbot.libretro.com/nightly/nintendo/switch/libnx/
You NEED the one from 14.01.2019 (yes that IS the right format to write a date!)
NOT the one from 13.01.2019 or the one from 15.01.2019! ONLY TESTET with the one from 14.01.2019!

2. Then DL those textures:
https://emulationking.com/djipis-2016-cellshade-oot/
https://emulationking.com/djipis-2016-celda-majoras-mask-texture-pack/

3. The names have to be:
THE LEGEND OF ZELDA_HIRESTEXTURES.htc
and
ZELDA MAJORA'S MASK_HIRESTEXTURES.htc

NOTHING ELSE!!! THAT IS IMPORTANT!!!

4. Now put them into:
\retroarch\system\mupen64plus\cache\
THATS on the "root" of your SD card from the Switch!
If there is no "cache" folder ..... make on!

(One at a time not more than one! You have to decide what you want to play)

5. Now the last part:

You NEED to use this How To:
https://gbatemp.net/threads/use-atmosphere-to-access-full-ram-with-homebrews-without-nsp.521240/

Otherwise you will have RAM problems by loading RetroArch from the HB menu!

When RetroArch is running:
Start up Zelda (not important which one first! Remeber what *.htc you put into the "cache" folder!) and let it load ....... be patient!
Let it load!
Can you see the intro? Let it RUN! Patient! Now (IF you use the configs from m4xw) press booth sticks and you are in the menu.

Now look for the "Options" menu and press A

(We are ALMOST there!)

Look for "Use High-Res textures" and "Use High-Res Full Alpha Channel" and set both to TRUE

(We are ALMOST there)

Now get back with B and click A on "Close Content".

(We are ALLMOST there!)

Now load the Zelda game again ..... Looks better now does it :grog:

I hope it works for you it does for me and i'am happy with it!


P.S THANKS to all the BIG and little helpers who made the "Emulation" on th Switch possible! (From Hacking stuff to the Homebrew Dev's! You are the heroes of the Switch scene :ha:)


A last word of advice:
If you use the configs from m4xw take a look at the CPU overclock and set it to 1581MHZ it is enough i think.
You don't need the 1785MHZ ...... even if there will be no harm to your Switch! (It's a personal meaning .... so don't bite me ..... or yeah "Bit Me" :wacko:)
This worked for me, thanks for the tutorial man!
 
  • Like
Reactions: a9lh-1user

magelof

Well-Known Member
OP
Newcomer
Joined
Jul 29, 2006
Messages
53
Trophies
0
XP
419
Country
United States
Okay here we go:

VERY important ! I use the configs form the Master himselfe @m4xw provided here: https://m4xw.net/nextcloud/index.php/s/g663mit7LA3RwcW

1. DL the nightly build here: http://buildbot.libretro.com/nightly/nintendo/switch/libnx/
You NEED the one from 14.01.2019 (yes that IS the right format to write a date!)
NOT the one from 13.01.2019 or the one from 15.01.2019! ONLY TESTET with the one from 14.01.2019!

2. Then DL those textures:
https://emulationking.com/djipis-2016-cellshade-oot/
https://emulationking.com/djipis-2016-celda-majoras-mask-texture-pack/

3. The names have to be:
THE LEGEND OF ZELDA_HIRESTEXTURES.htc
and
ZELDA MAJORA'S MASK_HIRESTEXTURES.htc

NOTHING ELSE!!! THAT IS IMPORTANT!!!

4. Now put them into:
\retroarch\system\mupen64plus\cache\
THATS on the "root" of your SD card from the Switch!
If there is no "cache" folder ..... make on!

(One at a time not more than one! You have to decide what you want to play)

5. Now the last part:

You NEED to use this How To:
https://gbatemp.net/threads/use-atmosphere-to-access-full-ram-with-homebrews-without-nsp.521240/

Otherwise you will have RAM problems by loading RetroArch from the HB menu!

When RetroArch is running:
Start up Zelda (not important which one first! Remeber what *.htc you put into the "cache" folder!) and let it load ....... be patient!
Let it load!
Can you see the intro? Let it RUN! Patient! Now (IF you use the configs from m4xw) press booth sticks and you are in the menu.

Now look for the "Options" menu and press A

(We are ALMOST there!)

Look for "Use High-Res textures" and "Use High-Res Full Alpha Channel" and set both to TRUE

(We are ALMOST there)

Now get back with B and click A on "Close Content".

(We are ALLMOST there!)

Now load the Zelda game again ..... Looks better now does it :grog:

I hope it works for you it does for me and i'am happy with it!


P.S THANKS to all the BIG and little helpers who made the "Emulation" on th Switch possible! (From Hacking stuff to the Homebrew Dev's! You are the heroes of the Switch scene :ha:)


A last word of advice:
If you use the configs from m4xw take a look at the CPU overclock and set it to 1581MHZ it is enough i think.
You don't need the 1785MHZ ...... even if there will be no harm to your Switch! (It's a personal meaning .... so don't bite me ..... or yeah "Bit Me" :wacko:)

I cannot WAIT to try this when I get home. You are a legend- thank you so much! I will confirm once I get it going.
 

coffinbirth

Well-Known Member
Member
Joined
Jun 15, 2009
Messages
242
Trophies
1
XP
1,698
Country
United States
Well, that certainly allowed the changes to stick...but pj64 isnt playing nice. It's not seeing my packs. I have the molly Super Mario 64 pack, both parts extracted to a directory titled Super Mario 64, placed in pj642.3/plugins/hires_texture(i set it to this in config) but when i load the rom, it doesnt go through the files with yellow letters,just to the menu.
I chose this particular pack as it was used in a tutorial, as was the suggestion of the directory change. Any suggestions?

EDIT:
DOH! The answer was right in front of me pj642.3/plugins/***GFX***hires_texture LOL sleep deprivation
 
Last edited by coffinbirth,

mattyxarope

Well-Known Member
Member
Joined
Jan 15, 2019
Messages
544
Trophies
0
XP
1,995
Country
United States
1. Setting Up Textures:
  • A) There are two different texture pack formats for modern texture packs:
    • a folder of raw PNG files that are usually separated into subfolders.
    • an HTC file which is essentially a cached version of PNG files that are combined into one file - This is the file type that is going to be used by Mupen64Plus on the Switch.
  • B) Sources for Textures:
    • Sources for texture packs (with some projects being raw PNGs, and others having precompiled HTC files): EmulationKing, Textures.Emulation64, Emutalk, and Emulation64.
  • C) Converting PNG Textures to HTC Files
    • If you decide to use a texture pack that has no precompiled HTC file you will need to convert it so that it is usable on Mupen64Plus. Here is great tutorial that shows how to convert PNG texture packs into HTC files. Essentially, this requires a computer running Project64 with the GlideN64 graphic plugin which reads the textures and caches them into the HTC file which allows it to run the ROM with the textures faster. This is the file we will be using on Mupen64Plus. The process is basically:
      • Download Project64.
      • Download the GlideN64 plugin.
      • Put the plugin in the GFX folder of Project64
      • Within the menu of the program manually select GlideN64 to be used
      • Direct the plugin to the 'hires_texture', 'cache', and 'texture_dump' folders
      • Make sure that 'Save enhanced texture cache to hard disk' is checked!.
      • Run the ROM.
      • Allow the textures to load, you should see yellow text loading each one.
      • Once the rom is running, close the program and wait a moment, as some of the larger texture packs take a few seconds to compile to the HTC file.
      • In the folder you set for 'cache', you will see an HTC file named after your ROM - note that this does NOT have to match the filename of the rom!.

2. Transferring the Texture Pack to Retroarch on the Switch:
  • A) Transferring the HTC file to Mupen64Plus:
    • Access your Switch's microSD card by either a card reader or an FTP program.
    • Take the HTC file you created in the 'cache' folder and transfer it to the folder 'cache' in Retroarch>cores>system>Mupen64Plus>cache (and if that folder does not exist, create it).

3. Enabling the Hi-Res Textures in Mupen64Plus:
  • A) Enable the Setting to Allow Texture Replacement in Mupen64Plus:
    • Start Retroarch by either using the NSP provided by Retroarch, The NSP forwarding method, or by using selecting it from the Homebrew Launcher while holding the R trigger (in SXOS) - this allows the program to use all available memory.
    • Load your N64 ROM
    • While the ROM is loaded, select the Quick Menu and go the Options tab for the core
    • Enable Use High-Res textures and Use High-Res Full Alpha Channel - note that I personally had to toggle these a few times after quitting Retroarch but they eventually worked.
    • Quit Retroarch and restart the program and rom

4. F.A.Q:
  • A) Larger Texture Pack Incompatibility
    • Some texture packs larger than 1 gigabyte, such as the Majora's Mask N64HD Project, seem to approach the 1.5 gigabyte texture cache memory limit for Mupen64Plus. As such they seem to freeze (for me, at least). For this particular pack I have personally downsized some of the larger environmental texture folders by 33% and left other elements such as the UI, characters, effects, and other smaller folders untouched. This reduced the size to around 750 megabytes which works on the Switch, albeit with a long initial load time. Here is my reduced size version.
  • B) Does My Texture Pack File Name Have to Match my ROM File Name?
    • NO!, if Project 64 loads the textures and you use the identical ROM on your switch that you used to cache those textures into the HTC file, it will work regardless.
  • C) Do Dolphin Textures Work on Mupen64Plus?
    • NO!, only HTC files can be used. I don't believe that you can convert a PNG texture pack made for Dolphin's Virtual Console games to HTC without considerable effort.
 
Last edited by mattyxarope,

mattyxarope

Well-Known Member
Member
Joined
Jan 15, 2019
Messages
544
Trophies
0
XP
1,995
Country
United States
It’s only for Zeldas - Ocarina of time and Majora’s mask? And that’s all?
Any another game?

Any game with a texture pack in HTC format (or PNG converted to HTC) will work, Zelda is just super popular and has many texture packs available which is why it comes up so often.
 

magelof

Well-Known Member
OP
Newcomer
Joined
Jul 29, 2006
Messages
53
Trophies
0
XP
419
Country
United States
Okay here we go:

VERY important ! I use the configs form the Master himselfe @m4xw provided here: https://m4xw.net/nextcloud/index.php/s/g663mit7LA3RwcW

1. DL the nightly build here: http://buildbot.libretro.com/nightly/nintendo/switch/libnx/
You NEED the one from 14.01.2019 (yes that IS the right format to write a date!)
NOT the one from 13.01.2019 or the one from 15.01.2019! ONLY TESTET with the one from 14.01.2019!

2. Then DL those textures:
https://emulationking.com/djipis-2016-cellshade-oot/
https://emulationking.com/djipis-2016-celda-majoras-mask-texture-pack/

3. The names have to be:
THE LEGEND OF ZELDA_HIRESTEXTURES.htc
and
ZELDA MAJORA'S MASK_HIRESTEXTURES.htc

NOTHING ELSE!!! THAT IS IMPORTANT!!!

4. Now put them into:
\retroarch\system\mupen64plus\cache\
THATS on the "root" of your SD card from the Switch!
If there is no "cache" folder ..... make on!

(One at a time not more than one! You have to decide what you want to play)

5. Now the last part:

You NEED to use this How To:
https://gbatemp.net/threads/use-atmosphere-to-access-full-ram-with-homebrews-without-nsp.521240/

Otherwise you will have RAM problems by loading RetroArch from the HB menu!

When RetroArch is running:
Start up Zelda (not important which one first! Remeber what *.htc you put into the "cache" folder!) and let it load ....... be patient!
Let it load!
Can you see the intro? Let it RUN! Patient! Now (IF you use the configs from m4xw) press booth sticks and you are in the menu.

Now look for the "Options" menu and press A

(We are ALMOST there!)

Look for "Use High-Res textures" and "Use High-Res Full Alpha Channel" and set both to TRUE

(We are ALMOST there)

Now get back with B and click A on "Close Content".

(We are ALLMOST there!)

Now load the Zelda game again ..... Looks better now does it :grog:

I hope it works for you it does for me and i'am happy with it!


P.S THANKS to all the BIG and little helpers who made the "Emulation" on th Switch possible! (From Hacking stuff to the Homebrew Dev's! You are the heroes of the Switch scene :ha:)


A last word of advice:
If you use the configs from m4xw take a look at the CPU overclock and set it to 1581MHZ it is enough i think.
You don't need the 1785MHZ ...... even if there will be no harm to your Switch! (It's a personal meaning .... so don't bite me ..... or yeah "Bit Me" :wacko:)

You say "Now put them into:
\retroarch\system\mupen64plus\cache\"

But shouldnt the htc file go into \retroarch\cores\system\Mupen64plus\cache\ ?
 
  • Like
Reactions: a9lh-1user

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I thought PS4/5 and Xbox One emulation would be kind of easy since they basically just a PC
  • ColdBlitz @ ColdBlitz:
    they sorta are a pc
  • K3Nv2 @ K3Nv2:
    They haslve dedicated on board chips that aren't tweaked like x64/x32 afaik
  • ColdBlitz @ ColdBlitz:
    but its a custom os for both of them
  • ColdBlitz @ ColdBlitz:
    designed for only specific hardware
  • ColdBlitz @ ColdBlitz:
    so you have to learn to emulate that specific hardware which isn't as easy as you'd think
  • K3Nv2 @ K3Nv2:
    It's a locked down Linux distro basically
  • Psionic Roshambo @ Psionic Roshambo:
    I think the only custom hardware is to do with the SSD and a security chip
  • Psionic Roshambo @ Psionic Roshambo:
    Probably combined in one chip
  • K3Nv2 @ K3Nv2:
    They place married security chips onto boards iirc
  • Psionic Roshambo @ Psionic Roshambo:
    Damn Frontier is offering 5Gbps now lol
  • K3Nv2 @ K3Nv2:
    I honestly can't recommend any of the big 3 this years I'd say buy a rog ally z1 if we're being honest
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly after the PS3 and 360 I just went full PC
  • K3Nv2 @ K3Nv2:
    Every games basically cross platform they only have about 6 titles making it worth the $600 price tag
  • Psionic Roshambo @ Psionic Roshambo:
    Didn't see much need for a console, all the advantages have kind of disappeared
  • ColdBlitz @ ColdBlitz:
    the ps3 used to support installing linux because the cpu was so powerful
  • K3Nv2 @ K3Nv2:
    Then the games are $70 and they want to reboot and refresh the same game every year
  • K3Nv2 @ K3Nv2:
    The ps3 was always Linux they just found a way to make it open source
  • ColdBlitz @ ColdBlitz:
    I'm avoiding buying from the big 3 at all atm
  • Psionic Roshambo @ Psionic Roshambo:
    At one point PC game pads where poorly supported, loading a game had setup, it was complicated. Now it's almost as easy as a console.
  • ColdBlitz @ ColdBlitz:
    nintendo needs to up their game soon
  • K3Nv2 @ K3Nv2:
    Yeah even bt support for Xbox one controllers are just as easy as pairing
  • ColdBlitz @ ColdBlitz:
    considering the steamdeck can emulate the switch (yikes) theres almost 0 reason to buy the switch apart from playing online and using cartridges
  • K3Nv2 @ K3Nv2:
    Xinput and 360 dongles were a driver nightmare
  • K3Nv2 @ K3Nv2:
    I remember having to manually put in drivers and what not
    K3Nv2 @ K3Nv2: I remember having to manually put in drivers and what not