Screen Resolution file

Screen Resolution file

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
cong06
Posts: 140
Joined: 15 Mar 2007, 22:03

Screen Resolution file

Post by cong06 »

I realize this may be slightly out of place, but i couldn't figure out a better place to ask.

I'm looking for the file that stores the Graphics settings for Spring. I assumed at first that the file would be in a *.txt or *.ini file.

They're not in the Spring directory (since when you copy the whole folder, and run it on a different computer, the settings revert to default). and I can't find them in the System Registry or the \Documents and Settings\username\ folder.
(yes I'm using windows)

Again. I hope this isn't out of place. Could someone help?
(I'm working on a batch install for LAN games)
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Post by koshi »

All settings are stored in the registry. Try looking for a key that contains "Software\SJ\spring". I got that from the engine code that handles settings, but couldn't see where exactly it was placed. Plus I can't search myself as I am on linux.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

It's HKEY_CURRENT_USER\Software\SJ\spring

Just use settings.exe to change the resolution to a different one. Spring will accept any resolution you enter, however (only) the UI will be stretched to a 4:3 resolution.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Post by lurker »

rattle wrote:It's HKEY_CURRENT_USER\Software\SJ\spring

Just use settings.exe to change the resolution to a different one. Spring will accept any resolution you enter, however (only) the UI will be stretched to a 4:3 resolution.
You can fix the build button size by editing ctrlpanel.txt, and the rest scales well imo.
User avatar
cong06
Posts: 140
Joined: 15 Mar 2007, 22:03

Post by cong06 »

rattle wrote:Just use settings.exe to change the resolution to a different one.
That would work, except I'd like to set it up so that the installer edits the config file so it's exactly right.

maybe I should have clearly stated, by LAN game, I mean LAN game in a College Computer Lab.

I'll check out the:
HKEY_CURRENT_USER\Software\SJ\spring

didn't think to check \SJ :?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

There's a settings.exe in the main spring folder.
Post Reply

Return to “Engine”