rhaleblian / dslibris

An ebook reader for the Nintendo DS, DS Lite, and DSi.
72 stars 5 forks source link

Font issue on 3DS / Universal Updater #36

Closed es14n139 closed 1 year ago

es14n139 commented 1 year ago

Installed dslibris on my 3DS via Universal Updater, attempted to launch the app three times via Twilight Menu. Each time it failed to open and showed the log messages in the attached file. font not found (2) was the error all three times. I checked the font folder in the install and it had all the .tff files that dslibris.xml called for, so I'm not sure what happened.

Additional context Add any other context about the problem here. dslibris.log

rhaleblian commented 1 year ago

That sucks. What is Universal Updater? BTW, check that there is a /font/ folder on your media and that it has some TTF files in it.

es14n139 commented 1 year ago

Universal Updater is a homebrew software downloader and installer that can be run on the 3DS itself; it's supposed to make it easier to install homebrew than doing it manually. That's where I found dslibris, it's listed there. Since the install was done automatically by Universal Updater, I don't know if it performed the DLDI patch listed in the included install instructions, I don't know what that is myself either so I didn't do it manually. Here's a link to the listing on their website: https://db.universal-team.net/ds/dslibris

I did check for an font folder, and it did contain several ttf files. The font folder in the install contains the following ttf files: DejaVuLGCSerif DejaVuLGCSerif-Bold DejaVuLGCSerif-BoldItalic DejaVuLGCSerifCondensed DejaVuLGCSerifCondensed-Bold DejaVuLGCSerifCondensed-BoldItalic DejaVuLGCSerifCondensed-Italic DejaVuLGCSerif-Italic DejaVuSans DejaVuSans-Bold DejaVuSans-BoldOblique DejaVuSans-ExtraLight DejaVuSans-Oblique LiberationSans-Regular LiberationSerif-Bold LiberationSerif-BoldItalic LiberationSerif-Italic LiberationSerif-Regular

Even after adding a bunch of additional ttf fonts from my Microsoft Office apps, it still gave the same error.

rhaleblian commented 1 year ago

I wonder how DLDI patching is being handled, if at all and if it is a sensible question on the 3DS. Without the proper patching, reading from the FAT filesystem will fail and you'll get exactly what you are experiencing. The team maintaining Universal Updater could strive for a success report for dslibris (which means they understand what success is, and that dslibris is weird because it uses FAT loose files) and post it for everyone.

You have the required fonts, so that's good. Check that the /font directory is at the root of the filesystem of your card/device; if the packagers moved it I can't provide support.

Let's keep this open even though we have grounds to punt this to the Universal Updater et al for a statement about DLDI and FAT support. I have heard little about successes on 3DS but I would like to see it.

es14n139 commented 1 year ago

Ah, the font directory is not at the root of the SD card, but dslibris.xml is. dslibris is installed in its own folder at the root of the sd card, so it would be root/dslibris/font. Should I move the entire contents of the dslibris folder to the root of the SD card? Attached is a zip file containing that folder, along with the associated xml and log files, which are at the root of the directory. dslibris (2).zip I will research how to do DLDI patching on my own so I can try to install dslibris manually.

rhaleblian commented 1 year ago

Should I move the entire contents of the dslibris folder to the root of the SD card?

Yes. You should have book and font folders at the root. dslibris.nds is also at the root. Sounds like time to allow this structure to be put in a folder. It's quite a reasonable expectation.

es14n139 commented 1 year ago

Alright, I'll see how it works. I also just found out that the Mac version folder also got installed to my sd card. Judging by how mangled the text file is, it seems like it shouldn't be here. Attached below. __MACOSX.zip

es14n139 commented 1 year ago

After moving everything to the root, I was able to launch dslibris and open a basic text epub with it. No DLDI patching on my end was required. Thanks for the help.

rhaleblian commented 1 year ago

I'm glad DLDI patching didn't factor in.