Announcement

If you are having trouble logging in, please reset your password.
If you are not getting an activation email, please check your spam or
use the "Contact Us" to contact an admin.
#30 September 02, 2012, 10:08:10 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Whow..... massive breaktroughs with modding tools and you create them while you are bored!    




You just keep impressing me with any new tool you show us all.




This might be a silly question, but can you explain in a short sentence of how you do all this?




Like, where do you read mafia's code from? and how do you know what you are doing?


 




Forgive me for asking it, but I'm fasinated!

#31 September 03, 2012, 08:25:31 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteForgive me for asking it' date=' but I'm fasinated![/quote']

At first you have to be able reading binary files with hex editor. When you understand for data structure, it isn't problem to write some editor for it. To write programs you have to know any programming language, like C or C++ ...


 




Little example with menu.def file:









Fig. 1




When you open menu.def file, you will see like this.


 




Fig. 2




Then, you see some strings: srev, tniw, txtc, etc... Maybe, it is in every item in the file. You don't know what does it mean, but it indicates fixed length of every item - 36 bytes.


 




Fig. 3




Then, you can identify every item.


 




Fig. 4




Then, you have to identify every values in the item. But you have to know something about storing data types.




Int is an integer number stored on four bytes. Float is real number stored on four bytes too.




But every these number are stored with inverted byte order. I'm using for converting Base Converter with set byte order to Intel. I included this tool to Road.bin Editor archive.




In most cases have int zeros in the right and floats have zeros in the left. Then, you can safely identify all values in the item.


 




Fig. 5




Then, you have to indentify what for are all these values in the item. You haven't got a lot of choices, so you have to change these values and find any changes in windows in the game.


 




When you identify all values, you have decoded whole file.


 




Note: For programming editor - in the file is little problem, because you haven't know, how many items are in the file. So you have to reading items to the end of file.



#32 September 04, 2012, 01:01:52 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Thanks a lot for explaining! it sure made it a lot more clear.




Only one thing I haven't got yet, How can you see these fixed lengths are 36 bytes? I do see the sections you marked but it hasn't made much sense to me yet what caused each section to start and end.

#33 October 02, 2012, 02:37:28 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
I updated to Download Section: Menu.def Editor  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">


 




http]

#34 October 03, 2012, 08:28:44 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Very good! djbozkosz   ^-^   ++++!

#35 October 03, 2012, 08:57:13 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Yeah, great work indeed! This will sure help me out a lot, just like your other tools!  

#36 October 06, 2012, 03:08:36 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
The 5DS converter and the lipsync tool seems lulz - wonder if we can make a Gangnam Style remake in Mafia...  

#37 December 31, 2012, 06:21:31 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
great