maybegreat48 / GTA-V-Script-Decompiler

A program that can decompile script resource (ysc) files for the PC version of Grand Theft Auto V and Red Dead Redemption 2
66 stars 20 forks source link

RDR2 Script #19

Open PliskinDev opened 7 months ago

PliskinDev commented 7 months ago

hi, I would like to point out that scripts on pc are scrambled, as for the console and stadia are unscrambled

maybegreat48 commented 7 months ago

Do you mean the opcodes?

PliskinDev commented 7 months ago

yeah, what they do is randomize the opcodes on every update

PliskinDev commented 7 months ago

there are ways to get around it like using script signatures from previous versions to compare to the new one or by looking at the switch in the exe, you could theoretically build a tool to take the rdr2 exe and find the switch and parse the x64 to find the numbers then use opcode signatures to determine the opcodes.

PliskinDev commented 7 months ago

so I suggest adding in decompiler like opcodes crossmap or translation, this is from a previous version 1355, you can take a look at it

https://www.mediafire.com/file/hyapf3ad9919gpp/RDR2OpcodeTranslationPC.txt/file