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-21-11, 04:12 PM   #1
fitzcarraldo
Argentinian Skipper
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Somewhere between Buenos Aires and the Bungo Suido
Posts: 5,381
Downloads: 3484
Uploads: 0


Default

Quote:
Originally Posted by Wreford-Brown View Post
Both merchants and warships will automatically appear in the game through the _RND layer. I like to script the larger merchants (mainly VonDos') and unique warships on their historic courses so that, with a little research, people can intercept them and sink them.
Yes? I read somewhere in SUBSIM about the need of scripting the warships. If not, the ships only appears in Museum. Ever I see a new ship for download, the instructions tell: "need scripting"...

For example, the Maiale. If you install the Maiale in SH3, without scripting: Is the Maiale controlled by RND Layer and can it appear in any location? (a Maiale in the coast of Miami or in the Indian Ocean??). And the planes? Without scripting the RND layer put they in any location? (the middle of the Atlantic, for example?).

Ever I have this question in my mind, but never I obtain a positive and definitive resolution.

Best regards.

Fitzcarraldo
__________________



My subject is War, and the pity of War. The Poetry is in the pity - Wilfred Owen.
fitzcarraldo is offline   Reply With Quote
Old 02-22-11, 03:30 PM   #2
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 fitzcarraldo View Post
Yes? I read somewhere in SUBSIM about the need of scripting the warships. If not, the ships only appears in Museum. Ever I see a new ship for download, the instructions tell: "need scripting"...

For example, the Maiale. If you install the Maiale in SH3, without scripting: Is the Maiale controlled by RND Layer and can it appear in any location? (a Maiale in the coast of Miami or in the Indian Ocean??). And the planes? Without scripting the RND layer put they in any location? (the middle of the Atlantic, for example?).

Ever I have this question in my mind, but never I obtain a positive and definitive resolution.

Best regards.

Fitzcarraldo
The simple answer to both questions is no, you won't see them.

If you install the Maiale in SH3 without scripting it you will not see it as the RND layer scripts by ship/aircraft type (in the case of the Maiale it is type 200) and by nation. If you search the _RND layer you won't find any reference to an Italian type 200 as there was only one type of Italian submarine (the Scuka) and they were only scripted into the SCR file.

Aircraft are scripted into the RND layer by specific aircraft (e.g. FBWildcat) so you won't see new planes for the same reasons as above.

I've already released a mod that randomly scripts Turkish and Spanish aircraft into the campaign so here is another one that will script British aircraft around the UK coast - http://www.mediafire.com/?fvi4swlejchj5fo
__________________

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 02-22-11, 03:35 PM   #3
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,749
Downloads: 51
Uploads: 26
Default

I think it's time to share a little knowledge

There are three scripting layers in SH3:
_LND. This is for land based units such as coastal defences, air bases and ports. I haven't delved into the _LND layer so that's about all I can tell you!

_SCR. This is for scripting named ships into the campaign, so if you want the RMS Aquitania to follow her historic routes you can research the Aquitania's history and input it's route into the _SCR layer. You can also create groups around the Aquitania to allow it to sail with, for example, a modern tanker and four destroyers. The only randomisation available to the _SCR layer is around each waypoint. If you randomise the size of the waypoints you also randomise the ships routes.

_RND. This is the clever layer as there are a number of ways you can randomise:
1. Randomise groups. You can tell SH3 to randomise the content of convoys. The group leader (e.g Aquitania) must have a 100% chance of spawning, but you can then add a V&W destroyer at 100% and four V&W destroyers at 50% each. This means that each time Aquitania spawns SH3 will roll a dice and produce a group with between 1 and 5 destroyers.
2. Randomise ships within a group. There are a number of options for ships in a group so you can either specify a specific ship type (e.g. V&W destroyer) or a type such as GENERIC Destroyer which will search for all destroyers of that nation and pick them at random.
3. Randomised chance of a group spawning. You can also tell SH3 that there is a 75% chance of this group spawning, therefore it will appear three times out of four.
4. Timed group spawning. If, for example, convoys moved from Alexandria to Greece every three days then you can use the _RND layer to spawn a group every 72 hours over a discrete time period.
5. You can also randomise the size of the waypoints to change the ships routes.

Merging all of these possibilities, you can script a convoy with a 75% chance of spawning, following a route from Alexandria to Greece every three days with any number of ships and escorts from one upwards following a different route each time, and all in a 5KB file.

The only piece you have to specify is the nation, so you can randomise neutral ships into a convoy but need to beware your spawn dates.
__________________

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 02-23-11, 02:44 AM   #4
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-96 in North Atlantic
Posts: 4,517
Downloads: 784
Uploads: 0


Default

Quote:
Originally Posted by Wreford-Brown View Post
I think it's time to share a little knowledge

There are three scripting layers in SH3:
_LND. This is for land based units such as coastal defences, air bases and ports. I haven't delved into the _LND layer so that's about all I can tell you!

_SCR. This is for scripting named ships into the campaign, so if you want the RMS Aquitania to follow her historic routes you can research the Aquitania's history and input it's route into the _SCR layer. You can also create groups around the Aquitania to allow it to sail with, for example, a modern tanker and four destroyers. The only randomisation available to the _SCR layer is around each waypoint. If you randomise the size of the waypoints you also randomise the ships routes.

_RND. This is the clever layer as there are a number of ways you can randomise:
1. Randomise groups. You can tell SH3 to randomise the content of convoys. The group leader (e.g Aquitania) must have a 100% chance of spawning, but you can then add a V&W destroyer at 100% and four V&W destroyers at 50% each. This means that each time Aquitania spawns SH3 will roll a dice and produce a group with between 1 and 5 destroyers.
2. Randomise ships within a group. There are a number of options for ships in a group so you can either specify a specific ship type (e.g. V&W destroyer) or a type such as GENERIC Destroyer which will search for all destroyers of that nation and pick them at random.
3. Randomised chance of a group spawning. You can also tell SH3 that there is a 75% chance of this group spawning, therefore it will appear three times out of four.
4. Timed group spawning. If, for example, convoys moved from Alexandria to Greece every three days then you can use the _RND layer to spawn a group every 72 hours over a discrete time period.
5. You can also randomise the size of the waypoints to change the ships routes.

Merging all of these possibilities, you can script a convoy with a 75% chance of spawning, following a route from Alexandria to Greece every three days with any number of ships and escorts from one upwards following a different route each time, and all in a 5KB file.

The only piece you have to specify is the nation, so you can randomise neutral ships into a convoy but need to beware your spawn dates.
Thanks WB, very interesting !!!
__________________
Magic1111 is offline   Reply With Quote
Old 02-23-11, 07:13 AM   #5
fitzcarraldo
Argentinian Skipper
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Somewhere between Buenos Aires and the Bungo Suido
Posts: 5,381
Downloads: 3484
Uploads: 0


Default

Quote:
Originally Posted by Wreford-Brown View Post
I think it's time to share a little knowledge

There are three scripting layers in SH3:
_LND. This is for land based units such as coastal defences, air bases and ports. I haven't delved into the _LND layer so that's about all I can tell you!

_SCR. This is for scripting named ships into the campaign, so if you want the RMS Aquitania to follow her historic routes you can research the Aquitania's history and input it's route into the _SCR layer. You can also create groups around the Aquitania to allow it to sail with, for example, a modern tanker and four destroyers. The only randomisation available to the _SCR layer is around each waypoint. If you randomise the size of the waypoints you also randomise the ships routes.

_RND. This is the clever layer as there are a number of ways you can randomise:
1. Randomise groups. You can tell SH3 to randomise the content of convoys. The group leader (e.g Aquitania) must have a 100% chance of spawning, but you can then add a V&W destroyer at 100% and four V&W destroyers at 50% each. This means that each time Aquitania spawns SH3 will roll a dice and produce a group with between 1 and 5 destroyers.
2. Randomise ships within a group. There are a number of options for ships in a group so you can either specify a specific ship type (e.g. V&W destroyer) or a type such as GENERIC Destroyer which will search for all destroyers of that nation and pick them at random.
3. Randomised chance of a group spawning. You can also tell SH3 that there is a 75% chance of this group spawning, therefore it will appear three times out of four.
4. Timed group spawning. If, for example, convoys moved from Alexandria to Greece every three days then you can use the _RND layer to spawn a group every 72 hours over a discrete time period.
5. You can also randomise the size of the waypoints to change the ships routes.

Merging all of these possibilities, you can script a convoy with a 75% chance of spawning, following a route from Alexandria to Greece every three days with any number of ships and escorts from one upwards following a different route each time, and all in a 5KB file.

The only piece you have to specify is the nation, so you can randomise neutral ships into a convoy but need to beware your spawn dates.
Very clear. Thanks!

Fitzcarraldo
__________________



My subject is War, and the pity of War. The Poetry is in the pity - Wilfred Owen.
fitzcarraldo 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 01:49 PM.


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.