Lua Edu Tools v1.1 - DOWNLOAD link

Discuss Celestia's features, adaptations and Addons for use in educational environments
Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #21by Vincent » 27.02.2008, 18:28

Fenerit wrote:
Vincent wrote:Is there a specific reason for which you don't want to add your Mars images pathes in 'infoImage.lua'?
Was just a thought about further image add-ons and how to merge files as long as .ssc files are substituted by other .ssc's.


OK, so your infoMars file should look like this:

Code: Select all

-- Image filenames for my Mars:

infoImage["Mars1"] = "../images/mars/my_Mars1.png";
infoImage["Mars2"] = "../images/mars/my_Mars2.png";


This way, the new keys/values will be added in the infoImage table without overwriting the previous ones. In your infoMars example, the infoImage table was overwritten whenever you wrote:

Code: Select all

infoImage =
{
...
}


Then, you should add your requires directly at the beginning of the 'infoImage.lua' file, rather than modifying 'infoBox.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

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Post #22by Fenerit » 27.02.2008, 18:58

Well... I adbandon codingx...
Never at rest.
Massimo

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Post #23by Fenerit » 28.02.2008, 12:38

Vincent, if I make a subdir of the ..images directory, to say:

../images/solar_system/mercury

and into the infoImage.lua I write:

My_Mercury1 = "../images/solar_system/mercury/my_image_Mercury1.jpg";

and then I put that image,

nothing happen when loading Celestia > Mercury > Moreinfo.
Never at rest.
Massimo

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Post #24by Fenerit » 28.02.2008, 12:47

Ahhhh!!!... Found my mistake. "My_" string may be removed.
Never at rest.
Massimo

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

Re: Lua Edu Tools v1.0 - DOWNLOAD link

Post #25by Vincent » 24.04.2008, 12:13

Here's a link to the Lua Edu Tools v1.1 package:
http://vincent.gian.club.fr/celestia/Lu ... ls_1.1.zip

This is mainly a bugfix release, with one single new feature added over v1.0:
the travelling duration of the Custom Goto command (Shift + G) can now be set
in the config.lua file:

Code: Select all

-------------------------------------------------------------------------------------------------------
-- Define the travelling duration (in seconds) of the Custom Goto command, accessible by [Shift]+[G].
-------------------------------------------------------------------------------------------------------
custom_goto_duration = 20

The download link I provided in the first post and the subject of the thread have been updated.
@+
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

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Lua Edu Tools v1.1 - DOWNLOAD link

Post #26by Fenerit » 31.08.2008, 18:14

Hi Vincent, with the upgrade to the last Celestia's release (Cartrite) the LuaTools shows this behaviour, not present in the official 1.5.0 version:

Image

the coordinates do changes E to W... :wink:
Never at rest.
Massimo

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

Re: Lua Edu Tools v1.1 - DOWNLOAD link

Post #27by Vincent » 01.09.2008, 20:14

Fenerit wrote:Hi Vincent, with the upgrade to the last Celestia's release (Cartrite) the LuaTools shows this behaviour, not present in the official 1.5.0 version:

the coordinates do changes E to W... :wink:
Hi Massimo,

Thanks for the report. Anyway, the Lua Edu Tools are for use with Celestia 1.5.
I may release an updated version when Celestia 1.6 is out. I'll made the needed
change to correct 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

wrennoir
Posts: 3
Joined: 26.03.2005
With us: 19 years 7 months

Re: Lua Edu Tools v1.1 - DOWNLOAD link

Post #28by wrennoir » 03.10.2008, 08:16

Can't seem to get the Lua Edu Tools to work, get this error when start Celestia 1.5.1:
Fatal Error - error opening LuaHook 'luahookinit.lua'
Suggestions welcome, anyone?
Have installed Tools per instructions, changed celestia.cfg per instructions... must be missing something...
iBook G4, OSX v.10.4.11

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Lua Edu Tools v1.1 - DOWNLOAD link

Post #29by jogad » 03.10.2008, 15:12

Hi

Seems too obvious but are you sure the the file 'luahookinit.lua' is in the main directory of celestia ?

wrennoir
Posts: 3
Joined: 26.03.2005
With us: 19 years 7 months

Re: Lua Edu Tools v1.1 - DOWNLOAD link

Post #30by wrennoir » 03.10.2008, 23:49

Thanks, Jogad, but yes, it's in the main directory - /Celestia. Rats, was hoping it was that simple...

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

Re: Lua Edu Tools v1.1 - DOWNLOAD link

Post #31by Vincent » 04.10.2008, 07:34

wrennoir wrote:Can't seem to get the Lua Edu Tools to work, get this error when start Celestia 1.5.1:
Fatal Error - error opening LuaHook 'luahookinit.lua'
Suggestions welcome, anyone?
Have installed Tools per instructions, changed celestia.cfg per instructions... must be missing something...
iBook G4, OSX v.10.4.11
This error message is returned when the 'luahookinit.lua' file can't be found.
Could you please post a copy of the LuaHook definition line your celestia.cfg file ?

Also, the 'luahookinit.lua' file which is in your celestia base directory may have
been corrupted during the download process. You can try saving the following code
as 'luahookinit.lua' using your favourite text editor:

Code: Select all

-- luahookinit.lua

require "lua_edu_tools";

celestia:setluahook(lua_edu_tools);
@+
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 “Celestia in Education”