Lua Edu Tools fatal error on start up

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
Banjo-Jim
Posts: 2
Joined: 28.08.2009
With us: 15 years 5 months

Lua Edu Tools fatal error on start up

Post #1by Banjo-Jim » 28.08.2009, 16:04

Dear Friends,
I'm running Celestia 1.5.1 on a MacBook Pro under Mac OS X 10.5.2. I downloaded and installed Vincet Gianguilio's Lua Edu Tools 1.1 as per the instructions. However when I start Celestia I get the error message "Fatal error. Error opening LuaHook "luahookinit.lua'"
Thank you in advance for any suggestions.
Jim Foerch
James C. Veen Observatory
Lowell, Michigan, USA

Avatar
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 11 months

Re: Lua Edu Tools fatal error on start up

Post #2by Adirondack » 28.08.2009, 22:09

Welcome Banjo-Jim,

did you paste the 'luahookinit.lua' file in your Celestia root folder and
add this line to your celestia.cfg file:?

Code: Select all

   Configuration
   {
   LuaHook "luahookinit.lua" # <-- Line to add
   ...

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Topic author
Banjo-Jim
Posts: 2
Joined: 28.08.2009
With us: 15 years 5 months

Re: Lua Edu Tools fatal error on start up

Post #3by Banjo-Jim » 29.08.2009, 18:57

Thank you for replying, Adirondack. Yes, I did paste the 'luahookinit.lua' file in your Celestia root folder and
add the line "LuaHook "luahookinit.lua" # <-- Line to add" to my celestia.cfg file. I still get the "fatal error opening luahookinit.lua and have to exit Celestia.
Do you have any suggestions for me to try? Thank you.
Jim

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

Re: Lua Edu Tools fatal error on start up

Post #4by Vincent » 29.08.2009, 19:13

Banjo-Jim wrote:Thank you for replying, Adirondack. Yes, I did paste the 'luahookinit.lua' file in your Celestia root folder and
add the line "LuaHook "luahookinit.lua" # <-- Line to add" to my celestia.cfg file. I still get the "fatal error opening luahookinit.lua and have to exit Celestia.
Do you have any suggestions for me to try? Thank you.
Jim
Hello Jim,

The Lua Edu Tools v1.1 have been successfully tested on Mac OS X, so they should work on your system.
The 'luahookinit.lua' file may be corrupted, so you may want to try downloading and installing the package
once again.
@+
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

omarman
Posts: 7
Joined: 29.10.2009
With us: 15 years 3 months

Re: Lua Edu Tools fatal error on start up

Post #5by omarman » 29.10.2009, 10:08

Hi,
I have downloaded and installed Lua-Edu-Tool in the way described in the Readme file.
However I cannot see anything on the Celestia screen, neither in windows-mode nor in full screen.
The activation key Shift+i does not seems to work, it turns on/off the clouds.
I am running Celcstia 1.6, on an iMac 20" 2.4Ghz Intel2Core 2GB memory 1TB disc, using SnowLeopard 1.6.1.

I have also tested this on a Win7 RC64bit running under VirtualBox, and here the toolbox can be seen on the right side of the screen, only in windows-mode, the full-screen option terminates Celestia.
The graphic virtual-pad is not shown.

Can you please inform what I do wrong?

Regards, Oivind Marman, Oslo, Norway

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

Re: Lua Edu Tools fatal error on start up

Post #6by Vincent » 29.10.2009, 12:21

Hi ?ivind,

The Lua Edu Tools are displayed only when both of these conditions are true:
- The screen width is superior to 790
- The screen height is superior to the Toolbox height

So, please make sure you're running Celestia with a minimum screen size of 800*600
@+
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

omarman
Posts: 7
Joined: 29.10.2009
With us: 15 years 3 months

Re: Lua Edu Tools fatal error on start up

Post #7by omarman » 30.10.2009, 12:35

Hi Vincent,

Many thanks for a quick answer.

My screen is set to 1650x1040, and I?m running with OpenGL 2.0.

The Celestia program is located in a folder "Celestia Resources" with the "luahookinit.lua" file in same.
The "lua-edu-tools" folder is inside "extras" folder, with the "lua-edu-tools.lua" file inside this.

Seems to me that the Celestia program does not distinguish between upper (shift) and lower case letters, the shift+i and i does the same (turn clouds on/off).

Any other hints?

Regards.

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

Re: Lua Edu Tools fatal error on start up

Post #8by Vincent » 30.10.2009, 13:45

?ivind,

Can you read any error message in the console (visible with "~") ?
Also, if the Lua Edu Tools are correctly loaded at Celestia start up,
the console should display "lua_edu_tools" twice just at the beginning
(use up/down arrows to navigate once the console is displayed).
@+
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

omarman
Posts: 7
Joined: 29.10.2009
With us: 15 years 3 months

Re: Lua Edu Tools fatal error on start up

Post #9by omarman » 30.10.2009, 14:44

Vincent,

I cannot see any reference to "lua-edu-tools" in the console window, and no reference to the folder "extras".
There are some messages refering to "extras-standard", some messages about wrong file-type for images-files, and settings of creating ordinary textures with 1024x512 and 2048x1024.

Are there any log-file that I can look at?

-?ivind

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

Re: Lua Edu Tools fatal error on start up

Post #10by Vincent » 30.10.2009, 16:58

?ivind,
omarman wrote:I cannot see any reference to "lua-edu-tools" in the console window
OK, that means that the tools are not loaded at Celestia startup.
Are you using the standard Mac OS X package or do you compile your own version from source?
@+
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

omarman
Posts: 7
Joined: 29.10.2009
With us: 15 years 3 months

Re: Lua Edu Tools fatal error on start up

Post #11by omarman » 30.10.2009, 21:05

Vincent,

I?m running the binary version, not compiled by myself.

-?ivind

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

Re: Lua Edu Tools fatal error on start up

Post #12by Fenerit » 31.10.2009, 02:13

I apologize for the intrusion, but in one case is referring to as "lua-edu-tools" and in another as "lua_edu_tools". Does it mean something? :?:
Never at rest.
Massimo

omarman
Posts: 7
Joined: 29.10.2009
With us: 15 years 3 months

Re: Lua Edu Tools fatal error on start up

Post #13by omarman » 31.10.2009, 09:36

Fenerit wrote:I apologize for the intrusion, but in one case is referring to as "lua-edu-tools" and in another as "lua_edu_tools". Does it mean something?

Sorry, the typo is my fault, the folder and files are correctly spelled with underscores (_). It is only in my message that I have used hyphens (-).

Regards, ?ivind

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

Re: Lua Edu Tools fatal error on start up

Post #14by Vincent » 31.10.2009, 09:53

omarman wrote:I?m running the binary version, not compiled by myself.
?ivind,

The Tools have been successfully tested on Tiger (OS X 10.4).
So the problem may come from the use of Snow-Leopard (OS X 10.6).

Could you please test the compass, which is a lighter addon I made recently
and which is also using the Lua Hook process ?

Here you'll find a download link:
viewtopic.php?f=6&t=14426

You'll need to remove the "lua_edu_tools" folder before testing the compass.
@+
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

omarman
Posts: 7
Joined: 29.10.2009
With us: 15 years 3 months

Re: Lua Edu Tools fatal error on start up

Post #15by omarman » 31.10.2009, 14:03

Vincent,

I have downloaded and zipped the compass folder into the extras folder, and removed the lua_edu_tools folder (into the Desktop).

After typing ctrl+G the surface of earth is shown, but alas no compass.


-?ivind

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 1 month
Location: Montreal

Re: Lua Edu Tools fatal error on start up

Post #16by Cham » 31.10.2009, 16:10

omarman wrote:After typing ctrl+G the surface of earth is shown, but alas no compass.

You need to use ctrl-G AND ctrl-F to activate the compass. In other words, you need to be very close to a planet's surface, and activate the Alt-Azimuthal mode, to see the compass at the bottom of the screen.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

omarman
Posts: 7
Joined: 29.10.2009
With us: 15 years 3 months

Re: Lua Edu Tools fatal error on start up

Post #17by omarman » 31.10.2009, 18:36

Still no compass...

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

Re: Lua Edu Tools fatal error on start up

Post #18by Fenerit » 31.10.2009, 22:17

Do you have the LUA language libraries? Of course, I do not know how they are structured on Mac; just a thought.
Never at rest.
Massimo

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 1 month
Location: Montreal

Re: Lua Edu Tools fatal error on start up

Post #19by Cham » 01.11.2009, 00:45

Is it possible that there's an incompatibility with LUA or the Tools and a fully 64 bit OS, like Snow-Leopard ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Re: Lua Edu Tools fatal error on start up

Post #20by Vincent » 01.11.2009, 16:32

I have no clue about how Lua is linked on Mac OS X.

Maybe Chris L. can help here...
@+
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 “Help Central”