Celestia 160 ED / Lua_Edu_Tools - fatal error

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
homeuser
Posts: 8
Joined: 12.03.2010
With us: 14 years 11 months

Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #1by homeuser » 12.03.2010, 17:02

I just cant get lua_tools to work. When i instal Celestia ED it comes by default with Lua_Edu_Tools but this does not work (for me at least).
I get this error msg: extra/lua_edu_tools.lua:133: attempt to concatenate global`lang?(a nil value)

Can someone please help me to get this addon to work?

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years 1 month
Location: Nancy, France

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #2by Vincent » 12.03.2010, 18:32

Did you try installing the default Lua Edu Tools package with the default Celestia distribution ?
> viewtopic.php?f=11&t=13162&start=68
@+
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
homeuser
Posts: 8
Joined: 12.03.2010
With us: 14 years 11 months

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #3by homeuser » 12.03.2010, 19:03

hmmm not sure if i understand what you mean, but when I installed celestia ed it came with Lua Edu Tools package extracted to the extra folder.

I have tried to download and install the Lua Edu Tools to the standard celestia folder but same problem. could something be wrong with the files on the net? cause the "light" version works fine - the lua_plugins

it drives me insane to figure this thing out...

Topic author
homeuser
Posts: 8
Joined: 12.03.2010
With us: 14 years 11 months

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #4by homeuser » 12.03.2010, 20:08

I think i figured it out:

The lua script didnt find my language - Norway (No).. In the config file I edited: language = "system_default"
to language = "en" Now it starts fine :)
weeeeeeeeeeeee

Lua_Edu_Tools is a sweet addon, im looking forward to playing around with it!!!!

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years 1 month
Location: Nancy, France

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #5by Vincent » 13.03.2010, 12:07

Thanks for reporting this issue. I could indeed reproduce it by setting my system locale language to Norwegian.
I just fixed it and the Lua Edu Tools package has been updated consequently. Now, the language is automatically
set to English when no translation is found, even with language = "system_default" in config.lua.

Edit: There's no need to reinstall the whole stuff.
The only file which needs to be replaced is "locale/locale.lua".
@+
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
homeuser
Posts: 8
Joined: 12.03.2010
With us: 14 years 11 months

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #6by homeuser » 13.03.2010, 19:37

Nice.. I really your luatools its the best addon for celestia :)

btw have seen the Nearest_stars addon? how bout adding that to the lua tools?
i think that would work great with an on/off switch

Topic author
homeuser
Posts: 8
Joined: 12.03.2010
With us: 14 years 11 months

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #7by homeuser » 13.03.2010, 21:43

Ahhhh I can see that you already have it, in an Addon pack:)

I downloaded and tried to insall it as instructed by the readme (remove/replace config remove/replace adds) and add images/tools/utils)
but this messed up my lua tool sidebar:(
stuck again....

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years 1 month
Location: Nancy, France

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #8by Vincent » 14.03.2010, 09:39

homeuser wrote:Ahhhh I can see that you already have it, in an Addon pack:)

I downloaded and tried to insall it as instructed by the readme (remove/replace config remove/replace adds) and add images/tools/utils)
but this messed up my lua tool sidebar:(
stuck again....
I just tried to add the Nears Stars addon to the Lua Edu Tools and it worked great.

The procedure is quite straightforward:
1- Copy/Paste the whole "adds/Near_stars/" folder from the Addon Pack to the "adds/" folder of the Lua Edu Tools.
2- Add the following line to your config.lua file.
adds =
{
    "Asteroid_Belt",
    "Large_Scale_Universe",
    "Galactic_Center",
    "Dying_Sun",
    "Atmosphere_Composition",
    "Political_Borders",
    "Meteorite_Impacts",
    "Earth_Volcanoes",
    "Earthquakes",
    "Near_stars"
}

That should do it...
@+
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
homeuser
Posts: 8
Joined: 12.03.2010
With us: 14 years 11 months

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #9by homeuser » 14.03.2010, 11:42

I got it to work now (including all the other adds)
But the near_star addon in the lua_tool_addon is diffrent from the original near_stars.
when I start it in lua tools it does not label the stars and some of the stars are not showing

Topic author
homeuser
Posts: 8
Joined: 12.03.2010
With us: 14 years 11 months

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Post #10by homeuser » 14.03.2010, 21:39

Ahhh i just got it to work. I prob. Did something wrong. Thanks for all the help. You have done great work on the lua_tools.


Return to “Help Central”