OfficerJohnson Posted March 28, 2018 Share Posted March 28, 2018 Hello everyone. Long time, no post. Been trying wrap my head around further things. Still all a bit confusing. So, we have these so-called Decompiled scripts, but trying to look through them is like reading Chinese... First off, what programming language are the Decompiled scripts in? C? Second, do you have any tips on how to better decipher them or make them more easily understandable? Should I be using IDA? Thank you for your help if you choose to reply. Link to comment Share on other sites More sharing options...
OfficerJohnson Posted April 1, 2018 Author Share Posted April 1, 2018 No one? It's not a C language? Perhaps assembly? Any little bit you can provide is a start. I can research the rest. Link to comment Share on other sites More sharing options...
Bob_74 Posted April 1, 2018 Share Posted April 1, 2018 Decompiled scripts are in C. They are quite hard to read but sometime you will find useful informations in them. Link to comment Share on other sites More sharing options...
OfficerJohnson Posted April 1, 2018 Author Share Posted April 1, 2018 Decompiled scripts are in C. They are quite hard to read but sometime you will find useful informations in them. C language? Thank you. Will look into a course and get more acquainted. Link to comment Share on other sites More sharing options...
Bob_74 Posted April 1, 2018 Share Posted April 1, 2018 (edited) If you know C# or C++ you should understand it quite easily What is weird about these scripts is that they are decompiled so we don't have the name of the variables or functions. Variables are named depending of their type: iLocal_0 is a local variable (its scope is limited to this script) of type int since it starts with an i. u stands for Unknown, that's why they are noted of the var type. f = float, b = bool, etc. Functions are named func: int func_134(int iParam0, int iParam1) This function returns an int and accept two parameters of type int. You would have written the same thing in C# Edited April 1, 2018 by Bob_74 Link to comment Share on other sites More sharing options...
NModds Posted April 4, 2018 Share Posted April 4, 2018 If you wanted to see how a function from nativedb works, do you go to each file and try to find it or do you use some sort of program to open and search all of them? Link to comment Share on other sites More sharing options...
Bob_74 Posted April 4, 2018 Share Posted April 4, 2018 (edited) If you wanted to see how a function from nativedb works, do you go to each file and try to find it or do you use some sort of program to open and search all of them? I'm not an expert on decompiled scripts, but what I do is opening all scripts at once with Notepad++ and searching the function I want to find in all the files. That way, I'm sure to find it quickly EDIT: To ease Notepad++ task, sometime I make a Windows search to filter the files and have less to open in Notepad++ Edited April 4, 2018 by Bob_74 NModds 1 Link to comment Share on other sites More sharing options...
Jitnaught Posted April 4, 2018 Share Posted April 4, 2018 In Notepad++ press CTRL + Shift + F and use the popup to search in a folder. NModds, Bob_74 and Larph 3 Link to comment Share on other sites More sharing options...
NModds Posted April 5, 2018 Share Posted April 5, 2018 I can't believe I have never seen that function before. Thanks guys. Jitnaught 1 Link to comment Share on other sites More sharing options...
Larph Posted April 23, 2018 Share Posted April 23, 2018 w00t my notepad++ awesometer just went up even more ! Link to comment Share on other sites More sharing options...