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 > Silent Hunter 5
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-13-10, 06:47 PM   #1
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default [REL] Ship Data Fetcher

Silent Hunter Ship Data Fetcher (Version 1.3)
by: Corey "Gutted" Harwell


Download here (Requires Microsoft .NET Framework 2.0, you should already have it)

This program will Fetch data such as Length, Width, Mast Height, Max Speed etc. for all SURFACE SHIPS installed in your game folder. It can output it in either an excel friendly format or in a "pretty" format. Only tested against a Silent Hunter 5 install, though it may (or may not) work for previous versions.


Version 1.3 Changelog:
1. Removed Spaces after the comma's in the delimited output. Fixes issue when trying to import into excel.
2.Program will now use the folder it is in as the default path. Just drop it into your main SH5 folder.

This is the final version. I dont foresee myself doing anymore with it and have packed the code away. Enjoy.


Version 1.2 Changelog:
1.Forgot to add a checkbox for "Draft". It was fetching it, but you couldn't see it.


Version 1.1 Changelog:
1. Sorts the ships alpabhetically.
2. You can now choose which details you want to fetch.
3. The internal ClassName can now be fetched.



__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids

Last edited by gutted; 03-13-10 at 11:05 PM.
gutted is offline   Reply With Quote
Old 03-13-10, 07:01 PM   #2
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

guess i should have mentioned it requires .NET 2.0. Updated post.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-13-10, 07:02 PM   #3
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Thanks Gutted for this. Not sure if its worth finishing the mod I started as AOTD_Rhonen is working on a similar one. May yet though if so this will come in handy. Cheers.
reaper7 is offline   Reply With Quote
Old 03-13-10, 07:04 PM   #4
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

Cool, hopefully someone gets some use out of it. It's already saved me ALOT of time for my speed solver.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-13-10, 07:21 PM   #5
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

How it works (incase anyone wants to make their own customized version):

First look in data\Roster\Names.cfg
Look through the |Sea| section. And you'll see a bunch of entries

ClassName=RealName

Record all of thsoe pairs.

Now loop through every folder under data\Sea\

In each folder open up it's .CFG file (if it has no .CFG file.. skip to next one).

In the .cfg file you will see:
ClassName=######

Simply find it in the list of class\real names you store earlier. If it's not in your list.. ignore this folder, because it may be something like an Iceberg. If it is, you can pair it with it's real name.

Grab the info you neeed out of this file.

Continue until finished.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-13-10, 07:29 PM   #6
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

I may add checkboxes so you can pick and choose only the values you want extracted.. and i may also add the ability to sort it by Name, Length, Speed etc.

But i'll save that for a rainy day when im really bored.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-13-10, 07:41 PM   #7
Dimitrius07
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I think this thread should be sticky. Very interesting
  Reply With Quote
Old 03-13-10, 08:36 PM   #8
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

Decided to just go ahead and make those changes, was only like 5-10 minutes worth of work.


New version is up.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-13-10, 08:50 PM   #9
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Great Improvement. Saves me manualy going into all the .cfg files for each entity. Thanks Gutted.
reaper7 is offline   Reply With Quote
Old 03-13-10, 09:11 PM   #10
Georg_Unterberg
Machinist's Mate
 
Join Date: Apr 2005
Location: Germany
Posts: 122
Downloads: 28
Uploads: 0
Default

argh! And I went through the .cfg files manually to get the required ship data for speed solution calculation.

Now with this tool I can get it with a few clicks, this saves a lot of time - I should have waited.

Thanks, gutted!
Georg_Unterberg is offline   Reply With Quote
Old 03-13-10, 09:21 PM   #11
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

This is excellent!!! And it works fast too

Oh by the way, can you add the draft too?
karamazovnew is offline   Reply With Quote
Old 03-13-10, 10:39 PM   #12
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

Quote:
Originally Posted by karamazovnew View Post
Oh by the way, can you add the draft too?
Done!


It was already fetching the draft, but i forgot to add a checkbox for it so you could see it the new version.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-13-10, 11:06 PM   #13
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,379
Downloads: 487
Uploads: 11
Default

Version 1.3 is up. See 1st post for details.


Last version I promise!! Packing the code away into my "completed" folder.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted 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 12:56 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.