SpaceCadetPinball icon indicating copy to clipboard operation
SpaceCadetPinball copied to clipboard

Custom Texture Packs?

Open Sunlitspace542 opened this issue 4 years ago • 3 comments

Could there be a way to use the extracted files from pinball.dat/cadet.dat and replace the BMPs with custom images, such as hi-res BMPs or even support PNG?

Sunlitspace542 avatar Oct 07 '21 23:10 Sunlitspace542

Yes, that is technically possible. I will probably do it as some point. Even if I don’t need myself, it is a thing that one does in a project like this. I already made some of the groundwork to facilitate this.

Replacing sprites with the same res sprites is simple, reading PNG should also be simple. The way I see it done: extend bitmap entry in partout format, add new formats such as un-indexed BMP, PNG. Then use a tool (that I need to provide) to pack new sprites into DAT. Or just load the files from a folder, however unexciting that may be.

Adding new table resolutions is not so simple. BL is tied to table resolution via projection matrix and some other stuff. A lot of values in DAT will have to be modified; I am not prepared for such endeavor just yet. Maybe this could be solved with some BL hacks.

k4zmu2a avatar Oct 08 '21 13:10 k4zmu2a

Can't wait to see this feature :D

g-l-i-t-c-h-o-r-s-e avatar Nov 04 '22 06:11 g-l-i-t-c-h-o-r-s-e

This feature would be pretty cool because it would allow using AI-upscaled graphics.

M1cha avatar Apr 15 '23 07:04 M1cha