^ home :: TYP files editor and other utilities

^ domů :: Editor a další nástroje pro TYP soubory


TYP file:TYP soubor
(please, upload only .TYP files, not .TXT sources) (uploadujte prosím jen .TYP soubory a ne zdrojové .TXT)
First file:První soubor:
Second file:Druhý soubor:
Options:Možnosti: ignore differences in labels ignorovat rozdíly v názvech
Product ID: (decimal number, not hexadecimal!)
Family ID: (decimal number, not hexadecimal!)
Mapsource language:
Exclude these polygons: type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
type , subtype
Exclude elements from this TYP file:
(All elements defined in this TYP file will be set to INVISIBLE in generated universal TYP file. Which means that you will easily see all elements which are contained in map but use "standard" appearance not changed by uploaded TYP file.)
Including POIs: YES
This utility will generate special TYP file, which can be used for identification of element types used in map. With older (not NT) maps, identification was easy. You could just open map in gpsMapEdit and look at "Map properties / Statistics" page. Or you could look directly into map, and element types were immediately visible, so you knew that river is for example type=0x42.

New (NT) maps have different structure (GMP), and gpsMapEdit cannot open them. And because there is so much new element types (starting from 0x100), it is really hard to tell what type and subtype was used for different elements.

So here comes this utility. It creates special TYP file for given map, and this TYP file contains definition for all possible types and subtypes. When used in MapSource, map looks really strange. But each element has now different color, and color value is derived from element's type and subtype.

With this special TYP file you can use some free screen-pixel-reader (for example Pixie), point mouse on questionable polygon, line, or POI and look at it's color value.

When you are finished with all major polygons (basemap area, cities background, etc.), enter their types and subtypes into "exclude" fields above, and generate new TYP. This will usually reveal some polygons which were previously hidden by larger ones (for example, when city area was drawn over parks and playgrounds, etc.). You can then repeat these steps again and again ... Polygon types are represented as HTML #values, eg.:

  • #RRGGBB means #_TTTSS, where TTT is type and SS is subtype. First character is generated randomly for better color differences and should be ignored.
  • For example:
    #E04B00 means type=0x04B, subtype=0x00
    #310218 means type=0x102, subtype=0x18

Line and POI types are represented as HEX 0xvalues and have reverse order, eg.:

  • 0xBBGGRR means 0x_TTTSS, where TTT is type and SS is subtype. First character is generated randomly for better color differences and should be ignored.
  • For example:
    0x200600 means type=0x006, subtype=0x00
    0x310218 means type=0x102, subtype=0x18

Don't forget, that 0xBBGGRR is NOT the same as #RRGGBB, because 0xHEX and #html values have different order of R, G and B values. So always read polygon values from #html field, and line/POI values from 0xHexadecimal field of "Pixie" utility.

Hope this helps.

(read the rules before you upload any TYP, please!)
(přečtěte si prosím před použitím pravidla)

Please, send all your questions, suggestions, bug reports and requests to discussion board. Your comments and suggestions help me to build better editor for you.

This page was used 120650 times for editing of 41162 different TYP files.

This TYP editor allows you to modify basic attributes of TYP files: colours, orientation flags, line widths, localization strings... It is real editor, and directly changes binary TYP file. And because my editor does not use "decompile-modify-compile" method, you can be always sure that if you did not change something, it will remain exactly the same as in original TYP. So don't be afraid of editing complex TYPs with transparent bitmaps, etc.
TYP files contain no cipher key, no protection, and no secret codes, so their editing for your personal usage should be perfectly legal.

The core of editor/decompiler (ie. all functions except GUI) is released as open source under BSD license, you can download if from main page.

Features:

  • Full-featured editor, capable of creating a new TYP from scratch.
  • Easy POI editing. Just upload your icon, and look ... here it is! No more boring conversions to XPM :)
  • Fast and easy editing via AJAX forms. Every change is immediately visible.
  • Directly edits binary TYPs. No decompilation and compilation needed.
  • Does not use cGPSmapper or any other compilator for creating TYP files.
  • Support for alpha channel POIs.
  • Support for transparent polygon bitmaps.
  • Can edit/add/remove localization strings.
  • Fast and reliable.
  • Can be used even for smallest changes, eg. for changing Family and/or Product ID.
  • Allows colour type changing (eg. from 2-colour to 4-colour).

Changelog:

  • 2010-05-04: Support for up to 2 MB large TYP files.
  • 2010-05-03: Extended allowed range of element types from 0x10f to 0x11f.
  • 2009-07-01: Preliminary support for NT TYPs. Editor will no longer downgrade them to old version, but will keep as much from original TYP as possible. Which means that now you should be able to edit TYPs for CN2009EU without accidentally damaging (removing) all those special data blocks which add supermarket icons to this TYP :).
  • 2009-06-19: editor now uses transparent PNGs instead of GIFs, and should be much faster when editing large TYP file.
  • 2009-03-15: added possibility to download "day-only" or "night-only" version of currennt TYP file, which means that is is now easy to preview night version of your TYP in MapSource.
  • 2009-03-15: added "ignore differences in labels" to diff mode
  • 2009-03-15: added generic check for correct (known) TYP structure. Editor now checks if every single byte in TYP file is recognized as "something known", and will now complain if this condition is not met. Which means that if you for example try to edit TYP from CN2009EU, editor will tell you that it will probably do no good (instead of silently failing).
  • 2008-08-19: bugfix: MapSource incorrectly displayed newly created transparent bitmaps (but everything was OK in GPS). Editor now produces correct POI icons even for MapSource :).
  • 2008-07-28: bugfix: invalid codepages are now handled in reasonable way
  • 2008-07-26: bugfix: diff mode works correctly with localization
  • 2008-07-04: support for really long localization strings (as in Trek Map V2 Italy).
  • 2008-06-04: weoli added German translation!
  • 2008-06-02: localization to czech language
  • 2008-05-30: full support for label styles
  • 2008-05-29: preliminary support for label styles (ie. different color of labels, different fonts, etc.)
  • 2008-04-29: bugfix: TYPs containing POIs with transparent night bitmap are now loaded correctly.
  • 2008-04-03: bugfix: subtype setting for POI works again
  • 2008-04-03: better text checking. Not it is not possible to save TYP with invalid text, eg. to use "ěščřž" in codepage 1254.
  • 2008-04-03: new icons
  • 2008-04-01: bugfix: Drawing order in TYPs for NT maps but with with old-format header was decoded and encoded incorrectly. In short: some third-party TYPs for "CityNavigator Europe 9 NT" and "City Navigator EU 2008 NT" were displayed and saved with wrong drawing order. Fixed now.
  • 2008-04-01: better color picker
  • 2008-03-30: bugfix: foreign texts with diacritics or special characters ("Ä", "Č", "Д", etc.) will now be saved correctly. Sorry for this bug. It was hiding before me successfuly, because first editing always worked correctly and only subsequent actions created invalid characters.
  • 2008-03-30: added validity check for family and product IDs.
  • 2008-03-27: preliminary support for true-color POIs
  • 2008-03-18: added options to change TYP version (NT or original)
  • 2008-03-18: bitmap editor is now much, much faster (!
  • 2008-03-16: bugfix: diff could fail under some circumstances.
  • 2008-03-14: bug with "init error: ... Can't locate object method 'typ'" is fixed
  • 2008-03-13: Much better "diff" function.
  • 2008-03-13: new function: universal TYP generator for better identification of different element types in NT maps
  • 2008-03-13: more range checks added
  • 2008-03-12: important bugfix: all elements are now sorted before saving, and this ensures they will be displayed correctly.
  • 2008-03-12: bugfix: Default state of lines and POIs was set incorrectly, and 'Edit' button was not displayed.
  • 2008-03-12: bugfix: Czech users with MSIE will now see all pages correctly.
  • 2008-03-11: Updates timestamp in header.
  • 2008-03-06: Better error handling. You should now see correct error explanations instead of "Internal error" message. And if it is a 'soft' error, editor will let you continue with editing.
  • 2008-03-06: bugfix: message "unknown morecolors_info flag: 4" fixed
  • 2008-03-05: Fixed bug decompiler. Colours are now generated correctly. It is strange that nobody noticed this. Maybe nobody uses decompiler?
  • 2008-03-05: Draworder editor removed. Why? Because it has no use anymore. Now you can edit drawing order directly at polygons/placeholders. You no more have to remember "I have added polygon 0x0c, now I have to add it to draworder" :).
  • 2008-03-01: New feature: add/remove elements.
  • 2008-02-29: New feature: POI editing!
  • 2008-02-29: Fixed some unpleasant speed issues (editor response should be almost immediate again).
  • 2008-02-29: Type and subtype can be freely changed.
  • 2008-02-27: bugfix in color editor
  • 2008-02-27: Editor was completely rewritten for AJAX. Now it is just a small step away from fully featured editor :)
  • 2008-02-24: Editor finally displays all POIs, and does it correctly.
  • 2008-02-21: Another really idiotic error fixed (only page with "Signature: $SIGNATURE" message was displayed, and editor was unavailable)
  • 2008-02-20: Sorry for drop out which lasted whole night.
  • 2008-02-19: fixed that unpleasand "edit error: Can't use an undefined value as an ARRAY reference" error
  • 2008-02-19: support for additional colors
  • 2008-02-19: faster bitmap preview (approx. 40 times)
  • 2008-01-24: Displays POI (not editable)
  • 2008-01-22: better subtypes decoding for polygons and polylines
  • 2008-01-21: full support for draworder section
  • 2008-01-21: correct codepage processing
  • 2008-01-19: polygon drawing order is now freely editable, and compatible with NT maps (say "Wow!" :-)))
  • 2008-01-18: polygon drawing order is now decoded and displayed correctly even for NT maps
  • preview for lines without bitmap is now generated, too.
  • bitmap editor does not clutter screen -- it is hidden by default
  • no more "unknown bitmap type for [_point]:" errors.
  • color type 13 is now supported. No more fatal errors.
  • bugfix: NightXPMs will no more disappear from POI definitions.
  • color type 5 is now supported. No more fatal errors.
  • bugfix: All POIs now remain in original form. This is first beta version (after a long line of alpha versions)!
  • simple bitmap editor for lines and polygons!

Bugs and TODOs:

  • 2008-10-21: Garmin invented yet another TYP format, and editor chokes on it. Be patient, please ...
  • Problems with Safari browser, currently investigating ...

Máte-li jakýkoli dotaz, narazili jste na chybu, nebo chcete navrhnout nějaké zlepšení editoru, napište mi to prosím do diskuse.

Česká verze této stránky je extrémně zjednodušená. Většinu zajímavých informací, jako například přehled změn a novinek, najdete pouze v anglické verzi (stačí ťuknout nahoře na "English"). Je mi to sice trochu hloupé (stránky v rodném jazyce by měly být samozřejmostí), ale naprostá většina návštěvníků těchto stránek je ze zahraničí. Proto jsem všechno psal přednostně v angličtině, a česká verze je jen "překlad" :(.

[back to homepage]