Page 1 of 2

Partial bug in Web Info on 1.5 pre 5

Posted: 26.12.2007, 11:01
by rthorvald
Up until pre 4, InfoUrls could call both HTML documents and Cel / Celx scripts. Now at pre 5 (compiled today), only HTML will work.
This was a nice feature, as it added a nice interactivity touch to Celestia before (incidentially, it also breaks my large project that i have been nagging the devs about for the last couple of years ;.-)

Tested the pre 5 on both Tiger and Leopard, so it is not OS spesific.

So, please bring it back for 1.5 final...

I have added it to the SourceForge tracker.

- rthorvald

Posted: 26.12.2007, 12:42
by BobHegwood
If I may...

The CEL function is also used by a few add-ons (more specifically
close-up VT's) in order to visit the particular location with the close-up.

Surely we don't wish to break all of these now do we?

Posted: 26.12.2007, 12:45
by rthorvald
This bug only affects the loading of cel / celx via the InfoUrl command, not loading of scripts in general.

- rthorvald

Posted: 26.12.2007, 12:51
by BobHegwood
rthorvald wrote:This bug only affects the loading of cel / celx via the InfoUrl command, not loading of scripts in general.

- rthorvald


Yes, I know...

Close-up VT's are using this technique though.

Look for yourself.

Posted: 26.12.2007, 12:53
by rthorvald
BobHegwood wrote:Close-up VT's are using this technique though.


Sorry, i misunderstood.

- rthorvald

Posted: 26.12.2007, 12:55
by BobHegwood
rthorvald wrote:
BobHegwood wrote:Close-up VT's are using this technique though.

Sorry, i misunderstood.

- rthorvald


Have a look at the Bora Bora close up by jdou, and you'll see what I
mean.

Posted: 03.01.2008, 12:44
by rthorvald
Can any of the devs comment on this issue? Is it going to be fixed?

- rthorvald

Posted: 03.01.2008, 14:25
by selden
rthorvald wrote:Is it going to be fixed?
- rthorvald


Not unless you submit a bug report in the Tracker on SourceForge for v1.5.

Be sure to include a fully functional failing example.
I don't think it's fair to ask the devs to try to guess what code you're trying to use.

Posted: 03.01.2008, 15:16
by rthorvald
selden wrote:
rthorvald wrote:Is it going to be fixed?
- rthorvald

Not unless you submit a bug report in the Tracker on SourceForge for v1.5.


I have done that, before i started this thread.
It is *not* possible to load Cel/CelX at all via the InfoUrl in the latest Celestia preversion, only HTML works.

- rthorvald

Posted: 03.01.2008, 22:09
by chris
I'll look into this now. Honestly, I had no idea that cel URLs could launch scripts.

EDIT: Do you have a sample add-on that used to work and now doesn't?

--Chris

Posted: 03.01.2008, 22:33
by rthorvald
chris wrote:Do you have a sample add-on that used to work and now doesn't?


My Ran project, of course... But that is not online, and too big to send.
As Bob mentions, VT closeups like the one he notes above.

But i have tested it thoroughly. It works in older Celestia versions (Pre 3 and older at least), but not in Pre 5.

It is easy to test. Just put a celx script in the infourl tag of any object, and see it works in older Celestias. I can certainly make one for you if you like, but it is quicker to just test it with anything at hand instead of downloading and install something from me.

- rthorvald

Posted: 03.01.2008, 23:24
by chris
rthorvald wrote:
chris wrote:Do you have a sample add-on that used to work and now doesn't?

My Ran project, of course... But that is not online, and too big to send.
As Bob mentions, VT closeups like the one he notes above.


Actually, I think that all I need to debug this is one sample SSC definition that uses a URL to invoke a script--I'd like to see exactly how you're doing it. Just paste it into a reply here in the forum.

Do I understand correctly that problem is only with InfoURLs and not cel URLs?

--Chris

Posted: 03.01.2008, 23:39
by BobHegwood
chris wrote:
Do I understand correctly that problem is only with InfoURLs and not cel URLs?

--Chris


Just the opposite, Chris...

The CEL URLs are the problem. See the Bora Bora add-on I referenced
earlier. It's located HERE.

Posted: 03.01.2008, 23:57
by chris
BobHegwood wrote:
chris wrote:
Do I understand correctly that problem is only with InfoURLs and not cel URLs?

--Chris

Just the opposite, Chris...

The CEL URLs are the problem. See the Bora Bora add-on I referenced
earlier. It's located HERE.


This is a different problem than the one that Runar is talking about. The add-on just uses a regular old cel URL, but unfortunately URLs produced with older versions of Celestia are not compatible with 1.5.0 due to a number of changes.

--Chris

Posted: 04.01.2008, 01:46
by rthorvald
chris wrote:Actually, I think that all I need to debug this is one sample SSC definition that uses a URL to invoke a script--I'd like to see exactly how you're doing it. Just paste it into a reply here in the forum.

Do I understand correctly that problem is only with InfoURLs and not cel URLs?

Yes, InfoUrls. Since they now can load local relative URLs, i started using them to load scripts from within Celestia that was topical to the object in question, but this ability disappeared with Pre 4 / Pre 5.

Here is a sample from Ran that used to work: it references a Celx document in a "media" dir inside the Ran Add-On dir (extras/addons/ran/media):

Code: Select all

"Orrery Dufa" "Ran/Bylgja/Bylgja Orbital/Orrery Ran"
   {
   Emissive   true
   Class "asteroid"
   Texture      "th_orr_01dufa.*"
   Radius 0.0007
   EllipticalOrbit {
      Period   0.0002456
      SemiMajorAxis    0.002
      MeanAnomaly   146.58
      }
   RotationPeriod   1681.31
   Obliquity   -21
   Albedo 0.1
   InfoURL "media/th_01dufa.celx"
   }


... In this example, i use the InfoUrl to start a CelX tour of the planet depicted in an orrery inside Celestia...

- rthorvald

Posted: 04.01.2008, 03:32
by BobHegwood
chris wrote:
This is a different problem than the one that Runar is talking about. The add-on just uses a regular old cel URL, but unfortunately URLs produced with older versions of Celestia are not compatible with 1.5.0 due to a number of changes.

--Chris


So what you're saying is that we can no longer specify - as an
example - that an add-on "works with Celestia 1.4.1 or later."

Thanks a lot... :cry:

And just FYI, I have had absolutely NO problems with InfoURLs. That
being said, however, I don't use them to perform a function that
they were not designed for.

Seems to me that this development team could use a better
organized approach to these matters.

Sorry, Brain-Dead

Posted: 04.01.2008, 06:36
by rthorvald
BobHegwood wrote:That
being said, however, I don't use them to perform a function that
they were not designed for.


Bob,
The InfoUrl cannot have been designed for HTML per se. There are a lot of file formats out there. Not all web pages are HTML - the one you are reading now, for example, is not.

Chances are that if one format, admittedly odd, does not work, then other formats may not, either.

- rthorvald

Posted: 04.01.2008, 11:23
by dirkpitt
Runar, it works for me.
Example: I edited "comets.ssc" in the extras directory. I added this line to the comet Hale-Bopp:

Code: Select all

    InfoURL "../scripts/tests/distanceto.celx"


This successfully finds distanceto.celx in the CelestiaResources/scripts/tests/ directory.

Posted: 04.01.2008, 11:49
by rthorvald
dirkpitt wrote:Runar, it works for me.


Strange. It does not work in my build from december 26. Neither in Tiger or Leopard (on intel).

Will make a new one tonight, and test... But from when is your latest?

- rthorvald

Posted: 04.01.2008, 13:46
by dirkpitt
Try getting a fresh copy from CVS. I'm having no problems with today's CVS.