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 01-01-09, 11:31 AM   #886
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

Well, I've spent some time going through various Vista help information, but I still haven't had luck in having a S3D modded .dat file to load in the game. I really feel there is something about Vista and the way it looks at files that is causing the problem.

On that note, I placed the S3D into a different file folder [other than "Program Files(x86)"], changed the S3D.exe compatibility back to having Vista control it (still have it set to run as an administrator).

I'm wondering about the CaptainRoom.dat file itself? Are there any "Properties" settings for this modded file that could be changed to make a difference? I'm no expert to Vista 64 and Skwas, you may not be either. But, I think we'll both be after trying to figure this out.
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"
CapnScurvy is offline   Reply With Quote
Old 01-01-09, 05:02 PM   #887
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

I've been running Vista x64 myself for the past 1.5 years and S3D was developed on it so that is not the problem. S3D does not need to be run in compatibility mode, it's fully compatible with Vista. Also, admin rights are not needed, unless the game is installed in the <Program Files (x86)> folder.

Please upload a modded file that causes the problem for me. I will have a look at it then asap, check for differences vs stock file, and see if it CTD's on me as well.

I do know the CaptainRoom is a picky file. There are quite a few hardcoded references in there that can cause a CTD if they are modified.

Last edited by skwasjer; 01-01-09 at 05:05 PM.
skwasjer is offline   Reply With Quote
Old 01-01-09, 09:12 PM   #888
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

When saveing any file with a mesh animation,
S3D is lopping off a few bytes.

I noticed this today while looking at the materials.dat
To verify, I opened Pescarus.dat
and saved it.

The two files do not match.

Hope that helps narrow down the problem.
  Reply With Quote
Old 01-01-09, 09:30 PM   #889
Wolfehunter
Crusty Capt.
 
Join Date: Sep 2007
Posts: 2,752
Downloads: 40
Uploads: 25
Default

Happy new year Skwasjer.

For your Silent 3ditor I was wondering. Can I view or compare two or more dat, sim files side by side?:hmm:

I'm also using Vista 64 and runs fine.
__________________
Wolfehunter is offline   Reply With Quote
Old 01-01-09, 09:33 PM   #890
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Yes you can.

That's how I tracked down the missing bytes today.
  Reply With Quote
Old 01-01-09, 09:35 PM   #891
Wolfehunter
Crusty Capt.
 
Join Date: Sep 2007
Posts: 2,752
Downloads: 40
Uploads: 25
Default

Thanks privateer. Now I have to figure how to do it. lol
__________________
Wolfehunter is offline   Reply With Quote
Old 01-01-09, 09:38 PM   #892
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

open 1 file,
then select open from the files menu and open whatever you want.

If you want to compare the original file to the one you plan to edit,
you need 2 copies.
  Reply With Quote
Old 01-01-09, 09:47 PM   #893
Wolfehunter
Crusty Capt.
 
Join Date: Sep 2007
Posts: 2,752
Downloads: 40
Uploads: 25
Default

Thanks yes I dragged and dropped the dat file onto the original one and it opened a new window.

I'm comparing the two files now...

I'm trying to see which will be transferred if possible...

What does File offset mean?

Also I've exported obj from one dat file and imported it to another. I've save it as and obj and loaded it as and obj and it worked. I see the mapping now is identical. Have I done it right? chunk size and data size don't match is that a bad thing?
__________________

Last edited by Wolfehunter; 01-01-09 at 10:14 PM.
Wolfehunter is offline   Reply With Quote
Old 01-01-09, 10:46 PM   #894
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Yikes, unfortunately a conditional compiler statement (which excludes animation code as this is still being tested) causes this problem. I have it placed incorrectly, but it's an honest mistake that I didn't spot until after looking at it twice. I have not noticed it myself because the conditional code is enabled for me so the problem did not occur here... :/

I will issue a new release tomorrow that will fix this. Until then, don't use S3D to modify files with mesh animations, or get the previous version: [edit] Link removed, updated version posted...

I apologize for any inconvenience. I will be happy to fix any corrupted files.


Wolfehunter, don't worry too much about chunk and data size, but if you really want to know the data size should always be 12 less than chunk size.

Last edited by skwasjer; 01-02-09 at 08:22 AM.
skwasjer is offline   Reply With Quote
Old 01-01-09, 11:16 PM   #895
Wolfehunter
Crusty Capt.
 
Join Date: Sep 2007
Posts: 2,752
Downloads: 40
Uploads: 25
Default

Okiedokie chief.
__________________
Wolfehunter is offline   Reply With Quote
Old 01-02-09, 12:26 AM   #896
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I always keep backups of all files so it's no trouble here.

I just stumbled across this problem today and when I
came here to post it for you I saw the other CTD report.

Hope it saved you some time and trouble.
  Reply With Quote
Old 01-02-09, 05:09 AM   #897
SquareSteelBar
Sea Lord
 
Join Date: May 2006
Location: U-73
Posts: 1,638
Downloads: 618
Uploads: 0
Default

Happy new year, skwas!
SquareSteelBar is offline   Reply With Quote
Old 01-02-09, 08:09 AM   #898
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Update posted:

http://sh4.skwas.net/changelog.aspx

[edit] privateer, thanks for the tip. I had done pretty much the same thing last night after CapnScurvy's report. I opened flags.dat and there I saw 8 bytes were dropped by S3D on that controller. It just took me a couple of scans over the code to see the problem, because it got a little messy over the past weeks...

Last edited by skwasjer; 01-02-09 at 08:18 AM.
skwasjer is offline   Reply With Quote
Old 01-02-09, 09:27 AM   #899
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

That was it!! Yeaaaaaaaaa!!!


The only point I was going to make, even an unchanged stock file in S3D once "saved" could not be opened within the game. Privateer's eagle eye in noticing the missing bytes on a save would have gone straight over my head. Thanks to both of you for finding the problem and releasing a corrected version in such a short period of time. S3D is such a splendid tool I knew an answer was just a posted question away.

Thanks again
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"
CapnScurvy is offline   Reply With Quote
Old 01-02-09, 01:04 PM   #900
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 356
Downloads: 40
Uploads: 0
Default

Skwasjer - you superstar !!! I've been struggling with trying to add nodes to the user playable Admiral Sheer.dat file (am trying to do away with the need for the coning tower files - to try and get the damage model working properly) ... and every time I made a change to the .DAT file with S3d v0.9.3 the game CTD when launching a mission. Downloaded v0.9.4, added a single node, loaded the mission ... and hey presto it worked. I can now get on with adding all the nodes I need.

Many many thanks for the pormpt release of this new version.
polyfiller 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:03 AM.


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