olli991 / mib-std2-pq-zr-toolbox

Toolbox for MIB STD2 PQ/ZR Technisat/Preh units.
https://discord.gg/YU3rjatWjT
MIT License
470 stars 77 forks source link

startup_x.boot colors missing #2

Closed mattcabb closed 2 years ago

mattcabb commented 3 years ago

Not sure if the extract-startup_x.boot.py script works correctly. Here's an example of an extracted file img_31.png from startup_4.boot container (took the file from MST2_EU_VW_ZR_P0252T software package). I believe that this should have some blue elements over here.

Zrzut ekranu 2021-03-15 o 10 58 20

At the same time script extract-mcf.py worked as expected and image files look correct.

stupots commented 2 years ago

Here are two very simple small .bat to rename all files in .mib (to be executed from the source folder

mib convert.zip )

Great that you got this working :)

@lapuff If you're on Windows would you mind sharing examples of the commands you run to extract/compress and also how you installed Phyton (Did you just get it from the MS Store Download and install separately?) as I can't seem to get the correct syntax.

@mattcabb did a fine job of the guide and I'm nearly there, but is a little Linux centric for us Windows guys ;)

Thanks guys, I have a month off over Xmas (It's been a tough year) so looking forward to doing a custom 4motion screen for my Mk5 Golf, it will be the cherry on the top after a long list of retrofits đź‘Ť 200D531D-D08A-4837-BD9C-E0CB4BC851F3_1_201_a

mattcabb commented 2 years ago

@stupots: that's right. My tutorial is using some Linux/macOS specific paths. Will try to make Windows version soon as well. But can't tell when.

stupots commented 2 years ago

@stupots: that's right. My tutorial is using some Linux/macOS specific paths. Will try to make Windows version soon as well. But can't tell when.

I appreciate that. I know that most people trying this will probably be better at Linux than me, but I'll give it a go on my work Mac.

mattcabb commented 2 years ago

I appreciate that. I know that most people trying this will probably be better at Linux than me, but I'll give it a go on my work Mac.

Just a heads up: it's much easier and faster to drag&drop files and directories into Terminal window than to type in the path to file/directory.

jorrecob commented 2 years ago

@jtomtos and everybody involved: Before i explain the issue i have, i want to thank you already very much for all the effort you put into this topic...so THANK YOU.

Editing and using the new plugin works as intented. But i'm having issues compressing the file again.

Your alternative compress script does not work for me: image

When using the original compress file by Jille, a new startup_8.boot is created: image image

But, when i try to extract the file again, to check if everything is fine, i get an error: image

The result is a startup_8 file in extract, but with only 1 png: img_0.png image

Now, just be sure i tried to compress and extract 2 folders with the original scripts. Results:

So the error lies somewhere in compressing any folder...i think.

@jtomtos @jilleb ,could you have a look (or somebody else of course), as what i'm missing or doing wrong.

zip file with original dump, .boot and file with new png's: Startanim.zip

Many thanks.

jtomtos commented 2 years ago

@jorrecob The solution is simple enough. It is necessary to correct the file names 0-9 to two digits 00-09. It's strange that the original script worked. I was getting the same error with it. Why is this happening, I did not understand. Both import and export use the same code for generating filenames ('img_' + str(j).zfill(2) + '.png'). But in one case, one digit, and in the other two. (and in my version this code has not changed). I'm not familiar with python (this is my first meeting), maybe there is some peculiarity here... maybe someone will come in handy: by changing the file types in import / export scripts, you can immediately get * .mib files and pack them. I don't think I need to move this to the main branch, but I made such a solution for myself mib2image.zip

jorrecob commented 2 years ago

@jtomtos Thank you for this simple, but effective solution. What i did not expect is that when extracting the .boot file again, that the 00-09 files were back to 1 digit 0-9. Now nothing left but to upload and test in the car...always a bit of stress as i don't have a bench mib2std unit to safely test it.

zulutustra commented 6 months ago

Hello. Thank you very much for your work.

I'd like to go further and rewrite the main screen animation to 42 frames, with an interval of 0.05 seconds. Can someone tell me how to do this?

jtomtos commented 6 months ago

Hello! As far as I was able to figure out, the time here is set in tenths of a second, so about 0.05 is doubtful sorry, 0.05 s is Ok. Usually, an animation contains 57 pictures, so it’s possible to fit in your 47, but on my device I encountered a problem that an animation larger than 1,000,000 bytes simply is not recorded in the device. Therefore, I limited myself to 17 screens. And according to the procedure - you draw slides, convert and assemble the required animation file. Then you open the resulting animation in a hex editor and manually edit COMAND_LIST (an array of blocks of 8 32-bit words. One block - one command). I described my experience here https://www.drive2.ru/l/628474250440751976/ p.s. Before recording to the device, I recommend unpacking the resulting file and viewing the resulting animation.csv for errors.

Fitocar commented 5 months ago

Hi all please, can you help me, I´m stoped in this point compress-startup_x.boot, I execute the file and not working the process? Please any solution for this?

@jilleb @jorrecob @jtomtos

BOOT