LUA plug-in: Ephemeris(?) A work in progress...

Post requests, images, descriptions and reports about work in progress here.
BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #21by BobHegwood » 26.01.2010, 20:42

Fenerit wrote:Bob, I'm unable to reproduce this bug; both in SVN 4590 as well as 1.6 official. I've Xp, though. All boxes work perfectly when moved, even when the boxes overlying theirselves. I have a 4:3 monitor, you 16:9 (if I'm not wrong) but I do not think is matter of monitors. Do you have some customization software, docklets, widgets that could interfere with? Something that "rule" the left screen, e.a sidebars, dockbars, etc? :roll:

My CRT is 1680x1059 pixels, and I do have the Vista sidebar operating at all times.
This is overlayed by whatever program is running, however. If I were you, I simply
wouldn't worry about it. Like I said the functions themselves work flawlessly.
Probably just my darned Vista system again. :roll:

Thanks again though... I really like the Moon Phases and the other functions as well. :D

-Brain-Dead
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
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #22by Fenerit » 27.01.2010, 00:04

If I were you, I simply wouldn't worry about it.
Instead it is important. Being it so few feedbacks here :wink: if even the only one (you) has problem, you will agree that the business is serious. Thus, my considerations moves toward:

1) the LUATOOLS. Since the hook now concern the plugins, however the presence of ../extras/lua_edu_tool folder can disturb; being in it a file called config.lua; if is this the case, rename the folder with an underscore before it: e.a. ../_lua_edu_tools;

2) a duplicate file elsewhere;

If other hints goes bring to my mind, I will post it.
Never at rest.
Massimo

symaski62
Posts: 610
Joined: 01.05.2004
Age: 41
With us: 20 years 7 months
Location: france, divion

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #23by symaski62 » 27.01.2010, 11:52

Fenerit wrote:The screendump below show the ephemeris plug-in together the Vincent-Cham plug-ins. They works seamlessly. Now, since symaski62 "can't wait" :wink: I've decided to post an alpha version. The installation is simple and require the plugins above.

http://marauder.webng.com/files/ephemerides.zip

ok compris
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #24by BobHegwood » 27.01.2010, 13:50

Fenerit?

Just so you can see what I'm talking about:
The first picture displays the picture box and Moon Phase display
as they should be on the screen on my system...
Vista1.jpg


The second screen shows what happens if I try to move the Picture Box even very slightly:
Vista2.jpg


I have turned ON the ephemeris display in the second picture so that you can see that
it does work correctly.

Dunno if this helps or not, but I just thought I'd show you what happens on my system.

Thanks again, Brain-Dead

EDIT:
The only way I can get the Picture Box back to its normal position is to restart Celestia.
Also, the Moon Phase display also behaves in this manner. If I try to move the Moon Phase
Picture Box even very slightly, it will appear up in the upper left-hand corner and cannot
be re-positioned unless I restart Celestia.

Hope this helps? Thanks again, Brain-Dead
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
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #25by Fenerit » 27.01.2010, 18:44

Sorry Bob, on my system all the boxes moves and behaves normally as the "commons" windows does. No windows' freezeing. I do not have idea about the causes. I'm waiting for further feedbacks by users. :|
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #26by Fenerit » 27.01.2010, 21:33

Bob, the strange thing in your description is that the rest of boxes (NOT the pictures' ones) doesn't seems affected by "jumps" or "hangings". So I wonder whether something of wrong concern the images' folders (to which the pictures/Moon displays are linked).
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #27by BobHegwood » 28.01.2010, 12:09

Fenerit wrote:Bob, the strange thing in your description is that the rest of boxes (NOT the pictures' ones) doesn't seems affected by "jumps" or "hangings". So I wonder whether something of wrong concern the images' folders (to which the pictures/Moon displays are linked).

Nothing that I'm aware of...
All the images in the file work to perfection, and all are sized at 512x512 pixels.

Anything else I should be aware of?

Thanks, Brain-Dead
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
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #28by Fenerit » 28.01.2010, 12:41

:roll: The least thing you can do, for curiousity, is:

1) seeing whether also a bit more lower graphics resolution shows such behaviour;
2) Supposed Vincent/Cham's plug-ins works well before ephemeris, do try whether even ephemeris only work well (do comment Vincent/Cham's plug-ins within config.lua.
If taken alone does works and together not, the problem should be more subtle. (Although, on my system, there is not problems) For the rest, I should like to have more users' feedbacks; whether the problem has been found in other configurations too, or not.
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #29by BobHegwood » 28.01.2010, 19:24

Fenerit wrote:1) seeing whether also a bit more lower graphics resolution shows such behaviour;

Tried it at 800x600 and got the same behavior.

Fenerit wrote:2) Supposed Vincent/Cham's plug-ins works well before ephemeris, do try whether even ephemeris only work well (do comment Vincent/Cham's plug-ins within config.lua.
If taken alone does works and together not, the problem should be more subtle. (Although, on my system, there is not problems) For the rest, I should like to have more users' feedbacks; whether the problem has been found in other configurations too, or not.
Commenting other routines does nothing to affect the picture box and moon phase displays.

Like I said earlier, I would simply ignore this for my system. :roll:

Thanks again, Brain-Dead
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
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #30by jogad » 28.01.2010, 22:19

Hello,

Fenerit wrote:I should like to have more users' feedbacks

On my system, Windows XP and my large screen (1920 x 1200 px), all is ok :D

One thing yet, but very tiny. When I turn off the ephemeris tool and then resize the celestia window, if I reactivate the tool later, I am not always able to move it with the mouse. :?
And even if I keep it activated, it cannot always be moved on the all screen.

Good luck :mrgreen:

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #31by Fenerit » 28.01.2010, 23:23

jogad wrote:Hello,

Fenerit wrote:I should like to have more users' feedbacks

On my system, Windows XP and my large screen (1920 x 1200 px), all is ok :D

One thing yet, but very tiny. When I turn off the ephemeris tool and then resize the celestia window, if I reactivate the tool later, I am not always able to move it with the mouse. :?
And even if I keep it activated, it cannot always be moved on the all screen.

Good luck :mrgreen:

First, thanks for the feedbacks, Jogad. Personally, on my system I can always move the box, so I think that such issue must be searched within the different screen resolution:

When I turn off the ephemeris tool and then resize the celestia window, if I reactivate the tool later, I am not always able to move it with the mouse. :?
No problem here for me;

And even if I keep it activated, it cannot always be moved on the all screen.
Here I suppose you aren't able to move the box well-toward the bottom of screen. This fact is relate with the "box' s stretching" issue that I'm unable to fix. Unless will fixed, do consider it as a behaviour "willingly" imposed for not overlaying the console :P Fundamentally, when I built such plug-in I thought to something to stick under the Celestia HUD, moveable just whether there have been new entries in the default HUD, and that, moreover, were to rest in there once sticked.
Anyhow, is still in develop... :wink:
Never at rest.
Massimo

NorthOfPolaris
Posts: 10
Joined: 31.12.2009
With us: 14 years 11 months
Location: Quebec City

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #32by NorthOfPolaris » 29.01.2010, 04:07

Hi Fenerit and all those following this thread.

Congratulations on making this lua plugin work. It works well on my system which includes Windows XP with all updates, Nvidia GeForce 8800 GT graphics card with the most recent software drivers. I run the program on a 1280 x 768 screen. My Celestia version is compiled from svn revision 4952

The plugin responds well to the Ctl-6 and Ctl-7 keys.

The image shows that I have moved both the text box and the moon box from their original positions. There is no real value in doing this but I only wanted to test the relocation of the boxes. Changing to full screen and windowed view moves the moon box to the bottom right corner as expected. If I use the Ctrl-7 to switch the moon box on and off, it shows up again exactly where it was before switching it off.

Image

As you can see, the screen is quite busy and everything is working well.

Well done Fenerit.

Serge

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #33by Fenerit » 29.01.2010, 09:22

Thanks Serge. Well, you have Xp, a 16:9 screen, a resolution much higher in horizontal and a graphic card much more performant than mine. Thus, now I suspect that is Vista more critic under this aspect.
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #34by Fenerit » 29.01.2010, 21:46

- Improved light time: now account for radii. Negligible for planetary distances, significative for the Moon.
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #35by Fenerit » 01.02.2010, 00:02

An update. (with the new improved light time)

Image
Note: the images' samples are taken here and there and are not subsequents.

Ephemeris' HUD now show the "central" new/full Moon phases as well as eclipsed/eclipsing moments in multicolors (customizable). They are elongation based, so, do consider the exact moment (predicted) of the new/full phases, the moment in which the elongation "swing back". The rest is yet based upon days, but the lenghts for new/full phases are now changed as "begin/ending new" and "begin/ending full". The elongation's method allow the more precise prediction of the next new/full phases, and as such have been added. I've check the eclipses (Moon/Sun) up to 6745 and it match, then I was annoying.


http://marauder.webng.com/files/ephemerides_upd.zip
Two files only, backup the extants and/or add in the new ephemeris_cfg your custom settings if any. The screen's HUD position you have saved will rest the same, since the update doesn't concern it.
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #36by Fenerit » 01.02.2010, 13:53

The previous link has been update newly. I've forgot that light time is observer based, so the radius to subtract was just of the target and not that of target and the Earth. I apologize for the inconvenience. :(
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #37by Fenerit » 05.02.2010, 23:58

Last alpha update. Major issues:

- Fix a bug which prevented the HUD to be displayed with Mercury/Venus in narrowest conjunction/oppositions (strange Celestia's behaviour: such planets were as "black hole" when the radius vector of the elongation constraint was of the same value of high float's local constant).
- Rebuilt and normalized several formulas;
- Retrieved all the synodic periods of SS' objects through info.Orbitalperiod (S = 1/|1/E - 1/P|) so that have been added the elongations to the minor bodies;
- Added Sun position angle (bright limb) for the Moon;
- added theoretical visual mag. for Pluto and dwarfplanets;
- Added visual magnitudes to the asteroids through the mean abs. mag. and the Slope parameter drew up from the MPCORB values for 3899 asteroids;
- Added objects' Earth subpoint (thanks to Chris' function in Script forum);
- Split functions (ephemeris_func.lua) from the main ephemeris.lua file for shortening the file;

http://marauder.webng.com/files/ephemerides_upd_last.zip
Two files only: ephemeris_func.lua and ephemeris.lua. No changes have been made upon the rest, thus is assumed you have the previous update. Extract as usual, backup first. The new file must be in the same folder.
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #38by BobHegwood » 06.02.2010, 13:18

Fenerit wrote:Two files only: ephemeris_func.lua and ephemeris.lua. No changes have been made upon the rest, thus is assumed you have the previous update. Extract as usual, backup first. The new file must be in the same folder.

Thanks for the continuing updates. As long as I don't try to move the
boxes, works great on my Vista system. :wink:

I love this LUA addition. Have created picture boxes the way I want
them for all of the planets, some moons, Black Holes, Pulsars, etc...
These abilities need to be added to Celestia itself in my opinion.

Many thanks, Brain-Dead
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
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #39by Fenerit » 06.02.2010, 23:17

BobHegwood wrote:Thanks for the continuing updates. As long as I don't try to move the
boxes, works great on my Vista system. :wink:

This indeed may be really annoying. Do you have Celestia under ..\Program Files folder? I've heard something about experienced malfunctions when a program is in there. I wonder whether Vista can impede the writing of the box's setting in real time when one do move the box; thing that, as such, doesn't happen on Xp. :roll:
Never at rest.
Massimo

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

Re: LUA plug-in: Ephemeris(?) A work in progress...

Post #40by BobHegwood » 07.02.2010, 10:53

Fenerit wrote:This indeed may be really annoying. Do you have Celestia under ..\Program Files folder? I've heard something about experienced malfunctions when a program is in there. I wonder whether Vista can impede the writing of the box's setting in real time when one do move the box; thing that, as such, doesn't happen on Xp. :roll:

Have it under C:\Program Files (x86) where all 32-bit programs must be installed.
Don't worry about the box movements on my account though. I absolutely love
these improvements to Celestia like I said. Works great, and I really don't need
to move the boxes anyway. :wink:

If you continue to try to figure this out though, it may help to know that if I
try to move the picture boxes, I have to re-start Celestia in order to get them
back to where they should be... If I try to move the ephemeris box, I have to
completely re-install the whole lua-plugins system in order to get the ephemeris
box back to where it should be. Beats me. :roll:

At any rate, like I said I love these additions. Keep em coming. :D

Thanks again, Brain-Dead
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


Return to “Add-on development”