Screen Resolution

All about writing scripts for Celestia in Lua and the .cel system
Topic author
kane426
Posts: 5
Joined: 20.06.2004
With us: 20 years 5 months
Location: Butte, Montana

Screen Resolution

Post #1by kane426 » 08.04.2005, 04:02

Is it possible to run a command in the start script that will load a predetermined screen resolution????????????? (v1.3.2)

程塞壬
Posts: 1
Joined: 03.05.2005
With us: 19 years 6 months

Re: Screen Resolution

Post #2by 程塞壬 » 03.05.2005, 10:43

:P
kane426 wrote:Is it possible to run a command in the start script that will load a predetermined screen resolution????????????? (v1.3.2)

Code: Select all

[color=red][/color][color=red][/color][size=18][/size]

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #3by selden » 03.05.2005, 14:27

Kane,

Not in v1.3.2. It should be available in v1.4.0, though.
Selden

zemian
Posts: 4
Joined: 18.01.2006
With us: 18 years 10 months
Location: Modena, Italy

Post #4by zemian » 19.01.2006, 12:19

Hello,

has this feature been added in Celestia 1.4.0?
I'd like to have it open in 1024x768 from the start...

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #5by selden » 19.01.2006, 12:59

Unfortunately, a --resolution option didn't make it into Celestia v1.4.0. However...

I'm assuming you're using Windows, preferably Windows XP. If you're talking about the resolution that Celestia uses when it runs in full-screen mode, running Celestia so it opens in full-screen mode at one particular (default) resolution has been possible for quite some time.

The command line option
--fullscreen
causes Celestia to start occupying the entire screen instead of in windowed mode.

You can select the default fullscreen resolution from Celestia's Render / Set Display Mode... menu.

You can edit the properties of the icon that runs Celestia so that its startup command includes whatever command-line options you want.

1. run Celestia and pick the appropriate full-screen resolution; exit from Celestia

2. edit the icon's properties
Right-click on the icon
Select Properties (at the bottom of the popup menu)
Select the Shortcut tab (the default)
Edit the Target line. At its end, insert a space and --fullscreen after the last double-quote (").
The line should now look like

Code: Select all

"C:\Program Files\Celestia\Celestia.exe" --fullscreen

(for example)

Click on OK

3. select (double-click) on the icon to run Celestia in full-screen mode at the resolution that you selected.
Selden

zemian
Posts: 4
Joined: 18.01.2006
With us: 18 years 10 months
Location: Modena, Italy

Post #6by zemian » 20.01.2006, 12:49

Thank you very much Selden,

I'll try that at home in the weekend (I'm at work now...)

I was already running Celestia at full screen, but in the Window mode, ie. with the blue horizontal stripe at the top etc.

What I'd like is to run with only Celestia as an uncluttered view into space - and when I need its menu I just move my mouse at the top of the screen. All this without having to pull down the resolution menu and set it to 1024x768 at the start.

Thanks again.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #7by selden » 20.01.2006, 12:52

What I described should do what you want.
Selden

zemian
Posts: 4
Joined: 18.01.2006
With us: 18 years 10 months
Location: Modena, Italy

Post #8by zemian » 24.01.2006, 11:06

Well?€¦ unfortunately it didn?€™t work. :(

As a matter of fact, wether I change the resolution by selecting Toggle Full Screen in the Render Menu or by the Alt+Enter keys, my LCD display changes to 640x480 16bit, when I normally run on 1024x768x32!!!! 8O

OTHO if I select my correct res in Render>Select Display Mode>drop down menu, all goes well and I get to view Celestia in 1024x768, without applications bar.

Any ideas about this strange behaviour?

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #9by selden » 24.01.2006, 12:42

Perhaps I wasn't clear.

if I select my correct res in Render>Select Display Mode>drop down menu,
That was what I intended you to do.

Then after you exit from Celestia, whenever you start Celestia in fullscreen mode or switch to fullscreen mode using the keyboard shortcut Alt-Enter, Celestia should run in that selected resolution.

Are you saying that it doesn't?
Selden

zemian
Posts: 4
Joined: 18.01.2006
With us: 18 years 10 months
Location: Modena, Italy

Post #10by zemian » 27.01.2006, 07:42

It worked!

My fault, I didn't follow exactly your instructions the first time and didn't exit in Full Screen mode.

But now it starts in full screen at my res.

Thank you very much!


Return to “Scripting”