I spent a large part of today trying to get pbres(
https://github.com/Enyby/pbres) working again since it has the built in -d option to decompile pbt.
I am a programmer but not for C so this was a bit of undertaking. I have the pbres script working now except the decompressed images all come out black.
I'll attach the Pbres I edited here incase someone with more knowledge can work it out.
The steps I took to have this working on Windows 11.
1. Install msys2
2. Launch msys2 32 bit
3. Run pacman -Syu and accept the updates
4. Run pacman -Syu again and accept anymore updates
5. Run pacman -S mingw-w64-i686-toolchain to have GCC libraries
6. Put the Pbres.c file the home directory you installed msys2. Ex: C:\msys64\home
7. Put the Line.pbt file in the same home directory
8. In msys2 32 command window, CD to the home folder
9. Run gcc pbres.c -lz -static -o pbres.exe
10. Run the command ./Pbres -d Line.pbt
11. Let the script run, when complete go to the home folder and you will have the results. Theme.cfg is the resources of the theme itself and res4bpp folder is the bmp files. All black for some reason