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
73 stars 23 forks source link

RDR2 Script #19

Open PliskinDev opened 10 months ago

PliskinDev commented 10 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 10 months ago

Do you mean the opcodes?

PliskinDev commented 10 months ago

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

PliskinDev commented 10 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 10 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