godot-vita icon indicating copy to clipboard operation
godot-vita copied to clipboard

[Bug] loading Font and some resources doesn't work until it's hardcoded

Open Bunkai9448 opened this issue 10 months ago • 1 comments

Long story short, I'm trying to create a game prototype with multilanguage, and I added a CSV file for localization, like the Godot documentation says. It works as expected in the PC debugger. However, once I run it in the vita, the text for that part is not displayed at all.

Godot version: https://github.com/SonicMastr/godot-vita/actions/runs/8011699088 OS/device including version: Target: PS Vita 3.65 Henkaku ENSO Developed in: Windows7 Home Premium, Service Pack 1

Issue description: No text shown from CSV files. (In the PS Vita, the PC works as expected)

Steps to reproduce:

  • Grab the "SLAYERS.zip" attached, and change the extension to VPK. Install the homebrew in your vita. SLAYERS.zip
  • Boot up the game and press the START button, the pause menu will prompt. Below "PAUSE" this should display: This should display However, in the vita, this is what you see: CSV bug

Bunkai9448 avatar Apr 01 '24 12:04 Bunkai9448

Edit: Doing a few trial and error I found out that the problem relies on how the vita version loads the project's fonts. For some reason, sometimes, it doesn't find the resource properly and you have to hardcode it. Image attached from godot's engine. The left side is how I did it before, and the right side is "hardcoded" to find it.

vita_font

photo_2024-04-07_04-18-27

Bunkai9448 avatar Apr 07 '24 02:04 Bunkai9448