Convershacker

IPC - Instrument cluster panels (like Convers+)
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

Convershacker

Post by Gwe89 »

Been messing around with a very old source code of CH im not massively clued up with it but been trying to edit the convertimage.cpp to try and make a logo the correct size I need but instead of my image been totally scrambled I can see parts of the image
The full logo picture is one the source code made me and I added the bgr manually made from the latest CH so the very first source code codes the images correctly, other picture on main screen is the image edited to 250x195px with the edited imageconvert.cpp if I use the none edited imageconvertt.cpp the image is totally scrambled
You do not have the required permissions to view the files attached to this post.
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

Re: Convershacker

Post by Gwe89 »

Convershacker with image at 400x198px
20201101_194307.jpg

Convershacker with image to 250x195px
20201101_194235.jpg

This is from editing the imageconvert.cpp file in the source code unfortunately I only have old first version source code
You do not have the required permissions to view the files attached to this post.
DGAlexandru
Pro
Posts: 364
Joined: 04 Aug 2019, 22:47

Re: Convershacker

Post by DGAlexandru »

Put the Main FW, Original Flash FW and a Flash FW with the image modified by you.
I'm guessing that you're doing something wrong.
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

Re: Convershacker

Post by Gwe89 »

I'm trying to edit the size of the image with a modified version of convershacker but I'm starting to think there is more to it to change other images in the firmware
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

Re: Convershacker

Post by Gwe89 »

DGAlexandru wrote: 02 Nov 2020, 11:59 Put the Main FW, Original Flash FW and a Flash FW with the image modified by you.
I'm guessing that you're doing something wrong.
I'm pointing the image to new one by changing the end bytes of the stock logo to make it jump to 30 12 04 00 like can do with standby logo, I think its because the images in main screen need coding differently
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

Re: Convershacker

Post by Gwe89 »

this is the file it generates with my edited convershacker 250x195px
encoded image.19738.bin
this is the one without it edited the latest convershacker makes this the same so its coding correctly for 400x198px
encoded image.28152.bin
You do not have the required permissions to view the files attached to this post.
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

Re: Convershacker

Post by Gwe89 »

Maybe I need to edit something else in convershacker source code
You do not have the required permissions to view the files attached to this post.
DGAlexandru
Pro
Posts: 364
Joined: 04 Aug 2019, 22:47

Re: Convershacker

Post by DGAlexandru »

As I said.. you're doing something wrong :roll:

Did you edit by hand the encoded image.28152.bin file?

Why do you want an image size of 640 x 195 pixels?
The maximum image size you can use in Convers+ is 400 x 198 pixels.
Corrected data.jpg
1. Instead of a width of 640 pixels you made it 6.400 pixels... but the image is only 400 pixels wide.
2. Instead of a height of 198 pixels you made it 195 pixels.. and, again, the image is encoded as having 195 pixels in height.

Once I corrected this information in the BIN file, ConversHacker was able to show correctly the image.
You do not have the required permissions to view the files attached to this post.
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

Re: Convershacker

Post by Gwe89 »

DGAlexandru wrote: 30 Dec 2020, 11:12 As I said.. you're doing something wrong :roll:

Did you edit by hand the encoded image.28152.bin file?

Why do you want an image size of 640 x 195 pixels?
The maximum image size you can use in Convers+ is 400 x 198 pixels.

Corrected data.jpg

1. Instead of a width of 640 pixels you made it 6.400 pixels... but the image is only 400 pixels wide.
2. Instead of a height of 198 pixels you made it 195 pixels.. and, again, the image is encoded as having 195 pixels in height.

Once I corrected this information in the BIN file, ConversHacker was able to show correctly the image.
I changed the px to 250 not 640
I was basically trying to edit the size of the picture CH makes so can change other images in the firmware
DGAlexandru
Pro
Posts: 364
Joined: 04 Aug 2019, 22:47

Re: Convershacker

Post by DGAlexandru »

Well.. FA 00 means 6.400
To change the size of an image you have to encode it in that size; it is not enough to change those bytes.. from the end.
Post Reply