Guys, hi
just stuck on the basic stuff. Can't debug.
version of krpano 1.20.10 (build 2021-10-01)
and / or
version of krpano 1.20.11 (build 2022-03-07)
running on MAMP local mac server
Brave Version 1.37.109 Chromium: 100.0.4896.60 (Official Build) (x86_64)
and / or
Chrome Version 99.0.4844.84 (Official Build) (x86_64)
Fun that the file with scenes loaded by include, and 0 scene is loaded. As usual with:
|
Quellcode
|
1
2
3
4
|
...
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name););
loadscene(get(startscene), null, MERGE, LIGHTBLEND(0.77, 0xFFFFFF, 2.0 easeincubic));
...
|
But than simple
loadscene() action just fall down with:
|
Quellcode
|
1
2
3
|
...
onclick="loadscene(scene_NameOfTheScene);"
...
|
ERROR: loadscene() - scene "scene_NameOfTheScene" not found
Even if tried load the same 0 scene again, which already loaded, error comes up..
|
Quellcode
|
1
2
3
|
...
onclick="loadscene(get(scene[0].name));"
...
|
Did some action which trace list of scene and load some scene. Scene name given as parameter to test_scene_load() action. So whole scene names printed, but same error. So action
can see the scenes and their names but
loadscene() can't.
Tried to convert scene name
tolower() before
loadscene() the same error.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<action name="test_scene_load">
trace("TEST LOADSCENE");
trace(%1);
set(lowcase_scene_name, %1);
tolower(lowcase_scene_name);
trace(lowcase_scene_name);
loadscene(get(scene[%1].name));
loadscene(%1);
loadscene(get(lowcase_scene_name));
for(set(sc_no, 0), sc_no LT scene.count, inc(sc_no),
trace(get(scene[get(sc_no)].name));
);
</action>
|
Tried delete startscene at the end of
startup() action:
|
Quellcode
|
1
2
3
|
...
delete(startscene);
</action>
|
How it's even possible?
How else to debug?
Any guess please.