![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#16 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Now, select the NavalMine under this and note the location.
In the hex editer select address and set it up like this. ![]() Hit OK and your right at the start of this block. Change the name from NavaiMine to Mine and fix the size info and save. Re-open the dat in pack3d and check it. if you've got it right you now know how to Re-name things anyway you like. The next thing we'll do is Dis-arm the mine! ![]() |
![]() |
![]() |
#17 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Ok, today we'll work with the NavalMine.zon file.
It's nice and small so you won't get lost, will reinforce what we know already, and has plenty of new areas we need to learn. Opening NavalMine.zon with Pack3d 5 will show you several limitations of Pack3d right off the bat. And I'll point them out as we go. Now open the same file with Hex Editor and look at all the pretty numbers! While I try to get some images up (Nets a bit iffy today) pickout what you learned earlier as best you can. We will dis-arm the mine by setting min and max areas = 0 Then we'll take the zon file apart, one piece at a time. We are going to save the sections we remove as we will re-assemble everything later on. |
![]() |
![]() |
#18 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() ![]() 1st, the 0A 00 00 00 should be all YELLOW, My goof. ![]() But, Yellow tells us the type/subtype = 10/-1 Everything in RED is size, and we'll break this all down in a moment. GREEN is this files ID number as Pack3d shows you. Now the BLUE is the PARENT ID. If you look at NavalMine.dat you'll see this same ID and what it belongs to. So what this first chunk is telling the Game Engine goes like this. I am a Type 10, SubType -1 (YELLOW) 28 bytes of information follows. (RED) My name (ID) is AD FD 71 B8 E4 C0 71 9B (GREEN) I belong to 9A 88 45 36 F1 24 3C B1 (BLUE) I am an Explossive. |
![]() |
![]() |
#19 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Now we'll start tearing apart the zon file from the top down.
With the zon file open in Hex Editor, click the very 1st byte in the file, click on edit then click Block mark. We know 0A is the start of a new chunk so click on the 00 BEFORE the 0A. Again click edit, Block mark and you should see this. ![]() Click edit, select Clipboard, then Copy as hex string. Now we open another Hex Editor. Same one your using now just another instance of it. Click on the 1st empty byte in this second Editor, Click edit, select Clipboard, then Paste as hex string. Save this as headerz.bin then close this second copy. Back to the main part shown above, click edit, select Block delete, and save the file. We now have the header saved for later use and our zon file is smaller and easier to work with. |
![]() |
![]() |
#20 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Do a block mark again at the 0A that should be at the start of our zon file now.
Following what we know so far this chunk is 28 bytes starting the count at the 1st byte of the ID, which is the AD. Click on the AD. Now, I don't want to count 28 bytes, and in bigger files we may need to move 1000's of bytes! Select Address, then Jump width. Set this to decimal, then enter 28, click OK. Select Address again, Jump down and block mark this. Do your copy and save just like before calling this introz.bin Then Block delete, and save this file again. We haven't lost anyone so far have we? |
![]() |
![]() |
#21 |
Rear Admiral
![]() Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
|
![]() ![]() Must keep ahead :rotfl: Still here mate Though I must admit not the time to actually do the lesson yet Damn GWX :hmm: But will have a go when have a free afternoon |
![]() |
![]() |
![]() |
#22 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Not a problem BBW.
I'll also have all this setup as a downloadable Guide also. It's being set up as a little book like program that allows you to turn the pages, so to speak. |
![]() |
![]() |
#23 |
Rear Admiral
![]() Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
|
![]()
WOW
Nice one Even better |
![]() |
![]() |
![]() |
#24 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
5 bytes of info. Go to the start of this chunk which is position 76373. 1st 4 bytes = 4 next 4 bytes = 100 The next 4 bytes are the size, reduce this by 5. Pay attention to the lesson before this one as they show you how to do this. |
|
![]() |
![]() |
#25 |
Officer
![]() Join Date: Oct 2006
Location: filton england
Posts: 246
Downloads: 0
Uploads: 0
|
![]()
cool thanks alot
![]() |
![]() |
![]() |
![]() |
#26 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Learning to identify the parts of the dats is easy once you get these basics.
The final goal of working with these files will be to build your own Barrage Balloon! |
![]() |
![]() |
#27 | |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]() Quote:
must to be "Skip the first 12 bytes. It's file header and we pass it". Next data block is usual data block (chunk?) Type 1000 it can to have a name "Author's Description" (for exemple). It is important for creation of the program of Pack 3D type. Next it's data block (chunk?) Type 0, SubType (version) 0 and size = 0 (all 12 bytes). It's marker-block of beginig of data interesting us. In the end of a file we have a marker-block of the end of data interesting us. It's data block Type 0, SubType (or Version) 1 and size = 0 (all 12 bytes). P.S. What is it chunk? In the programming language (for example C ++) it refers to the data block ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 03-09-07 at 11:21 AM. |
|
![]() |
![]() |
![]() |
#28 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Thanks Anvart
![]() I'll change my reference files to match this info! |
![]() |
![]() |
|
|