Page 1 of 1

Nice!

PostPosted: Fri Dec 30, 11 8:21 pm
by bambi
Hey good to see a society going!

What is the difference between decompile and exporting?

PostPosted: Fri Dec 30, 11 10:56 pm
by ~DJ~
If you mean about WOTGreal or some software like that;

Export means directly export what is visible, whereas decompile would mean that it will read the code and basically write it itself.. you'll get that 'UnknownFunction<some>' or something like that when you decompile.. mostly.. so it's recommended that you 'export'

PostPosted: Mon Jan 02, 12 10:13 pm
by Poor
The source code is usually included with a package. Exporting will give you this source code. Sometimes people will be silly and strip the source code from the package so you can't export it. In that case you can use a decompiler which will read the bytecode and attempt to rewrite the source code.

If you need to decompile something, UTPT is a much better decompiler than WOTGreal. It will show the real native functions instead of the UnknownFunction crap and it can see some stuff that WOTGreal does not. But keep in mind that decompiled code is often incomplete and it will need to be fixed. The most annoying thing is the loops; they turn into if and goto statements with missing labels so you will need to place the labels yourself.

PostPosted: Tue Jan 03, 12 4:29 pm
by ~ô¿ô~Nobody~
Poor wrote:The source code is usually included with a package. Exporting will give you this source code. Sometimes people will be silly and strip the source code from the package so you can't export it. In that case you can use a decompiler which will read the bytecode and attempt to rewrite the source code.
Please remain unbiased. Although, I basically prefer open source too, it makes sense to remove it in some cases. For instance on security mods or if you want to make the mod smaller.

Poor wrote:If you need to decompile something, UTPT is a much better decompiler than WOTGreal. It will show the real native functions instead of the UnknownFunction crap and it can see some stuff that WOTGreal does not. But keep in mind that decompiled code is often incomplete and it will need to be fixed. The most annoying thing is the loops; they turn into if and goto statements with missing labels so you will need to place the labels yourself.
Furthermore it's often having problems evaluating the replication conditions and it can't reverse enum values..
Also.. all this doesn't work if the mod was protected.