Coder Social home page Coder Social logo

gtav-decompiled-scripts's Introduction

GTA V Decompiled Scripts

This repository contains all necessary components to export the scripts of GTA5.

If you don't want to decompile the scripts yourself you can find them in the folder: decompiled_scripts.

Note that this is a git repository, so there is a history, if you want to look at older scripts.

  • Thanks to Sainan

Doing it yourself

  1. Clone this repo.
  2. Install sfk, we will use this tool to change one byte in all scripts so that OpenIV can decrypt the scripts
  3. Use OpenIV to navigate to update/update2.rpf/x64/levels/gta5/script/script_rel.rpf.
  4. Press Ctrl+A then right-click and select "extract" to extract all scripts into the "raw_scripts" folder.
  5. Download the background script from http://prod.cloud.rockstargames.com/titles/gta5/pcros/bgscripts/bg_ng_xxxx_y.rpf where xxxx_y equals your the game build, e.g. bg_ng_2944_0.rpf for build 2944, and extract "valentinerpreward2" via OpenIV and copy it to raw scripts.
  6. Open a terminal in the folder where you just copied the raw scripts. And execute the following command:
    sfk rep -binary /525343370C/525343370A/ -dir . -file .ysc
    --> replace byte: 0xC with 0xA
    --> only shows the diff
    
    sfk rep -binary /525343370C/525343370A/ -dir . -file .ysc -yes
    --> confirm editing
    
  7. Upload the edied raw scripts somewhere with OpenIV in your GTA 5 directory.
  8. Press Ctrl+A then right-click and select "Save Content/Export" to export all scripts to scripts
  9. Run following command on your terminal: php bulk_decompile.php.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.