| View previous topic :: View next topic |
| Author |
Message |
sergbuto
Joined: 14 Sep 2002 Posts: 2530 Location: Sweden
|
Posted: Sun Nov 28, 2004 5:59 pm Post subject: Merchant with interchangeable flag |
|
|
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 |
|
 |
Bruno Lotse
Joined: 28 Mar 2004 Posts: 585 Location: HMCS Toronto (K 538)
|
Posted: Sun Nov 28, 2004 6:42 pm Post subject: |
|
|
| Is this for merchs only or can we use the same approach to set, say, British, Canadian, Australian etc. Flower corvets? |
|
| Back to top |
|
 |
Scorpio U-1000
Joined: 31 Jan 2004 Posts: 39 Location: Italy
|
Posted: Sun Nov 28, 2004 6:44 pm Post subject: |
|
|
Flag are also included in some units of Regia Marina
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
 |
|
| Back to top |
|
 |
sergbuto
Joined: 14 Sep 2002 Posts: 2530 Location: Sweden
|
Posted: Sun Nov 28, 2004 6:54 pm Post subject: |
|
|
| 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 |
|
 |
Bruno Lotse
Joined: 28 Mar 2004 Posts: 585 Location: HMCS Toronto (K 538)
|
Posted: Sun Nov 28, 2004 7:13 pm Post subject: |
|
|
[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
What should be changed in model.jrf file? (hexediting...) :hmm: |
|
| Back to top |
|
 |
sergbuto
Joined: 14 Sep 2002 Posts: 2530 Location: Sweden
|
Posted: Sun Nov 28, 2004 7:16 pm Post subject: |
|
|
| 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 |
|
 |
Hitman
Joined: 14 Sep 2002 Posts: 3059 Location: Spain
|
Posted: Mon Nov 29, 2004 11:02 am Post subject: |
|
|
| 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
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 |
|
 |
sergbuto
Joined: 14 Sep 2002 Posts: 2530 Location: Sweden
|
Posted: Mon Nov 29, 2004 7:18 pm Post subject: |
|
|
| 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  |
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 |
|
 |
turnerg
Joined: 18 Jan 2004 Posts: 1088 Location: Dallas, Texas
|
Posted: Tue Nov 30, 2004 1:04 am Post subject: |
|
|
Might you inform me when you get these breakthrough ideas please.....
It's starting to obselete everything i do every week......  |
|
| Back to top |
|
 |
R Hardman
Joined: 31 May 2001 Posts: 805 Location: 29 Palms, Ca.
|
Posted: Tue Nov 30, 2004 1:44 am Post subject: |
|
|
| Do I understand that this is only for slow cargos and not for the other merchants? |
|
| Back to top |
|
 |
sergbuto
Joined: 14 Sep 2002 Posts: 2530 Location: Sweden
|
Posted: Tue Nov 30, 2004 4:12 am Post subject: |
|
|
| turnerg wrote: | It's starting to obselete everything i do every week......  |
I do not think so because your work offers repaints which are a valuable component.  |
|
| Back to top |
|
 |
sergbuto
Joined: 14 Sep 2002 Posts: 2530 Location: Sweden
|
Posted: Tue Nov 30, 2004 4:17 am Post subject: |
|
|
| 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 |
|
 |
Hitman
Joined: 14 Sep 2002 Posts: 3059 Location: Spain
|
Posted: Tue Nov 30, 2004 4:48 am Post subject: |
|
|
Many thanks for the explanation, sergei
Clear and easy to understand
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 )
 |
|
| Back to top |
|
 |
sergbuto
Joined: 14 Sep 2002 Posts: 2530 Location: Sweden
|
Posted: Tue Nov 30, 2004 6:06 am Post subject: |
|
|
| 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 |
|
 |
Canarb
Joined: 14 Sep 2002 Posts: 241 Location: Italy
|
Posted: Tue Nov 30, 2004 6:10 pm Post subject: |
|
|
Good work sergei  |
|
| Back to top |
|
 |
|