SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-08-08, 10:17 AM   #1
Bedsdriver
Swabbie
 
Join Date: Aug 2008
Posts: 6
Downloads: 0
Uploads: 0
Default Newbs hopeless attempts at a harbour

I wanted to learn how to build a harbour. I knew it wouldn't be easy but I as it wouldn't be entirely from scratch I hoped it was within my limited abilities.

My first task was to create a new file based on an existing file that I could play with whilst I learned what i was doing.

I changed the location of Bergen to somewhere near Greece using a modified locations.cfg file and tested that my sub was within site of the new location of the harbour. I loaded the game and sure enough Bergen harbour was now floating off the coast of Greece.

I opened the Bergen.dat file using the excellent program Silent 3ditor, remapped the ids and then saved it as Stevenage.dat I then altered the locations.cfg file to use the new stevenage file in the same location but it did not appear in the game.

Any clues as to why?

Whilst I have your attention and using Bergen as an example. Silent 3ditor shows several TGA files (embeded?) within the Bergen.dat file. CIV_A.TGA is listed five times, FCN_FACT.TGA three times, DEP_A.TGA twice etc etc etc. Why are these TGA files embeded/listed more than once?
Bedsdriver is offline   Reply With Quote
Old 11-08-08, 11:25 AM   #2
Bedsdriver
Swabbie
 
Join Date: Aug 2008
Posts: 6
Downloads: 0
Uploads: 0
Default OK - well I sort of discovered something

I decided to simply copy the Bergen harbour and rename it Stevenage to see what happens.

When I started the game the "new" harbour Stevenage appeared (just off of Greece so at least the weather is better now). Even though the DAT file contains the same ids as the Bergen file.

I had thought that two files should not contain the same Ids but maybe that is just for cloned ships.

So either Bergen and Stevenage are so far away the identical ids are not a problem or it was never a problem in the first place.


Edit: I have a suspicion that harbours are merely blueprints rather than actual objects and that maybe by remapping the ids what i actually did was wipe out the markers pointing the way to the actual objects which are in the harborkit file.

Last edited by Bedsdriver; 11-08-08 at 11:53 AM.
Bedsdriver is offline   Reply With Quote
Old 11-08-08, 03:31 PM   #3
UberTorpedo
Planesman
 
Join Date: Jun 2006
Location: Southern California
Posts: 194
Downloads: 78
Uploads: 0
Learn from the master himself

Bedsdriver,

BigBoyWooly has some instructions on adding ports and navies ==> http://files.filefront.com/How+to+ad.../fileinfo.html
or the pdf download itself ==> http://files.filefront.com/How+to+ad.../fileinfo.html

Cheers,
UberTorpedo
UberTorpedo is offline   Reply With Quote
Old 11-09-08, 07:52 AM   #4
Bedsdriver
Swabbie
 
Join Date: Aug 2008
Posts: 6
Downloads: 0
Uploads: 0
Default Thats the basic guide,

That is a good guide if you want to move/copy an existing harbour to a new location to make a new harbour.

But just imagine putting in an extra crane or adding another bank of sub pens for a multiplayer map for eight subs.

I am trying to modify the files so that I can do what some other players have done and create brand new harbours.

I am getting there slowly but it's annoying to get CTD's and not know the reasons for them.
Bedsdriver is offline   Reply With Quote
Old 11-09-08, 09:04 AM   #5
Reise
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Try PM Nautilus\Trainer
He has made locks and St Naz harbour so should be help you
  Reply With Quote
Old 11-19-08, 06:18 PM   #6
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
Default

Quote:
Originally Posted by Bedsdriver
I opened the Bergen.dat file using the excellent program Silent 3ditor, remapped the ids and then saved it as Stevenage.dat I then altered the locations.cfg file to use the new stevenage file in the same location but it did not appear in the game.

Any clues as to why?
Remap also affects the id in the 'Object to place' panel (in the placement chunk) which is really an error on my part. Remap should only affect the ID of the chunk itself. Therefor, remapping a location-DAT will give you an unusable DAT-file because you now end up with object ID's that don't exist. I can only advise to use 'Assign new random ID' on each node/placement chunk manually, but this obviously is quite tedious. Expect this fixed though in the next release.

Quote:
Originally Posted by Bedsdriver
Whilst I have your attention and using Bergen as an example. Silent 3ditor shows several TGA files (embeded?) within the Bergen.dat file. CIV_A.TGA is listed five times, FCN_FACT.TGA three times, DEP_A.TGA twice etc etc etc. Why are these TGA files embeded/listed more than once?
When materials use the same texture, usually the material parameters are different (indicating a different type of surface), like how bright it is, how shiny it is, etc. For instance, steel reflects more light, while wood should look dull.


Quote:
Originally Posted by Bedsdriver
I had thought that two files should not contain the same Ids but maybe that is just for cloned ships.

So either Bergen and Stevenage are so far away the identical ids are not a problem or it was never a problem in the first place.
You thought right, id's should be unique, except for a handfull cases (not this). You may just be lucky that you didn't get a crash. However, as stated above, remap won't do you any good either.

Quote:
Originally Posted by Bedsdriver
Edit: I have a suspicion that harbours are merely blueprints rather than actual objects and that maybe by remapping the ids what i actually did was wipe out the markers pointing the way to the actual objects which are in the harborkit file.
Yes, the panel 'Object to place' contains a field with an ID that in most cases points to an object in Harbor_Kit.dat. This DAT contains the actual object that should be placed/rendered.


In short, new location-DAT's must contain all new ID's for chunk id/parent id fields, except for the 'Object to place' id's, which should point to ID's in the Harbor_kit.dat. To add objects to harbors add more/new placement chunks.

A visual representation of harbors is unfortunately not possibly right now with S3D.

Hope this helps.
skwasjer is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:17 AM.


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