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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-31-11, 09:17 AM   #1
Armistead
Rear Admiral
 
Join Date: Dec 2008
Location: on the Dan
Posts: 10,880
Downloads: 364
Uploads: 0


Default Help, adding Lighthouses.

I would like to add lighthouses to different points on land. Seems I recall in SH3, you would open the terrian/lighthouse file with notepad and could just copy one of the files, make lat/long changes, etc and paste it.

Obvious I did it once, but how do you get a dat file to open correctly with notepad without it being gibberish.

Any advice, there once was a tutorial, but link is long dead. Just want some on mountain tops overlooking the ocean, a few islands, etc. Trying to research where some were other than the standard ones you get on piers.
Armistead is offline   Reply With Quote
Old 07-31-11, 04:40 PM   #2
Brewster
Sparky
 
Join Date: Apr 2011
Location: Rotterdam, The Netherlands.
Posts: 151
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by Armistead View Post
I would like to add lighthouses to different points on land. Seems I recall in SH3, you would open the terrian/lighthouse file with notepad and could just copy one of the files, make lat/long changes, etc and paste it.

Obvious I did it once, but how do you get a dat file to open correctly with notepad without it being gibberish.

Any advice, there once was a tutorial, but link is long dead. Just want some on mountain tops overlooking the ocean, a few islands, etc. Trying to research where some were other than the standard ones you get on piers.
Try opening it with S3D maybe you can add some more lighthouses then
__________________

Brewster is offline   Reply With Quote
Old 07-31-11, 05:21 PM   #3
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by Armistead View Post
I would like to add lighthouses to different points on land. Seems I recall in SH3, you would open the terrian/lighthouse file with notepad and could just copy one of the files, make lat/long changes, etc and paste it.

Obvious I did it once, but how do you get a dat file to open correctly with notepad without it being gibberish.

Any advice, there once was a tutorial, but link is long dead. Just want some on mountain tops overlooking the ocean, a few islands, etc. Trying to research where some were other than the standard ones you get on piers.
You can add lighthouses directly in the mission editor. In the tools menu select "Map Location Edit mode" then right click on the map and add a location. Location type: 3DLocation. In the Location 3Dmodel: Lighthouse. And you can set other things like zoom start zoomend, and dates etc.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 07-31-11, 11:23 PM   #4
Armistead
Rear Admiral
 
Join Date: Dec 2008
Location: on the Dan
Posts: 10,880
Downloads: 364
Uploads: 0


Default

Pea, I played with it for an hour, lil confused, maybe you or someone can help.

When I set a lighthouse or say hula village, they sink into land. If you place on flat land, looks OK, although some settle in the ground depending on slope. I've tried adjusting slope and height values, but nothing happens. So if someone could tell me how to do that.
Not sure what the zoom Z render does or other options there.

Mainly have some high cliff want to get lighthouses on.

Last edited by Armistead; 08-01-11 at 03:03 PM.
Armistead is offline   Reply With Quote
Old 08-03-11, 04:06 PM   #5
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by Armistead View Post
Pea, I played with it for an hour, lil confused, maybe you or someone can help.

When I set a lighthouse or say hula village, they sink into land. If you place on flat land, looks OK, although some settle in the ground depending on slope. I've tried adjusting slope and height values, but nothing happens. So if someone could tell me how to do that.
Not sure what the zoom Z render does or other options there.

Mainly have some high cliff want to get lighthouses on.
Yes, they would have to settle into the ground if they are on a slope to keep them level. Otherwise they would look crooked so they should be placed on a flat section.
I have never played with the slope value, so I can't answer that part of the question.


Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 08-03-11, 06:26 PM   #6
Armistead
Rear Admiral
 
Join Date: Dec 2008
Location: on the Dan
Posts: 10,880
Downloads: 364
Uploads: 0


Default

Yea, seems you're right. If you adjust height and slope in the ME locations, it defaults back to Zero. Obvious, towns can be placed high on hills, all over the place, so seems somewhere there is a height function that works.
Armistead is offline   Reply With Quote
Old 08-04-11, 01:52 PM   #7
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by Armistead View Post
Yea, seems you're right. If you adjust height and slope in the ME locations, it defaults back to Zero. Obvious, towns can be placed high on hills, all over the place, so seems somewhere there is a height function that works.
I just remembered the lighthouse.dat is the 'small' lighthouse, there is a "Tall_Lighthouse" which may be the one you want. The "lighthouse.dat" is in the terrain/locations folder and links to the Generic lighthouse in the library/harborkit.dat. The "Tall_Lighthouse.dat" is in the Terrain/locations and does not appear to link to another object.

I took the Tall lighthouse in the terrainlocations folder changed the y value to 9 and here is the tall lighthouse at Kwajalein.



I then took data/terrain/locations/tall_lighthouse and cloned it, remapped IDs and called it tall_lighthouse2.dat and set the y value to 12. Note: I changed the y value in the node-TLighthouse NOT the node-TLighthouse_RefPoint Added it with the mission editor and now have two lighthouses at different heights.



Now I do not know much about this stuff since I have never played around with it before, so it has not been tested to see if it will create conflicts or if those items in the locations can be cloned. But this one did work and it wasn't difficult.
If you find a location you want to put one, set a value for the y (height from water) and since you know the staring point is sea level, the second guess for a value should be fairly close. Of course you would need to clone a new one for each place you put them unless you are lucky enough to find locations that are the same height. (unlikely)

But I do repeat this is NOT tested enough for me to say it is going to work.

Now if the small lighthouse is the one you want, it is linked to a separate object, so it may react differently.

Hope it helps, a starting point for testing at least.

I also remember a post of someone working on a Pearl Submarine Base and if I remember he gave some info in there about creating objects/locations/harbor kit stuff. Try a search.

Also to answer another of your question....I guessing here the Z far render may render the lighthouse at a further distance than it normally would.

Peabody

Edit: One additional point, I suggest leaving the "Location name in game" box empty or you will end up with lighthouse names on your map while playing the game.
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.


Last edited by peabody; 08-04-11 at 02:03 PM.
peabody is offline   Reply With Quote
Old 08-08-11, 01:18 AM   #8
Armistead
Rear Admiral
 
Join Date: Dec 2008
Location: on the Dan
Posts: 10,880
Downloads: 364
Uploads: 0


Default

Thanks Pea, I was sort of on that path, but that will help a lot. That should work and will look a lot better than those placed lower.

Armistead 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 07:21 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.