Closed mattcabb closed 2 years ago
Here are two very simple small .bat to rename all files in .mib (to be executed from the source folder
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 đź‘Ť
@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: 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.
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.
@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:
When using the original compress file by Jille, a new startup_8.boot is created:
But, when i try to extract the file again, to check if everything is fine, i get an error:
The result is a startup_8 file in extract, but with only 1 png: img_0.png
Now, just be sure i tried to compress and extract 2 folders with the original scripts. Results:
compressing an extracted startup_x folder and then re-extracting gives the error mentioned above (Error -5....incomplete or truncated stream) AND no different outcome if i use the original folder or a folder with edited png’s (.mib gimp method).
extracting an original dumped .boot file works properly and all png files are extracted in the correct folder.
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.
@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
@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.
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?
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.
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
Not sure if the
extract-startup_x.boot.py
script works correctly. Here's an example of an extracted fileimg_31.png
fromstartup_4.boot
container (took the file fromMST2_EU_VW_ZR_P0252T
software package). I believe that this should have some blue elements over here.At the same time script
extract-mcf.py
worked as expected and image files look correct.