Sie sind nicht angemeldet.

1

Mittwoch, 11. Januar 2012, 05:23

Need help with iOS Devices

It took me long to finally make a tour work on Desktop. I'm using v1.0.8.14. I thought that I had all the codes for iOS implemented, but simulator reported error "Fatal Error: plugins.xml - loading or parsing failed!"

I need help, attaché xml files.

I am new to all this, have no experience with XML/AC3 etc., so please explain it so a novice can understand.

Thanks

tour.xml
plugins.xml

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Mittwoch, 11. Januar 2012, 08:15

Hi,

when i have a quick look i should say change the <br /> to [br]...
*question*

Tuur *thumbsup*

HansNyb

Profi

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

3

Mittwoch, 11. Januar 2012, 12:37

The plugins.xml reports this:

This page contains the following errors:
error on line 146 at column 2: Extra content at the end of the document

As far as I can see that is just extra empty space.
Not sure why that gives error but iOS is very sensible to even the smallerst erros.

Hans

4

Donnerstag, 12. Januar 2012, 03:03

Sorry I was away.

Hi Tuur

I changed all <br/> to [br] but no luck! ?


Hans

I deleted all the lines & space and when opened in firefox got error as below-

Quellcode

1
2
3
4
5
6
XML Parsing Error: no element found
Location: file:///Volumes/Data/Downloads/plugins.xml
Line Number 141, Column 11:	

        </plugin>
-----------------^


I am clue less at this point, help!

When I open the tour.html in Safari, I get-

Quellcode

1
FATAL: pluins.xml - xml parser error: Unterminated element (#1096)

5

Donnerstag, 12. Januar 2012, 03:18

OK, now when I open plugins.xml in firefox I get -

Quellcode

1
2
3
XML Parsing Error: junk after document element
Location: file:///Volumes/Mac%20OS%20X%20Install%20ESD/1844WWW%20vtour/plugins.xml
Line Number 5, Column 2:


my plugins.xml -

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
	<!-- set the path to the default lensflare image -->
	<lensflareset name="DEFAULT" url="%SWFPATH%/plugins/krpano_default_flares.jpg" />
	
	<contextmenu>
		<item caption="Home VR"/>
		<item caption="custom text here"/>
		<item caption="Virtual Tour and Photography by Photographer" onclick="openurl('http://www.google.com/',_blank);"/>
  	</contextmenu>
  	
  	<!-- This is the style for poligonal hotspot hover -->
  	<textstyle name="default" font="Arial" fontsize="16" bold="true" italic="false" 
	           textcolor="0xffffff" background="false" backgroundcolor="16777215" border="false" bordercolor="0" 
	           alpha="1" blendmode="normal" effect="glow(0x000000,0.5,4,3);dropshadow(4,45,0x000000,4,0.66);" 
	           origin="cursor" edge="bottom" textalign="none" xoffset="0" yoffset="-3" noclip="true" showtime="0.1" fadetime="0" fadeintime="0" 
	           />

	<!-- text style for startup text -->
	<textstyle name="infostyle"
	           origin="center" edge="center" yoffset="-100" textalign="center" background="false" border="false"
	           fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
	           showtime="4.0" fadeintime="1.0" fadetime="1.0"
	           />
	           
	<!-- textfield intro screen -->
	<data name="info_html">
		<p>
			[br]
			Click and drag left mouse button right/left/up or down to look around.[br]
			[br]
			To view another room, use the drop-down menu at the top left corner of the screen.
			[br]
			[br]
			[br]
			<b>Click here to close this box</b>
			[br]
		</p>
	</data>
	
	<plugin name="info_text"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="data:info_html"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:10; margin-right:10; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="300"
	        height="155"
	        backgroundcolor="0x000000"
	        roundedge="15"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="center"
	        backgroundalpha="0.7"
	        x="0"
	        y="0"
	        autosize=""
	        onloaded="action(show_info_text);"
	        onclick="action(hide_info_text);"
	        />
	        
	<action name="show_info_text">
		set(plugin[info_button].enabled,false);
		set(plugin[info_text].alpha,0);
		set(plugin[info_text].textblur,15);
		set(plugin[info_text].blur,15); 
		set(plugin[info_text].visible,true);
		set(plugin[info_text].enabled,true);
		tween(plugin[info_text].alpha,1,0.3); 
		tween(plugin[info_text].textblur,0,0.3); 
		tween(plugin[info_text].blur,0,0.3);
	</action>
	
	<action name="hide_info_text">
		set(plugin[info_text].enabled,false);
		set(plugin[info_button].enabled,true);
		tween(plugin[info_text].alpha,0,0.3,null,set(plugin[info_text].visible,false)); 
		tween(plugin[info_text].textblur,20,0.3); 
		tween(plugin[info_text].blur,20,0.3);
	</action>
	
	<!-- fullscreen and autorotate button  -->
	<style name="button"
		url="%SWFPATH%/plugins/textfield.swf"
		keep="true"
		children="false"
		height="22"
		onloaded="set(alpha,0); set(textblur,15); set(blur,15); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
		onover="tween(alpha,0.7,distance(0.3,0.2));"
		onout="tween(alpha,1.0,distance(0.3,0.2));"
		autosize="none"
		css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
		background="true" backgroundcolor="0x000000" backgroundalpha="0.7"
		bordercolor="0" borderwidth="0"
		blur="0"
		glow="4"
		glowcolor="16777215"
		roundedge="5"
		shadow="1"
		textblur="0" textglow="0" textglowcolor="16777215" textshadow="0"
	/>

	<plugin name="fullscreen_button" 
		style="button"
		align="righttop" x="180" y="10" width="120"
		html="[p]Fullscreen[/p]"
		onclick="switch(fullscreen); if(fullscreen, set(html,[p]Exit Fullscreen[/p]), set(html,[p]Fullscreen[/p]));"
	/>

	<plugin name="autorotation_button" 
		style="button"
		align="righttop" x="30" y="10" width="120"
		html="[p]Autorotate[/p]"
		onclick="switch(autorotate.enabled); if(autorotate.enabled, set(html,[p]Autorotate OFF[/p]), set(html,[p]Autorotate[/p]));"
	/>
	
	<!-- combobox plugin including iPhone/iPad -->
	!-- use differnt styles to set different combobox styles/sizes for differnt devices (in this example all default values were used) -->
	<style name="combobox" devices="desktop|flash" rowcount="12" url="%SWFPATH%/plugins/combobox.swf" alturl="%SWFPATH%/plugins/combobox_source.js" native="false" />
	<style name="combobox" devices="iphone"        url="%SWFPATH%/plugins/combobox.js" cbdesignscale="auto" cbfont="Arial" cbfontsize="auto" cbfontstyle="normal" cbpadding="8" itemfont="Arial" itemfontsize="16" itemfontstyle="normal" itempadding="10" />
	<style name="combobox" devices="ipad"          url="%SWFPATH%/plugins/combobox.js" cbdesignscale="auto" cbfont="Arial" cbfontsize="auto" cbfontstyle="normal" cbpadding="8" itemfont="Arial" itemfontsize="16" itemfontstyle="normal" itempadding="10" />
	
	!-- caption is used in drop-down menu   -->
	<plugin name="cb" style="combobox" align="lefttop" x="10" y="10" width="90" keep="true">
		<item name="scene_Home" caption="Home" onclick="loadscene(scene_Home,null,MERGE,BLEND(1));" />
    	<item name="scene_Dinning" caption="Dinning" onclick="loadscene(scene_Dinning,null,MERGE,BLEND(1));" />
		<item name="scene_Kitchen" caption="Kitchen" onclick="loadscene(scene_Kitchen,null,MERGE,BLEND(1));" />
    	<item name="scene_Living" caption="Living" onclick="loadscene(scene_Living,null,MERGE,BLEND(1));" />
		<item name="scene_Bar" caption="Bar" onclick="loadscene(scene_Bar,null,MERGE,BLEND(1));" />
    	<item name="scene_Deck" caption="Deck" onclick="loadscene(scene_Deck,null,MERGE,BLEND(1));" />
		<item name="scene_Hallway" caption="Hallway" onclick="loadscene(scene_Hallway,null,MERGE,BLEND(1));" />
    	<item name="scene_Master" caption="Master Bed" onclick="loadscene(scene_Master,null,MERGE,BLEND(1));" />
		<item name="scene_Batht" caption="Master Bath" onclick="loadscene(scene_Batht,null,MERGE,BLEND(1));" />
    	<item name="scene_Guest" caption="Guest" onclick="loadscene(scene_Guest,null,MERGE,BLEND(1));" />
		<item name="scene_Bed" caption="Bed" onclick="loadscene(scene_Bed,null,MERGE,BLEND(1));" />
		<item name="scene_Studio" caption="Studio" onclick="loadscene(scene_Studio,null,MERGE,BLEND(1));" />
	</plugin>
	

	
	
	
	



What do I do to fix that?

Thanks

6

Donnerstag, 12. Januar 2012, 04:01

Add
<krpano> to the top

and

</krpano> to the bottom of your plugins.xml. What you posted checked out for me in Firefox with just those additions.

If you still have issues, be sure you have this on each xml file you include and check each one separately in Firefox to check for errors.

7

Donnerstag, 12. Januar 2012, 18:51

Thank you Jarredja, it worked! *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »yoshiharra« (12. Januar 2012, 23:32)


360boy

Fortgeschrittener

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

8

Montag, 25. März 2013, 22:25

Worked for me also. As easy and as hard as that, thanks Jarredja! *thumbup*