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 05-18-22, 03:50 PM   #91
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

may be this?


; Locations configuration file

;General settings

[Config]
MinBuildingTerrainHeight=0 ;[meters] minimum terrain height for placing buildings
MaxBuildingSlope=0.25 ;[0..1] maximum slope for a biulding to be placed
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 05-18-22, 04:01 PM   #92
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,719
Downloads: 439
Uploads: 2


Default

That could potentially be the issue on Astvitaliy 1982's west shore of Caballo, which is where the "hill" is, but I attempted to place the guns ("Render accurate shoreline) right by the water's edge where the slope is not as great. As for Carabao, it barely changes height at all... though a 1 in 4 slope really is rather shallow... - some of the items are set to 0.55 in the Campaign_LOC file, so the game might be fighting itself in this regard... What would be ~nice~ is if placing a gun would do an automatice "carve-out" of terrain for the modder... lol - not happening with this relic of a game. Thanks Jeff!
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 05-18-22, 06:48 PM   #93
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

Just did this in a stock location near Antarctica.
Cool eh?



Eastern shore of Caballo Island.
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 05-18-22 at 07:29 PM.
Jeff-Groves is offline   Reply With Quote
Old 05-18-22, 08:41 PM   #94
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,719
Downloads: 439
Uploads: 2


Default

Most interesting Jeff. That's what I see on Corregidor in places... which gun is that, the medium?? Thanks!
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 05-19-22, 09:40 AM   #95
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

That's the Large Coastal Gun.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 05-19-22, 09:47 AM   #96
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,719
Downloads: 439
Uploads: 2


Default

Thanks. I'll try substituting my Medium guns for Large, and see what happens...
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 05-19-22, 09:50 AM   #97
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

When GWX 4 was in the works, We made a bunch of German Coastal Guns.
We had to add 3D modeled terrain around some of them to get them to look right.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 06-23-22, 06:06 PM   #98
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

A little image so you can visualize a SINGLE pixel of terrain compaired to a Type 7 Submarine.


The White box is a SINGLE pixel in HALF SCALE!


I came across this as I was working on a way to edit Terrain in a 3D visual program.
(And YES. I'm writing the Tools to do so.)
Why you might ask? Cause I can and because people can't seem to wrap their mind around how terrain slopes in SH3/4
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 06-23-22 at 06:29 PM.
Jeff-Groves is offline   Reply With Quote
Old 06-28-22, 06:10 PM   #99
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

Wrote a few scripts and use a few programs to do some cool stuff.
1st I export all the data from the BFD file to seperate files.
All 64800 of them!
2nd I grap the names and size of those from the BFI file.

I plant any new terrain files in the exported files then pack them all back into a single file.

Then run a script to re-index that and create a new BFI file.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 06-30-22, 01:47 PM   #100
astvitaliy1982
Lieutenant
 
Join Date: Jun 2019
Posts: 254
Downloads: 524
Uploads: 0
Default Astvitaliy 1982

Hi Jeff, really need help.
I managed to build a SH4 depth map for this section of the map




But again I have to ask for help in solving the problem with the relief squares.
The square size of 601x601 pixels is very inconvenient for importing depths into the game.

Is it possible to write a script to export squares with a size of 4207x4207 pixels?

Small squares make it almost impossible to import depths into the game. It is too long
and labor intensive.





For comparison, I want to show a screenshot of the depths in the game and the depths that should be in the game.

astvitaliy1982 is offline   Reply With Quote
Old 07-01-22, 11:40 AM   #101
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

It could be done but you still end up with the 601x601 RAW files compressed to ZHF or RL2 files.
That's what the Game uses and We can't change that.

I'm working on an RL2 Decompressor now.
Already have the ZHF Decompressor.

Both do a MASS decompress to RAW files.

What I'll do is Decompress all 64800 files then upload the package for others to do as they wish with them.

You can do what you want in Photoshop and could even script a lot of the work.
I did some testing last night and figured out the steps. Then played with a few scripts to help speed things up. So it's probably better to do the heavy work in Photoshop JSX scripting.

I don't know if CS2 scripts will work in your version so they might not help you.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 07-01-22, 11:01 PM   #102
astvitaliy1982
Lieutenant
 
Join Date: Jun 2019
Posts: 254
Downloads: 524
Uploads: 0
Default Astvitaliy1982

Well) Thanks) I tried working in Photoshop CS 8.0, then switched to Photoshop 2020. It turned out that version 2020 works much more stable when, when creating a mod, the working file begins to reach a size of 500 MB. I'll try to look at the scripts, maybe it will help facilitate some actions)

Last edited by astvitaliy1982; 07-02-22 at 01:56 AM.
astvitaliy1982 is offline   Reply With Quote
Old 07-02-22, 11:19 AM   #103
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

From reading on the 'Net it seems many CS2 scripts should work on later versions of Photoshop. If you would like to test a couple of early scripts I can upload them. One of them removes pixels from the left side of an image.
I have a reason for removing pixels.


I'm very early on the learning of the Java scripting for Photoshop but it's not really hard given the scripts posted all over the 'Net.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 07-02-22, 03:07 PM   #104
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,300
Downloads: 130
Uploads: 0


Default

Here's my test grid based on the size you asked about.
The lines are the Grids turned on and set to 601 for now.
That is going to be changed and I'll explain why later tonight.
I'm going to my Son's house for the 4th of July fire works he does every year.



I'll be using Snaps so imported RAW files will be easy to place properly as I go.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 07-02-22, 03:27 PM   #105
astvitaliy1982
Lieutenant
 
Join Date: Jun 2019
Posts: 254
Downloads: 524
Uploads: 0
Default Astvitaliy 1982

I would appreciate your help)
In turn, I am also ready to help you in any way I can)
astvitaliy1982 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 05:58 PM.


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.