TGA to OIM compression script? Onimusha Textures

Textures, recreate headers, conversions, algorithms and parsing of image files
reaperchop
Posts: 2
Joined: Thu Apr 09, 2020 8:13 am

TGA to OIM compression script? Onimusha Textures

Post by reaperchop »

Hi, Apologies if this is not in the right place.

A long while ago, someone on here requested help with Onimusha 3 textures and received a brilliant script for extracting .TGA texture files from a .OIM archive. (https://zenhax.com/viewtopic.php?f=7&t=7162&p=31272&hilit=oim#p31272)

I was just wondering if it would be possible to get a script for repacking the .oim archive once the textures have been altered, or be pointed in the right direction?

I have tried using the reimporting command, but this does not work due to 'MEMORY_FILE' being involved in the decompression code. I have also tried the reverse-engineering tools with no luck. Unbelievably, information on the proprietary .oim format is not to be found anywhere on the internet, only on the previous forum here.

I would be very grateful if anyone with the knowledge could help me out, Ive attached some files for reference, as well as the Oim2Tga.bms script provided before.

Thanks in advance. :D
bms_oim2tga.bms

00000000.zip

00000000_00_pal1.zip
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: TGA to OIM compression script? Onimusha Textures

Post by Allen »

This is a Noesis plugin that supports input and output OIM files. Limited by Noesis, the output OIM only supports single file. If you know programming, you can write a tool for packaging and merging. :)
reaperchop
Posts: 2
Joined: Thu Apr 09, 2020 8:13 am

Re: TGA to OIM compression script? Onimusha Textures

Post by reaperchop »

Thank you so much!

Very limited knowledge on programming, but I've got the time on my hands to learn a bit :)

I cannot thank you enough for this, this is very promising