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 12-30-06, 09:48 AM   #1
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default Hex editing help

Whats the best way to delete bytes from a dat

example

NPC_Black_Swan needs remaning to
NFF_River as you can see I need to get rid of some bytes - I can rename to
NFF_RiverClass so uses the same amount of bytes but would rather have it just as NFF_River

Am using Ultraedit 32
If I delete the bytes and save the dat it doesnt open in Pack3d so there is obviously a problem

Need advice on how to add bytes too
Same problem

Real noob on Hexediting so any help is handy
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 12-30-06, 10:48 AM   #2
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by bigboywooly
Whats the best way to delete bytes from a dat

example

NPC_Black_Swan needs remaning to
NFF_River as you can see I need to get rid of some bytes - I can rename to
NFF_RiverClass so uses the same amount of bytes but would rather have it just as NFF_River

Am using Ultraedit 32
If I delete the bytes and save the dat it doesnt open in Pack3d so there is obviously a problem

Need advice on how to add bytes too
Same problem

Real noob on Hexediting so any help is handy
In the label chunks it's easy (the blocks starting with 08000000)
you have this


If you change the string size you must also change the size entry, just be sure to include the ID and null termination byte on the size.

The problem is with the propellers/rudders, if you change the label size in the dat file, you must also change it on the sim file, but on the sim file the label is under two substructure levels, so you need to calculate the substructure size changes also, I recommend that you mantain the propellers/rudders names lengths as in the original file to make things simpler.

Ref
__________________
ref is offline   Reply With Quote
Old 12-30-06, 10:54 AM   #3
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Ahhh



I knew there was a reason I keep asking you to do it


:rotfl: :rotfl:

Will have a go at that mate
Thanx Ref - as usual

Will I need to reclone after ?
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 12-30-06, 11:08 AM   #4
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by bigboywooly
Ahhh



I knew there was a reason I keep asking you to do it


:rotfl: :rotfl:

Will have a go at that mate
Thanx Ref - as usual

Will I need to reclone after ?
No, just be carefull with the ID bytes, I've ruined a lot of editing sesions just by changing an ID, they produce bugs that are hard to catch.

Ref
__________________
ref is offline   Reply With Quote
Old 12-30-06, 11:16 AM   #5
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Thanx Ref
Think will save that pleasure for when I have a free week
:rotfl:
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 12-30-06, 10:15 PM   #6
Mush Martin
Eternal Patrol
 
Join Date: Dec 2006
Posts: 4,398
Downloads: 4
Uploads: 0
Default Wow

do I feel Like a pain generating machine now buddy.MM.
__________________
RIP Mush



Tutorial
Mush Martin is offline   Reply With Quote
Old 12-31-06, 02:35 AM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

This is one of the thing I'm writing into a new tool.
Playing with the Air Ship proved to me that I need it!!
  Reply With Quote
Old 12-31-06, 10:57 AM   #8
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Quote:
Originally Posted by priater
This is one of the thing I'm writing into a new tool.
Playing with the Air Ship proved to me that I need it!!
Well crack on mate
You will save me a world of hurt
:rotfl: :rotfl:

No seriously hurry up

J\K
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   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 08:03 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.