0
Mr Robville

Increddible asset of modding tools

Recommended Posts

Facial animations are used while talking. So you must create string ID in textdb_en.def, name your DAT animation same as string ID (same for WAV file, if you are using it) and ingame, you can use human_talk nn, stringID.

Share this post


Link to post
Share on other sites

When I was writing Road.bin Editor and I was bored from it, I started developing some little editors.

 

 

Menu.def Editor

With this tool you can edit windows in game - adding, editing, removing items in windows. Menu.def file is in the tables folder.

screen06.jpg

But I was a little fail, because I expected a little bit more things defined in this file, eg position and size of speedmeters, creating new and new subwindows etc. But everything in this file is controlled by Game.exe, so if you create a new window, it works, but every windows after new window will be moved of one offset, because you created a new window.

But you still use it to create some string eg to main menu with description of your mod, or you can remove items in main menu which are unsuitable in your mod. So main menu can looks: New Game, Load Game, Quit :) Or you can totally relocate and change size of windows with items.

Some of hidden windows, most are accessible from Mafia Multiplayer Racing Mod.

screen07.jpg

 

 

The second editor is Parnik.def Editor

Parnik.def file is in the tables folder. Parník is in Czech: steamer. And in this file are navigation paths to cargo ship, which rides in the city. Model of ship is lodriver.4ds and at the moment are generated two ships. If you want that ship rides in countryside, you have to import a Bridge definition into eg FREEKRAJINA mission. And link definition to existing name, which ends 01 number.

In FREERIDE it is: LLsklap01 and sklapx01. In FREEKRAJINA you remane it to eg: Mesh01.

Mesh01 is model of hangar at the airport, but it doesn't matter :)

screen08.jpg

Share this post


Link to post
Share on other sites

djbozkosz when release date Menu.def Editor and Parnik.def Editor ? :)

 

thanks for Road.bin editor! ^-^

Share this post


Link to post
Share on other sites
djbozkosz when release date Menu.def Editor and Parnik.def Editor ? :)

 

thanks for Road.bin editor! ^-^

 

Thanks too, I want it release not later than two weeks, because then starting semester and I will not have time to finish it. And they are simple editors, so I will not write manuals for it, but some simple readme :)

Share this post


Link to post
Share on other sites

Whow..... massive breaktroughs with modding tools and you create them while you are bored! ;D

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!

Share this post


Link to post
Share on other sites
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:

screen09.jpg

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

The 5DS converter and the lipsync tool seems lulz - wonder if we can make a Gangnam Style remake in Mafia... ;D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0