Partial bug in Web Info on 1.5 pre 5

Report bugs, bug fixes and workarounds here.
Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Partial bug in Web Info on 1.5 pre 5

Post #1by rthorvald » 26.12.2007, 11:01

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
Image

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #2by BobHegwood » 26.12.2007, 12:42

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?
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #3by rthorvald » 26.12.2007, 12:45

This bug only affects the loading of cel / celx via the InfoUrl command, not loading of scripts in general.

- rthorvald
Image

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #4by BobHegwood » 26.12.2007, 12:51

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.
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #5by rthorvald » 26.12.2007, 12:53

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


Sorry, i misunderstood.

- rthorvald
Image

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #6by BobHegwood » 26.12.2007, 12:55

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.
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #7by rthorvald » 03.01.2008, 12:44

Can any of the devs comment on this issue? Is it going to be fixed?

- rthorvald
Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #8by selden » 03.01.2008, 14:25

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.
Selden

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #9by rthorvald » 03.01.2008, 15:16

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
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #10by chris » 03.01.2008, 22:09

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

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #11by rthorvald » 03.01.2008, 22:33

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
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #12by chris » 03.01.2008, 23:24

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

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #13by BobHegwood » 03.01.2008, 23:39

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.
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #14by chris » 03.01.2008, 23:57

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

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #15by rthorvald » 04.01.2008, 01:46

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
Image

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #16by BobHegwood » 04.01.2008, 03:32

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
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #17by rthorvald » 04.01.2008, 06:36

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
Image

Avatar
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 20 years 1 month

Post #18by dirkpitt » 04.01.2008, 11:23

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.

Topic author
rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #19by rthorvald » 04.01.2008, 11:49

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
Image

Avatar
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 20 years 1 month

Post #20by dirkpitt » 04.01.2008, 13:46

Try getting a fresh copy from CVS. I'm having no problems with today's CVS.


Return to “Bugs”