Game Filesystem StructureEdit
- LUA Coding etc...
Game Progress & Preferences Save FileEdit
A single file is used to house details ranging from the profiles used in Supreme Commander 2, to storing the video settings for the computer in question. This creates a slightly difficult situation on a technical basis, explained further on.
d*The file name is 'Game.prefs'
- Use the path based on your current operating system
- Replace the term <username>, with your username on the local computer. For example; 'Jake' or 'God'
- C:\Documents and Settings\<username>\Local Settings\Application Data\Gas Powered Games\Supreme Commander 2\ (needs confirmation)
Windows Vista / Windows 7Edit
- C:\Users\<username>\AppData\Local\Gas Powered Games\Supreme Commander 2\
Several issues arise from combining the preferences store with the game data store, without proper validation and checking in the game.
The Supreme Commander 2 engine has trouble reading any stored settings that cannot be applied. For example, if a 'screen resolution' is selected while having a larger monitor attached, if you then change to a smaller monitor, Supreme Commander 2 will crash -- without an error message. If you find you are unable to launch Supreme Commander 2 without it crashing, try deleting the Game.prefs file. Be warned however, that this will erase your campaign progress, as well as any statistics you have accumulated towards achievements.
If you plan to move computer (such as detaching a secondary monitor), set the video options to 'no secondary adaptor' (for that specific example), in order to prevent the game from crashing on startup.
Alternately, you can try edit the save file (such as removing the lines that correspond to screen resolution), as the game will automatically revert to the default value. Optimally, the game should do this in the first place.
Below is a table of values you should look out for (if you choose to edit the save file), that may be causing Supreme Commander 2 to crash;
|Option Name||Responsibility||Valid Values => Setting||Example|
Stores the resolution setting of the primary monitor. Using a value higher than the current primary monitor can support, will cause the game to crash.
It may also be possible to set your own custom resolution, but you will also need to modify the 'switch' value under the 'option_overrides' section.
||primary_adaptor = '1920,1080,60'|
Stores the resolution setting of the secondary monitor. Using a value higher than the current secondary monitor can support, will cause the game to crash.
|Same as 'primary_adaptor'||secondary_adaptor = '1920,1080,60'|
Stores the anti-aliasing setting for the game. Using a value higher than the graphics card can support will cause the game to crash.
||antialiasing = 256|
Stores the anisotropic filtering setting for the game. Using a higher value than the graphics card can support will cause the game to crash.
||anisoropic_filtering = 8|