XM Icon adding / hacking

Moderators: VBLUE42, ducatiboy

XM Icon adding / hacking

Sponsor

Sponsor
 

XM Icon adding / hacking

Postby inferno999 on Wed Jan 23, 2008 9:27 pm

So, as far as I can tell, the Z2 is missing some XM icons:
2, 45, 59, 73, 93, 130 to name a few.

I had this great idea - since most of these stations have official icons on XMRADIO.COM, and since my HDD's unlocked, why not just make them and see what happens. So I made a few and copied them over to the directories with all the icons:
Image
SDATA:\AV\XMDPS (for now playing icons) and
SDATA:\AV\XMLPS (for list-view icons).
Each file is apparently formated DPS###.bmp, where ### is the channel number. I copied the new BMP's over with their relative names but I still just get the generic satellite icon for those stations.

So I dug around more and found a file "IMAGETBL.DAT" in SDATA:\AV\XMDAT\ which, based off it's name and contents, is probably a table of which images to display for which channel.

I've gone into the file with a HEX editor and started the process of trying to make sense of everything. It appears each channel entry starts with 3 ID characters, then has 16 spaces for the station name (filled in with hex 00's to complete 16 spaces), then another hex 00 as a spacer between channels.
Image

The three ID numbers seem like the important part -- as far as I can tell, they read "Channel number, spacer, channel number". For example, chanel 82 (the system) reads as follows:
Code: Select all
52 0A 52 54 68 65 20 53 79 73 74 65 6D 00 00 00 00 00 00 00

Decoded, this reads:
Code: Select all
82 .  82 T h e  S y s t e m       

The 0A(hex) is a 10 in Decimal, and it doesn't seem to match anything. Other channels have a 07, or 08, etc, but there doesn't seem to be any pattern - they're just characters that equate to a space, so I'm guessing it's just a placeholder?

Now, I looked for an entry for station 02. There isn't one - I'm in the process of trying to correctly add it - but there are others for which there are entries and the new icons still don't show up, XMCAFE for example.

Anyway, I was wondering if anyone out there who understood HEX a bit more might be able to shed some light. Maybe even pick up where I left off and figure it out? I'll attach the icons I made for troubleshooting.
Attachments
XMicons.zip
icons
(42.47 KiB) Downloaded 57 times
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

Postby mickeyvnminnie on Thu Jan 24, 2008 1:47 am

Can you also upload the "IMAGETBL.DAT" file?

Thanks
mickeyvnminnie
 
Posts: 88
Joined: Sun Nov 26, 2006 4:58 am
Location: SoCal

cont.

Postby inferno999 on Thu Jan 24, 2008 1:59 am

mickeyvnminnie wrote:Can you also upload the "IMAGETBL.DAT" file?

Thanks


Sure thing.

I tested the channel "002 XM Exclusives"I created on the way home. No dice. I noticed, however, that the name on the actual channel is "002 XMX" so now I'm wondering if it polls the IMAGETBL by channel name rather than number. Additionally, channel channel 045 (Starbucks XM Cafe) had an icon on the HDD (an out of date one, but one nonetheless) which wasn't showing. It doesn't show despite being official, and I wonder if, like my guess with 002, it's because the name is supposed to be "SBUX XM Cafe".

The next step will be matching the over-the-air names with the IMAGETBL.DAT to see what happens. After that, we need to isolate what exactly the TBL provides (is it the image map? or does it provide channel names?) with a series of edits.

No more time today though.

And of course, any help is appreciated, I'm in just a little over my head ;)
Attachments
IMAGETBL.DAT
dat file
(6.91 KiB) Downloaded 42 times
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

Postby dawgbone on Thu Jan 24, 2008 4:26 am

My knowledge of hex goes about as far as editting a Motorolla cell phone...but if you would, what hex editting S/W are you using?
dawgbone
 
Posts: 661
Joined: Fri Aug 31, 2007 6:17 pm

Nice!

Postby inferno999 on Thu Jan 24, 2008 6:06 am

dawgbone wrote:My knowledge of hex goes about as far as editting a Motorolla cell phone...but if you would, what hex editting S/W are you using?


Ah, the old days of SEEM editing. I did plenty of that too back when I had a RAZR.

Anyway, I'm currently using XVI32, just cause it's free and easy to use. There are other nicer ones out there like hex workshop, but frankly, XVI32 is just easier to use. You can download it here:
http://www.chmaas.handshake.de/delphi/f ... m#download

[/url]
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

Postby mickeyvnminnie on Thu Jan 24, 2008 9:19 am

The second hex is the length of the text, including spaces, i.e 0A (10) for "XM Preview", 07 (7) for "The 40s", and so on. More to come
mickeyvnminnie
 
Posts: 88
Joined: Sun Nov 26, 2006 4:58 am
Location: SoCal

Postby inferno999 on Thu Jan 24, 2008 5:24 pm

mickeyvnminnie wrote:The second hex is the length of the text, including spaces, i.e 0A (10) for "XM Preview", 07 (7) for "The 40s", and so on. More to come


Ah, brilliant! Never would have caught that.

I'm going to start making some corrections to my IMAGETBL, but won't be able to test today. Soon.
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

progress

Postby inferno999 on Fri Jan 25, 2008 1:39 am

Okay, using the attached edited IMAGETBL, I was able to get a couple icons to show up! But why the rest didn't work, and why now one of the original icons no longer works, I dont' know. More research must be done.
Attachments
progress.jpg
progress
(69.68 KiB) Downloaded 1283 times
IMAGETBL.DAT
current table
(6.91 KiB) Downloaded 45 times
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

Postby mickeyvnminnie on Fri Jan 25, 2008 4:18 am

which one is not working?
mickeyvnminnie
 
Posts: 88
Joined: Sun Nov 26, 2006 4:58 am
Location: SoCal

Postby inferno999 on Fri Jan 25, 2008 6:41 am

mickeyvnminnie wrote:which one is not working?


sorry, I should have explained the pics.

2, 59, 93 are not working at all.
73 I forgot to check on
130 works for the list icon, but not the Now Playing, larger icon
45 is working

There must be some sort of pattern...
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

Postby mickeyvnminnie on Fri Jan 25, 2008 9:32 am

Can you upload all the icons?
mickeyvnminnie
 
Posts: 88
Joined: Sun Nov 26, 2006 4:58 am
Location: SoCal

Update

Postby inferno999 on Fri Jan 25, 2008 4:08 pm

Okay, 73 is working, so that's

2, 59, 93 are not working at all.
130 works for the list icon, but not the Now Playing - larger icon
45 & 73 working properly for both

The icons are attached to the first post, and the latest IMAGETBL.DAT is a few posts up.

If you mean ALL the icons, um, yes I can, but not right now. My HDD's in the car ^.^
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

Postby dawgbone on Fri Jan 25, 2008 4:16 pm

My guess is that it's something with the .bmp.....maybe try to copying and renaming one that is working, to one that isn't. Just to see if it's in the bitmap. I'm assuming they are all the same res...


OT: Wierd...I can see all the .gif's in the XMCAT directory on my machine by renaming them from CAT01.gif.000 to CAT01.gif

But can't see any of the .bmp's in the XMDPS or XMLPS directories.
dawgbone
 
Posts: 661
Joined: Fri Aug 31, 2007 6:17 pm

hum

Postby inferno999 on Fri Jan 25, 2008 5:02 pm

dawgbone wrote:My guess is that it's something with the .bmp.....maybe try to copying and renaming one that is working, to one that isn't. Just to see if it's in the bitmap. I'm assuming they are all the same res...

I'm starting to think the same thing.

As for how the BMP's seem to work, they're 136 x 40, with a bit depth of 24. The Z2 treats true-black as transparent and as far as I can tell, there doesn't seem to be any other color limitations.

Maybe I missed something? I'll include the PSD file I used to make the icons. Maybe someone would like to try tweaking them a bit?


OT: Wierd...I can see all the .gif's in the XMCAT directory on my machine by renaming them from CAT01.gif.000 to CAT01.gif

But can't see any of the .bmp's in the XMDPS or XMLPS directories.



Hum, are you on a Z1 or Z2? I only started this after upgrading to a Z2 so I wonder if they changed how the icons are stored?
Attachments
NewXMicons.zip
Zip contains: PSD files for Large and List icons, IMAGETBL.DAT files, individual XMicons in the relative directories.
(155.91 KiB) Downloaded 19 times
User avatar
inferno999
 
Posts: 503
Joined: Sun Sep 23, 2007 9:34 pm

Postby dawgbone on Fri Jan 25, 2008 5:35 pm

Crap...I just realized that I was looking at the bypass update .iso that I downloaded from here.
http://www.avic411.com/forum/viewtopic.php?t=8783

my bad....I undoubtably extracted the bypass .iso to my backup folder here at work, in which was a backup I did of just the USER and MSV partiions, but because the .iso has a SDATA folder in it, I was thinking it was my full backup that I have at home...man do I feel dumb....

But, ideally...it should be the same....as I broke my original drive...upgraded(60gig) and installed the same Z2 image that's posted.
dawgbone
 
Posts: 661
Joined: Fri Aug 31, 2007 6:17 pm

Next

Return to Hacks/Mods

Who is online

Users browsing this forum: No registered users and 0 guests