You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-11-30 18:53:46

ATXcloud
Member
From: AUSTIN, TX USA
Registered: 2011-06-06
Posts: 67

Hiding or editing error message

Hi all,

Occasionally, most likely due to poor bandwidth, my audience will get an error messages.   The specific error is not important to me at the moment, rather, I am interested in locating the source code where I can either disable the message, or edit it... perhaps invoke an action to reload and relay a message to the audience.

Image below is an example of an error that I would like to never appear.

Thank you in advance!

- Andrew


Uploaded Images

Last edited by ATXcloud (2012-11-30 19:30:17)

Offline

 

#2 2012-12-01 20:20:33

ATXcloud
Member
From: AUSTIN, TX USA
Registered: 2011-06-06
Posts: 67

Re: Hiding or editing error message

So I've found this thread on the krpano forums... http://krpano.com/forum/wbb/index.php?p … r#post7257


except I'm having trouble still, locating the    showerrors="false" ... please forgive my inepitude.  Is there somehow ptp is hiding it?

Last edited by ATXcloud (2012-12-01 20:21:30)

Offline

 

#3 2012-12-01 23:13:30

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2670
Website

Re: Hiding or editing error message

ATXcloud wrote:

So I've found this thread on the krpano forums... http://krpano.com/forum/wbb/index.php?p … r#post7257


except I'm having trouble still, locating the    showerrors="false" ... please forgive my inepitude.  Is there somehow ptp is hiding it?

well - big_smile after drinking some Punch or similar it could be difficult to find the <krpano.....> block lol

line 4 of the main XML file build.xml:

Code:

<?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" onstart="startaction">

the warnings shown in your screenshot normally never Pop up without an additional error. the warnings shown in your example are ptp specific. so hopefully this is gone with ptp 2.x

PS: additional I would use in the krpano block the debugmode="false" and in your template files I would additional add the showerrors="false" to any <plugin....> statement

Liebe Gruesse,
Georg

Last edited by gkaefer (2012-12-01 23:16:41)

Offline

 

#4 2012-12-01 23:41:08

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2670
Website

Re: Hiding or editing error message

and you can do following too if working on/for an own template:

create a plugin named settings to place settings valid than for all other plgins. if you Change the to debug="true" than ist valid for all plugin:

Code:

    <settings name="themevars"
        debug="false"
        showerrors="false"
        (...)
    />

the normal plugins define with empty vaiables and when loading is finished and/or is clicked than the global variable is set inside the local plugin:

Code:

    <plugin name="soundON"
        showerrors=""
        debug=""
        (...)
        onclick="    (...)
            set(debug,get(settings[themevars].debug));
            "
        onloaded="(...)
            set(debug,get(settings[themevars].debug));
            "
    />

you also can create user defined Messages. in following example I created an acction which is autorotating the pano 180" if debug variable is enabled in settings plugin above now the errorwindow gets opened with showlog() and than user defined text is displayed with the trace command:

Code:

    <action name="sphere-360to180">
        if(step == 6, adjusthlookat(360) ); tween(view.hlookat,180,get(settings[themevars].slideshow-loop-pause-transition) ); wait(BLEND); inc(step); );
        if(step == 7, set(step,0); );
        if(    settings[themevars].debug==true,
            showlog();
            trace('--- action: ',%0,' ---');
            trace('sphere-360to180 is used.');
            );
    </action>

example (not with autorotating but with enabled debug & "pano-slideshow" Modus): http://gigapixel.at/test/build.html

Liebe Gruesse,
Georg

Last edited by gkaefer (2012-12-01 23:45:05)

Offline

 

#5 2012-12-03 08:26:03

bdd
Administrator
Registered: 2011-01-18
Posts: 621
Website

Re: Hiding or editing error message

Hello Andrew,

In your first screenshot you got a "Unable to activate spot" error.
This error is sent by the PanotourMaps plugin or by the floorplan plugin when you use them without any spot on them.
Just add a spot, and this error will not appear anymore.

The "loading errors" on your second screenshot are more annoying.
You can get them even in a good configuration, so Georg's solution may help you.

Gérald

Offline

 

#6 2012-12-07 04:55:07

ATXcloud
Member
From: AUSTIN, TX USA
Registered: 2011-06-06
Posts: 67

Re: Hiding or editing error message

Thank you both Georg & Gérald!  I'll try plugging in the code... all that was said makes sense.   I'm aways so grateful for the support Kolor community provides!  Cheers!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson