Page 1 of 1

LAN Time synchonize function

Posted: 25.09.2010, 15:28
by su27
The attachment is the LAN time synchonize function I've wrote.
You can copy it to the source code of Celestia 1.6.0

You can set the server or client state (whether it's a client or a server, what's the port and IP address)
of a Celestia instance in clientlist.txt, or in the Time menu (should disable locale first).

(1)I've disabled the key from '1' to '0',and 'a' to 'z' in celestiacore.cpp
(2)Instead, if you press '1' in the "server Celestia". The "client Celestia" will first do time synchonize operation ,then execute the script "scripts\1.celx".
The other key '1' to '0',and 'a' to 'z' also work in this way.

I think though the program is simple,but it's useful for distributed exhibition.
Suppose you have 3 computer,each with a wide screen, and they are in the same LAN network,run the same scene or data, or even different.

When you press a key in the server Celestia, they will first synchonize time,then run the same or different celx script.
If the script is speedup or speeddown, they will also run together.
Then it's very useful,So enjoy it. :lol:

Re: LAN Time synchonize function

Posted: 25.09.2010, 15:34
by su27
I think the time sychonize function must be called by key pressed,

if called from Menu, there will be lag of time, merely a few seconds. :D

Re: LAN Time synchonize function

Posted: 19.07.2011, 13:33
by Joe
su27 wrote:You can set the server or client state (whether it's a client or a server, what's the port and IP address)
of a Celestia instance in clientlist.txt, or in the Time menu (should disable locale first).

Does this mean Celestia loses its i18n feature?

su27 wrote:(1)I've disabled the key from '1' to '0',and 'a' to 'z' in celestiacore.cpp
(2)Instead, if you press '1' in the "server Celestia". The "client Celestia" will first do time synchonize operation ,then execute the script "scripts\1.celx".
The other key '1' to '0',and 'a' to 'z' also work in this way.

Is it really needed to disable '1' to '0' and 'a' to 'z', why? For instance, if I press 'L' to increase time scale at the server, I would hope the client response with the same timescale. If 'L' is disabled, what does the server or client do?