View Single Post
Old 12-05-18, 06:06 PM   #92
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by ArnoldR View Post
@gap: thankx for the detailed explain!!

A question: do the proxy-cloned unit have a dat file?? If no, how can you call the new texture, you must have a different name, or not?????????
It doesn't. The dat file is the one of the parent unit. Provided that unit materials are set opportunely, textures can be assigned via roster cfg file.
Still taking SH5's Patroclus and Rawalpindi as an example, these are their entries in the British roster:

AMCPatroclus.cfg:

Code:
[UnitClass]
ClassName=AMCPatroclus
UnitType=13
AppearanceDate=19390912
DisappearanceDate=19411001
DisplayName=BR AMC Patroclus (proxy)

[Texture 1]
TextureName=
LightmapTextureName=data/Sea/NAMC_Penguin/Penguin_AO.tga
NormalmapTextureName=
StartDate=19390101
EndDate=19461231
Frequency=1

[Unit 1]
Name=HMS Patroclus
DOC=19390912
DOD=19401104

[Unit 2]
Name=HMS Hector
DOC=19391220
DOD=19420405

[Unit 3]
Name=HMS Antenor
DOC=19400101
DOD=19411001

;************ The End ************
AMCRawalpindi.cfg:

Code:
[UnitClass]
ClassName=AMCRawalpindi
UnitType=13
AppearanceDate=19391001
DisappearanceDate=19430501
DisplayName=BR AMC Rawalpindi

[Texture 1]
TextureName=*mil.dds
LightmapTextureName=data\Sea\NAMC_Rawalpindi\NAMC_Rawalpindi_AO01.dds
NormalmapTextureName=
StartDate=19390101
EndDate=19461231
Frequency=1

[Unit 1]
Name=HMS Rawalpindi
DOC=19391001
DOD=19391123

[Unit 2]
Name=HMS Ranchi
DOC=19391023
DOD=19430316

[Unit 3]
Name=HMS Ranpura
DOC=19391130
DOD=19430501

[Unit 4]
Name=HMS Rajputana
DOC=19391201
DOD=19410413

;************ The End ************

That means that each proxy-copy can have its own texture different from the one used on its parent unit, even if both ship classes are in the roster of the same nation. Also note that, unlike the example above, proxy-cloned units can have a different unit type than their parents; this is another level of customization that I forgot mentioning in my previous post.

All of the above applies to SHIV and SH5. In SHIII though, things might bit more complicated than that... read Jeff's post below:

Quote:
Originally Posted by Jeff-Groves View Post
So far it does not work in SH3 as it does in SH4 and SH5.

I know I had it working somehow in the past.
Trying to duplicate it now.
Fingers crossed and let us know if you remember how it works...
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote