Hi,
I have a question concerning the actual time-functions of celestia.
When simulating a s/c I'm usually not simulating at current time so I have to tell Celestia the time of the simulation.
Now I know that there's the function settime(number:time) which sets the (displayed) time in celestia.
And when I use this function in a celx-script the timesetting works fine.
But when I do the call to this function in a hook script Celestia crashes regularly. So is there a special point of celestia's running time when I can at first do this call?
Or can I / do I have to access the start.cel-file from within a hook script and change the starting time in there when running celestia?
Since the starting time of the simulation is likely to change several times it's not really sufficient to manually change the starting script before running Celestia. Though it would do if there's no other opportunity.
Thanks
Stuffer
[Solved] how to do Simulation and realtime visualization
-
Topic authorStuffer
- Posts: 67
- Joined: 03.12.2008
- With us: 15 years 11 months
- Location: Stuttgart, Germany
Simulation/realtime vis...celestia crash with settime()
Win XP Pro x Core2Duo 2,1GHz x 2 GB RAM x NVidia Quadro FX 1500 256 MB
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
Re: how to do Simulation and realtime visualization
Stuffer,Stuffer wrote:Now I know that there's the function settime(number:time) which sets the (displayed) time in celestia.
And when I use this function in a celx-script the timesetting works fine.
But when I do the call to this function in a hook script Celestia crashes regularly. So is there a special point of celestia's running time when I can at first do this call?
I've been using the settime function in the Lua Tools which are based on the Lua Hooks process.
It works great, and I've never had the kind of issue you've reported. Could you post the piece of
code that is causing the crash ?
@+
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
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 authorStuffer
- Posts: 67
- Joined: 03.12.2008
- With us: 15 years 11 months
- Location: Stuttgart, Germany
Re: how to do Simulation and realtime visualization
Vincent,
thanks a lot for mentioning that it should work.
Now I figured out that my mistake was somewhere else.
I assume that it was never an actual crash but something like a timeout because the hookscript was stuck and that's why Celestia didn't do any further things.
Thanks
Stuffer
thanks a lot for mentioning that it should work.
Now I figured out that my mistake was somewhere else.
I assume that it was never an actual crash but something like a timeout because the hookscript was stuck and that's why Celestia didn't do any further things.
Thanks
Stuffer
Win XP Pro x Core2Duo 2,1GHz x 2 GB RAM x NVidia Quadro FX 1500 256 MB
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
Re: how to do Simulation and realtime visualization
Stuffer, you're welcome. Glad you've figured this out.Stuffer wrote:thanks a lot for mentioning that it should work.
@+
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
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 authorStuffer
- Posts: 67
- Joined: 03.12.2008
- With us: 15 years 11 months
- Location: Stuttgart, Germany
Re: how to do Simulation and realtime visualization
I'm glad so.
Me too.
My application is working properly .
Thanks to all helping hands in here!
--Stuffer
Me too.
My application is working properly .
Thanks to all helping hands in here!
--Stuffer
Win XP Pro x Core2Duo 2,1GHz x 2 GB RAM x NVidia Quadro FX 1500 256 MB