# gopro2027/paradisegta architecture

> Architecture diagram of the GitHub repository gopro2027/paradisegta, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gopro2027/paradisegta
- Repository: https://github.com/gopro2027/paradisegta

## Overview

##### Project Type and Purpose
- ParadiseGTA is a mod (SPRX) developed for GTA V Online on the PS3. Its purpose is to hook into and modify game behavior using a collection of native call interfaces, custom mod functionalities, and debugging tools. The README emphasizes that it was originally developed over several years (from 2015) to modify and interact with GTA V Online.
- It is a standalone project mainly written in C++ with potential integration of external toolchains (like SC-CL) and utilities for debugging on the PS3 (under PS3_Debug).

##### Analyzing the File Structure
- At the top level, files like BitmapLoader.h, Buttons.h, GTAStructs.h, Natives.h, Mods.h, and others indicate that many components are focused on game-specific functionality (graphics, input handling, and native API calls).
- The inclusion of headers such as Networking.h and crypto.h suggests that there are networking and security-related aspects that need to be considered.
- The “Other” directory contains SC-CL-master, which appears to be an external tool/library. This provides a pre-built interface (with binaries and includes for different games such as GTAIV, GTAV, RDR) that is likely used for some parts of the mod’s functionality.
- The PS3_Debug directory groups together PS3-specific debugging utilities and scripts (e.g., make_hen_sprx.bat, unfself.exe). These are essential for building, testing, and deploying the mod in a PS3 environment.
- The presence of classic Visual Studio project files (ParadiseGTA.sln, .vcxproj, and associated filters) confirm that this is a C++ project relying on a structured development environment.

##### Main Components and Their Relationships
a. Core ParadiseGTA Mod Module:
- Represents the heart of the mod, including the main functionalities (mod logic, hooks, modifications) provided by files like GTAStructs.h, Mods.h, GlobalStuff.h, and various native interfaces (Natives.h, nativeCaller.h).
- This component is responsible for injecting or integrating the modifications into GTA V Online on the PS3.

b. Native Call and Game Hook Interfaces:
- Files such as Natives.h, GTAStructs.h, and Enums.h indicate that there is an abstraction layer for interacting with the game’s native functions.
- This component forms the bridge between the mod’s custom code and the game’s internal APIs.

c. Utility and Support Libraries:
- Several headers (MyMath.h, base64.h, crypto.h) suggest that there are low-level utility functions supporting data encoding, cryptography, and calculations.
- This utility component enhances core functionalities and supports additional features (possibly related to networking or security).

d. External Tools and Libraries (SC-CL-master):
- The “Other/SC-CL-master” subdirectory contains an external project with its own include and binary directories, indicating that it supplies additional functionalities—likely for handling or producing shellcode-like interfaces or interfacing with other games.
- It shows modularity, allowing ParadiseGTA to use external libraries and tools for extended compatibility.

e. PS3 Debug Utilities:
- The PS3_Debug folder harbors scripts and utilities (like make_hen_sprx and unfself.exe) that are important during the development and debugging phase on PS3 hardware.
- This suite assists with tasks such as encryption, self-loading, and potentially patching or bypassing security measures.

f. Other Supporting Components:
- Additional header files (e.g., XML.h, Scaleforms.h, Buttons.h) imply dedicated functionalities for UI, graphical overlays, and input handling.
- The inclusion of files related to communication (Networking.h, RTMCommands.h, RTMTool.h) suggests there might be runtime command handling and possibly remote management functionality.

##### Summary of Elements
- Clear labels for each component such as:
- ParadiseGTA Core Module (Game Hooks & Mod Logic)
- Native Call Interface (handling native GTA functions)
- Utility/Support Libraries (math, crypto, base64)
- Networking & Command Tools (RTMCommands, RTMTool)
- External Tools (SC-CL for additional functionalities)
- PS3 Debug Utilities (for build and runtime debugging on PS3)

## Diagram (Mermaid)

```mermaid
graph TD
    subgraph "Core Engine Components"
        CORE["ParadiseGTA Core Module (Game Hooks & Mod Logic)"]:::core
        NATIVE["Native Call Interface"]:::interface
        UTILITY["Utility/Support Libraries"]:::utility
        NETWORK["Networking and Command Tools"]:::network
        INPUTUI["UI, Graphics and Input Handling"]:::ui
    end

    subgraph "External & Debug Tools"
        EXTERNAL["External Tools & Libraries (SC-CL)"]:::external
        PS3DEBUG["PS3 Debug Utilities"]:::debug
    end

    CORE -->|"calls"| NATIVE
    CORE -->|"uses"| UTILITY
    CORE -->|"communicates"| NETWORK
    CORE -->|"integrates"| INPUTUI
    CORE -->|"integrates"| EXTERNAL
    CORE -->|"debugs_with"| PS3DEBUG

    click CORE "https://github.com/gopro2027/paradisegta/tree/main/ParadiseGTA_optimized_2020"
    click NATIVE "https://github.com/gopro2027/paradisegta/tree/main/ParadiseGTA_optimized_2020"
    click UTILITY "https://github.com/gopro2027/paradisegta/tree/main/ParadiseGTA_optimized_2020"
    click NETWORK "https://github.com/gopro2027/paradisegta/tree/main/ParadiseGTA_optimized_2020"
    click INPUTUI "https://github.com/gopro2027/paradisegta/tree/main/ParadiseGTA_optimized_2020"
    click EXTERNAL "https://github.com/gopro2027/paradisegta/tree/main/ParadiseGTA_optimized_2020/Other/SC-CL-master"
    click PS3DEBUG "https://github.com/gopro2027/paradisegta/tree/main/ParadiseGTA_optimized_2020/PS3_Debug"

    classDef core fill:#ffcccc,stroke:#333,stroke-width:2px;
    classDef interface fill:#ccffcc,stroke:#333,stroke-width:2px;
    classDef utility fill:#ccccff,stroke:#333,stroke-width:2px;
    classDef network fill:#ffcc99,stroke:#333,stroke-width:2px;
    classDef ui fill:#ffffcc,stroke:#333,stroke-width:2px;
    classDef external fill:#ccffff,stroke:#333,stroke-width:2px;
    classDef debug fill:#ffccff,stroke:#333,stroke-width:2px;
```
