Announcement

If you are having trouble logging in, please reset your password.
If that does not work, please use the "Contact Us" to contact an admin.

#15 August 10, 2012, 09:45:27 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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 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">




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.




(open it in new tab)




In English versions, descriptions will in eng. lang of course  <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">  , but I haven't they translated yet.

#16 August 10, 2012, 10:20:40 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteI just can't wait for this amazing tool!   <img src="/wp-content/uploads/invision_emoticons/tongue.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/tongue@2x.png 2x" width="20" height="20">




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

#17 August 20, 2012, 05:01:08 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Just to ask, do you have an update?   <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">

#18 August 21, 2012, 09:16:49 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteJust to ask' date=' do you have an update?   <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"> [/quote']

Unfortunately I haven't a lot of time last week, but I'm working on it  <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">




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.



#19 August 21, 2012, 09:47:38 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
very well!




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

#20 August 21, 2012, 01:09:35 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Wait, when you must keep file lenght, you cannot add/remove more cars, you can only modify parameters of existing cars?

#21 August 21, 2012, 03:30:16 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteWait' 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.


 








#22 August 24, 2012, 08:07:20 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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?

#23 August 25, 2012, 04:48:12 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteOh, 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 ...

#24 August 26, 2012, 09:50:05 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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.

#25 August 28, 2012, 09:39:09 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
So...   <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">


 




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    )


 




I hope, these tools and materials helps you and you like it  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="" 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.

#26 August 28, 2012, 10:21:03 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Zasraný webzdarma ><img src="/wp-content/uploads/invision_emoticons/sad.png" alt="" 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 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">  But I'm not able to download whole road.bin file, well, I have to be patient and wait until tomorrow  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20">

#27 August 28, 2012, 11:23:37 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Thanks for the links djbozkosz  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20">

#28 August 28, 2012, 11:31:59 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Editors have been uploaded to Download Section   <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]

#29 August 28, 2012, 11:44:38 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteEditors have been uploaded to Download Section   <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]





Thanks  <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">