[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Silent Hunter II » » Mission-Scripting Newbie : PLEASE HELP
Author Mission-Scripting Newbie : PLEASE HELP
EineSchaufelSand


Joined: Dec 02, 2002
Posts: 3
Posted: 2002-12-02 14:16   
I just started to learn how to write my own custom-singleplayer-scenarios and need your help.

I want to write a scenario which is based on the movie "Das Boot". Focus is the street of Gibraltar and the action should be someround Dec 41. I look at all British Unit-Files and wasn't able to find a destroyer or escort without surface-radar at this date. All DDs or DEs have allready radar at this gametime, which i find is really unrealistic.

So I took a look at the American Ships and find that most of them got radar erliest in 1942. My idea was to "borrow" a american Destroyer for the Gibraltar-Patrol, so that a surface-passthrough would be possible for a sub on bad weather conditions. BUT: Even when i give them british nationality with the "nationality"-value, their displayed icon will tell me that they are US, as written in the Unitfile with the command "origin".

So my questions:
1) Is their a command which make an american vessel totally british including their displayed icon-name ? Or even better can i set the icon name myself in the script ?
I don't want to change the unitfile for some good reasons to "origin = england", also i know this would be the easiest way to do it...

2) If their is no positiv answer to my first question: is there any method to disable a specific sensor, like the surface-radar in the .sdf-file ?

Hope anyone can help me....

Greetings
_________________


  View Profile of EineSchaufelSand   Email EineSchaufelSand      Edit/Delete This Post   Reply with quote
Teemu


Joined: Mar 12, 2002
Posts: 35
From: Helsinki, Finland
Posted: 2002-12-02 16:29   
(Nationality parameter is useless in the scenario file. Just delete the line)

You can copy the DD classes and edit the copies, and use the edited DD's in your mission while originals remain as they were. Do this:

COPY the BRITISH DDs and DEs unit definition files (UDFs) into new files with names like "dasBootmissionDD1.UDF", "dasBootmissionDD2.UDF", etc.

EDIT the NEW files into your liking, like removing the sensors. But I recommend simply editing the date ranges so that they exclude the scenario date.

Now, to bring these edited classes into your scenario, edit your scenario's units to show "Class = dasBootmissionDD1" (etc.) where you want to use these edited classes.

Plus, I suppose you have to edit the British ships' database. COPY the lines of the edited classes, and replace the each name with "dasBootmissionDD1", ...

[ This Message was edited by: Teemu on 2002-12-02 16:44 ]


  View Profile of Teemu   Email Teemu      Edit/Delete This Post   Reply with quote
FAdmiral


Joined: Feb 28, 2002
Posts: 1401
From: Atlanta, GA, USA
Posted: 2002-12-03 14:11   
OR you could just change the date & save as
a different .udf file. Example:


;; Surface search radars --------------------

#if between(19410210,date,19420510)
[SENSOR2]
Type = RADAR
System = RadarGB_286
#endif

#if between(19411011,date,19460101)
[SENSOR3]
Type = RADAR
System = RadarGB_291
#endif

#if between(19420311,date,19460101)

[SENSOR4]
Type = RADAR
System = RadarGB_271
#endif

Just alter the first date from 1941 to 1942.
Thus, no radar in 1941. By the way, the unit file NDDFlush.udf is a lend-lease 4-stacker and has no radar in 1941. This can
be used as-is. The name of the new unit files can be more simple. Like: NDDTribalNR.udf (NR meaning no radar in 41)

JIM




_________________
Contrary to popular belief, most people do possess a photographic memory. The problem is most of them are simply out of film.


  View Profile of FAdmiral   Email FAdmiral   Goto the website of FAdmiral      Edit/Delete This Post   Reply with quote
EineSchaufelSand


Joined: Dec 02, 2002
Posts: 3
Posted: 2002-12-03 16:10   
Thanx for your support to u both, but I knew of this way to change the .udf-file already. But this is no solution to my request, cause i really want to leave the unit files as they are.
I like to do so, because every player should play this scenario WITHOUT installing any extra or modified shipclasses to the unitfolder. Surely modifying the entrys of sensors in the udf-files and saving an renamed copy of this would be farely easy for me or even the most of users but unfortunatly not for all....

I wasn't able to find NDDFlush-Unit in my folder, maybe because the version i am developing on just contains of the original sh2 version plus the 1.1patch (of course US-Version). I think this unit maybe came to your folder with a wpl-stat or somewhat, but is not included in the original version.

So believe me : all Enlish-Destroyer-Units have their radarsensor enabled in December 1941. As told befor, I could simply use an US-Dsetroyer for this job but i really don't like that the icon displays "US Destroyer". It's simply too unrealistic for me that an american destroyer saves the Gibraltar Strait at a moment in history when America was still neutral.

So i took a look at my historybooks and found that the first boat passing the strait was U371 at 21.September of 1941. At this time english destroyers have no surface-radar in the game and that seems to be the only solution for my plan. I have to let go the dealing with the movie-boat U96 and focus on a real one, which will be able to pass the strait without beeing woried by unrealistic detection-sensors of the enemy.

If someone got an solution for my original first plan, i will be really thankful.

Thanx

_________________


  View Profile of EineSchaufelSand   Email EineSchaufelSand      Edit/Delete This Post   Reply with quote
FAdmiral


Joined: Feb 28, 2002
Posts: 1401
From: Atlanta, GA, USA
Posted: 2002-12-03 16:28   
Probably the NDDFlush was taken from the
Destroyer Command unit files. I combined both SH2 & DC unit folders to achieve the
complete list of ships of that era. When
SH2 shipped, many of the ships (mainly Japanese) were not included....

JIM
_________________
Contrary to popular belief, most people do possess a photographic memory. The problem is most of them are simply out of film.


  View Profile of FAdmiral   Email FAdmiral   Goto the website of FAdmiral      Edit/Delete This Post   Reply with quote
Mark K


Joined: Feb 27, 2002
Posts: 474
From: Petaluma, California
Posted: 2002-12-03 16:29   
Under the UNIT section for the desired ship, you can add the line:

Inactive = TRUE

This will turn off radar and sonar. It has only been used in the game for moored ships, like in Scapa Flow.

thanks,
Mark Kundinger
(Ultimation)


  View Profile of Mark K   Goto the website of Mark K      Edit/Delete This Post   Reply with quote
EineSchaufelSand


Joined: Dec 02, 2002
Posts: 3
Posted: 2002-12-03 17:14   
Hey Mark,

I am really happy that u read this one . Thanx a lot....

I haven't got the time to test the "inactivity" entry till now but i think this could be a part of the solution for me.

But : When I give the destroyer this order in the .sdf-file it will not hunt the sub when dived, right ? Cause all sensors will be offline ! Is there no chance to deactivate only a single sensor ?

Greetings
_________________


  View Profile of EineSchaufelSand   Email EineSchaufelSand      Edit/Delete This Post   Reply with quote
Mark K


Joined: Feb 27, 2002
Posts: 474
From: Petaluma, California
Posted: 2002-12-04 06:37   
Worse, it would try to hunt the sub, but it would do so without any sonar! (or it might turn on its sonar, I'm not really sure)

  View Profile of Mark K   Goto the website of Mark K      Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.044773 seconds.