Question about adding POI icons in Primo 2   

Question about adding POI icons in Primo 2

Postby indijones » Mon Feb 20, 2012 9:24 pm

I have added some icons to Primo 2 that works just fine. I set up a folder ui_igo9 at Primo root directory, added two sub-directories 'common" & "icons/poi". I then added the poi icons (32X32, BMP) & SPR files for them in the "common" sub-folder (poi1.bmp, poi1.spr,...........). The spr file for each icon looks like this:

BmpFlags = 0
DefFlags = ALPHA_PIXEL | ALPHA_LAYER
DefPhase = 1
Stripes = 32
DefAlpha = 32

Now for each of the icons, I had to add a icons file (poi1.icon, poi2.icon,........) in the "poi" sub-folder that reads like this:

$poi_mapdistant.bmp
$poi1.spr 0
$poi1.spr 0
$poi1.spr 0

This procedure is ok if one has few number of icons to add. But if there are hundreds of icons, then one has to create icons file for each of the hundreds of icons which is very tiresome. Is there any way that a few number of icon files can be used to show all the icons? Please note that the icons are 32X32 bmps having just one icon in one bmp file, they are not the multiple icons in one strip.Thanks!
indijones offline


Junior Member



 
Joined: Tue Sep 28, 2010 2:22 am
Posts: 11
Has thanked: 0 time
Been thanked: 1 time

Postby Yurbuh Tuggly » Tue Feb 21, 2012 7:14 am

If you create a poi_.icons file with categories you can do what you want.
Example:
in the Common folder, I have a colruyt.bmp and a colruyt.spr. In the Icons\POI folder i have a poi_.icons file that references colruyt as such;
[Shopping.Shop.colruyt]
$poi_mapdistant.bmp
$colruyt.spr 0

In that poi_.icons file are hundreds more references with the same format.
If you download the POI packages here:
:link:
You can see how this all works together and use some examples as templates.
But that's just my opinion..I could be wrong.
Y.T.
Primo2.4 PrimoAndroid TomTomAndroid
Yurbuh Tuggly offline


User avatar Ex Moderator



 
Joined: Wed May 04, 2011 7:25 am
Posts: 1410
Location: Politzania
Has thanked: 0 time
Been thanked: 797 times

Postby harrym1byt » Fri Feb 24, 2012 11:11 am

I have an issue with POI's....

All of the included POI's show up with the correct icon on the 800x480 screen. The POI's which I have added and my HOME location all show a Greek flag icon, how can I resolve this please? I'm using the diMkaWA skin and Primo 2.
harrym1byt offline


Junior Member



 
Joined: Thu Jan 26, 2012 5:05 pm
Posts: 4
Has thanked: 0 time
Been thanked: 0 time

Postby Yurbuh Tuggly » Fri Feb 24, 2012 11:23 am

1) You must be using a version of P2 that somebody has modified...in a 'normal' version, there is no way that a Greek flag would be any kind of default icon. So all bets are off with that since I have no idea what somebody has done to make that happen.

2) Can you go into the Places Settings and manually choose an icon for those specific POI's that are showing incorrectly? It may be tedious to do them all, but it may work that way if you are reluctant to change to a different unmodified version.
But that's just my opinion..I could be wrong.
Y.T.
Primo2.4 PrimoAndroid TomTomAndroid
Yurbuh Tuggly offline


User avatar Ex Moderator



 
Joined: Wed May 04, 2011 7:25 am
Posts: 1410
Location: Politzania
Has thanked: 0 time
Been thanked: 797 times

Postby harrym1byt » Fri Feb 24, 2012 12:09 pm

Thanks, I'll see if I can find that setting.

[EDIT] I have not been able to find that setting - could you provide some clues please?
harrym1byt offline


Junior Member



 
Joined: Thu Jan 26, 2012 5:05 pm
Posts: 4
Has thanked: 0 time
Been thanked: 0 time

Postby Yurbuh Tuggly » Fri Feb 24, 2012 12:41 pm

FYI:
Start Primo2, go to Settings (from Start Screen, More/Settings), and then Map Settings. Scroll to Place Markers and tap. You can select an entire category by tapping the checkbox, or narrow down to specific items by tapping the Main Category name, and then making specific choices. When you get to the specific POI, tap the icon that is currently being used in the upper left hand corner, and you should be able to browse the available icons to choose a different one. Then back out and repeat for other specific selections.
But that's just my opinion..I could be wrong.
Y.T.
Primo2.4 PrimoAndroid TomTomAndroid
Yurbuh Tuggly offline


User avatar Ex Moderator



 
Joined: Wed May 04, 2011 7:25 am
Posts: 1410
Location: Politzania
Has thanked: 0 time
Been thanked: 797 times

Postby harrym1byt » Fri Feb 24, 2012 1:50 pm

Brilliant thanks, that works!

One issue, found as a result of this....

I have found some of the icons are repeated several times over in what ever file stores the icons - five Aldi icons, eight Lidl ones and so on. What is the name of the icon file and can the duplicated ones be deleted?
harrym1byt offline


Junior Member



 
Joined: Thu Jan 26, 2012 5:05 pm
Posts: 4
Has thanked: 0 time
Been thanked: 0 time

Postby Yurbuh Tuggly » Fri Feb 24, 2012 2:07 pm

harrym1byt wrote:can the duplicated ones be deleted?


Probably best to leave them alone. Icons can sometimes be repeated because they belong to different multiple groups or categories..when really there may only be one actual graphic. The icon files are EXTREMELY small, so even if there were more than one, it's no big deal space-wise, and if you go through the effort to delete any, you run the risk of messing up some category file structure which could result in an error and crash.
But that's just my opinion..I could be wrong.
Y.T.
Primo2.4 PrimoAndroid TomTomAndroid
Yurbuh Tuggly offline


User avatar Ex Moderator



 
Joined: Wed May 04, 2011 7:25 am
Posts: 1410
Location: Politzania
Has thanked: 0 time
Been thanked: 797 times

Postby harrym1byt » Fri Feb 24, 2012 2:16 pm

Thanks, in that case I'll leave as is.
harrym1byt offline


Junior Member



 
Joined: Thu Jan 26, 2012 5:05 pm
Posts: 4
Has thanked: 0 time
Been thanked: 0 time

Postby Chuck88 » Sun Mar 25, 2012 5:22 am

I was following instructions of post #1 ...

Do file names matter? I use different names for the .bmp, .spr and .icon files, then in the .icon files I change the name of the *.SPR consequently, but whenever I open the Placer Maker, then try ONLY to show the icon, I got an error message and Primo 2.0 exits after I press the Windows CE "OK" button.

My BMP are all 32px32px32-bit.

Thanks for any help!
Chuck88 offline


Junior Member



 
Joined: Wed Aug 18, 2010 2:27 pm
Posts: 9
Has thanked: 0 time
Been thanked: 0 time

Postby Yurbuh Tuggly » Sun Mar 25, 2012 6:14 am

Chuck88 wrote:My BMP are all 32px32px32-bit.

All of my custom icons (in UI_igo9\common) are 32x32x24. I don't know if the color depth makes any real difference, but it might.
Otherwise, the Primo freeze/exiting could mean something is wrong with your naming convention (bmp, spr, etc must be consistent) or the structure of how you have things set.
Again, if you download one of the POI packs from here:
Primo-2.0, you can see how the structure is, and use some examples as templates for your own custom setup.
But that's just my opinion..I could be wrong.
Y.T.
Primo2.4 PrimoAndroid TomTomAndroid
Yurbuh Tuggly offline


User avatar Ex Moderator



 
Joined: Wed May 04, 2011 7:25 am
Posts: 1410
Location: Politzania
Has thanked: 0 time
Been thanked: 797 times

Postby deejai » Sun Mar 25, 2012 6:28 am

Chuck88 wrote:I was following instructions of post #1 ...

Do file names matter? I use different names for the .bmp, .spr and .icon files, then in the .icon files I change the name of the *.SPR consequently, but whenever I open the Placer Maker, then try ONLY to show the icon, I got an error message and Primo 2.0 exits after I press the Windows CE "OK" button.

My BMP are all 32px32px32-bit.

Thanks for any help!


if you make new .bmp
size ok
spr ok


check new icon poi that you make

edit by reduce Exposure / Lighting / Contrast

save file and test again
deejai offline


Junior Member



 
Joined: Mon Jun 06, 2011 5:45 am
Posts: 78
Has thanked: 0 time
Been thanked: 2 times

Postby Chuck88 » Mon Mar 26, 2012 1:38 am

I will rename all three set of .bmp, .spr and .icon to poi1.*, poi2.* and poi3.* and test again tomorrow. I will post my results.

In the meantime, can any one upload one single set of those file and let me test it on my setup? Say a gas station icon with their associated .bmp, .spr and .icon files (esso, shell, ultramar or petro-canada)?

This way I can make sure that the test bed of my Primo 2.0 setup is working properly before going further.

Many thanks for your replies!
Chuck88 offline


Junior Member



 
Joined: Wed Aug 18, 2010 2:27 pm
Posts: 9
Has thanked: 0 time
Been thanked: 0 time

Postby Chuck88 » Mon Mar 26, 2012 1:57 pm

Sorry renaming the files didn't work. :wallbash:

Can any one upload one single set of those files and let me test it on my setup? Say a gas station icon with their associated .bmp, .spr and .icon files (esso, shell, ultramar or petro-canada)?

:bo_mini:
Chuck88 offline


Junior Member



 
Joined: Wed Aug 18, 2010 2:27 pm
Posts: 9
Has thanked: 0 time
Been thanked: 0 time

Postby hypo » Fri Mar 01, 2013 2:02 am

I keep getting and error wth Primo 2.4 - fail to open file : $poi_mapdistant.bmp exiting application

Any help appreciated
hypo offline


Junior Member



 
Joined: Wed Nov 16, 2011 3:43 am
Posts: 3
Has thanked: 0 time
Been thanked: 0 time

Next

Return to General Discussions about iGO core

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 55 guests