Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Merchant with interchangeable flag

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Silent Hunter II, Destroyer Command & Classic Subsims
View previous topic :: View next topic  
Author Message
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Sun Nov 28, 2004 5:59 pm    Post subject: Merchant with interchangeable flag Reply with quote

I have succeeded in putting the flag switch into the model files.

This is an example of what could have been easily done by Ultimation for SH2/DC, i.e. releasing merchant models with interchangeable flags/nationalities.

The mod includes slow cargo models which can carry a flag of pre-set 19 countries by a simple choice of the FLAG command in the [UNIT] section of UDF.

Country UDF command

USA Flag = 0 (by default)
Italy Flag = 1
Sweden Flag = 2
Brazil Flag = 3
UK Flag = 4
France Flag = 5
Poland Flag = 6
Germany Flag = 7
Netherlands Flag = 8
Canada Flag = 9
Japan Flag = 10
Romania Flag = 11
Australia Flag = 12
Spain Flag = 13
Norway Flag = 14
Finland Flag = 15
Denmark Flag = 16
Turkey Flag = 17
USSR Flag = 18


EXAMPLE of UDF SECTION (with FLAG command)

[UNIT]
Category = SHIP
Type = MERCHANT
Class = Cargo
Origin = England
Flag = 4
Date = 3901
Crew = 55
UpdatesPerSecond = 10
ExemptFromSilliness = TRUE
Preprocess = TRUE
#if between(19010101,date,19400131)
Model = MSCCargo
#endif
#if between(19400201,date,19400831)
Model = MSCCargoMG
#endif
#if between(19400901,date,19990101)
Model = MSCCargoDG
#endif

Slow-cargo stock UDFs for different countries with the proper FLAG commands are included in the mod.

Download is here
Back to top
View user's profile Send private message Send e-mail
Bruno Lotse



Joined: 28 Mar 2004
Posts: 585
Location: HMCS Toronto (K 538)

PostPosted: Sun Nov 28, 2004 6:42 pm    Post subject: Reply with quote

Is this for merchs only or can we use the same approach to set, say, British, Canadian, Australian etc. Flower corvets?
Back to top
View user's profile Send private message Send e-mail
Scorpio U-1000



Joined: 31 Jan 2004
Posts: 39
Location: Italy

PostPosted: Sun Nov 28, 2004 6:44 pm    Post subject: Reply with quote

Flag are also included in some units of Regia Marina Smile

As Battleships, Heavy cruisers and Tug

Canarb, in battleships and in heavy cruisers, has also included the features that changes name of ship together with the flag

Wink
Back to top
View user's profile Send private message Send e-mail
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Sun Nov 28, 2004 6:54 pm    Post subject: Reply with quote

Bruno Lotse wrote:
Is this for merchs only or can we use the same approach to set, say, British, Canadian, Australian etc. Flower corvets?


Stock Flower model already has a flag switch between five different countries (the same goes for Castles). If you replace, say, the Cuban flag with the Canadian one in genBritish.tga and create a new FlowerCAN.UDF with the Flag=2 command, you will have Canadian Flowers in the game.

As to other models, it is necessary to do hexediting before being able to use the flag switching.
Back to top
View user's profile Send private message Send e-mail
Bruno Lotse



Joined: 28 Mar 2004
Posts: 585
Location: HMCS Toronto (K 538)

PostPosted: Sun Nov 28, 2004 7:13 pm    Post subject: Reply with quote

[quote="sergbuto"]
Bruno Lotse wrote:

As to other models, it is necessary to do hexediting before being able to use the flag switching.

OK, thanks, sergbuto Yep
What should be changed in model.jrf file? (hexediting...) :hmm:
Back to top
View user's profile Send private message Send e-mail
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Sun Nov 28, 2004 7:16 pm    Post subject: Reply with quote

Bruno Lotse wrote:
What should be changed in model.jrf file? (hexediting...) :hmm:


That is quite a bit. Difficult to explain in brief.
Back to top
View user's profile Send private message Send e-mail
Hitman



Joined: 14 Sep 2002
Posts: 3059
Location: Spain

PostPosted: Mon Nov 29, 2004 11:02 am    Post subject: Reply with quote

Quote:
As to other models, it is necessary to do hexediting before being able to use the flag switching.


I had already noticed the flag switch in DC, but are you talking always about SH2 or also about DC? It is a bit confussing Confused

Could you please explain for stupids like me wether the flag switch works in all units in DC that have flag ( i.e. warships )?.

I already know and understand that flag change does not work in SH2's warships and merchants ( Your merchants with flag ). But do the flags from your merchants change also in DC automatically?
Back to top
View user's profile Send private message Send e-mail
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Mon Nov 29, 2004 7:18 pm    Post subject: Reply with quote

Hitman wrote:

I had already noticed the flag switch in DC, but are you talking always about SH2 or also about DC? It is a bit confussing Confused

The flag switch commands work both in SH2 and DC. But they work only for those units which have the flag switch included in their JRF. Furthermore, the number of countries to switch between is also defined in JRF while the flags of the defined countries (or in other words, the flag textures) are put in an external TGA file.

Hitman wrote:
Could you please explain for stupids like me wether the flag switch works in all units in DC that have flag ( i.e. warships )?.

No, the flag switch works only for very few units in DC. In particular, for NBBTexas (flag switch between US and USSR), NFlower (switch betwen 5 countries: UK, Mexico,Cuba, Brazil,USA), NCastle (the same 5 countries as for Flower), NDDTribal (UK/Poland), NDDAdroit (France/Poland), NDDSoldati (Italy/Poland), NTBAriete (Italy/Norway), and NMSElan (France/Germany). That is because only these units have the flag switch included in their JRFs. The flag switch will work for these units in SH2 as well.

Hitman wrote:
I already know and understand that flag change does not work in SH2's warships and merchants ( Your merchants with flag ). But do the flags from your merchants change also in DC automatically?

Merchants with flags in my previous mod can not change their flags at all because they do not have the necessary JRF switch.

Now, I have succeeded in putting such a switch into slow cargo JRF. This switch is between 19 (!) countries, i.e. covering all the important countries for WW2. This will work both in SH2 and DC.

After putting FLAG commands into stock UDFs of slow cargos from different countries, these cargos will appear with the appropriate flags both in stock campaigns (in SH2 and DC) or in Aces campaign for that matter.
Back to top
View user's profile Send private message Send e-mail
turnerg



Joined: 18 Jan 2004
Posts: 1088
Location: Dallas, Texas

PostPosted: Tue Nov 30, 2004 1:04 am    Post subject: Reply with quote

Confused Might you inform me when you get these breakthrough ideas please..... Embarassed

It's starting to obselete everything i do every week...... Crying or Very sad
Back to top
View user's profile Send private message Send e-mail AIM Address
R Hardman



Joined: 31 May 2001
Posts: 805
Location: 29 Palms, Ca.

PostPosted: Tue Nov 30, 2004 1:44 am    Post subject: Reply with quote

Do I understand that this is only for slow cargos and not for the other merchants?
Back to top
View user's profile Send private message
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Tue Nov 30, 2004 4:12 am    Post subject: Reply with quote

turnerg wrote:
It's starting to obselete everything i do every week...... Crying or Very sad


I do not think so because your work offers repaints which are a valuable component. Thumbs Up
Back to top
View user's profile Send private message Send e-mail
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Tue Nov 30, 2004 4:17 am    Post subject: Reply with quote

R Hardman wrote:
Do I understand that this is only for slow cargos and not for the other merchants?


For now, this is only for the models you can find in mod's download.


Last edited by sergbuto on Tue Nov 30, 2004 5:05 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Hitman



Joined: 14 Sep 2002
Posts: 3059
Location: Spain

PostPosted: Tue Nov 30, 2004 4:48 am    Post subject: Reply with quote

Many thanks for the explanation, sergei Thumbs Up

Clear and easy to understand Ping

I partially agree with turnerg...you both should coordinate a bit the work, so that a single high-resolution/repainted/auto-changing-flags merchants pack can be offered sooner or later on the internet.

Possibly a good way to do it would be that you start hexediting from turnerg's repainted units ( Like you did with horsa's DDs when you did them in High-Lod )

Idea
Back to top
View user's profile Send private message Send e-mail
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Tue Nov 30, 2004 6:06 am    Post subject: Reply with quote

Hitman wrote:
I partially agree with turnerg...you both should coordinate a bit the work, so that a single high-resolution/repainted/auto-changing-flags merchants pack can be offered sooner or later on the internet.


I do not see any problem or contradiction here. In fact, my flag mods (with both fixed and interchangeable flags) and Turnerg's work create a nice combination. It is only a matter of making a set of UDFs so that merchant with both interchangeable flags (stock paintings) and fixed flags (Turnerg's repaints) appear in the game. One way could be a mixture of different JRFs in the same UDF for various time periods. The other way could be using, say, the interchangeable-flag merchants in stock UDFs and those with fixed flags in custom UDFs. The latter will allow for a coexistance of a fleet of e.g. British, German, American merchants with different paints, at the same time interchangeable-flag merchants will cover other countries which have no repaints.
Back to top
View user's profile Send private message Send e-mail
Canarb



Joined: 14 Sep 2002
Posts: 241
Location: Italy

PostPosted: Tue Nov 30, 2004 6:10 pm    Post subject: Reply with quote

Good work sergei Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Silent Hunter II, Destroyer Command & Classic Subsims All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group