News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

Base game 0.3T images on avif

Started by dxsnusnu, Jan 18, 2025, 03:52 AM

Previous topic - Next topic

dxsnusnuTopic starter

Howdy,

Usually only lurk here to see news, however...
Since the last 0.3T update added support for the avif format.
And since my programming skills are close to zero, wanted to contribute in some way.

Made a image repack of the base 0.3T game (".png and .webp") to ".avif".
Managed to keep alpha transparency on the images, but it was quite challenging (for me).
The pictures space has gone from ~374MB to ~217MB.

Now the big problem is to get all those renpy files to recognize the avif images.
Think it's called refactoring.

So yeah, here it is:
https://www.mediafire.com/file/pbhal4emksb4dne/game.zip/file

---

Goldo

Quote from: dxsnusnu on Jan 18, 2025, 03:52 AMHowdy,

Usually only lurk here to see news, however...
Since the last 0.3T update added support for the avif format.
And since my programming skills are close to zero, wanted to contribute in some way.

Made a image repack of the base 0.3T game (".png and .webp") to ".avif".
Managed to keep alpha transparency on the images, but it was quite challenging (for me).
The pictures space has gone from ~374MB to ~217MB.

Now the big problem is to get all those renpy files to recognize the avif images.
Think it's called refactoring.

So yeah, here it is:
https://www.mediafire.com/file/pbhal4emksb4dne/game.zip/file

---

Thank you! It's sure to come in handy. I think I'll give it a look before the release of v3 full, so hang in there :)
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

dxsnusnuTopic starter

On the weekend had more time,
Was curious to see if the images even worked,
checked the stackoverflow jargon scripts to name change extensions on all rpy files,

Clicked to start the game and ... task failed successfully.

Renpy was throwing errors about missing png files on the "GUI" and the loading bar wasn't loading.
Learned that renpy engine is hardcoded to some png files, making them necessary, outrageous.
The preload bar also needs to be in png it seems.

Copied the hardcoded png files back, then also converted the gif and webm files,
just to try flex the new stuff learned.

Click to start again and ... here be dragons or so I thought.
Task actually successful, to my surprise.

Tested from Start to Endless mode (with cheats) and all worked.

Since am feeling smug after all these experiments.
If there is a need to encode the base game images, do tell, will do them if needed.

About waiting for v3 full, makes sense and tbh take your time,
doing only this took a bit of time and this ain't nothing as difficult as coding the game.

Just for reference made a copy of it, since any update will break the extension filename changes,
and this version has mods (needed to see if some worked).

https://www.mediafire.com/file/uu1bgr7ebxxwswl/game.zip/file

Sorry for the English and long text, was feeling accomplished  ;D
 

Goldo

Quote from: dxsnusnu on Jan 26, 2025, 07:39 PMOn the weekend had more time,
Was curious to see if the images even worked,
checked the stackoverflow jargon scripts to name change extensions on all rpy files,

Clicked to start the game and ... task failed successfully.

Renpy was throwing errors about missing png files on the "GUI" and the loading bar wasn't loading.
Learned that renpy engine is hardcoded to some png files, making them necessary, outrageous.
The preload bar also needs to be in png it seems.

Copied the hardcoded png files back, then also converted the gif and webm files,
just to try flex the new stuff learned.

Click to start again and ... here be dragons or so I thought.
Task actually successful, to my surprise.

Tested from Start to Endless mode (with cheats) and all worked.

Since am feeling smug after all these experiments.
If there is a need to encode the base game images, do tell, will do them if needed.

About waiting for v3 full, makes sense and tbh take your time,
doing only this took a bit of time and this ain't nothing as difficult as coding the game.

Just for reference made a copy of it, since any update will break the extension filename changes,
and this version has mods (needed to see if some worked).

https://www.mediafire.com/file/uu1bgr7ebxxwswl/game.zip/file

Sorry for the English and long text, was feeling accomplished  ;D
 


Yes, some of the 'vanilla' GUI is Ren'Py's and it is not very flexible. Rule of thumb: if it wasn't a webp before, it's because it was hard-coded in Ren'Py (and maybe the occasional oversight).
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!