Font bitmap location in the PS2 version of Rayman 3
Posted: Thu Dec 28, 2023 1:38 pm
Hello. I'd like to mod the font in PS2 version of Rayman 3. What I've tried so far:
* There's a file named RASTFNT.TXR in the DATABIN\VIG, but modifying it doesn't change the in-game font.
* I looked at and modified the source code of raymap a little bit. Here's my modified version of Assets/Scripts/OpenSpace/Loaders/R3Loader.cs: https://pastebin.com/60xVACHF . There's a bit of code that reads font description and the supposed address of its bitmap inside the file DATABIN\FIX.LVL. The description that it reads is correct as far as I can tell, but the bitmap pointer seems to be wrong. I modified the script to dump some data from that location to a separate file and it contains some file paths at the beginning, which a bitmap shouldn't contain.
* One of those paths caught my eye though. It says "texts\typoray3.tga". But there is no file named like that inside the TEXTS folder and the only real .tga files in the game seem to be DATABIN\VIG\SELECTUS.TGA and DATABIN\VIG\SELECTUK.TGA. I got nothing else when I searched for the string "TRUEVISION-XFILE" (which all TGA files are supposed to contain at the end) in all of the game's binary files. Searching for "typoray3" inside raymap's Script files also returned no results.
* There's a file named RASTFNT.TXR in the DATABIN\VIG, but modifying it doesn't change the in-game font.
* I looked at and modified the source code of raymap a little bit. Here's my modified version of Assets/Scripts/OpenSpace/Loaders/R3Loader.cs: https://pastebin.com/60xVACHF . There's a bit of code that reads font description and the supposed address of its bitmap inside the file DATABIN\FIX.LVL. The description that it reads is correct as far as I can tell, but the bitmap pointer seems to be wrong. I modified the script to dump some data from that location to a separate file and it contains some file paths at the beginning, which a bitmap shouldn't contain.
* One of those paths caught my eye though. It says "texts\typoray3.tga". But there is no file named like that inside the TEXTS folder and the only real .tga files in the game seem to be DATABIN\VIG\SELECTUS.TGA and DATABIN\VIG\SELECTUK.TGA. I got nothing else when I searched for the string "TRUEVISION-XFILE" (which all TGA files are supposed to contain at the end) in all of the game's binary files. Searching for "typoray3" inside raymap's Script files also returned no results.