Log in

View Full Version : Hex editor use


GerritJ9
09-24-07, 11:06 AM
I have a few questions regarding the use of a hex editor. At the moment I am using HHD Free Hex Editor, dut are there any editors which are more suitable for modding?

At the moment I am modding a vessel in various ways; its original speed is 35 knots, but this has to be reduced to 26 knots. Opening the .sim file with the hex editor shows : max_speed.....B...... which in the table on the left corresponds to a figure of 42. How does one determine which letter corresponds to the reduced max. speed, as there is no readout of a real value in knots?
Engine power also has to be reduced, this corresponds to f0 d2 46 which should correspond to a real-life figure of 27,000 SHP and has to be reduced to approx. 11,000 SHP.
Engine RPM, too has to be reduced, is represented by 44 4f. I don't have a full speed RPM figure for the ship concerned but this has to be reduced proportionally to speed i.e. 26/35 of full speed RPM.
Finally, can I change the name in the RH cloumn from (in this case) NDD_Clemson to NDE_PB102 by simply altering the text? Thanks in advance!

bigboywooly
09-24-07, 11:23 AM
You can use mini tweaker for altering the stuff in the sim

http://www.delraydepot.com/tt/sh3sdk.htm - grab the tweak files too

Changing the name NDD_Clemson to NDE_PB102 will need additional hexing
If you keep the letter count the same its a straight replace job

Just a tip
If you rename the rudder\propellers as well then the ship usually wont move due it losing its tie in with the sim

Am only a noob at hexing myself and there are far better people on here than I

GerritJ9
09-24-07, 02:14 PM
Thanks for the reply, BBW. I will have to study this a bit- seems to be rather involved. The ship is actually the SH4 version rather than SH3 but I suppose the programme will work on SH4 files as well. Alternatively, I could modify the relevant SH3 file and substitute it for the SH4 version. I take it this work has to be done before cloning using Pack3D?

TheDarkWraith
09-24-07, 02:17 PM
You might want to give this a look see:

http://dodownload.filefront.com/8008990//a608edf5b290ca12028753fdcf57aad9dae61744b511e0128d 50c800992f51ff8601efeffbc68972

I haven't updated it in awhile but it contains a lot of information for people new to the SH3 files and file system. It might answer a lot of your questions (and might cause some new questions from you).

GerritJ9
09-24-07, 06:09 PM
Downloaded the minitweaker and files, checked some figures. According to the .sim file for the Clemson class, speed is 35 knots, SHP is 27,000 HP and max prop rpm is 572; for the C&D class the figures are 36 knots, 36,000 HP and 500 rpm. While in both cases the figures for speed and SHP are correct, the figures for rpm for the C&D class is way out- the correct figure according to several reference books should be 350 rpm. Unfortunately, I don't have any rpm figure for the Clemsons; checking the Hunt (I) class similarly shows an incorrect figure for prop rpm- 500 vs. real figure of 380 rpm.

Tried the effect of changing the name NDD_Clemson to NDE_PB102 in the .sim file by simply changing the name for rudder and the props in the RH column, suffice to say that the props still work after the name change, as does the rudder. Changing the name also changes the hex values so I think that it can be safely done.
Now to figure out how to change the speed, power and rpm values...............

GerritJ9
09-26-07, 09:21 AM
I think I've worked it out. Using the SH3 Minitweaker and the relevant tweakfile for the Clemson, the speed of 35 knots is represented by value 00 00 0C 42; the required speed of 26 knots requires this to be altered to 00 00 D0 41. Similarly, the required new power and rpm values can be determined and the values in the .sim file altered.
Also altered the max rpm value for the C&D class to the correct value, next on the list is the rpm correction for the Hunts. No doubt the rpm values for the J and N classes are also incorrect, but I have to check this. And I strongly suspect the max rpm value for the Clemson is incorrect as well, 572 rpm seems way too high. Does anybody have a figure for this?