Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.
Trekbuddy is on Github now

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
[SOLVED by using packed] .tba won't load - while .maps do ??

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 12:06 am    Post subject: [SOLVED by using packed] .tba won't load - while .maps do ?? Reply with quote

Kruch. Have loved TB for nearly a decade now... Thank you!!
But I downloaded v1.32 to my reliable old Galaxy S3 GT-I9300 running Android v 4.3. TB has always worked on this in the past.
Now SOME atlases don't load, even though the underlying maps do.
Screenshot attached.
Can't figure it out.
from one of the subfolders.
But seems like the code (sometimes) appends the top folder name to the .tba.
Fingers crossed you can figure it out...
Thanks
Will attach a . tba from an atlas that does not load, and a .map and .set to posts below



IMG_1204.JPG
 Description:
 Filesize:  31.35 KB
 Viewed:  9546 Time(s)

IMG_1204.JPG




Last edited by MaxMunro on Sun Jun 19, 2016 1:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 12:08 am    Post subject: Reply with quote

tba below

EDIT: can't seem to append a tba file, so here is its content:
Atlas 1.0

.map CONTENT:
OziExplorer Map Data File Version 2.2
t_.jpg
t_.jpg
1 ,Map Code,
WGS 84,WGS 84, 0.0000, 0.0000,WGS 84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Mercator,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No
Point01,xy, 0, 0,in, deg, 46, 4.393838, N, 6, 30.234375, E, grid, , , ,N
Point02,xy, 1023, 0,in, deg, 46, 4.393838, N, 7, 12.380676, E, grid, , , ,N
Point03,xy, 1023, 767,in, deg, 45, 42.399528, N, 7, 12.380676, E, grid, , , ,N
Point04,xy, 0, 767,in, deg, 45, 42.399528, N, 6, 30.234375, E, grid, , , ,N
Point05,xy, , ,in, deg, , , grid, , , ,N
Point06,xy, , ,in, deg, , , grid, , , ,N
Point07,xy, , ,in, deg, , , grid, , , ,N
Point08,xy, , ,in, deg, , , grid, , , ,N
Point09,xy, , ,in, deg, , , grid, , , ,N
Point10,xy, , ,in, deg, , , grid, , , ,N
Point11,xy, , ,in, deg, , , grid, , , ,N
Point12,xy, , ,in, deg, , , grid, , , ,N
Point13,xy, , ,in, deg, , , grid, , , ,N
Point14,xy, , ,in, deg, , , grid, , , ,N
Point15,xy, , ,in, deg, , , grid, , , ,N
Point16,xy, , ,in, deg, , , grid, , , ,N
Point17,xy, , ,in, deg, , , grid, , , ,N
Point18,xy, , ,in, deg, , , grid, , , ,N
Point19,xy, , ,in, deg, , , grid, , , ,N
Point20,xy, , ,in, deg, , , grid, , , ,N
Point21,xy, , ,in, deg, , , grid, , , ,N
Point22,xy, , ,in, deg, , , grid, , , ,N
Point23,xy, , ,in, deg, , , grid, , , ,N
Point24,xy, , ,in, deg, , , grid, , , ,N
Point25,xy, , ,in, deg, , , grid, , , ,N
Point26,xy, , ,in, deg, , , grid, , , ,N
Point27,xy, , ,in, deg, , , grid, , , ,N
Point28,xy, , ,in, deg, , , grid, , , ,N
Point29,xy, , ,in, deg, , , grid, , , ,N
Point30,xy, , ,in, deg, , , grid, , , ,N
Projection Setup,,,,,,,,,,
Map Feature = MF ; Map Comment = MC These follow if they exist
Track File = TF These follow if they exist
Moving Map Parameters = MM? These follow if they exist
MM0,Yes
MMPNUM,4
MMPXY, 1, 0, 0
MMPXY, 2, 1023, 0
MMPXY, 3, 1023, 767
MMPXY, 4, 0, 767
MMPLL, 1, 6.503906, 46.073231
MMPLL, 2, 7.206345, 46.073231
MMPLL, 3, 7.206345, 45.706659
MMPLL, 4, 6.503906, 45.706659
MOP,Map Open Position,0,0
MM1B, 53.150948
IWH,Map Image Width/Height, 1024, 768

.set CONTENT
t_0_0.jpg
t_0_256.jpg
t_0_512.jpg
t_256_0.jpg
t_256_256.jpg
t_256_512.jpg
t_512_0.jpg
t_512_256.jpg
t_512_512.jpg
t_768_0.jpg
t_768_256.jpg
t_768_512.jpg

ENDS
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Jun 19, 2016 8:04 am    Post subject: Reply with quote

Why do you have
Code:
cr.tbaTduMB2

as atlas header visible in error message on attached pict ? Smile
Seems like cr.tba filename extension changed some way .... cause main folder name is visible but as TDMB2 ?
So it is not atlas folder name added to header exactly. Card reading problem ?
Back to top
View user's profile Send private message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 8:24 am    Post subject: Reply with quote

Thanks Ranger.
I've triple checked, and the atlas file does have extension tba.
The filename seems to be getting appended programatically when TB tries to open it. If I instead go to a .map file within the same atlas it opens ok (as a map but of course not as an atlas).
Weird - I've tried several atlas re-builds using TBmm and MOBAC. Some atlases work while others replicate this error, but I can't see a pattern.
Cheers.
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Jun 19, 2016 8:34 am    Post subject: Reply with quote

Message says:
Not a directory /storage/extSdCard/TrekBuddy/maps/TDMB2/cr.tbaTduMB2
What "TduMB2" exactly is ?
Don't seems like main atlas folder, visible in path as "TDMB2" ...
BTW, why you don't use packed maps atlas on Android ?
Back to top
View user's profile Send private message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 8:42 am    Post subject: Reply with quote

TduMB is a holder for the layers as in the attached.
I'll check out the advantages of packed atlases and maps ...
Just popping out for an hour ...



IMG_1208.jpg
 Description:
 Filesize:  31.27 KB
 Viewed:  9516 Time(s)

IMG_1208.jpg


Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Jun 19, 2016 9:04 am    Post subject: Reply with quote

OK, as I see on next pict, TduMB2 is just one layer name in atlas Smile
So question is, why layer name isn't recognized sometimes as folder by app ...
What about app Settings, Desktop, EasyZoom ? Auto is used ?
Back to top
View user's profile Send private message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 9:22 am    Post subject: Reply with quote

Easyzoom was Auto.
I switched to "Layers" but then had the same problem.
Switched back to "Auto" and still the prob.
I'd wondered whether having **spaces** somewhere in file- or folder- names in the folder structure would cause a problem, but no: other atlases with **spaces** work fine.
I did re-build the whole Trekbuddy folder when I downloaded the new version last week, so I think that is all uptodate. Am reluctant to format the card and re-load everything though Smile
Perhaps I should re-install TB. My 1.32 version came from Google Store.
Thanks
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Jun 19, 2016 9:37 am    Post subject: Reply with quote

Pls don't use EasyZoom Layers setting for such atlas structure Smile
If you change Auto/Layers/Off atlas should be loaded again to see effect.
For collecting packed maps in atlas the same way like for cr.tba you do, it is enough to use new atlas header introduced in 1.28 and have maps packed.
Header is available for download on forum
http://www.trekbuddy.net/forum/viewtopic.php?t=7653
or you can just pack cr.tba to tar file (means have cr.tar instead).
GooglePlay 1.32 version should work, but Android users rather plays with packed atlases Smile
Question now is - what is different in unpacked atlases working for you ?
Back to top
View user's profile Send private message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 9:55 am    Post subject: Reply with quote

Thanks kruch.
So should I:
1. Use the my-atlas.tar file instead of the .tba I have been using
2. Re-do all the maps e.g. in MOBAC specifying "packed" instead of unpacked? I've jsut continued to use unpacked from agse ago since theyn always worked. but should I now change them all if using Andriod?
Thanks
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Jun 19, 2016 10:08 am    Post subject: Reply with quote

Yep, there is no reason to play with a lot of tile files instead of packed maps for Android.
New atlas header gives opportunity to change packed atlas content any time by simply add/remove maps to/from layers, the same way like it worked for unpacked atlases from years.
The only difference is, that Mobac creates fixed content header for packed TB atlases and it should be replaced by new one to have atlas flexible for changes, even in phone.
Back to top
View user's profile Send private message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 10:15 am    Post subject: Reply with quote

Thanks Ranger / kruch.
OK I'll try tonight and re-post tmrw.
I suppose I was thinking it would take much longer for the phone to load an entire large (packed) atlas rather than the (unpacked) tiles. Cool
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Jun 19, 2016 10:19 am    Post subject: Reply with quote

New phones/tablets are fast and faster ... Smile
Back to top
View user's profile Send private message
MaxMunro



Joined: 06 Jun 2008
Posts: 40

PostPosted: Sun Jun 19, 2016 1:33 pm    Post subject: Reply with quote

Thanks kruch - I think that worked. Much appreciated.
Just have to find an atlas converter now, for the maps that are not in my MOBAC tilestore!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group