Go to file
Pirulax f1fc49a209
`ScriptEntity` - Wrapper for an entity + it's handle (#1137)
* fix: Fix incorrect check in `AddCollisionSoundToList`
* Implement `ScriptEntity`

---------

Co-authored-by: Seemann <x87@users.noreply.github.com>
2025-12-13 12:57:13 +00:00
.github General refactor (#987) 2025-04-04 00:23:33 +03:00
cmake Add doxygen 2022-06-07 17:38:48 +03:00
contrib Remove plugin `III.VC.SA.WindowedMode.asi` (#1120) 2025-08-29 21:08:13 +00:00
docs Update `ReversedClasses.md` and `hooks.csv` (#1065) 2025-05-03 18:07:42 +03:00
source `ScriptEntity` - Wrapper for an entity + it's handle (#1137) 2025-12-13 12:57:13 +00:00
.clang-format `CAEVehicleAudioEntity` (#892) 2025-06-01 13:39:11 +02:00
.editorconfig Update .editorconfig 2020-05-01 21:08:26 +05:00
.git-blame-ignore-revs Add .git-blame-ignore-revs 2025-04-02 20:08:31 +03:00
.gitignore Implement SDL3 instead of DInput and Win32 shenanigans (#925) 2025-04-10 18:53:05 +02:00
CMakeLists.txt General refactor (#987) 2025-04-04 00:23:33 +03:00
CMakePresets.json General refactor (#987) 2025-04-04 00:23:33 +03:00
README.md Remove plugin `III.VC.SA.WindowedMode.asi` (#1120) 2025-08-29 21:08:13 +00:00
conanfile.py Implement SDL3 instead of DInput and Win32 shenanigans (#925) 2025-04-10 18:53:05 +02:00
conanprofile.txt General refactor (#987) 2025-04-04 00:23:33 +03:00
setup.py General refactor (#987) 2025-04-04 00:23:33 +03:00

README.md

gtasa-reversed Build Status

A project to reverse Grand Theft Auto San Andreas completely, and to rewrite and document every function.

Community

Please join our community Discord: GTA Groupies [The invite is permanent, feel free to share it!]

About the project

Building this project will result in a DLL file that can be injected into GTA:SA using any ASI loader out there. After the DLL file has been injected, the ingame functions will be replaced by the reversed ones. The game will behave the same. Now if we make any changes to the reversed code, it will take effect in the game. The goal is to keep reversing until we have the entire game reversed to compile a standalone executable.

Progress

The progress of reversed classes can be tracked here. (needs to be updated) We currently estimate that about 50-60% of the code is done. Since this project is done as a hobby, and worked on at irregular intervals, there's no time estimate on when it'll be finished.

Build Instructions

0. Requirements/Prerequisites

1. Install Python and Conan

  • Install the latest Python [When installing make sure to tick the "Add to PATH" checkbox!]
  • Install Conan using pip install conan [You might need to reload the console if you've freshly installed Python.]
  • If you are installing Conan for the first time, also run conan profile detect

2. Setting up VS

  1. Run the setup script with python setup.py. Use --help for more info.
  2. Open the generated VS solution at build/GTASA.sln, alternatively you can open the root folder with VS's native CMake integration but it isn't as good as the generated sln solution as for now.
  3. You can also type cmake --build build to build in command line.

3. Set up the game and ASI

  1. GTA SA Compact exe: Our code requires you to use this exe, otherwise you will experience random crashes. You must own the original game and assets for this to work.

[!IMPORTANT] GTA SA Compact exe is not the same as 1.0 US exe, so check that your executable is exactly 5'189'632 bytes (4.94 MiB).

  1. To install all the necessary files (after building the project!), run contrib/install.py with administrator privileges [Necessary to create symlinks on Windows] in the root directory. Alternatively, you can install them by yourself:

    • ASI Loader
    • Mouse Fix (dinput8.dll) [Can be found in the zip in the contrib folder]

    You can download them in a single archive.

Other plugins

Using other (than the ones we've tested) plugins is strongly discouraged and we provide no support.

Contributing

Coding/Contributing Guidelines

Before you start writing code, please make sure to read the coding guidelines for this project. Consider these points before opening a PR:

  • Follow the coding guidelines, it exists for a reason.
  • Try to focus your changes onto single subject, do not create PRs that cover many things at once. This is because it's hard to properly test and review such PRs.
  • If you intend to add non-vanilla features please first consult with us, so you don't waste your time.

What to work on?

Check out this discussion for some inspiration ;)

Debugging

  1. Make sure the latest DLL is in the scripts folder of your GTASA installation - Skip this step if you've used contrib/install.py (As it uses symlinks!)
  2. Launch the game
  3. Attach using the ReAttach plugin to make your life easier

Credits