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 |

Possible to "clone" ships?
Goto page 1, 2  Next
 
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 -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
Syxx_Killer



Joined: 06 Aug 2003
Posts: 1361
Location: Michigan, USA

PostPosted: Fri Jul 15, 2005 8:20 am    Post subject: Possible to "clone" ships? Reply with quote

I am wondering, is it possible to "clone" a ship and then name it something else? Particularly I'm thinking of Bismarck again. Would it be possible to copy the ship data and add it to the roster as the sister ship Tirpitz?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Jace11



Joined: 16 Mar 2005
Posts: 1091

PostPosted: Fri Jul 15, 2005 8:29 am    Post subject: Reply with quote

Serg knows how to do this, it is possible. He gave me some instructions, but I tried to follow them and it didn't work. The key is a bit string unique to each ship, clone all the files then sift through them and change the identifying bit string and you should have a new ship. Except I couldn't find all the bit strings in all the files Serg said they were in, so I gave up.

Here is what he told me.

sergbuto wrote:
Each 3D object in the models has its own ID in binary format. That is how they are recognized by the game. I.e. each of two copies of the same 3D object should have an unique ID to appear in the game as independent units. Therefore, while duplicating, one needs to change such IDs throughout the DAT file to make them unique. An example of such an ID is shown in the pic below. It is 8 bytes highlighted in dark blue. These IDs also need to be changed in corresponding SIM, DSD, VAL, and ZON files.

Good luck.

Back to top
View user's profile Send private message
macstu23



Joined: 07 May 2003
Posts: 197
Location: Rosyth Base, Scotland

PostPosted: Fri Jul 15, 2005 8:35 am    Post subject: Reply with quote

Tirpitz is already in the game, as she is listed as unit 2 on the BBBismarck.cfg contained in the 'SilentHunterIII\data\Roster\German\Sea' folder.
Just open it with notepad and have a look.
The museum only lists each 'class' of ship, so Tirpitz is considered Bismarck class.

As for adding the same model to the museum under the name 'Tirpitz'?... Hmmm. I'm sure it could probably be done. But I've no idea how.

Hope that was helpful Very Happy
Back to top
View user's profile Send private message Send e-mail
Syxx_Killer



Joined: 06 Aug 2003
Posts: 1361
Location: Michigan, USA

PostPosted: Fri Jul 15, 2005 8:44 am    Post subject: Reply with quote

With the cool skins Type941 is doing, I was kind of hoping that it would be possible to have both Bismarck and Tirpitz independant from each other. It would be cool to see both ships in their own skins rather than using the same skin.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Type941



Joined: 17 May 2005
Posts: 1311
Location: U-52

PostPosted: Fri Jul 15, 2005 8:56 am    Post subject: Reply with quote

Well, is someone will make a standalong Tirpitz, it would be very very good. Heck, throw in a couple of Hippers as well. :dead:
Back to top
View user's profile Send private message
Shadow9216



Joined: 15 Jun 2005
Posts: 395

PostPosted: Fri Jul 15, 2005 9:04 am    Post subject: Reply with quote

Quote:
He gave me some instructions, but I tried to follow them and it didn't work


Same here- I tried cloning the Liberator to make the navy variant, figured that would be a start, then I could try modding pieces of one ship/plane to another...
As Jace said, I couldn't identify the unique character string for the file, so I shelved the project.

It's too bad, as I know SeaCondor was looking at creating a Castle-class corvette, which could potentially use the Flower model.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jace11



Joined: 16 Mar 2005
Posts: 1091

PostPosted: Fri Jul 15, 2005 9:08 am    Post subject: Reply with quote

maybe I'll have a look at serg's additional merchants or southampton class, and check it against old original files to try and pick up the changes he made.
Back to top
View user's profile Send private message
benetofski



Joined: 01 May 2005
Posts: 175
Location: Port Perry, Canada

PostPosted: Sun Jul 17, 2005 10:18 pm    Post subject: Reply with quote

... be careful with this one :down:

I understand that if a ship is 'cloned' even though it may be renamed, if the REAL ship is spawned (by date/time) then the game will CTD as two versions of the same data are not permitted.

I think I recal it is the way the data is hard-coded!

Someone who has done much work on this anomoly and can explain in detail is the author of 'MilkCow' MOD (forgot his name) but look up the thread.
Back to top
View user's profile Send private message
macstu23



Joined: 07 May 2003
Posts: 197
Location: Rosyth Base, Scotland

PostPosted: Mon Jul 18, 2005 2:05 am    Post subject: Reply with quote

benetofski wrote:
I understand that if a ship is 'cloned' even though it may be renamed, if the REAL ship is spawned (by date/time) then the game will CTD as two versions of the same data are not permitted.


My mod which added the Fiji class destroyer to the Canadian Roster was pretty much a clone...Though it was different from what we want to do with the Tirpitz, it was a simple case of adding an existing ship cfg file to another country folder, and changing the data, e.g. unit name, nationality, and commision dates...The Tirpitz is a little more complex as we wont be changing nationality, but persuading the program to accept the Tirpitz as a new ship class, albeit using the Bismarck model...then persuading it to use a different skin.

I did take a hap-hazard 'lets see what happens if I do this' experimental approach and gave it a try, just by copying and re-naming a few files and folders... and got a CTD on startup, as expected. Where is Sergbuto when we need him ?
Back to top
View user's profile Send private message Send e-mail
Shadow9216



Joined: 15 Jun 2005
Posts: 395

PostPosted: Mon Jul 18, 2005 6:46 am    Post subject: Reply with quote

I can send you the correspondence he shared with me- perhaps you'll have better luck. I tried to create a clone of the B-24, but got CTD when I tried to view it in the museum- game loaded, and I could click on the B-24, but when I tried to click on my cloned unit is when the crash occurred.

If you or someone else can get this to work, there's several doors that would be opened. As I mentioned, Seacondor wants to modify the Flower class into the Castle class, I want to model the USN Liberator/Privateer, someone else wanted to do the Royal Sovereign as Archangelsk...the list goes on.

Anyone who wants the details Serg and I hashed out, lemme know and Ill forward it to you.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jace11



Joined: 16 Mar 2005
Posts: 1091

PostPosted: Mon Jul 18, 2005 8:55 am    Post subject: Reply with quote

sergbuto wrote:
Each 3D object in the models has its own ID in binary format. That is how they are recognized by the game. I.e. each of two copies of the same 3D object should have an unique ID to appear in the game as independent units. Therefore, while duplicating, one needs to change such IDs throughout the DAT file to make them unique. An example of such an ID is shown in the pic below. It is 8 bytes highlighted in dark blue. These IDs also need to be changed in corresponding SIM, DSD, VAL, and ZON files.

Good luck.



The above is all I have at the moment,

Shadow,

If you have any more details I'd be grateful as I could not get it to work using the instructions above. It doesn't seem to be the whole story...

Thanks
Back to top
View user's profile Send private message
Shadow9216



Joined: 15 Jun 2005
Posts: 395

PostPosted: Mon Jul 18, 2005 9:06 am    Post subject: Reply with quote

Just sent you a PM. Using the Liberator as an example, I did a find and replace of Liberator with Privateer. Although this changed every reference (and the hex code to boot), it didn't create a successful clone. Serg indicates the string in blue is the specifc. My problem is that I can't determine for a given file what that string is.

If someone can figure out how to determine the specific string, that would open doors to all of us.

Jace, the only thing I can guess at is counting back from the NAMC to the string in dark blue and figuring out how many characters that is, then using that as a starting point. IE: if the string in blue is separated from the NAMC by 6 characters, try a six character separation from the name of the unit you want to clone. Maybe?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rubini



Joined: 13 May 2005
Posts: 1149
Location: São Paulo Brazil

PostPosted: Mon Jul 18, 2005 9:23 am    Post subject: Reply with quote

Jace,

Shadow,

Sergei "sergbuto" is the only guy that have this information. I also tried to clone uboats but only him get the right work. If he is able to clone a uboat then I think that he is able to clone any ships or planes in the game...


Rubini.
Back to top
View user's profile Send private message Send e-mail
Shadow9216



Joined: 15 Jun 2005
Posts: 395

PostPosted: Mon Jul 18, 2005 9:26 am    Post subject: Reply with quote

He's tried to help both of us, too, but we (me speaking for Jace here) can't seem to fathom the directions. There seems to be a crucial piece we're missing to get it to work. Dunno about Jace, but maybe I'm beyond help? Razz

Nice hat BTW Rubini Laughing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rubini



Joined: 13 May 2005
Posts: 1149
Location: São Paulo Brazil

PostPosted: Mon Jul 18, 2005 9:39 am    Post subject: Reply with quote

And I'm really a medic, pediatric. So, I like that hat! :know:

But if a uboat's medic really have to use that hat...it's hilarius! Very Happy


Rubini.
Back to top
View user's profile Send private message Send e-mail
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 -> SH3 Mods Workshop All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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