Bug with bodies names as the empty string. [fixed]

Report bugs, bug fixes and workarounds here.
Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Bug with bodies names as the empty string. [fixed]

Post #1by Vincent » 18.11.2007, 20:37

Bodies whose name is defined as the empty string "" in a .ssc appear very strangely in the Windows contextual Menu. This bug can be repoduced with ElChristou's Soyouz addon.

Here's an extract of the scc definition:

Code: Select all

"Soyuz TMA" "Sol/Earth"
"" "Sol/Earth"
{
   Class "spacecraft" 
   Mesh "So2.cmod"
   Radius 0.00375

   EllipticalOrbit
   {
      Period       0.06175
         SemiMajorAxis    6600
      Inclination    51.7
      Eccentricity    0.00380
   }

   Obliquity 50
   Orientation [-90 0 0 1]
   RotationOffset -90
}

"" "Sol/Earth"
{
   Class "spacecraft" 
   Mesh "So3.cmod"
   Radius 0.00375

   EllipticalOrbit
   {
      Period       0.06175
         SemiMajorAxis    6600
      Inclination    51.7
      Eccentricity    0.00380
   }

   Obliquity 50
   Orientation [-90 0 0 1]
   RotationOffset -90


When right-clicking on Earth to bring up the contextual menu and select Soyouz, 2 long lines appear, and when one is selected, some text about internationalization appears in the Selection overlay elements:

Image

The bug also occures when displaying the label of the object:
Image

This bug disappears when the 2 bodies are named with anything else than the empty string.
Last edited by Vincent on 21.11.2007, 18:46, edited 2 times in total.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

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

Post #2by chris » 18.11.2007, 20:42

Vincent,

This is a weird one, but probably easy to fix.

Could you open a bug for it on the SourceForge tracker?

--Chris

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #3by Vincent » 18.11.2007, 20:45

chris wrote:Vincent,

This is a weird one, but probably easy to fix.

Could you open a bug for it on the SourceForge tracker?

Chris,

Yes, of course, I'll add a bug report on the SourceForge tracker as well.
Last edited by Vincent on 18.11.2007, 20:48, edited 1 time in total.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #4by ElChristou » 18.11.2007, 20:48

Vince, have you tried with the CSM? it do have a "" entry in it's ssc...
Image

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #5by Vincent » 18.11.2007, 20:52

ElChristou wrote:Vince, have you tried with the CSM? it do have a "" entry in it's ssc...

Christophe,

Can't find it on my disk...
Could you point me to a download link, please ?
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #6by ElChristou » 18.11.2007, 20:54

Vincent wrote:
ElChristou wrote:Vince, have you tried with the CSM? it do have a "" entry in it's ssc...
Christophe,

Can't find it on my disk...
Could you point me to a download link, please ?


http://nho.ohn.free.fr/celestia/preview/EC_Apollo_Pre.zip
Image

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #7by Vincent » 18.11.2007, 20:57


OK, thanks. I'm downloading it right now...
Let you know in a few minutes...
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #8by Vincent » 18.11.2007, 21:08

Chistophe,

There's no object defined as the empty string in the Apollo .ssc declaration.
However, replacing "Apollo 11a" with the empty string "" confirms the bug:
Image

Actually, the text which is displayed corresponds to the translation of the empty string "" in fr.po:
msgid ""
msgstr ""
"Project-Id-Version: fr\n"
"Report-Msgid-Bugs-To: chris@teyssier.org\n"
"POT-Creation-Date: 2007-11-03 00:02+0100\n"
"PO-Revision-Date: 2007-11-03 00:05+0100\n"
"Last-Translator: Christophe Teyssier <chris@teyssier.org>\n"
"Language-Team: Fran?§ais <fr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #9by ElChristou » 18.11.2007, 22:52

Vincent wrote:Chistophe,

There's no object defined as the empty string in the Apollo .ssc declaration.
However, replacing "Apollo 11a" with the empty string "" confirms the bug:...


Ah yes, sorry I thought I use the same method...

Anyway I suppose this bug will find a fix so I suppose I can keep the "" declaration for future models... (to avoid this annoying Apollo 11a for example...)
Image

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #10by Vincent » 21.11.2007, 13:50

I've chased this bug off the popup menu and the label renderer.

However, it still occures in the Solar System Browser:
Image

Christophe,

Isn't there a way to fix this bug directly in the po file rather than adding all these filters in the code ?
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

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

Post #11by BobHegwood » 21.11.2007, 14:11

Sorry, but can't you simply use an empty location (like barycenter,
Class "invisible") defined with an empty 3ds model to avoid all of this
stuff altogether?

Just asking, because I did that recently in order to remove the
blank selection entries on Celestia's orbiting bodies selection menu. I
HATE an empty selection line wasting space on my Celestia menu. :wink:
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
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #12by Vincent » 21.11.2007, 14:19

BobHegwood wrote:I HATE an empty selection line wasting space on my Celestia menu. :wink:

Bob,

Objects defined with the "Invisible" class are not rendered, which can cause some problems... :wink:

I just removed the bug from the Solar System Browser too.
With this fix, empty string won't appear anymore in the browser. :)
Objects named as a blank space string " " will still appear, though.
Then, it's up to addons creators to avoid this...
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

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

Post #13by BobHegwood » 21.11.2007, 14:55

Okay, THANKS very much Vincent... :lol:
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

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #14by Chuft-Captain » 21.11.2007, 18:06

When right-clicking on Earth to bring up the contextual menu and select Soyouz, 2 long lines appear, and when one is selected, some text about internationalization appears in the Selection overlay elements:

Just to let you know, I encountered this problem with rthorvald's space elevator version 2 (inn 1.5.0pre3 I think), but haven't noticed any similar problems with the Island One addon (in 1.5.0pre4).
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #15by Vincent » 21.11.2007, 18:44

Chuft-Captain wrote:Just to let you know, I encountered this problem with rthorvald's space elevator version 2 (inn 1.5.0pre3 I think), but haven't noticed any similar problems with the Island One addon (in 1.5.0pre4).

Thanks CC.

The bug is now fixed in CVS.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3


Return to “Bugs”