Topic: Cache Zoomed limit Only

As title : Cache Zoomed limit Only

Using tileset, i'l be having hotspot locations in my game, where the cache will come in handy.
If i force a zoomed limit, lets say 15 for example (using the LockPositionAndZoomExample script) and set default zoom on OnlineMaps to 15, the cache still seems to download other zoom images and not just 15. Is there a way to just limit it to cache 15?

Thanks, also Unity crashes every time i cache, but it still works, just have to reopen.  (5.3.5p8 Personal MacOS)

Re: Cache Zoomed limit Only

Hello.

By default, Online Maps uses the current zoom level + 3 parent zoom levels.
It is necessary for a smooth change of zoom level.
To disable this «Online Maps / Advanced / Use Current Zoom Tiles - ON».

Please update Online Maps through the built-in update to the latest beta version. This should help with crashes.

How to open the built-in update system:
Online Maps (Script) / Help / Check Updates
or
Component / Infinity Code / Online Maps / Check Updates.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Cache Zoomed limit Only

Updated to latest beta.
Tile cache at certain zooms working (my unity editor was displaying things weird so did not see that option, update fixed the layout so i can read the info labels now!)
Cache crashes also fixed.

Thanks for the help and super speedy reply!

4 (edited by StephenAllen 2016-07-21 11:25:43)

Re: Cache Zoomed limit Only

Alex Vertax wrote:

Hello.

By default, Online Maps uses the current zoom level + 3 parent zoom levels.
It is necessary for a smooth change of zoom level.
To disable this «Online Maps / Advanced / Use Current Zoom Tiles - ON».

Please update Online Maps through the built-in update to the latest beta version. This should help with crashes.

How to open the built-in update system:
Online Maps (Script) / Help / Check Updates
or
Component / Infinity Code / Online Maps / Check Updates.

Unitys now firing a "Destroying assets is not permitted to avoid data loss." error
Tileset scene, latest beta, dragged the map to a new area, it loads the images but then fires the above error.

Re: Cache Zoomed limit Only

Please send stack trace of error.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Cache Zoomed limit Only

Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
0   libsystem_c.dylib                   0x0000000098847c28 thread_stack_pcs + 11
1   Unity                               0x00000000024b1022 backtrace + 18
2   Unity                               0x00000000012cb5cb _Z13GetStacktracei + 91
3   Unity                               0x00000000012b7a4f _Z17DebugStringToFilePKciS0_iiiiPFvRK11CppLogEntryE + 223
4   Unity                               0x000000000116e233 _ZN9Scripting35DestroyObjectFromScriptingImmediateEP6Objectb + 147
5   [Mono JITed code]                   (wrapper managed-to-native) UnityEngine.Object:DestroyImmediate (UnityEngine.Object,bool) + 0x9a (0x1228a6510 0x1228a65d9) [0x116442660 - Unity Child Domain]
6   [Mono JITed code]                   UnityEngine.Object:DestroyImmediate (UnityEngine.Object) + 0x6e (0x1228a6470 0x1228a6502) [0x116442660 - Unity Child Domain]
7   [Mono JITed code]                   OnlineMapsTile:UnloadUnusedTiles () + 0x201 (0x12285a3f0 0x12285a9a7) [0x116442660 - Unity Child Domain]
8   [Mono JITed code]                   OnlineMaps:CheckBufferComplete () + 0x96 (0x121c281d0 0x121c28714) [0x116442660 - Unity Child Domain]
9   [Mono JITed code]                   OnlineMaps:LateUpdate () + 0xd1 (0x121c27fb0 0x121c281a8) [0x116442660 - Unity Child Domain]
10  [Mono JITed code]                   (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0xfa (0x1182f9290 0x1182f94bd) [0x116442660 - Unity Child Domain]
11  libmono.0.dylib                     0x0000000009bcc17a mono_get_runtime_build_info + 3654
12  libmono.0.dylib                     0x0000000009cf6416 mono_runtime_invoke + 117
13  Unity                               0x0000000001162b95 _ZN25ScriptingInvocationNoArgs6InvokeEPP13MonoException + 117
14  Unity                               0x0000000001162b19 _ZN25ScriptingInvocationNoArgs6InvokeEv + 25
15  Unity                               0x000000000113a3e7 _ZN13MonoBehaviour16CallUpdateMethodEi + 839
16  Unity                               0x0000000000d2a66c _ZN20BaseBehaviourManager12CommonUpdateI20LateBehaviourManagerEEvv + 508
17  Unity                               0x0000000001014831 _Z10PlayerLoopbbP10IHookEvent + 1937
18  Unity                               0x00000000019fb182 _ZN11Application11UpdateSceneEb + 722
19  Unity                               0x00000000019f8659 _ZN11Application19UpdateSceneIfNeededEv + 89
20  Unity                               0x00000000019f7ce7 _ZN11Application9TickTimerEv + 2967
21  Foundation                          0x000000009c8d4dec __NSFireTimer + 95
22  CoreFoundation                      0x000000008c1edb94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
23  CoreFoundation                      0x000000008c1ed823 __CFRunLoopDoTimer + 1075
24  CoreFoundation                      0x000000008c1ed37a __CFRunLoopDoTimers + 298
25  CoreFoundation                      0x000000008c1e4871 __CFRunLoopRun + 1841
26  CoreFoundation                      0x000000008c1e3ed8 CFRunLoopRunSpecific + 296
27  HIToolbox                           0x000000008b058935 RunCurrentEventLoopInMode + 235
28  HIToolbox                           0x000000008b058677 ReceiveNextEventCommon + 184
29  HIToolbox                           0x000000008b0585af _BlockUntilNextEventMatchingListInModeWithFilter + 71
30  AppKit                              0x000000009aea5df6 _DPSNextEvent + 1067
31  AppKit                              0x000000009aea5226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
32  AppKit                              0x000000009ae99d80 -[NSApplication run] + 682
33  AppKit                              0x000000009ae63368 NSApplicationMain + 1176
34  Unity                               0x0000000001c5d2d9 _Z10EditorMainiPPKc + 1401
35  Unity                               0x0000000001c5d999 main + 9
36  Unity                               0x0000000000001b94 start + 52

Re: Cache Zoomed limit Only

That's funny.
We fixed it.
Within 24 hours we will release an update.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Cache Zoomed limit Only

Hello.

Update is now available.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Cache Zoomed limit Only

Alex Vertax wrote:

Hello.

Update is now available.

Still getting the error, deleted project and did fresh import.
Tileset scene, Google maps, labels off, resources and online, use current zoom tiles, start scene, cache tiles, start scene again and drag map to move to new area - error appears.
Thanks, steve.

Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
UnityEngine.Object:DestroyImmediate(Object, Boolean)
UnityEngine.Object:DestroyImmediate(Object)
OnlineMapsUtils:DestroyImmediate(Object) (at Assets/Infinity Code/Online maps/Scripts/OnlineMapsUtils.cs:176)
OnlineMapsTile:UnloadUnusedTiles() (at Assets/Infinity Code/Online maps/Scripts/OnlineMapsTile.cs:503)
OnlineMaps:CheckBufferComplete() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:790)
OnlineMaps:LateUpdate() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1139)

[/Users/builduser/buildslave/unity/build/Runtime/Scripting/Scripting.cpp line 308] 
(Filename: Assets/Infinity Code/Online maps/Scripts/OnlineMapsUtils.cs Line: 176)
Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
0   libsystem_c.dylib                   0x000000009091ac28 thread_stack_pcs + 11
1   Unity                               0x00000000024b1022 backtrace + 18
2   Unity                               0x00000000012cb5cb _Z13GetStacktracei + 91
3   Unity                               0x00000000012b7a4f _Z17DebugStringToFilePKciS0_iiiiPFvRK11CppLogEntryE + 223
4   Unity                               0x000000000116e233 _ZN9Scripting35DestroyObjectFromScriptingImmediateEP6Objectb + 147
5   [Mono JITed code]                   (wrapper managed-to-native) UnityEngine.Object:DestroyImmediate (UnityEngine.Object,bool) + 0x9a (0x125f73930 0x125f739f9) [0x115c42330 - Unity Child Domain]
6   [Mono JITed code]                   UnityEngine.Object:DestroyImmediate (UnityEngine.Object) + 0x6e (0x125f73890 0x125f73922) [0x115c42330 - Unity Child Domain]
7   [Mono JITed code]                   OnlineMapsUtils:DestroyImmediate (UnityEngine.Object) + 0x90 (0x12e2a6350 0x12e2a6404) [0x115c42330 - Unity Child Domain]
8   [Mono JITed code]                   OnlineMapsTile:UnloadUnusedTiles () + 0x201 (0x125b71420 0x125b719d7) [0x115c42330 - Unity Child Domain]
9   [Mono JITed code]                   OnlineMaps:CheckBufferComplete () + 0x96 (0x1229e6ce0 0x1229e7224) [0x115c42330 - Unity Child Domain]
10  [Mono JITed code]                   OnlineMaps:LateUpdate () + 0xd1 (0x1229e6ac0 0x1229e6cb8) [0x115c42330 - Unity Child Domain]
11  [Mono JITed code]                   (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0xfa (0x118306290 0x1183064bd) [0x115c42330 - Unity Child Domain]
12  libmono.0.dylib                     0x0000000009bcc17a mono_get_runtime_build_info + 3654
13  libmono.0.dylib                     0x0000000009cf6416 mono_runtime_invoke + 117
14  Unity                               0x0000000001162b95 _ZN25ScriptingInvocationNoArgs6InvokeEPP13MonoException + 117
15  Unity                               0x0000000001162b19 _ZN25ScriptingInvocationNoArgs6InvokeEv + 25
16  Unity                               0x000000000113a3e7 _ZN13MonoBehaviour16CallUpdateMethodEi + 839
17  Unity                               0x0000000000d2a66c _ZN20BaseBehaviourManager12CommonUpdateI20LateBehaviourManagerEEvv + 508
18  Unity                               0x0000000001014831 _Z10PlayerLoopbbP10IHookEvent + 1937
19  Unity                               0x00000000019fb182 _ZN11Application11UpdateSceneEb + 722
20  Unity                               0x00000000019f8659 _ZN11Application19UpdateSceneIfNeededEv + 89
21  Unity                               0x00000000019f7ce7 _ZN11Application9TickTimerEv + 2967
22  Foundation                          0x00000000949a7dec __NSFireTimer + 95
23  CoreFoundation                      0x00000000842c0b94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
24  CoreFoundation                      0x00000000842c0823 __CFRunLoopDoTimer + 1075
25  CoreFoundation                      0x00000000842c037a __CFRunLoopDoTimers + 298
26  CoreFoundation                      0x00000000842b7871 __CFRunLoopRun + 1841
27  CoreFoundation                      0x00000000842b6ed8 CFRunLoopRunSpecific + 296
28  HIToolbox                           0x000000008312b935 RunCurrentEventLoopInMode + 235
29  HIToolbox                           0x000000008312b76f ReceiveNextEventCommon + 432
30  HIToolbox                           0x000000008312b5af _BlockUntilNextEventMatchingListInModeWithFilter + 71
31  AppKit                              0x0000000092f78df6 _DPSNextEvent + 1067
32  AppKit                              0x0000000092f78226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
33  AppKit                              0x0000000092f6cd80 -[NSApplication run] + 682
34  AppKit                              0x0000000092f36368 NSApplicationMain + 1176
35  Unity                               0x0000000001c5d2d9 _Z10EditorMainiPPKc + 1401
36  Unity                               0x0000000001c5d999 main + 9
37  Unity                               0x0000000000001b94 start + 52
 
(Filename: Assets/Infinity Code/Online maps/Scripts/OnlineMapsUtils.cs Line: 176)

Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
0   libsystem_c.dylib                   0x000000009091ac28 thread_stack_pcs + 11
1   Unity                               0x00000000024b1022 backtrace + 18
2   Unity                               0x00000000012cb5cb _Z13GetStacktracei + 91
3   Unity                               0x00000000012b7a4f _Z17DebugStringToFilePKciS0_iiiiPFvRK11CppLogEntryE + 223
4   Unity                               0x000000000116e233 _ZN9Scripting35DestroyObjectFromScriptingImmediateEP6Objectb + 147
5   [Mono JITed code]                   (wrapper managed-to-native) UnityEngine.Object:DestroyImmediate (UnityEngine.Object,bool) + 0x9a (0x125f73930 0x125f739f9) [0x115c42330 - Unity Child Domain]
6   [Mono JITed code]                   UnityEngine.Object:DestroyImmediate (UnityEngine.Object) + 0x6e (0x125f73890 0x125f73922) [0x115c42330 - Unity Child Domain]
7   [Mono JITed code]                   OnlineMapsUtils:DestroyImmediate (UnityEngine.Object) + 0x90 (0x12e2a6350 0x12e2a6404) [0x115c42330 - Unity Child Domain]
8   [Mono JITed code]                   OnlineMapsTile:UnloadUnusedTiles () + 0x201 (0x125b71420 0x125b719d7) [0x115c42330 - Unity Child Domain]
9   [Mono JITed code]                   OnlineMaps:CheckBufferComplete () + 0x96 (0x1229e6ce0 0x1229e7224) [0x115c42330 - Unity Child Domain]
10  [Mono JITed code]                   OnlineMaps:LateUpdate () + 0xd1 (0x1229e6ac0 0x1229e6cb8) [0x115c42330 - Unity Child Domain]
11  [Mono JITed code]                   (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0xfa (0x118306290 0x1183064bd) [0x115c42330 - Unity Child Domain]
12  libmono.0.dylib                     0x0000000009bcc17a mono_get_runtime_build_info + 3654
13  libmono.0.dylib                     0x0000000009cf6416 mono_runtime_invoke + 117
14  Unity                               0x0000000001162b95 _ZN25ScriptingInvocationNoArgs6InvokeEPP13MonoException + 117
15  Unity                               0x0000000001162b19 _ZN25ScriptingInvocationNoArgs6InvokeEv + 25
16  Unity                               0x000000000113a3e7 _ZN13MonoBehaviour16CallUpdateMethodEi + 839
17  Unity                               0x0000000000d2a66c _ZN20BaseBehaviourManager12CommonUpdateI20LateBehaviourManagerEEvv + 508
18  Unity                               0x0000000001014831 _Z10PlayerLoopbbP10IHookEvent + 1937
19  Unity                               0x00000000019fb182 _ZN11Application11UpdateSceneEb + 722
20  Unity                               0x00000000019f8659 _ZN11Application19UpdateSceneIfNeededEv + 89
21  Unity                               0x00000000019f7ce7 _ZN11Application9TickTimerEv + 2967
22  Foundation                          0x00000000949a7dec __NSFireTimer + 95
23  CoreFoundation                      0x00000000842c0b94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
24  CoreFoundation                      0x00000000842c0823 __CFRunLoopDoTimer + 1075
25  CoreFoundation                      0x00000000842c037a __CFRunLoopDoTimers + 298
26  CoreFoundation                      0x00000000842b7871 __CFRunLoopRun + 1841
27  CoreFoundation                      0x00000000842b6ed8 CFRunLoopRunSpecific + 296
28  HIToolbox                           0x000000008312b935 RunCurrentEventLoopInMode + 235
29  HIToolbox                           0x000000008312b76f ReceiveNextEventCommon + 432
30  HIToolbox                           0x000000008312b5af _BlockUntilNextEventMatchingListInModeWithFilter + 71
31  AppKit                              0x0000000092f78df6 _DPSNextEvent + 1067
32  AppKit                              0x0000000092f78226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
33  AppKit                              0x0000000092f6cd80 -[NSApplication run] + 682
34  AppKit                              0x0000000092f36368 NSApplicationMain + 1176
35  Unity                               0x0000000001c5d2d9 _Z10EditorMainiPPKc + 1401
36  Unity                               0x0000000001c5d999 main + 9
37  Unity                               0x0000000000001b94 start + 52
 
(Filename: Assets/Infinity Code/Online maps/Scripts/OnlineMapsUtils.cs Line: 176)

Re: Cache Zoomed limit Only

Hello.

We have reproduced the problem and fixed it.
Please update Online Maps.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.