Viewing 15 posts - 16 through 30 (of 51 total)

Road.bin Editor

50 replies
13 years, 6 months ago
#14863

To edit scene2.bin in hex editor you need to know basic rules of storing items structure in this file (eg every item (object) contains value with own length of item, etc).

First rule: you mustn’t change legth of file, if you’re editing this file with hex editor.

 

I haven’t good experiences with DCED too. So I use it only for deleting objects from file <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

Other operations I do with BSV, MVE or hex.

 

Follow analysis pictures I will use in the manuals. From Czech versions:

 

Left: ped definition

Center: cars def.

Right: tram def.

[img]//dl.dropbox.com/s/ecryswjb28ad6p6/screen03.jpg&key=839bf186afad2662d21e173c3c7619ef217d5c432f076f6f530a7b741598d9e0[/img] (open it in new tab)

In English versions, descriptions will in eng. lang of course <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″> , but I haven’t they translated yet.

13 years, 6 months ago
#14867

I just can’t wait for this amazing tool! <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/tongue@2x.png 2x” width=”20″ height=”20″>

Neither can I <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x” width=”20″ height=”20″>

13 years, 5 months ago
#15176

Just to ask, do you have an update? <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

13 years, 5 months ago
#15177

Just to ask’ date=’ do you have an update? <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″> [/quote’]

Unfortunately I haven’t a lot of time last week, but I’m working on it <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

I had to find how are implement semaphores, police roadblocks etc. Eg roadblocks aren’t in road.bin file, but they are dummies in watercity.4ds model. All this will be explained in manual.

13 years, 5 months ago
#15178

very well!

It’s impressive what kind of research you are putting into this.

13 years, 5 months ago
#15182

Wait, when you must keep file lenght, you cannot add/remove more cars, you can only modify parameters of existing cars?

13 years, 5 months ago
#15195

Wait’ date=’ when you must keep file lenght, you cannot add/remove more cars, you can only modify parameters of existing cars?[/quote’]

Every name of car in traffic definition object have buffer with size 20 Bytes. For exammple: car_ford – length of this string is 8 Bytes, remainder to 20 Bytes (here 20 – 8 = 12 Bytes) is filled zero Bytes (see picture below). So if you don’t need add new cars to traffic, by editing names of old cars (in hex editor) you don’t change lenght of file.

 

About Add or remove cars: cars are in this obj. definition in a little database with number of cars and others values. If you extract this traffic definition with DNC Extractor to DNC file, then you can change legth in this DNC file, because it contains only one extracted object. But then you have to recalculate length of item and import DNC (overwrite old object definition) into scene2.bin.

 

[img]//dl.dropbox.com/s/91khuf4ngp7e140/screen04.jpg&key=aed474a4bc32befae832e1b3c3c4f4d0e82a66775abc9dd7150d931582163f34[/img]

13 years, 5 months ago
#15271

Oh, I am so tired to write english correctly, so sorry guys…

djbozkosz, please tell, where in scene2.bin are defined car driver models? Where is defined, that policecar is always driven by firemen, gangsters car by gangsters….?

I did a one experiment, I’ve added cad_road and it was always driven by men in hat, OK. But I’ve added to traffic my own car (totally new car, adder by mafia car adder) and it was always driven by old lady in pink suit. How should I define driver model?

13 years, 5 months ago
#15275

Oh, I am so tired to write english correctly, so sorry guys…

djbozkosz, please tell, where in scene2.bin are defined car driver models? Where is defined, that policecar is always driven by firemen, gangsters car by gangsters….?

I did a one experiment, I’ve added cad_road and it was always driven by men in hat, OK. But I’ve added to traffic my own car (totally new car, adder by mafia car adder) and it was always driven by old lady in pink suit. How should I define driver model?

 

I never used this tool, but I searched for you where are defined driver models. Look into tablesplayerindex.def file. In this file is the list with human models with ID. For name of model is defined space with size 20 bytes and after every name is an integer (4 bytes) number – ID. When I changed model of fireman – Hasic01.i3d to pol01.i3d (policeman), the fire truck was ridden by policeman. It depends on the ID, in the file are IDs: 1, 2, 4, 6, 10, 12, C, 20, 40 and 20000 (all in hex). I don’t know how to determine these IDs and which on files are linked. Maybe carcyclopedia.def, carindex.def or vehicles.bin. Who knows …

13 years, 5 months ago
#15281

It’s 100% carindex. In carcyclopedia, there are only names of cars and asociations with ID in textdb (hmotnost, výkon, motor, pÃâ¢evodovka), in vehicles.bin, their driving properties, and in carindex.def, there are for example associations with shadows models, preview pictures and manufacturer of car and some ID related with stealing possibilty.

That carindex.def file is different for 1.0 and 1.2. So when you are creating new car, just keep vehicles.bin and it’s enought. You won’t be able to select that car in freeride, in traffic, you won’t be able to steal it, but when you place it with editor, it will be fully usable.

13 years, 5 months ago
#15324

So… <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

 

I have a little surprise for you to today Mafia 10th years anniversary.

 

I finished Road.bin Editor with Czech and English manuals:

http://djbozkosz.wz.cz/Road.binEditor.zip

 

and Check.bin Editor by zibob32 with Czech and English manuals by me:

http://djbozkosz.wz.cz/Check.binEditor.zip

 

They are temporary links. Tomorrow I’m uploading into download section (btw why there mixed Mafia and Mafia II editors both irritated.gif )

 

I hope, these tools and materials helps you and you like it <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x” width=”20″ height=”20″>

 

If you will be have any troubles or if you find any bug in editor, please leave here a message.

13 years, 5 months ago
#15327

Zasraný webzdarma ><img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/sad@2x.png 2x” width=”20″ height=”20″>

I downloaded check.bin and it’s OK, thanks of lot for it <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″> But I’m not able to download whole road.bin file, well, I have to be patient and wait until tomorrow <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x” width=”20″ height=”20″>

13 years, 5 months ago
#15330

Thanks for the links djbozkosz <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x” width=”20″ height=”20″>

13 years, 5 months ago
#15331

Editors have been uploaded to Download Section <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

 

http]

13 years, 5 months ago
#15332

Editors have been uploaded to Download Section <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″> 

http]

Thanks <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

Viewing 15 posts - 16 through 30 (of 51 total)
  • You must be logged in to reply to this topic.