Keyboard Short-Cuts For Orbit Lines

The place to discuss creating, porting and modifying Celestia's source code.
Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #21by t00fri » 15.08.2005, 08:19

Brendan wrote:Thanks for the patch. I didn't get around to making one because I didn't know how to make patch files. I can use diff, but the diff files don't look like patch files. :?


In UNIX/Linux or Win-XP (CYGWIN) it's extremely simple. Suppose you got 2 directories to compare, let's say

celestia.org
celestia

Then you just type into your terminal (here for simplicity in the directory where they are both located):

diff -r -bB -u celestia.org celestia > celestia.patch

The option parameters mean:

-r : do it recursively in all subdirectories...
-b -B : ignore blank lines
-u : make a 'unified' diff which is a popular and clever way to locate the places where the code differs.

'celestia.patch' is generated in the same directory and contains what you were after.

There is a host of other options, like you may skip certain file types like e.g. the object files in the comparison.

Bye Fridger

Brendan
Posts: 296
Joined: 15.07.2003
With us: 21 years 4 months
Location: Bellows Falls, VT
Contact:

Post #22by Brendan » 15.08.2005, 09:01

Thanks Fridger. :mrgreen: I found the -x option that I'll exclude *.o and *.obj with.

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #23by ANDREA » 21.08.2005, 16:00

phoenix wrote:well, after hours of searching and probing the celestia-code i made a patch for the w32 and linux-source (not tested with linux yet) the shortcuts are very easy and the complement to ther label-keys:
the .patch or w32-bin here:
http://www.purebytes.de/stuff/celestia/patches/

Sorry Phoenix, beg your pardon but after I changed the celestia.exe file with the one given by you, Saturn rings disappeared, so as the possibility to choose Open Gl shaders etc. giving only the possibility to choose between "basic" and "Multitexture" :cry:
Probably there is a bug or an incompatibility, FYI.
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

phoenix
Posts: 214
Joined: 18.06.2002
With us: 22 years 5 months
Location: Germany - Berlin

Post #24by phoenix » 21.08.2005, 22:54

ANDREA wrote:Sorry Phoenix, beg your pardon but after I changed the celestia.exe file with the one given by you, Saturn rings disappeared, so as the possibility to choose Open Gl shaders etc. giving only the possibility to choose between "basic" and "Multitexture" :cry:
Probably there is a bug or an incompatibility, FYI.
Bye

Andrea :D


hmm everything works fine for me, but yet it's still a cvs-build and a lot has changed between pre6 and current state so there maybe some weird bugs when someone like me messes with the code trying to quickfix some things ;)
most recent celestia win32-SVN-build - use at your own risk (copy over existing 1.5.1 release)

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #25by ANDREA » 21.08.2005, 23:05

phoenix wrote: hmm everything works fine for me, but yet it's still a cvs-build and a lot has changed between pre6 and current state so there maybe some weird bugs when someone like me messes with the code trying to quickfix some things ;)

Hello Phoenix, it was not a critic, I'm only trying to help you to make a very useful improvement working flawlessly. :D
I'm absolutely not sure that it's a bug, may be it's a fault of mine, so let's wait to see if someone else has the same problem or not. :wink:
BTW, noone replied to my request if it is possible to put the same commands in .cel script, IMHO it would be very nice and useful for teaching purposes.
Bye, and thank you.

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Brendan
Posts: 296
Joined: 15.07.2003
With us: 21 years 4 months
Location: Bellows Falls, VT
Contact:

Post #26by Brendan » 25.08.2005, 05:00

Will those orbit commands be made official? I want to add a nebula label toggle command for Frank, so it'd need to be something other than N if N is used for spacecraft orbits.

phoenix
Posts: 214
Joined: 18.06.2002
With us: 22 years 5 months
Location: Germany - Berlin

Post #27by phoenix » 25.08.2005, 19:03

there is a nebula-toggle-patch here

http://www.purebytes.de/stuff/celestia/patches/
"e" for nebulas and "SHIFT+e" for nebula labels

i just need to combine both patches and think of another assignment for comet orbits.
i don't know if those 2 will get official since i'm not part of the dev-team ;)

greetz
phoenix
most recent celestia win32-SVN-build - use at your own risk (copy over existing 1.5.1 release)

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #28by t00fri » 25.08.2005, 19:36

phoenix wrote:there is a nebula-toggle-patch here

http://www.purebytes.de/stuff/celestia/patches/
"e" for nebulas and "SHIFT+e" for nebula labels

i just need to combine both patches and think of another assignment for comet orbits.
i don't know if those 2 will get official since i'm not part of the dev-team ;)

greetz
phoenix


I am not sure what you call "nebulas"? I guess you are aware that presently, "e" toggles the galaxy lables, while "u" toggles galaxy rendering...

Bye Fridger

phoenix
Posts: 214
Joined: 18.06.2002
With us: 22 years 5 months
Location: Germany - Berlin

Post #29by phoenix » 25.08.2005, 21:09

oops yes, patch is:
"e" for galaxy-labels and "shift+e" for nebula-labels

toggling nebulas is already bound to "^" ;)
most recent celestia win32-SVN-build - use at your own risk (copy over existing 1.5.1 release)

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #30by t00fri » 25.08.2005, 21:35

phoenix wrote:oops yes, patch is:
"e" for galaxy-labels and "shift+e" for nebula-labels

toggling nebulas is already bound to "^" ;)


That sounds much better. Originally "nebulas" was used as a generic term for DSO's (DeepSky Objects) in Celestia (which I am NOT responsible for). That old class has recently been split into 3 new classes

Galaxy
Nebula
OpenCluster

Astronomically 'nebulae' are something very specific and that's what 'Nebula' now stands for.

But there is still plenty of work to be done in this sector!

Bye Fridger


Return to “Development”