SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-08-07, 01:53 AM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default Hex Edit 101

Is anybody interested in some time spent learning some of the ins and outs
of Hex Editing SH3?
I've learned a great deal thanks to so many here and time spent digging around.
But all the info is scattered, makeing it hard to learn for most.
I do not have all the answers, but I think I can teach most anyone how it
all works, how to spot what you want, and what connects what.
What do you think?
  Reply With Quote
Old 02-08-07, 03:43 AM   #2
JU_88
Silent Hunter
 
Join Date: Jan 2006
Location: UK
Posts: 3,803
Downloads: 11
Uploads: 0
Default

yes please!! if could take time to write a tutorial that would be fantastic
JU_88 is offline   Reply With Quote
Old 02-08-07, 04:17 AM   #3
Mr.Fleck
Planesman
 
Join Date: May 2005
Location: Germany
Posts: 197
Downloads: 0
Uploads: 0
Default

Hello Privateer,

a very good idea to share your knowledge in a wiki, offline document, web page or where ever it suits you.

Cheers!
Mr. Fleck
__________________

Newest addition:
"Fate": http://www.youtube.com/watch?v=a-aoj-kWazs
Mr.Fleck is offline   Reply With Quote
Old 02-08-07, 04:26 AM   #4
Mush Martin
Eternal Patrol
 
Join Date: Dec 2006
Posts: 4,398
Downloads: 4
Uploads: 0
Default weve talked about this already

Quote:
Originally Posted by privateer
Is anybody interested in some time spent learning some of the ins and outs
of Hex Editing SH3?
I've learned a great deal thanks to so many here and time spent digging around.
But all the info is scattered, makeing it hard to learn for most.
I do not have all the answers, but I think I can teach most anyone how it
all works, how to spot what you want, and what connects what.
What do you think?
Sign me up !

MM
__________________
RIP Mush



Tutorial
Mush Martin is offline   Reply With Quote
Old 02-08-07, 07:31 AM   #5
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

I'm not a good writer, and the languaje barrier makes thing worse, but I'd be happy to contribute where I can.

Ref
__________________
ref is offline   Reply With Quote
Old 02-08-07, 07:59 AM   #6
sh3rules
Sonar Guy
 
Join Date: Aug 2006
Location: Sailing the Seas of Lies
Posts: 393
Downloads: 24
Uploads: 0
Default

I have no idea, and I’d like to learn so I don’t have to bother people asking them for files.
sh3rules is offline   Reply With Quote
Old 02-08-07, 09:23 AM   #7
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Nice one
Great idea
Count me in
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 02-08-07, 11:59 AM   #8
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Ok, 1st we'll make sure we have some tools and such.

Pack3d all versions and some Guide info I've collected from various threads
are on my Filefront page.

http://hosted.filefront.com/priater

Next is a Hex Editor. You may have a version you like but I'll recommend
you get the same one I use to make following along easier.

It's free and does not install into Windows so if you want to get rid of it
all you need do is delete it.

http://www.chmaas.handshake.de/delph...vi32/xvi32.htm

Once you have the files, create a folder that we will use to work in.
Go into the Library folder and copy the NavalMine.dat and Navalmine.zon
files to your work folder.

These are nice small files we will start with to learn our way around and
what a byte, dword, and other scary terms mean.
  Reply With Quote
Old 02-08-07, 12:02 PM   #9
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Sweet
My current Hex just expired
Rather liked it too


I take it we are getting 2.51 ?

Is this an online tutorial
:rotfl:
Hope there is no homework
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 02-08-07, 12:13 PM   #10
Albrecht Von Hesse
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by privateer
Is anybody interested in some time spent learning some of the ins and outs
of Hex Editing SH3?
I've learned a great deal thanks to so many here and time spent digging around.
But all the info is scattered, makeing it hard to learn for most.
I do not have all the answers, but I think I can teach most anyone how it
all works, how to spot what you want, and what connects what.
What do you think?
Yes yes YES!!
  Reply With Quote
Old 02-08-07, 12:27 PM   #11
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by bigboywooly
Sweet
My current Hex just expired
Rather liked it too


I take it we are getting 2.51 ?

Is this an online tutorial
:rotfl:
Hope there is no homework
Yes, it will be online.
I'll just save the lessons as a reference anyone can grab at any time.

Oh, and yes, the newest version is 2.51
I've used it for years now and have never had any troubles
what so ever.
  Reply With Quote
Old 02-08-07, 01:32 PM   #12
UBOAT234
Weps
 
Join Date: Oct 2005
Location: Repubblica di San Marino (Italy)
Posts: 362
Downloads: 0
Uploads: 0
Default Hi

Hi,

What uses in order to modify the boxes in .zon file? Work in hex?

BEST REGARDS
UBOAT234
UBOAT234 is offline   Reply With Quote
Old 02-08-07, 01:48 PM   #13
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by UBOAT234
Hi,

What uses in order to modify the boxes in .zon file? Work in hex?

BEST REGARDS
UBOAT234
right now I'm doing it in Hex,
I have got a program I'm working on that will let us do it in a 3d enviroment.
  Reply With Quote
Old 02-08-07, 02:47 PM   #14
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Open the Hex Editor, select Tools and put a check on data inspecter.
Open Tools again and select Options, then appearance.
set columns to 25
I work with text on the left but select the way that suits you.
select Data inspecter, I have the 1st 6 boxes on the left checked.
Select OK.
Now open the NavalMine.dat and you should see something like this image.




Notice I have Ref's dat file format info. This is our main guide.
The 4 bytes in BLUE are important!
You are going to see this alot so make sure you understand this part.
The data Inspecter tells us the info to come is 51 bytes long.
Count the GREEN area and it's 51 bytes.
If you delete Kashmir in the left window, you need to lower
the count in blue to match the new length.
Click on the 33, open tools and select Encode number,
and set it up like below



Click OK and you should see that the 33 00 00 00
is now 2C 00 00 00

  Reply With Quote
Old 02-08-07, 04:48 PM   #15
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Make sure you save the file then open version 5 of Pack3d and open the file.



click on the left window and find address 80 as marked in yellow.
This is the start of this block of data.
select the numbers marked in blue and notice the data inspecter

We're looking at chunks now.

All chunks are like this:
01 00 00 00 = 1 ChunkType 4 bytes
65 00 00 00 = 100 Chunk Subtype/Version 4 bytes
CB 28 00 00 = 10443 chunk_size long (4 bytes) = Data (chunk_sizebytes)

The data chunk size is the same type info we changed in the header,
just telling us how big this block of data is.

RED is the ID the game engine uses to work with this block
which, in this case, is the actual 3d object of the mine.

All ID's are 8 bytes long.
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.