- This topic has 37 replies, 9 voices, and was last updated 13 years, 1 month ago by .
Increddible asset of modding tools
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!
Forgive 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:
[img]//djbozkosz.wz.cz/screen09.jpg&key=98d38776f2a3154477b19defa0993b20866c14e2e9d1171f5a6974dc227089bb[/img]
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.
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.
I updated to Download Section: Menu.def Editor
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>
Very good! djbozkosz ^-^ ++++!
Yeah, great work indeed! This will sure help me out a lot, just like your other tools! 
The 5DS converter and the lipsync tool seems lulz – wonder if we can make a Gangnam Style remake in Mafia… 
great
- You must be logged in to reply to this topic.
