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-01-08, 06:31 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

There were changes to the scene.dat in 2.0
If you are useing an absolute address for insertion of hex code?
Then Yes,
it's misplaced in the 2.0 scene.dats,
therefore,
the problems.
Should be a simple matter to make a new installer to match the adjusted
Hex addresses.
  Reply With Quote
Old 02-01-08, 07:25 PM   #2
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by privateer
There were changes to the scene.dat in 2.0
If you are useing an absolute address for insertion of hex code?
Then Yes,
it's misplaced in the 2.0 scene.dats,
therefore,
the problems.
Should be a simple matter to make a new installer to match the adjusted
Hex addresses.
Not wanting to highjack this thread, but if this is the case, then there is potentially another compatibility problem between GWX2 and SH3Cmdr. Remember, SH3Cmdr allows users to change the following scene.dat values:

- water density (UnderwaterFogEnd(Fog))
- wave height (MaxWaveHeight)

If the byte offsets to these values are no longer 975 and 691 respectively, then SH3Cmdr users running GWX2 MUST not adjust water clarity or set wave heights (the SH3 options must remain unchecked).
JScones is offline   Reply With Quote
Old 02-01-08, 08:10 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I'll look into this tonite.
Thanks for pointing it out.


Address 975 shows a value of 15
Address 691 shows a value of 320

So those should be ok, Correct?

Now, I'm not sure where the offset begins.
I know it's there cause I had to adjust the Commander files before.
Easy enuff to find.
  Reply With Quote
Old 02-01-08, 08:28 PM   #4
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by privateer
I'll look into this tonite.
Thanks for pointing it out.


Address 975 shows a value of 15
Address 691 shows a value of 320

So those should be ok, Correct?
Yes, phew! Although, I kinda thought this might be the case because I would be mighty surprised if at least some SH3Cmdr users didn't use these options (in which case I'd have expected more CTD reports).

If these offsets do ever change, then we'll have a small problem - the offsets are hard-coded in SH3Cmdr (2.5 years ago I never considered the internal structure of this file changing - other files, yes, this one, no), meaning that compatibility will only be achieved if I change the code. We'll cross that bridge if we ever have to though.

Another file to be mindful of is GUNS_SUB.sim. If the byte offset for reload_time_88 and reload_time_105 ever changes from 10620 and 694, pls let me know as the same problem will apply.
JScones is offline   Reply With Quote
Old 02-01-08, 08:41 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

To my knowledge, very few people ever mess with the Guns_sub files.
There seems to be to many unknowns involved in that area.
Quite interesting actually.
Why can't we get a fully funtional 37mmTSA on a IID?
I can mount it with no problem, but crew don't show and I can't go to it.
  Reply With Quote
Old 02-02-08, 03:34 AM   #6
Stiebler
Fuel Supplier
 
Stiebler's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 1,237
Downloads: 29
Uploads: 4


Default

@Kpt Lehmann:

Thanks for your PM. I shall reply when I've finished reading all the complaints. That may take some time!

@Privateer/JScones:

I know better than to use fixed byte locations in a data file that can be altered. RealWeatherFix mod looks for the name of the parameter to change, then changes the associated values. The progress report when you run RWF gives clear indication of whether the mod has located (or failed to locate) any parameters.

Besides, last night I made manual changes to the GWX2 scene.dat file, to install the same weather values. The hand-made file is identical to the mod-made file, and both cause GWX2 to freeze during second-stage loading. I am truly baffled as to the cause.

Subtype Zero, a GWX user, has again confirmed that RealWeatherFix works with GWX 1.03. For those not familiar with mod releases, that was the immediate predecessor of GWX2.

Stiebler.
Stiebler is offline   Reply With Quote
Old 02-02-08, 06:52 AM   #7
Stiebler
Fuel Supplier
 
Stiebler's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 1,237
Downloads: 29
Uploads: 4


Default GWX-2 + RealWeatherFix mod: problem resolved

The problem with GWX2 - RealWeatherFix mod lies in the fact that I was testing with the wrong file scene.dat for GWX2. The real one is *twice* as long! As a result, maximum buffer size allocated in the mod was too small for GWX. The GWX-2 file is an incredible 905 Kbytes. The cause of the problem was that the GWX-2 file was being truncated. [So why not use a dynamic buffer size? Static buffer sizes are normally much more robust.]


I've fixed this problem - trivial enough - and am testing now. The GWX-2 file loads uneventfully now.

A single patrol from Kiel with GWX-2 was also uneventful.

Apologies to all GWX-2 users for my blunder. A replacement mod 'RealWeatherFix2.zip' will be available from the previous filefront address by the end of today (UK time).
http://hosted.filefront.com/TeddyBar/

Stiebler.

Stiebler 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 06: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.