Difference between revisions of "Gta3.set"

From GTAMods Wiki
Jump to navigation Jump to search
(Format)
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
The '''gta3.set''' file is a binary file that stores the game's configuration [[setting]]s for [[GTA III]]. It is located in the [[User files|User Files]] directory. The game automatically generates this file with default settings if it is missing. Each time a setting has been changed within the game menu, the file changes immediately.
+
The '''gta3.set''' file is a binary file that stores the game's configuration [[SET|settings]] for [[GTA III]]. It is located in the [[User Files]] directory. The game automatically generates this file with default settings if it is missing. Each time a setting has been changed within the game menu, the file changes immediately.
  
 
== Format ==
 
== Format ==
 
Oddly, any settings that begins with a value of 0x0A will be padded with the prefix 0x0D. This means that the settings file can vary in size. For example, if a screen resolution is 0x0A, then the game will prefix and save the value as 0x0D0A. Even with floating-point values which are in little-endian order, if it starts with 0x0A it will still be prefixed, e.g. 0x0AD7233B (0.0025 in little-endian order) will be prefixed and saved as 0x0D0AD7233B.
 
Oddly, any settings that begins with a value of 0x0A will be padded with the prefix 0x0D. This means that the settings file can vary in size. For example, if a screen resolution is 0x0A, then the game will prefix and save the value as 0x0D0A. Even with floating-point values which are in little-endian order, if it starts with 0x0A it will still be prefixed, e.g. 0x0AD7233B (0.0025 in little-endian order) will be prefixed and saved as 0x0D0AD7233B.
{| class="wikitable"
+
{|class="wikitable"
! Type || Description
+
!Type ||Description
 
|-
 
|-
| qword[41] || Primary controls ([[#Controls|see below]])
+
|qword[41] ||Primary controls ([[#Controls|see below]])
 
|-
 
|-
| qword[41] || Secondary controls
+
|qword[41] ||Secondary controls
 
|-
 
|-
| qword[41] || Tertiary controls
+
|qword[41] ||Tertiary controls
 
|-
 
|-
| qword[41] || Quaternary controls
+
|qword[41] ||Quaternary controls
 
|-
 
|-
| char[20] || <code>stuffmorestuffevenmo</code>
+
|char[20] ||<code>stuffmorestuffevenmo</code>
 
|-
 
|-
| char[20] || <code>stuffmorestuffevenmo</code>
+
|char[20] ||<code>stuffmorestuffevenmo</code>
 
|-
 
|-
| char[4] || <code>stuf</code>
+
|char[4] ||<code>stuf</code>
 
|-
 
|-
| char[4] || <code>stuf</code>
+
|char[4] ||<code>stuf</code>
 
|-
 
|-
| char[1] || <code>s</code>
+
|char[1] ||<code>s</code>
 
|-
 
|-
| char[1] || <code>s</code>
+
|char[1] ||<code>s</code>
 
|-
 
|-
| char[1] || <code>s</code>
+
|char[1] ||<code>s</code>
 
|-
 
|-
| byte ||
+
|byte ||
 
|-
 
|-
| float ||
+
|float ||
 
|-
 
|-
| float || Mouse sensitivity
+
|float ||Mouse sensitivity
 
|-
 
|-
| byte || Invert mouse vertically (0 = on, 1 = off)
+
|byte ||Invert mouse vertically (0 = on, 1 = off)
 
|-
 
|-
| byte || Mouse controlled steering (0 = on, 1 = off)
+
|byte ||Mouse controlled steering (0 = on, 1 = off)
 
|-
 
|-
| byte || SFX volume (0 = lowest setting, 127 = highest setting, 102 = default setting)
+
|byte ||SFX volume (0 = lowest setting, 127 = highest setting, 102 = default setting)
 
|-
 
|-
| byte || Music volume (0 = lowest setting, 127 = highest setting, 102 = default setting)
+
|byte ||Music volume (0 = lowest setting, 127 = highest setting, 102 = default setting)
 
|-
 
|-
| byte || Radio station
+
|byte ||Radio station
 
|-
 
|-
| byte || Speakers configuration (0 = 2 speakers, 1 = headphones, 2 = more than 2 speakers)
+
|byte ||Speakers configuration (0 = 2 speakers, 1 = headphones, 2 = more than 2 speakers)
 
|-
 
|-
| byte || Audio hardware
+
|byte ||Audio hardware
 
|-
 
|-
| byte || Dynamic acoustic modeling (0 = off, 1 = on)
+
|byte ||Dynamic acoustic modeling (0 = off, 1 = on)
 
|-
 
|-
| byte || Brightness (0-511)
+
|byte ||Brightness (0-255)
 
|-
 
|-
| float || Draw distance
+
|float ||Draw distance
 
|-
 
|-
| byte || Subtitles (0 = off, 1 = on)
+
|byte ||Subtitles (0 = off, 1 = on)
 
|-
 
|-
| byte || Wide screen (0 = off, 1 = on)
+
|byte ||Wide screen (0 = off, 1 = on)
 
|-
 
|-
| byte || Frame sync (0 = off, 1 = on)
+
|byte ||Frame sync (0 = off, 1 = on)
 
|-
 
|-
| byte || Frame limiter (0 = off, 1 = on)
+
|byte ||Frame limiter (0 = off, 1 = on)
 
|-
 
|-
| byte || Screen resolution
+
|byte ||Screen resolution
 
|-
 
|-
| byte || Trails (0 = off, 1 = on)
+
|byte ||Trails (0 = off, 1 = on)
 
|-
 
|-
| char[256] || Skin name without file extension with null terminator (default skin = <code>$$""\0</code>)
+
|char[256] ||Skin name without file extension with null terminator (default skin = <code>$$""\0</code>)
 
|-
 
|-
| byte || Controls (0 = standard, 1 = classic)
+
|byte ||Controls (0 = standard, 1 = classic)
 
|-
 
|-
| byte || Language (0 = English, 1 = French, 2 = German, 3 = Italian, 4 = Spanish)
+
|byte ||Language (0 = English, 1 = French, 2 = German, 3 = Italian, 4 = Spanish)
 
|}
 
|}
  

Latest revision as of 19:01, 7 July 2017

The gta3.set file is a binary file that stores the game's configuration settings for GTA III. It is located in the User Files directory. The game automatically generates this file with default settings if it is missing. Each time a setting has been changed within the game menu, the file changes immediately.

Format

Oddly, any settings that begins with a value of 0x0A will be padded with the prefix 0x0D. This means that the settings file can vary in size. For example, if a screen resolution is 0x0A, then the game will prefix and save the value as 0x0D0A. Even with floating-point values which are in little-endian order, if it starts with 0x0A it will still be prefixed, e.g. 0x0AD7233B (0.0025 in little-endian order) will be prefixed and saved as 0x0D0AD7233B.

Type Description
qword[41] Primary controls (see below)
qword[41] Secondary controls
qword[41] Tertiary controls
qword[41] Quaternary controls
char[20] stuffmorestuffevenmo
char[20] stuffmorestuffevenmo
char[4] stuf
char[4] stuf
char[1] s
char[1] s
char[1] s
byte
float
float Mouse sensitivity
byte Invert mouse vertically (0 = on, 1 = off)
byte Mouse controlled steering (0 = on, 1 = off)
byte SFX volume (0 = lowest setting, 127 = highest setting, 102 = default setting)
byte Music volume (0 = lowest setting, 127 = highest setting, 102 = default setting)
byte Radio station
byte Speakers configuration (0 = 2 speakers, 1 = headphones, 2 = more than 2 speakers)
byte Audio hardware
byte Dynamic acoustic modeling (0 = off, 1 = on)
byte Brightness (0-255)
float Draw distance
byte Subtitles (0 = off, 1 = on)
byte Wide screen (0 = off, 1 = on)
byte Frame sync (0 = off, 1 = on)
byte Frame limiter (0 = off, 1 = on)
byte Screen resolution
byte Trails (0 = off, 1 = on)
char[256] Skin name without file extension with null terminator (default skin = $$""\0)
byte Controls (0 = standard, 1 = classic)
byte Language (0 = English, 1 = French, 2 = German, 3 = Italian, 4 = Spanish)

Controls

This is a list of all controls in order of appearance in the settings file. The names are taken from the game menu.

  • Fire
  • Next weapon
  • Previous weapon
  • Forward (on foot)
  • Backwards (on foot)
  • Left
  • Right
  • Zoom in
  • Zoom out
  • Enter / exit
  • Change camera
  • Jump
  • Sprint
  • Look behind
  • Forward (in car)
  • Backwards (in car)
  • Radio
  • Horn
  • Sub-mission
  • Handbrake
  • Look left (on foot, classic)
  • Look right (on foot, classic)
  • Look left (in car)
  • Look right (in car)
  • ? (cannot configure)
  • Turret Left
  • Turret Right
  • Turret / Dodo up
  • Turret / Dodo down
  • Next target (classic)
  • Previous target (classic)
  • Center camera (classic)
  • Target
  • ? (cannot configure)
  • Look Up (classic)
  • Look Down (classic)

Each control is between 8 to 9 bytes in size depending on the prefixing of 0x0D to 0x0A. There are a total of four sections for primary, secondary, tertiary, and quaternary controls, and each section has a total of 41 possible controls, although there are only 36 contiguous controls listed above.

See also