Jump to content

Rage bimage textures


Go to solution Solved by OAleex,

Recommended Posts

Posted
3 hours ago, wq223 said:

I wrote a script to convert them, not sure if it is correct, the pixel data has shown the correct text

48.png

mib2png.py 3.2 kB · 2 downloads

Thanks. Could you please say commands? I couldn't convert the texture. I tried drag-and-drop, or using the `-export` or `-e` command, but I couldn't export it. It's also necessary for imports, of course. I will test it and let you know if it works.

  • Supporter
Posted
58 minutes ago, gerald15 said:

Thanks. Could you please say commands? I couldn't convert the texture. I tried drag-and-drop, or using the `-export` or `-e` command, but I couldn't export it. It's also necessary for imports, of course. I will test it and let you know if it works.

My script doesn't have these tedious parameters, you just need the input folder and the output folder
python mib2.png input folder output folder
The script will process related files in all subfolders and output directories with the same structure to the output folder
The example you sent is currently successful. If you encounter a failed file, it may be a new type.

  • Like 1
Posted
22 minutes ago, wq223 said:

My script doesn't have these tedious parameters, you just need the input folder and the output folder
python mib2.png input folder output folder
The script will process related files in all subfolders and output directories with the same structure to the output folder
The example you sent is currently successful. If you encounter a failed file, it may be a new type.

Thanks, but I couldn't unpack it. I tried the script shared by Oaleex and it works flawlessly. Thank you both for your efforts.

Posted (edited)
1 hour ago, OAleex said:

 

I tested it in the game, but it crashes. I think the reason is the file size. I packaged the .dds file without editing it, and I noticed it was 22 bytes larger than the original size. That's why it crashes. I think the import needs to be fixed.

idginza_narrow_heavy font test

image.png.3b9b6e7ea459c2c4a3fbe8fc66c868ec.png

 

Edited by gerald15
2 pictures
  • Members
Posted
42 minutes ago, gerald15 said:

 

I tested it in the game, but it crashes. I think the reason is the file size. I packaged the .dds file without editing it, and I noticed it was 22 bytes larger than the original size. That's why it crashes. I think the import needs to be fixed.

idginza_narrow_heavy font test

image.png.3b9b6e7ea459c2c4a3fbe8fc66c868ec.png

 

The size of files recompressed using zlib may vary. Probably it depends on the compressor flow.
All done, I've fixed the code.

  • Supporter
Posted
1 hour ago, gerald15 said:

Thanks, but I couldn't unpack it. I tried the script shared by Oaleex and it works flawlessly. Thank you both for your efforts.

It may be caused by differences in operating platforms. Please continue to use the script shared by Oaleex. This version is more advanced.

Posted
28 minutes ago, OAleex said:

The size of files recompressed using zlib may vary. Probably it depends on the compressor flow.
All done, I've fixed the code.

I've tried, but the problem persists. After packaging the font, it needs to be the same size as the original bimage file – no more, no less. I think there's a size restriction in the archive. When I package the fonts into the archive without exporting or importing them, the game works flawlessly. However, when I export textures and don't edit them, their size changes after packaging, and this causes the crashing issue. The game generally uses three fonts: interface and subtitle fonts. The sizes are different for each. I've uploaded the original and packaged fonts separately as an example. The imported bimage files crash even though they are smaller than the original file. I would appreciate it if you could look into the cause of this problem.

 

rage.rar

  • Supporter
Posted
1 hour ago, gerald15 said:

I've tried, but the problem persists. After packaging the font, it needs to be the same size as the original bimage file – no more, no less. I think there's a size restriction in the archive. When I package the fonts into the archive without exporting or importing them, the game works flawlessly. However, when I export textures and don't edit them, their size changes after packaging, and this causes the crashing issue. The game generally uses three fonts: interface and subtitle fonts. The sizes are different for each. I've uploaded the original and packaged fonts separately as an example. The imported bimage files crash even though they are smaller than the original file. I would appreciate it if you could look into the cause of this problem.

 

rage.rar 110.33 kB · 3 downloads

Try this version, added memLevel parameter

rage_bimage_tool.py

  • Members
Posted
11 hours ago, gerald15 said:

I've tried, but the problem persists. After packaging the font, it needs to be the same size as the original bimage file – no more, no less. I think there's a size restriction in the archive. When I package the fonts into the archive without exporting or importing them, the game works flawlessly. However, when I export textures and don't edit them, their size changes after packaging, and this causes the crashing issue. The game generally uses three fonts: interface and subtitle fonts. The sizes are different for each. I've uploaded the original and packaged fonts separately as an example. The imported bimage files crash even though they are smaller than the original file. I would appreciate it if you could look into the cause of this problem.

 

rage.rar 110.33 kB · 3 downloads

Are you inserting the files via hex?

  • Supporter
Posted
1 hour ago, OAleex said:

Are you inserting the files via hex?

The problem may be that the compression of both versions must be exactly the same, any mismatching parameters resulting in size and hash may break the original situation, I have fixed your script in the reply above, if it is not for the compression problem, I have a hard time explaining why

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...