Difference between revisions of "Gta sa.set"

From GTAMods Wiki
Jump to navigation Jump to search
m (Vehicle controls table)
 
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 +
{{DISPLAYTITLE:gta_sa.set}}
 +
The <code>gta_sa.set</code> file stores the game's configuration [[setting]]s for [[GTA San Andreas]]. By default it is located inside the [[user files]] directory. It gets recreated everytime you leave the game.
 +
 
== Controller Setup ==
 
== Controller Setup ==
 
* 0xB3A - [byte] Configuration
 
* 0xB3A - [byte] Configuration
Line 5: Line 8:
  
 
=== Redefine Controls ===
 
=== Redefine Controls ===
Each key can be saved on two places. Each key place uses 2 bytes. The first byte is the key code. The second byte specifies the state (0 = Activated, 4 = Deactivated).
+
Each key can be saved on two places. Each key place uses 2 bytes. The first byte is the [[wikipedia:Microsoft Windows|Windows]] virtual key code {{ref|1}}. The second byte specifies the state (0 = Activated, 4 = Deactivated).
Keys from A to Z and 0 to 9 are saved as ASCII. Keys like Home, Space or Return are saved with special codes.
 
  
 
==== Foot Controls ====
 
==== Foot Controls ====
 +
<!--
 
* Fire
 
* Fire
 
** 0x8
 
** 0x8
Line 75: Line 78:
 
** 0xB0
 
** 0xB0
 
** 0x374
 
** 0x374
 +
-->
 +
{| class="wikitable"
 +
|-
 +
! Control
 +
! Location 1
 +
! Location 2
 +
|-
 +
| Fire
 +
| 0x8
 +
| 0x2CC
 +
|-
 +
| Next Weapon/Target
 +
| 0x20
 +
| 0x2E4
 +
|-
 +
| Previous Weapon/Target
 +
| 0x2C
 +
| 0x2F0
 +
|-
 +
| Group Ctrl Forward
 +
| 0x518
 +
| 0x254
 +
|-
 +
| Group Ctrl Back
 +
| 0x524
 +
| 0x260
 +
|-
 +
| Conversation – No
 +
| 0x50C
 +
| 0x248
 +
|-
 +
| Conversation – Yes
 +
| 0x23C
 +
| 0x500
 +
|-
 +
| Forward
 +
| 0x38
 +
| 0x2FC
 +
|-
 +
| Backwards
 +
| 0x308
 +
| 0x44
 +
|-
 +
| Left
 +
| 0x314
 +
| 0x50
 +
|-
 +
| Right
 +
| 0x320
 +
| 0x5C
 +
|-
 +
| Zoom In
 +
| 0x32C
 +
| 0x68
 +
|-
 +
| Zoom Out
 +
| 0x74
 +
| 0x338
 +
|-
 +
| Enter/Exit
 +
| 0x344
 +
| 0x80
 +
|-
 +
| Change Camera
 +
| 0x350
 +
| 0x8C
 +
|-
 +
| Jump
 +
| 0x98
 +
| 0x35C
 +
|-
 +
| Sprint
 +
| 0xA4
 +
| 0x368
 +
|-
 +
| Aim Weapon
 +
| 0x224
 +
| 0x4E8
 +
|-
 +
| Crouch
 +
| 0x380
 +
| 0xBC
 +
|-
 +
| Action
 +
| 0xC8
 +
| 0x38C
 +
|-
 +
| Walk
 +
| 0xD4
 +
| 0x398
 +
|-
 +
| Look Behind
 +
| 0xB0
 +
| 0x374
 +
|}
  
 
==== Vehicle Controls ====
 
==== Vehicle Controls ====
 +
<!--
 
* Fire
 
* Fire
 
** 0x3A4
 
** 0x3A4
Line 152: Line 251:
 
** 0x1E8
 
** 0x1E8
 
** 0x4AC
 
** 0x4AC
 +
-->
 +
{| class="wikitable"
 +
|-
 +
! Control
 +
! Location 1
 +
! Location 2
 +
|-
 +
| Fire
 +
| 0x3A4
 +
| 0xE0
 +
|-
 +
| Secondary Fire
 +
| 0xEC
 +
| 0xEB0
 +
|-
 +
| Accelerate
 +
| 0x128
 +
| 0x3EC
 +
|-
 +
| Brake/Reverse
 +
| 0x134
 +
| 0x3F8
 +
|-
 +
| Left
 +
| 0xF8
 +
| 0x3BC
 +
|-
 +
| Right
 +
| 0x104
 +
| 0x3C8
 +
|-
 +
| Steer Forward/Down
 +
| 0x110
 +
| 0x3D4
 +
|-
 +
| Steer Backwards/Up
 +
| 0x11C
 +
| 0x3E0
 +
|-
 +
| Enter/Exit
 +
| 0x344
 +
| 0x80
 +
|-
 +
| Trip Skip
 +
| 0x23C
 +
| 0x500
 +
|-
 +
| Next Radio Station
 +
| 0x140
 +
| 0x404
 +
|-
 +
| Previous Radio Station
 +
| 0x14C
 +
| 0x410
 +
|-
 +
| User Track Skip
 +
| 0x158
 +
| 0x41C
 +
|-
 +
| Horn
 +
| 0x164
 +
| 0x428
 +
|-
 +
| Sub-Mission
 +
| 0x170
 +
| 0x434
 +
|-
 +
| Change Camera
 +
| 0x350
 +
| 0x8C
 +
|-
 +
| Handbrake
 +
| 0x17C
 +
| 0x440
 +
|-
 +
| Look Behind
 +
| 0x1B8
 +
| 0x47C
 +
|-
 +
| Mouse Look
 +
| 0x1C4
 +
| 0x488
 +
|-
 +
| Look Left
 +
| 0x1A0
 +
| 0x464
 +
|-
 +
| Look Right
 +
| 0x1AC
 +
| 0x470
 +
|-
 +
| Special Ctrl Left
 +
| 0x1D0
 +
| 0x494
 +
|-
 +
| Special Ctrl Right
 +
| 0x1DC
 +
| 0x4A0
 +
|-
 +
| Special Ctrl Up
 +
| 0x1F4
 +
| 0x4B8
 +
|-
 +
| Special Ctrl Down
 +
| 0x1E8
 +
| 0x4AC
 +
|}
  
 
=== Mouse Settings ===
 
=== Mouse Settings ===
Line 164: Line 370:
 
** 0 = Off
 
** 0 = Off
 
** 1 = On
 
** 1 = On
 +
 +
== Audio Setup ==
 +
* 0xB1C - [byte] Radio
 +
** 0 = Mute
 +
** 64 = Full Volume
 +
* 0xB1B - [byte] SFX
 +
** 0 = Mute
 +
** 64 = Full Volume
 +
* 0xB1F - [byte] Radio EQ
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB1E - [byte] Radio Auto-Tune
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB1D - [byte] Radio Station
 +
** 1 = Playback FM
 +
** 2 = K Rose
 +
** 3 = K-DST
 +
** 4 = Bounce FM
 +
** 5 = SF-UR
 +
** 6 = Radio Los Santos
 +
** 7 = Radio X
 +
** 8 = CSR 103.9
 +
** 9 = K-JAH West
 +
** 10 = Master Sounds 98.3
 +
** 11 = WCTR Talk Radio
 +
** 12 = User Track Player
 +
** 13 = Radio Off
 +
 +
=== User Track Options ===
 +
* 0xB41 - [byte] Radio play mode
 +
** 0 = Radio
 +
** 1 = Random
 +
** 2 = Sequential
 +
* 0xB25 - [byte] Automatic media scan
 +
** 0 = Off
 +
** 1 = On
 +
 +
== Display Setup ==
 +
* 0xB20 - [word] Brightness
 +
* 0xB4A - [byte] Legend
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB3D - [byte] Radar Mode
 +
** 0 = Maps & Blips
 +
** 1 = Blips only
 +
** 2 = Off
 +
* 0xB3C - [byte] HUD Mode
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB33 - [byte] Subtitles
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB42 - [byte] Store Gallery Photos
 +
** 0 = Off
 +
** 1 = On
 +
 +
=== Advanced ===
 +
* 0xB30 - [word] Draw Distance
 +
* 0xB35 - [byte] Frame Limiter
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB34 - [byte] Wide Screen
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB2A - [byte] Visual FX Quality
 +
** 0 = Low
 +
** 1 = Medium
 +
** 2 = High
 +
** 3 = Very High
 +
* 0xB24 - [byte] Mip Mapping
 +
** 0 = Off
 +
** 1 = On
 +
* 0xB26 - [byte] Antialiasting
 +
** 1 = Off
 +
** 2 = 1
 +
** 3 = 2
 +
** 4 = 3
 +
* 0xB36 - [byte] Resolution
 +
** 1 = 640 x 480, 16 Bit
 +
** 3 = 720 x 576, 16 Bit
 +
** 4 = 800 x 600, 16 Bit
 +
** 7 = 1024 x 768, 16 Bit
 +
** 8 = 640 x 480, 32 Bit
 +
** 10 = 720 x 576, 32 Bit
 +
** 11 = 800 x 600, 32 Bit
 +
** 14 = 1024 x 768, 32 Bit
 +
 +
== Language ==
 +
* 0xB3B - [byte]
 +
** 0 = English (american.gxt)
 +
** 1 = French (french.gxt)
 +
** 2 = German (german.gxt)
 +
** 3 = Italian (italian.gxt)
 +
** 4 = Spanish (spanish.gxt)
 +
Sequence of languages is placed in gta_sa.exe
 +
 +
== See also ==
 +
* {{note|1}} [http://msdn.microsoft.com/en-us/library/dd375731%28VS.85%29.aspx Windows virtual key codes]
 +
* {{Icon|VC}} [[gta_vc.set]]
  
 
{{N|SA}}
 
{{N|SA}}
 
[[Category:File Formats]]
 
[[Category:File Formats]]

Latest revision as of 11:16, 1 September 2020

The gta_sa.set file stores the game's configuration settings for GTA San Andreas. By default it is located inside the user files directory. It gets recreated everytime you leave the game.

Controller Setup

  • 0xB3A - [byte] Configuration
    • 0 = Mouse+Keys
    • 1 = Joypad

Redefine Controls

Each key can be saved on two places. Each key place uses 2 bytes. The first byte is the Windows virtual key code [1]. The second byte specifies the state (0 = Activated, 4 = Deactivated).

Foot Controls

Control Location 1 Location 2
Fire 0x8 0x2CC
Next Weapon/Target 0x20 0x2E4
Previous Weapon/Target 0x2C 0x2F0
Group Ctrl Forward 0x518 0x254
Group Ctrl Back 0x524 0x260
Conversation – No 0x50C 0x248
Conversation – Yes 0x23C 0x500
Forward 0x38 0x2FC
Backwards 0x308 0x44
Left 0x314 0x50
Right 0x320 0x5C
Zoom In 0x32C 0x68
Zoom Out 0x74 0x338
Enter/Exit 0x344 0x80
Change Camera 0x350 0x8C
Jump 0x98 0x35C
Sprint 0xA4 0x368
Aim Weapon 0x224 0x4E8
Crouch 0x380 0xBC
Action 0xC8 0x38C
Walk 0xD4 0x398
Look Behind 0xB0 0x374

Vehicle Controls

Control Location 1 Location 2
Fire 0x3A4 0xE0
Secondary Fire 0xEC 0xEB0
Accelerate 0x128 0x3EC
Brake/Reverse 0x134 0x3F8
Left 0xF8 0x3BC
Right 0x104 0x3C8
Steer Forward/Down 0x110 0x3D4
Steer Backwards/Up 0x11C 0x3E0
Enter/Exit 0x344 0x80
Trip Skip 0x23C 0x500
Next Radio Station 0x140 0x404
Previous Radio Station 0x14C 0x410
User Track Skip 0x158 0x41C
Horn 0x164 0x428
Sub-Mission 0x170 0x434
Change Camera 0x350 0x8C
Handbrake 0x17C 0x440
Look Behind 0x1B8 0x47C
Mouse Look 0x1C4 0x488
Look Left 0x1A0 0x464
Look Right 0x1AC 0x470
Special Ctrl Left 0x1D0 0x494
Special Ctrl Right 0x1DC 0x4A0
Special Ctrl Up 0x1F4 0x4B8
Special Ctrl Down 0x1E8 0x4AC

Mouse Settings

  • 0xB14 - [dword] Mouse Sensitivity
  • 0xB18 - [byte] Invert Mouse Vertically
    • 0 = On
    • 1 = Off
  • 0xB19 - [byte] Steer with mouse
    • 0 = Off
    • 1 = On
  • 0xB1A - [byte] Fly with mouse
    • 0 = Off
    • 1 = On

Audio Setup

  • 0xB1C - [byte] Radio
    • 0 = Mute
    • 64 = Full Volume
  • 0xB1B - [byte] SFX
    • 0 = Mute
    • 64 = Full Volume
  • 0xB1F - [byte] Radio EQ
    • 0 = Off
    • 1 = On
  • 0xB1E - [byte] Radio Auto-Tune
    • 0 = Off
    • 1 = On
  • 0xB1D - [byte] Radio Station
    • 1 = Playback FM
    • 2 = K Rose
    • 3 = K-DST
    • 4 = Bounce FM
    • 5 = SF-UR
    • 6 = Radio Los Santos
    • 7 = Radio X
    • 8 = CSR 103.9
    • 9 = K-JAH West
    • 10 = Master Sounds 98.3
    • 11 = WCTR Talk Radio
    • 12 = User Track Player
    • 13 = Radio Off

User Track Options

  • 0xB41 - [byte] Radio play mode
    • 0 = Radio
    • 1 = Random
    • 2 = Sequential
  • 0xB25 - [byte] Automatic media scan
    • 0 = Off
    • 1 = On

Display Setup

  • 0xB20 - [word] Brightness
  • 0xB4A - [byte] Legend
    • 0 = Off
    • 1 = On
  • 0xB3D - [byte] Radar Mode
    • 0 = Maps & Blips
    • 1 = Blips only
    • 2 = Off
  • 0xB3C - [byte] HUD Mode
    • 0 = Off
    • 1 = On
  • 0xB33 - [byte] Subtitles
    • 0 = Off
    • 1 = On
  • 0xB42 - [byte] Store Gallery Photos
    • 0 = Off
    • 1 = On

Advanced

  • 0xB30 - [word] Draw Distance
  • 0xB35 - [byte] Frame Limiter
    • 0 = Off
    • 1 = On
  • 0xB34 - [byte] Wide Screen
    • 0 = Off
    • 1 = On
  • 0xB2A - [byte] Visual FX Quality
    • 0 = Low
    • 1 = Medium
    • 2 = High
    • 3 = Very High
  • 0xB24 - [byte] Mip Mapping
    • 0 = Off
    • 1 = On
  • 0xB26 - [byte] Antialiasting
    • 1 = Off
    • 2 = 1
    • 3 = 2
    • 4 = 3
  • 0xB36 - [byte] Resolution
    • 1 = 640 x 480, 16 Bit
    • 3 = 720 x 576, 16 Bit
    • 4 = 800 x 600, 16 Bit
    • 7 = 1024 x 768, 16 Bit
    • 8 = 640 x 480, 32 Bit
    • 10 = 720 x 576, 32 Bit
    • 11 = 800 x 600, 32 Bit
    • 14 = 1024 x 768, 32 Bit

Language

  • 0xB3B - [byte]
    • 0 = English (american.gxt)
    • 1 = French (french.gxt)
    • 2 = German (german.gxt)
    • 3 = Italian (italian.gxt)
    • 4 = Spanish (spanish.gxt)

Sequence of languages is placed in gta_sa.exe

See also