SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Shall we talk about file sizes in mods? (https://www.subsim.com/radioroom/showthread.php?t=239249)

Jeff-Groves 12-03-18 02:19 PM

One thing I do know.
I did get the SH4 way working at one time in SH3!
There is a difference I need to check out. I was running the original release with the No-StarForce patch at the time.

Maybe the newer version with no StarForce is the reason?
Would not surprise me if Ubi jacked that ability or the patch allowed it.

On the program to clean files of the Damages stuff?
I asked for help from a member here at Subsim who works with Delphi.
I did cut some stuff in Studio 2006 and it seems it should all work but it is so different from what I know that help is needed.
I'm not giving up. Just asking for help.

bigboywooly 12-03-18 02:39 PM

Nothing wrong with asking for help. You can't know everything

Jeff-Groves 12-03-18 02:48 PM

What was it Jim use to say?
None of us are as smart as all of us?
Or something like that.

bigboywooly 12-03-18 04:32 PM

Indeed he did and he was right

Jeff-Groves 12-03-18 05:06 PM

Quote:

Originally Posted by bigboywooly (Post 2580040)
Indeed he did and he was right

Like we need to help his head grow larger!!
:03:
:haha:

Jimbuna 12-04-18 07:55 AM

Quote:

Originally Posted by Jeff-Groves (Post 2580008)
What was it Jim use to say?
None of us are as smart as all of us?
Or something like that.

Just one word short " None of us are as clever as all of us? :03:

Jeff-Groves 12-04-18 03:31 PM

Quote:

Originally Posted by Jimbuna (Post 2580129)
Just one word short " None of us are as clever as all of us? :03:

Then I didn't do to bad for a Colonist!
:up:

Jimbuna 12-05-18 09:04 AM

Quote:

Originally Posted by Jeff-Groves (Post 2580213)
Then I didn't do to bad for a Colonist!
:up:

Rgr that matey :salute:

gap 12-05-18 11:02 AM

Interesting thread Jeff, I am following it :up:

Quote:

Originally Posted by ArnoldR (Post 2579861)
Thank you for the reply! So,you mean that both ships (original and cloned) are exactly the same (AA guns, hitpoints.....), except for the texture?
I don't have SH4, could you send me the files, or show me a screenshot?

This is an example taken from SH5, but it works the same in SHIV and probably also in SHIII (never tried in the latter game but I trust what Jeff says :03:)

File: data\Sea\NAMC_Patroclus\NAMC_Patroclus.cfg:


Code:

[Unit]
ClassName=AMCPatroclus
3DModelFileName=data/Sea/NAMC_Rawalpindi/NAMC_Rawalpindi
UnitType=13
MaxSpeed=15
Length=165.89
Width=21.39
Mast=39.69
Draft=9.00
Displacement=11198
DisplacementVariation=10
RenownAwarded=220
CrewComplement=40
SurvivalRate=70
SurvivalPercentage=40
RecManualCategory=TroopTransport
BowShape=Plumb
Funnels=2
ShowInRecognitionManual=No;it is a clone. the player will identify it as another single ship
;*********** THE END ************

Note the line marked in orange: the Patroclus has not 3D model of her own, but her cfg file is pointing to Rawalpindi 3D model (dat file, or gr2 file in this case, since we are talking about SH5).

Other files found in the same folder (besides the above cfg file):

NAMC_Patroclus_sil.dds
NAMC_Patroclus.eqp
NAMC_Patroclus.sns

All other (sim, zon, val, dsd, etc.) files are shared with the Rawalpindi. The two ships have most features in common, but textures, armaments and sensor outfits can be customized.

The external look of two ships having the same 3D model can be customized as well, to some extent: all you need to do is removing parts you want to customize from the main model, edit them in two or more variants, and storing them in an external library file whose content can be linked to the units sharing the said model through equipemnt nodes/bones and .eqp files. There are not examples of this type of advanced technique in stock SH5, but there is at least one in SHIV.

In general, this method is very useful for dealing with sister ships, similar ship classes and aircraft variants. We refer to it as "proxy-cloning" as opposed to simple "cloning" where you duplicate an unit with all her binary files :yep:

ArnoldR 12-05-18 04:59 PM

@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????????? :hmmm: :/\\!!

Jeff-Groves 12-05-18 05:17 PM

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.

gap 12-05-18 06:06 PM

Quote:

Originally Posted by ArnoldR (Post 2580363)
@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????????? :hmmm: :/\\!!

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 (Post 2580366)
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...

gap 12-07-18 07:33 AM

Quote:

Originally Posted by Jeff-Groves (Post 2580366)
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.

Any news? :hmm2:

areo16 12-24-18 10:57 PM

Quote:

Originally Posted by Jeff-Groves (Post 2578859)
How to duplicate Units in SH3 the SH4 way:

Look at the BBNevada in SH4
ClassName=BBNevada
3DModelFileName=data/Sea/NBB_Colorado/NBB_Colorado

This type setting works in SH3 also!
Follow the files.


Hi All,


I have tried this over the last few days in many different flavors and I was unable to get this to work in SH3.



Has anyone had any success with this? This would be a breakthrough.


I've tried setting the model of a unit I know has the same model, then removing the original .dat file so I know its not using it. I just can't get the ship to show up.


Perhaps only implemented in SH4 and SH5? I do see the 3DModelFileName entry in many cfg files in SH3, but they only reference their own model.



Thanks.

HanSolo78 01-13-19 04:43 PM

@Jeff

Any further ideas or programmes that could help optimize Sh3 and reduce memory usage?

gap 01-13-19 08:27 PM

Quote:

Originally Posted by areo16 (Post 2583056)
Hi All,


I have tried this over the last few days in many different flavors and I was unable to get this to work in SH3.



Has anyone had any success with this? This would be a breakthrough.


I've tried setting the model of a unit I know has the same model, then removing the original .dat file so I know its not using it. I just can't get the ship to show up.


Perhaps only implemented in SH4 and SH5? I do see the 3DModelFileName entry in many cfg files in SH3, but they only reference their own model.



Thanks.

Quote:

Originally Posted by HanSolo78 (Post 2586461)
@Jeff

Any further ideas or programmes that could help optimize Sh3 and reduce memory usage?

Yep, I am curious too :yep:

ArnoldR 01-15-19 01:38 PM

Quote:

Originally Posted by ArnoldR (Post 2579888)
So, we still don't know if this is working for SH3...???? :doh:

Bump*:/\\!!

areo16 01-15-19 02:37 PM

Quote:

Originally Posted by ArnoldR (Post 2586737)
Bump*:/\\!!


I'm quite confident it doesn't work for SH3. The other approach we can use was suggested by Richard, it was to find similar 3d models in the dat files by looking at the hex and then reference just one of them (reference 1 id) instead of rendering the same model over and over again.

Jeff-Groves 01-23-19 11:51 AM

I'll admit I don't recall how I had something like that working at one time.
I haven't been messing with it for awhile now also.

But here's a thought I had while working on something else.
Since SH3 Commander can move files and such around by dates?
Why not remove Units that are not in Game at the start of the War and have Commander install them at the proper time?
Also remove Units when needed?

Anvar1061 01-23-19 12:46 PM

Quote:

Originally Posted by Jeff-Groves (Post 2588079)
Since SH3 Commander can move files and such around by dates?
Why not remove Units that are not in Game at the start of the War and have Commander install them at the proper time?
Also remove Units when needed?

this is subject to mandatory use of SH3Commander


All times are GMT -5. The time now is 06:15 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.