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
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 01:25 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.