Sie sind nicht angemeldet.

1

Freitag, 31. August 2012, 17:27

Nadirpatch mit KRPano: XML Error auf dem Smartphone

Hallo Communtiy,

folgendes Problem. Wenn ich mit Panotour Pro 1.8 einen Nadirpatch ins Pano einbinden und dann das Pano exportiere (Smartphone kompatibel usw.) kann ich den Nadirpatch sehen (sowohl PC als auch Smartphone) und auch die Tour selber funktioniert auf allen Geräten.

Wenn ich jedoch den Nadirpatch als Hotspot mit KRPano einbinden, funktioniert die Tour nur noch auf dem PC. Auf dem Smartphone gibt es einen XML Error. Sobald ich den Nadirpatch rausnehme, funktioniert die Tour wieder auf beiden Geräten.

Gibt es dafür schon eine Lösung. Habe im Forum gesucht, jedoch nichts gefunden!

Danke für eure Hilfe im Voraus!

gruß
real-napster

2

Freitag, 31. August 2012, 21:15

Die HTML5 Variante von krpano verzeiht weniger Fehler und reagiert öfter mit einem xml-Error.
Wenn Du mal den xml Code postest wird sich der Fehler sicher schnell finden lassen...

Viele Grüße
Marcus

3

Montag, 3. September 2012, 11:30

Hier das Standard-XML (So funktioniert es auf dem Smartphone/Tablet)

Zitat


<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<!-- Generated By Kolor Panotour 1.8.0 -->
<krpano version="1.0.8.14" logkey="false" showerrors="false">
<!--<plugin name="editor" url="plugins/editor.swf" keep="true" />
<plugin name="options" url="plugins/options.swf" keep="true" />-->
<include url="text.xml" keep="true" />
<action name="mainloadpano">
closepanoobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
</action>
<plugin name="gyro" url="panotourdata/graphics/gyro.js" devices="ipad|iphone" keep="true" enabled="true"/>
<!--************** KrPano Pluginsund Daten ****************************************************-->
<plugin name="data" introImageHasBeenPlayed="false" keep="true"/>
<!--************** Das erste Pano öffnen ******************************************************-->
<include url="panotour0.xml"/>
<autorotate enabled="false"/>
<!--************** Schriftarten ***************************************************************-->
<textstyle name="DEFAULT" bold="false" font="Arial Narrow" fontsize="16" italic="false" textcolor="0xffffffff"/>
<!--************** Einführung *****************************************************************-->
<plugin name="introimage" url="panotourdata/graphics/introImage.jpg" align="center" onclick="hideintroimage();" onloaded="autohideintroimage();" height="prop" width="100%"/>
<action name="hideintroimage">
if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
</action>
<action name="autohideintroimage">
if(plugin[data].introImageHasBeenPlayed==false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
delayedcall(3, hideintroimage() );
set(plugin[data].introImageHasBeenPlayed,true););
</action>
<!--************** Logos **********************************************************************-->
<plugin name="logo-360ig" url="panotourdata/graphics/logo1.png" keep="true" align="righttop" x="10" y="10" width="231" height="50" onclick="openurl(http://www.360ig.de/,_blank)"/>
<!--************** Menü ***********************************************************************-->
<plugin name="in" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(fov_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="panotourdata/graphics/menu/menu0.png" width="40" x="-140" y="10"/>
<plugin name="out" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(fov_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="panotourdata/graphics/menu/menu1.png" width="40" x="-100" y="10"/>
<plugin name="left" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(hlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="panotourdata/graphics/menu/menu2.png" width="40" x="-60" y="10"/>
<plugin name="right" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(hlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="panotourdata/graphics/menu/menu3.png" width="40" x="-20" y="10"/>
<plugin name="up" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(vlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="panotourdata/graphics/menu/menu4.png" width="40" x="20" y="10"/>
<plugin name="down" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" ondown="set(vlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="panotourdata/graphics/menu/menu5.png" width="40" x="60" y="10"/>
<plugin name="home" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));" onout="" onover="" onovercrop="0|65|65|65" url="panotourdata/graphics/menu/menu6.png" width="40" x="100" y="10"/>
<plugin name="openfs" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,true);" onout="" onover="" onovercrop="0|65|65|65" url="panotourdata/graphics/menu/menu7.png" width="40" x="140" y="10"/>
<plugin name="closefs" align="bottom" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,false);" onout="" onover="" onovercrop="0|65|65|65" url="panotourdata/graphics/menu/menu8.png" visible="false" width="40" x="140" y="10"/>
<events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/>
<!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
<action name="interruptAnimation">
ifnot (stopSequence === undefined,
set(stopSequence, true);
wait(0);
);
</action>
<events onxmlcomplete="action(qtvrcursor);" />
<action name="qtvrcursor">
set(control.mousetype, moveto);
set(cursors.url, bilder/cursor.png);
set(cursors.type, 8way);
set(cursors.move, 0|0|16|16);
set(cursors.drag, 16|0|16|16);
set(cursors.arrow_u, 32|0|16|16);
set(cursors.arrow_d, 48|0|16|16);
set(cursors.arrow_l, 64|0|16|16);
set(cursors.arrow_r, 80|0|16|16);
set(cursors.arrow_lu, 96|0|16|16);
set(cursors.arrow_ru, 112|0|16|16);
set(cursors.arrow_rd, 128|0|16|16);
set(cursors.arrow_ld, 144|0|16|16);
</action>
</krpano>
Und wenn ich diesen Nadirpatch einfüge, dann funktioniert es nicht mehr:

Zitat


<hotspot name="nadir" devices="all"
url="bilder/nadir_point-little.png"
keep="false"
atv="90"
distorted="true"
scale="1.0"
rotate="0.0"
rotatewithview="true"
zoom="false" distorted="false" details="8" flying="0"
rx="0" ry="0" rz="0"
edge="center" ox="" oy=""
crop="" ondowncrop="" onovercrop=""
alpha="1.00" autoalpha="false" blendmode="normal" effect="" smoothing="true" pixelhittest="false"
visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true" maskchildren="false"
zorder="0"
refreshrate="auto"
onloaded=""
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick="openurl(http://www.facebook.com/,_blank)"
/>

4

Montag, 3. September 2012, 11:47

In so einem Fall ziehst du die verdächtige XML-Datei direkt in Safari als Testumgebung. Dann erhältst du eine Fehlermeldung mit Zeilenangabe. Letztere ist zwar nicht immer genau die Fehlerstelle, aber zusammen mit der Fehlermeldung hast du dann einen Anhaltspunkt. In deinem Falle:


"This page contains the following errors:

error on line 26 at column 1: Attribute distorted redefined
Below is a rendering of the page up to the first error."


Entscheidend hier also: Du hast distorted zwei mal angegeben, noch dazu mit unterschiedlichen Werten - letzteres ist aber nicht erheblich für den XML-Error, nur für die Funktion ;-)

Die doppelte Parameterangabe ist nach meiner Erfahrung die häufigste Ursache.
http://www.premiumpano.de
 
Unterstützerlink für eine andere Weltsicht: http://www.worldmapper.org/
Heiteres Augenöffnen für die deutsche Medienlandschaft oder: was man mit Bild und Text nicht alles anstellen kann http://www.bildblog.de/

5

Montag, 3. September 2012, 12:33

Boah, krass! Da hast du recht! Ist mir gar nicht aufgefallen, dann werde ich mal die 2te Angabe entfernen und dann berichten, ob es auf Smartphone/Tablet und PC funktioniert!

Danke schonmal im Voraus!

Ähnliche Themen

Verwendete Tags

Error, krpano, nadirpatch, Smartphone, xml