SonicMastr / godot-vita

Godot Engine Vita Port based off of Stary2001 and EIREXE Contributions utilizing PVR_PSP2
https://godotengine.org
MIT License
237 stars 16 forks source link

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

Open Bunkai9448 opened 5 months ago

Bunkai9448 commented 5 months ago

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:

Bunkai9448 commented 5 months ago

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