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 01-25-22, 06:54 AM   #16
John Pancoast
Ocean Warrior
 
Join Date: Apr 2002
Location: Minnysoda
Posts: 3,174
Downloads: 490
Uploads: 4


Default

If anyone is interested I have uploaded a mod containing edited IABL's MFM 3.3 and stock merchant ships .sns files.
Find it here.
__________________
"Realistic" is not always GAME-GOOD." - Wave Skipper
John Pancoast is offline   Reply With Quote
Old 01-25-22, 07:11 AM   #17
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 786
Downloads: 26
Uploads: 0


Default

Quote:
Originally Posted by Jeff-Groves View Post
The Scripting ability of 010 is why I push it so much!
I rarely program a full exe now days because of it's open abilities!
Sure it costs a few bucks but it is HANDS DOWN the best thing since sliced bread!


You see how fast I did a simple example Script?

That Script is actually just an edited Script I had on hand for finding the Shadow objects in the dat files.
So once you have a Script? It's easy to modify them for other needs!

I have to spend a few days in a Motel so I may try to do a complete Script for you to whack the files in one swoop.
No promises but I'll see what happens.

Now. Since ALL Merchants are Types 100 to Type 105?
You could Wild Card the Search to keep from doing multiple Else If statements.
Quote:
Originally Posted by Jeff-Groves View Post
A WildCard search on a Stock SH3 shows 23 Units.

Stock GWX shows 72
Easiest is just search a UnitType=10.
That will pop them all.

NOW! Right here is where We can change things up!


for( i = 0; i < r.count; i++ )
{
Printf( "%s\n", r.file[i].filename );
}


Here is where We can grab file names and direct 010 to open the sns file and change things.
I'll strip the cfg extension and tell 010 to open the ShipName.sns file. Then have it find the O01 line and change it.
then it will simply close the file with the changes made.
I won't believe it really works until I didn't see it with my eyes...

A program removing all the "SHD" garbage would be very apreciated...

Last edited by Mister_M; 01-25-22 at 05:17 PM.
Mister_M is offline   Reply With Quote
Old 01-25-22, 03:00 PM   #18
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default

Quote:
Originally Posted by John Pancoast View Post
If anyone is interested I have uploaded a mod containing edited IABL's MFM 3.3 and stock merchant ships .sns files.
Find it here.
Thank you very much John Pancoast
__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 01-28-22, 05:49 PM   #19
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

I have the Script for 010 to the point of stripping the .cfg extension and working on opening the sns files to replace the O01 setting then saving the file.
Now if there is no O01 or sns file? It just skips as in the case of Iceburgs.
Would adding the ability to check say like Aircraft/other stuff for a sensor change be a good way to go?
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 01-28-22, 06:10 PM   #20
John Pancoast
Ocean Warrior
 
Join Date: Apr 2002
Location: Minnysoda
Posts: 3,174
Downloads: 490
Uploads: 4


Default

Anything you want to put together would be great and much appreciated Jeff !
__________________
"Realistic" is not always GAME-GOOD." - Wave Skipper
John Pancoast is offline   Reply With Quote
Old 01-29-22, 03:42 AM   #21
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 786
Downloads: 26
Uploads: 0


Default

Quote:
Originally Posted by Jeff-Groves View Post
Would adding the ability to check say like Aircraft/other stuff for a sensor change be a good way to go?
Sure !
Mister_M is offline   Reply With Quote
Old 01-29-22, 06:11 AM   #22
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,344
Downloads: 846
Uploads: 0
Default

__________________
Anvar1061 is offline   Reply With Quote
Old 01-29-22, 10:50 AM   #23
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

Script now changes the extension and opens the sns files one at a time to allow changing the AI_Visual to whatever you wish.

Just have to add the routine to enter whatever you want then it will save and close the file.

WARNING! IT DOES NOT MAKE A BACKUP FILE JUST YET!

Example of what it does when looking at the cfg files.

E:\Ubisoft\Silent Hunter 3\data\Sea\Iceberg\Iceberg.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\IcebergM1\IcebergM1.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\IcebergM2\IcebergM2.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\IcebergM3\IcebergM3.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\IcebergS1\IcebergS1.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\IcebergS2\IcebergS2.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\IcebergS3\IcebergS3.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NATF\NATF.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NF_boat\NF_boat.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NF_boat_1\NF_boat_1.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NF_boat_2\NF_boat_2.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NKC3\NKC3.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NKLS_\NKLS_.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NKSQ_\NKSQ_.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NKSs_\NKSs_.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NLL_\NLL_.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NLST\NLST.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NOTMs_\NOTMs_.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NOTM_T2\NOTM_T2.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NOTSf\NOTSf.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NPPL_\NPPL_.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NTR\NTR.sns
E:\Ubisoft\Silent Hunter 3\data\Sea\NVV\NVV.sns
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 01-30-22, 02:50 PM   #24
rik007
Seasoned Skipper
 
Join Date: Jan 2002
Location: Holland
Posts: 704
Downloads: 117
Uploads: 0
Default

Does it skip the warships?
rik007 is offline   Reply With Quote
Old 01-30-22, 03:09 PM   #25
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,344
Downloads: 846
Uploads: 0
Default

Quote:
Originally Posted by rik007 View Post
Does it skip the warships?
Yes
__________________
Anvar1061 is offline   Reply With Quote
Old 01-30-22, 04:05 PM   #26
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 786
Downloads: 26
Uploads: 0


Default

Why not allow us to select the types of units we want to include in the search/open/replace/save process ? I'm sure you know how to code this.
Mister_M is offline   Reply With Quote
Old 01-30-22, 05:08 PM   #27
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

You'll be able to select Class like Warships, Merchants, Aircraft etc.
Then select the UnitType in that class.
So Warships would give you

Type0=Patrol Craft
Type1=Corvette
Type2=Frigate
Type3=Destroyer Escort
Type4=Destroyer
Type5=Minesweeper
Type6=Light Cruiser
Type7=Heavy Cruiser
Type8=Escort Carrier
Type9=Fleet Carrier
Type10=Battlecruiser
Type11=Battleship
Type12=Minelayer
Type13=Auxiliary Cruiser
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 01-30-22, 06:34 PM   #28
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 786
Downloads: 26
Uploads: 0


Default

Quote:
Originally Posted by Jeff-Groves View Post
You'll be able to select Class like Warships, Merchants, Aircraft etc.
Then select the UnitType in that class.
So Warships would give you

Type0=Patrol Craft
Type1=Corvette
Type2=Frigate
Type3=Destroyer Escort
Type4=Destroyer
Type5=Minesweeper
Type6=Light Cruiser
Type7=Heavy Cruiser
Type8=Escort Carrier
Type9=Fleet Carrier
Type10=Battlecruiser
Type11=Battleship
Type12=Minelayer
Type13=Auxiliary Cruiser
Mister_M is offline   Reply With Quote
Old 01-31-22, 09:36 AM   #29
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

I've set up a bat file to call the Script without opening the 010 UI.
So here's the first screen you get.



Working on the second level selection box now.
It will look the same but have each type in the selected Class.
All search values will be coded in Hex format to insure no false positives pop.
So to search for a UnitType=101?
I search for 3D3130310D0A,h
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 01-31-22, 10:16 AM   #30
John Pancoast
Ocean Warrior
 
Join Date: Apr 2002
Location: Minnysoda
Posts: 3,174
Downloads: 490
Uploads: 4


Default

Quote:
Originally Posted by Jeff-Groves View Post
I've set up a bat file to call the Script without opening the 010 UI.
So here's the first screen you get.



Working on the second level selection box now.
It will look the same but have each type in the selected Class.
All search values will be coded in Hex format to insure no false positives pop.
So to search for a UnitType=101?
I search for 3D3130310D0A,h

Outstanding !
__________________
"Realistic" is not always GAME-GOOD." - Wave Skipper
John Pancoast 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 07:05 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.