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 04-29-11, 12:46 PM   #1
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Hi,

I tested the scr layer save-game issue again. I can reproduce it for units in the scr layer that are rendered when you start your patrol (e.g., the units in your home port). Units in the scr layer that are only loaded/rendered later seem not to suffer from this issue.

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 04-29-11, 01:32 PM   #2
Stiebler
Fuel Supplier
 
Stiebler's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 1,235
Downloads: 29
Uploads: 4


Default

@LGN1,


Thanks for the update on the movements of ships in campaign_SCR.mis after save/load. Not too serious a problem, then.

Stiebler.
Stiebler is offline   Reply With Quote
Old 04-29-11, 02:13 PM   #3
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,749
Downloads: 51
Uploads: 26
Default

Quote:
Originally Posted by LGN1 View Post
Hi,

I tested the scr layer save-game issue again. I can reproduce it for units in the scr layer that are rendered when you start your patrol (e.g., the units in your home port). Units in the scr layer that are only loaded/rendered later seem not to suffer from this issue.

Cheers, LGN1
Ships are only rendered when they are within around 30km of your u-boat. All other ships live in the _SCR (or _RND) files as placeholders, not full ship models, therefore you have rendered ships and placeholders. Both rendered ships and placeholders follow waypoints which gives them their course.

When you save a game, the game remembers all rendered ships but relies on the _SCR/RND layer for placeholders.

When you load a savegame, SH3 seems to remember waypoints for placeholders but forgets them for rendered ships, leaving them to sail blindly in a straight line.

This is the closest I can come to explaining this behaviour so I'd be grateful if anyone else can shed light on the problem.
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown is offline   Reply With Quote
Old 04-29-11, 03:38 PM   #4
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Hi Wreford-Brown,

from my tests it seems that SH3 remembers the waypoints in a save game IF the unit is not rendered when your patrol starts.

Waypoints of rnd layer units are definitely saved (this is confirmed easily with my zigzag rnd layers). As far as I know it's not possible that a rnd unit is spawned in your 'render area'. Therefore the 'scr harbor problem' does not exist for rnd units.

To summarize, as I understand the problem it only exists for scr units in the 30km area around your home port. As Stiebler pointed out, in this case the problem is not very crucial.

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 04-29-11, 03:43 PM   #5
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,749
Downloads: 51
Uploads: 26
Default

Quote:
Originally Posted by LGN1 View Post
Hi Wreford-Brown,

from my tests it seems that SH3 remembers the waypoints in a save game IF the unit is not rendered when your patrol starts.

Waypoints of rnd layer units are definitely saved (this is confirmed easily with my zigzag rnd layers). As far as I know it's not possible that a rnd unit is spawned in your 'render area'. Therefore the 'scr harbor problem' does not exist for rnd units.

To summarize, as I understand the problem it only exists for scr units in the 30km area around your home port. As Stiebler pointed out, in this case the problem is not very crucial.

Cheers, LGN1

Placeholders are not rendered therefore SH3 remembers waypoints.
Rendered ships waypoints are 'forgotten', hence harbour problem.
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown is offline   Reply With Quote
Old 04-29-11, 04:02 PM   #6
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Hi Wreford-Brown,

just to make sure that we mean the same:

When you are in the middle of the Atlantic and there is no ship within 30km of your boat, it means that there are no rendered ships; only 'placeholders'. Every ship that you encounter is a rendered ship that was a placeholder before.

I don't think there is any problem with these ships. The problem exists only for those ships that have never changed from placeholder to rendered because they had to be rendered when your patrol started. Do you agree?

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 04-29-11, 04:35 PM   #7
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,749
Downloads: 51
Uploads: 26
Default

Quote:
Originally Posted by LGN1 View Post
Hi Wreford-Brown,

just to make sure that we mean the same:

When you are in the middle of the Atlantic and there is no ship within 30km of your boat, it means that there are no rendered ships; only 'placeholders'. Every ship that you encounter is a rendered ship that was a placeholder before.

I don't think there is any problem with these ships. The problem exists only for those ships that have never changed from placeholder to rendered because they had to be rendered when your patrol started. Do you agree?

Cheers, LGN1
Yes
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown is offline   Reply With Quote
Old 04-29-11, 04:37 PM   #8
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Thanks, Wreford-Brown for confirming!

I have made another test to investigate this issue further. I started a campaign and saved the game in the harbour. I reloaded the save game and the harbour patrol lost it waypoints and sailed on a straight course --> 'harbour traffic bug'.

Now I started a new campaign, left the harbour area without saving and returned. I spotted the harbour patrol and saved the game. When I reloaded the resulting save game, the harbour patrol continued on its waypoints, i.e., no 'harbour traffic bug' observed.

From this I conclude that the 'harbour traffic bug' is really not a property of the units in the scr layer (same unit shows this issue under certain circumstances and does not show it under different ones), but a property of units that are present when your patrol starts, i.e., units that are immediately rendered when you start your patrol.
LGN1 is offline   Reply With Quote
Old 04-29-11, 05:15 PM   #9
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,749
Downloads: 51
Uploads: 26
Default



When you start a new patrol there are no rendered ships and the SH3 engine has to render them from placeholders in the _SCR layer, so there is no harbour bug.

If you then save the game in the harbour and load from the savegame, the ships have already been rendered once and SH3 'remembers' them as rendered ships (not placeholders) therefore you get the harbour bug.

The issue is not with the _SCR file, it's with where and when you save your game, and bear in mind that ships are rendered from the SCR layer in the last few seconds before the game starts (about 95% through the load bar). RND is about 50% of the way through the load bar. It's easy enough to test - script a standalone ship (e.g. one of VonDos') into the SCR layer then disable the ship in JSGME. CTD @ 95-100% of load bar. Script into RND and CTD around the 50-60% mark.

I'm also fairly sure that there are a finite number of rendered ships that a savegame can cope with:
A few rendered ships - no problem, waypoints saved (try it next time you see a single merchant)
More rendered ships - SH3 will remember the ships but ditch the waypoints (harbour bug).
Too many rendered ships - CTD (near large convoys etc.)

Unfortunately the number of ships the savegame system can cope with seems to be computer dependent. Those with top of the range computers will suffer fewer problems than those (like me) with old ones.

We seem to have derailed TGW's thread so apologies to TDW (and the rest of you!).
@LGN1 - if you'd like to continue this we should start our own thread for it.
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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:27 AM.


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