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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-25-07, 07:28 AM   #1
mavmcleod
Watch
 
Join Date: Jun 2005
Location: Frankfurt/Germany
Posts: 16
Downloads: 34
Uploads: 0
Default How to compare 2 .dat files?

Hi everyone,

as I'm working with a lot of different mods I would like to implement some changes made in scene.dat from mod1 in scene.dat in mod2 (e.g. Improved Underwater Visibility Mod & 9km Visibility Mod).

Is there any tool (like winmerge for .cfg files) to compare two different .dat files and move the changes from one to the other?

Have to say that I'm not very experienced in hex-files.

Good hunting!
Maverick
mavmcleod is offline   Reply With Quote
Old 07-25-07, 09:50 AM   #2
Redwine
Sea Lord
 
Join Date: Jan 2002
Location: San Martin de los Andes, Neuquen, , Argentina.
Posts: 1,962
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by mavmcleod
Hi everyone,

as I'm working with a lot of different mods I would like to implement some changes made in scene.dat from mod1 in scene.dat in mod2 (e.g. Improved Underwater Visibility Mod & 9km Visibility Mod).

Is there any tool (like winmerge for .cfg files) to compare two different .dat files and move the changes from one to the other?

Have to say that I'm not very experienced in hex-files.

Good hunting!
Maverick
You do not need too much skill, just open the .dat files using a Hexagecimnal Editor and click on number and change it.

Just open the 9km visibility mod files and add my changes manually.


Manual Editing :

Abrir el archivo Scene.dat con un editor hexagecimal, y modificar lo siguiente :

Open the Scene.dat file using a hexadecimal editor and modify the following :


1]
Valor Original/ Original Value : (-4)
0003da 6F 67 00 00 00 80 C0 00 @@....Fog....A.

Valor Visibilidad Bajo el Agua Mejorada/ Improved Underwater Visibility : (-3)
0003da 6F 67 00 00 00 40 C0 00 @@....Fog...@A.


2]
Valor Original/ Original value : (18)
0003da 6F 67 00 00 00 80 C0 00 00 90 41 00 ..A.PF<....UpLight

Valor Visibilidad Bajo el Agua Mejorada/ Improved Underwater Visibility : (30 m)
0003da 6F 67 00 00 00 40 C0 00 00 f0 41 00

Valor Visibilidad Bajo el Agua Mejorada/ Improved Underwater Visibility : (60 m)
0003da 6F 67 00 00 00 40 C0 00 00 70 42

Valor Visibilidad Bajo el Agua Mejorada/ Improved Underwater Visibility : (70 m)
0003da 6F 67 00 00 00 40 C0 00 00 8c 42

Valor Visibilidad Bajo el Agua Mejorada/ Improved Underwater Visibility : (100 m)
0003da 6F 67 00 00 00 40 C0 00 00 c8 42


3]
Valor Original/ Original Value : (120 m)
001b6a 00 00 f0 42 ..öB



4]
Valor Original/Original Value : (180 m)
001b6a 73 74 61 6e 63 65 00 00 00 34 43 MaxDistance…4C

Valor Visibilidad Bajo el Agua Mejorada/ Improved Underwater : (300 m)
001b6a 73 74 61 6e 63 65 00 00 00 96 43 MaxDistance….C
Redwine is offline   Reply With Quote
Old 07-25-07, 12:38 PM   #3
mavmcleod
Watch
 
Join Date: Jun 2005
Location: Frankfurt/Germany
Posts: 16
Downloads: 34
Uploads: 0
Default

Wow, from the author of one of my most liked mods!

Thanks a lot!

Maverick
mavmcleod is offline   Reply With Quote
Old 07-25-07, 01:02 PM   #4
Redwine
Sea Lord
 
Join Date: Jan 2002
Location: San Martin de los Andes, Neuquen, , Argentina.
Posts: 1,962
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by mavmcleod
Wow, from the author of one of my most liked mods!

Thanks a lot!

Maverick
You are welcome !

This mod is related to underwater visibility, but you have another mod related to visibility, night visibility... may be you can found useful the Improved Nigth Visibility Mod too.

Redwine is offline   Reply With Quote
Old 07-25-07, 02:41 PM   #5
mavmcleod
Watch
 
Join Date: Jun 2005
Location: Frankfurt/Germany
Posts: 16
Downloads: 34
Uploads: 0
Default

Yeah!

I know and love that one, too.
HExedit finaly worked for me, now I will merge Night Visibility, 9km visi., underwater visi. and Living Breathing Ocean....:hmm:

And than the Japs will get it back!

Good Huntin'!
Maverick
mavmcleod is offline   Reply With Quote
Old 07-25-07, 05:04 PM   #6
Mav87th
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

The program Araxis Merge does a good job of comparing up to three files of the sort.
  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 12:23 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.