Page 1 of 1

Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 12.03.2010, 17:02
by homeuser
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?

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 12.03.2010, 18:32
by Vincent
Did you try installing the default Lua Edu Tools package with the default Celestia distribution ?
> viewtopic.php?f=11&t=13162&start=68

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 12.03.2010, 19:03
by homeuser
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...

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 12.03.2010, 20:08
by homeuser
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!!!!

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 13.03.2010, 12:07
by Vincent
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".

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 13.03.2010, 19:37
by homeuser
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

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 13.03.2010, 21:43
by homeuser
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....

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 14.03.2010, 09:39
by Vincent
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...

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 14.03.2010, 11:42
by homeuser
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

Re: Celestia 160 ED / Lua_Edu_Tools - fatal error

Posted: 14.03.2010, 21:39
by homeuser
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.