LAN Time synchonize function
Posted: 25.09.2010, 15:28
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.
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.