Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > GPS > Garmin Mobile PC


Reply
 
Share Thread Tools Display Modes
Old 09-10-2008, 02:54 PM   #1
Low Bitrate
 
Join Date: Nov 2006
Location: Huntsville, AL
Posts: 73
pbarrette is an unknown quantity at this point
Garmin MobilePC Hacking

Hi all,

After looking at some of the Garmin MobilePC installation files, I noticed that the three ".gir" files are actually a sort of PNG image archive for what appear to be the icons and interface buttons, etc of the software.

To facilitate some re-skinning of the interface, I have documented what I know about the GIR file format. I have also written a file splitter which will split out all of the PNG files from the GIR file to help those who might want to have a look. The program will also recombine the PNG images into a GIR file using the log produced during the split.

The GIRSplit program is located here.
The file format documentation can be found here.
The splitter source code in C# is also included here for those interested.

GIRSplit requires .NET 2.0 and is a simple command-line application.

Drag and drop a GIR file onto GIRSplit.exe and it will be split out into a number of PNG files and a log file.
Drag and drop a LOG file onto GIRSplit.exe and it will recombine the PNG files and log file data into a GIR file.

I hope this helps someone get a start on re-skinning the MobilePC interface.

Edit 13-Sep-2008: Updated to v1.1
pb

Last edited by pbarrette; 09-13-2008 at 05:55 PM. Reason: Updated GIRSplit app
pbarrette is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-10-2008, 03:40 PM   #2
Newbie
 
borutcebulj's Avatar
 
Join Date: Nov 2006
Location: Slovenia, Europe
Posts: 13
borutcebulj is an unknown quantity at this point
Great find. Hope to download that GIR file merger soon.
__________________
Progress:
[II--------] 20%

2004 Renault Grand Espace 3.0 dV6
borutcebulj is offline   Reply With Quote
Old 09-11-2008, 01:54 AM   #3
Low Bitrate
 
Join Date: Nov 2006
Location: Huntsville, AL
Posts: 73
pbarrette is an unknown quantity at this point
Hi all,

The merge functionality is done.

I also discovered a couple of bugs in the splitter, as well as an odd issue with the GIR file format which caused me to change the format of the log file produced.

It seems that in some cases, the second field of each filename record defines the width and height of the PNG image, while in other cases it appears to affect the display position of the image.

I have changed the log file produced during the split operation to record both the image-dimension / display position and the unknown / possible alpha-bg color information.

GIRSplit will now split or merge the GIR file. To split a GIR file, feed it with a filename that ends with ".gir". To merge the PNG files, feed it with the log file produced during the split.

The links in my first post have been updated with the new files.

pb
pbarrette is offline   Reply With Quote
Old 09-13-2008, 05:55 PM   #4
Low Bitrate
 
Join Date: Nov 2006
Location: Huntsville, AL
Posts: 73
pbarrette is an unknown quantity at this point
Hi again,

All files have been updated from v1.0 to v1.1.

The log file has been changed again, as I discovered a bug in my code was causing me to make an error in my interpretation of the file format.

The header of the GIR file is almost certainly in the following format:
Code:
Beginning of file: ------------------- 67 69 72 00 00 00 00 00 01 00 00 00 XX XX XX XX ; gir Where "XX XX XX XX" is a 32 bit integer defining the number of PNGs stored in the file. PNG Filename Records: Offset Bytes Data ------- ------ ----------------- 0x00 0x27 Filename 0x28 0x04 Width Height 0x2C 0x04 LA DD LB 00 [PNG Offset from centerpoint] 0x30 0x04 Start Offset from first PNG 0x34 0x04 File byte size Where "LA" and "LB" specify the number of pixels to the left of the center point that the PNG is displayed in the map, and "DD" is the number of pixels down from the center. LA and LB can be interchangeable, but if both are used, some formula is applied that I don't yet know.

pb
pbarrette is offline   Reply With Quote
Old 09-13-2008, 10:22 PM   #5
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
I've made a skin overlay for GMPC for those that use RR:

http://www.mp3car.com/vbulletin/rr-s...-any-skin.html

I'm going to try your stuff to see if I can customize it even more... Thanks!
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 09-15-2008, 12:43 PM   #6
Constant Bitrate
 
mstaedt's Avatar
 
Join Date: Dec 2007
Posts: 138
mstaedt is an unknown quantity at this point
Where does your program drop the .png's and log file? I run the program which pulls up a DOS window, but it disappears before I can read it and then I have nothing.

Thanks....
Mark
__________________
--------------------------------
Project completed! (almost)

My Truck as featured in Custom Classic Trucks magazine.
mstaedt is offline   Reply With Quote
Old 09-15-2008, 01:54 PM   #7
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
It should create a folder in the same directory as the .gir file. In the folder are the .PNG's and log file. Once you're done editing the .PNG's, drag and drop the log file back over GIRsplit, and it creates the .gir in the folder with the .PNG's.
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 09-15-2008, 04:34 PM   #8
Constant Bitrate
 
mstaedt's Avatar
 
Join Date: Dec 2007
Posts: 138
mstaedt is an unknown quantity at this point
Got it! Thanks.

I had to move it off of our network drive and onto my C: drive to get it to work.
__________________
--------------------------------
Project completed! (almost)

My Truck as featured in Custom Classic Trucks magazine.
mstaedt is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 09-16-2008, 09:10 AM   #9
FLAC
 
djmickyg's Avatar
 
Join Date: Feb 2004
Location: Melbourne, Australia
Posts: 1,315
djmickyg is on a distinguished road
very interesting..
ive had a very quick play to see if i could get it to look like lsx
Attached Images
 
djmickyg is offline   Reply With Quote
Old 09-16-2008, 09:21 AM   #10
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
Now if we can figure out how to change the font, that would be nice...
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 09-18-2008, 06:03 PM   #11
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,558
ThunderStick is on a distinguished road
I kind of like the way it looks right now...
But hey if we can change it we will...
Great idea...
ThunderStick is offline   Reply With Quote
Old 09-23-2008, 02:12 AM   #12
Newbie
 
Join Date: Aug 2007
Posts: 21
bandung_steve is an unknown quantity at this point
TYP files editor at
http://ati.land.cz/gps/typdecomp/editor.cgi
It will allow you to modify colors, orientation flags, line widths, localization strings,draw own bitmaps (editor,change object names,easy poi editing.
Right TYP makes maps in GPS or GMPC a lot more readable!

Language.gtt in text folder can be changed too like:.....

hxxp://www.garmin.com/xmlschemas/GarminTextTranslationv1.xsd" >
<hdr>
<lang>Indonesia</lang>
<desc>Indonesia</desc>
<type>Primary</type>
<sort>0</sort>
<cpage>1252</cpage>
<pnum>006-D1115-00</pnum>
<ver>1.00</ver>
</hdr>
<str>
<tag>TXT_LANG_ID_STR_M</tag>
<txt>Indonesia</txt>
</str>
.........etc

Camera manager by Ash10 at http://www.pocketgpsworld.com/module...Forums&t=43111

Garmin Voice Utility by Ash10 again at
http://www.pocketgpsworld.com/module...Forums&t=52344

Now , thanks for OSK and stuff from Monkeyracer,ThunderStick,El Camino, and Pbarrette

Love it
bandung_steve is offline   Reply With Quote
Old 09-23-2008, 02:37 AM   #13
Newbie
 
Join Date: Aug 2007
Posts: 21
bandung_steve is an unknown quantity at this point
I forgot to mention one thing Animated gps batmobile icon by aarrgghh for your GMPC vehicle collection
http://www.instructables.com/id/anim...atmobile-icon/
in case you wanna create more

Fully satisfied
bandung_steve is offline   Reply With Quote
Old 09-24-2008, 12:59 AM   #14
Low Bitrate
 
Join Date: Nov 2006
Location: Huntsville, AL
Posts: 73
pbarrette is an unknown quantity at this point
Excellent!

I'm glad that someone is able to use this program, as I really don't have the time or the artistic ability to do any serious reskinning. My hope with the release of this tool was that it would be able to help at least one person to skin Mobile PC to their liking.

I also thought it was great that at least some interface skinning could be done simply by editing some PNGs without having to muck about in the EXE with ResHack or a hex editor the way most other programs (eg Iguidance) require.

I was actually considering a GUI interface that would show PNG thumbnails along with their center point and GIR defined offset and allow exporting and replacement of single PNGs as well as center point changes. I don't really have the time to do that at the moment, so I published what I know about the GIR format and the source code to my simple app. If someone wants to run with it, please do.

pb
pbarrette is offline   Reply With Quote
Old 04-22-2009, 11:44 PM   #15
Newbie
 
Join Date: Apr 2009
Posts: 3
kevincop130 is an unknown quantity at this point
.

Now if we can figure out how to change the font, that would be very nice...
LOL
kevincop130 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Garmin Mobile PC ptk Garmin Mobile PC 97 08-27-2009 05:05 PM
Review: Garmin MobilePC Windows Navigation Software Fiberoptic The Review Palace 11 07-19-2009 01:30 PM
Garmin Navigation software ported to PC - FINALLY! hd54321 GPS 16 03-18-2009 04:03 AM
Garmin announces Mac GPS support for everything! skizot MacCar 11 01-31-2006 04:37 AM



All times are GMT -5. The time now is 05:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics