Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Simple SH3 Commander question
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Sun Nov 13, 2005 1:43 am    Post subject: Reply with quote

panthercules wrote:
Is there any way to make the names in the log/personnel file editable later on?

The HTML log file simply picks up what it finds in your career Log_*.cfg files. So if you adjust any of these files, the changes will be reflected in the HTML log file (and in SH3 for that matter). New ship names are written direct to these files before the HTML log file is created. You can manually edit these Log_*.cfg files and add the nationality of each ship sunk, but just don't add the nationality before the default ship name entry, add it after (ie NOT "...|British C3 Cargo" but "...|C3 Cargo - British" or somesuch). Otherwise you'll interfere with the ship name function and won't get any new names! How you enter the nationality will continue to exist even after a name change, so "...|C3 Cargo - British" would become "...|S.S. Minnow (C3 Cargo) - British". At this point you can re-edit the files as you want and remove/replace "S.S." or the nationality text. Your next created Personnel File will be just as you want.

panthercules wrote:
At any rate, where does the "S.S." come from? Is it hardcoded into some game function, or was it just included with all the ship names in whatever text or .cfg file or whatever file stores those names? I wouldn't mind going through and editing out stuff if that's all it takes.

Under your SH3 Commander installation folder is a sub-folder called "Cfg". In it you'll find a file called "Ship names.cfg". Open it and brace yourself. Observer has created a list of literally thousands of ship names. Of course, if you don't want S.S. prefixes, it's simply a matter of Edit|Replace. Wink
Back to top
View user's profile Send private message Visit poster's website
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Sun Nov 13, 2005 7:21 pm    Post subject: Reply with quote

Very cool - thanks for the replies - I just opened up the ship names.cfg file in Word, did a quick search/replace on "S.S. ", and bingo! (some 6,000 plus replacements later, hehe) - fortunately I only had done 5 patrols so far this career, so manually editing those log files to remove the "S.S." in those was simple. The personnel file looks much better without all those "S.S." prefixes before all my Brit and Norwegian ship sinkings.

Of course, I'm not exactly sure why the Brits were sailing a ship called "Missionary Ridge", but I figure that must have been one of those lend lease type things that they just didn't have time to rename before I got to it Smile

I guess I'll have to try the nationality thing on my next patrol, 'cause I wasn't tracking that myself in the prior patrols.

Since it seems to be possible to add new ship types to the game via mods, I wonder if it would be possible to basically add several new categories of each ship type (for example, one new type of C2, etc. for each nationality), as a way of accomplishing two things - (1) trick the game into keeping track of the nationality of the ships sunk (since it seems to keep track of the type of ship sunk), and (2) allow SH3 Commander to assign "real" names that are more nationality-appropriate to ships sunk (since it looked like the names in that ship names.cfg file were grouped separately by ship type). What do you think - any chance this might work?
Back to top
View user's profile Send private message
Happy Times



Joined: 11 Jun 2005
Posts: 604
Location: Finland

PostPosted: Sun Nov 13, 2005 11:12 pm    Post subject: Reply with quote

Quote:
Since it seems to be possible to add new ship types to the game via mods, I wonder if it would be possible to basically add several new categories of each ship type (for example, one new type of C2, etc. for each nationality), as a way of accomplishing two things - (1) trick the game into keeping track of the nationality of the ships sunk (since it seems to keep track of the type of ship sunk), and (2) allow SH3 Commander to assign "real" names that are more nationality-appropriate to ships sunk (since it looked like the names in that ship names.cfg file were grouped separately by ship type). What do you think - any chance this might work?
Just what i was wondering also :hmm:
Back to top
View user's profile Send private message
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Mon Nov 14, 2005 1:39 am    Post subject: Reply with quote

It wouldn't be a problem for SH3Cmdr. Only the ship names.cfg file would need to be edited to recognise the new ship types. How easy/possible is it to add new/cloned ship types to SH3? I don't know, that's out of my league. It would need the support (and time) of one of the expert ship creators here to run with.

But theoretically it could be workable.
Back to top
View user's profile Send private message Visit poster's website
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Mon Nov 14, 2005 9:53 pm    Post subject: Reply with quote

JScones wrote:
It wouldn't be a problem for SH3Cmdr. Only the ship names.cfg file would need to be edited to recognise the new ship types. How easy/possible is it to add new/cloned ship types to SH3? I don't know, that's out of my league. It would need the support (and time) of one of the expert ship creators here to run with.

But theoretically it could be workable.


Well, I have no idea how one would do this, but if it's just a matter of dull repetition to add maybe 10 new C2 types, 10 new C3 types, etc. for the key 6 or 7 freighter/tanker types (I'm assuming that doing enough countries to cover maybe 80-90 percent of the ships typically encountered would be enough - Brits, Americans, Norwegians, maybe 4-6 more should probably suffice -I've played maybe 30-35 patrols in my 3 careers so far and probably only ever seen 4 or 5 countries' ships out there) and someone can tell me how to get started, I'll be glad to give it a shot. I think it would be waaaayy cool to be able to have the logs track the right nationalities and actually have names that would be country-appropriate to boot.
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Sat Nov 19, 2005 5:02 pm    Post subject: Reply with quote

bump - anybody got any ideas about how this could be done?
Back to top
View user's profile Send private message
iambecomelife



Joined: 11 Apr 2005
Posts: 1047

PostPosted: Sat Nov 19, 2005 9:36 pm    Post subject: Reply with quote

JScones wrote:
It wouldn't be a problem for SH3Cmdr. Only the ship names.cfg file would need to be edited to recognise the new ship types. How easy/possible is it to add new/cloned ship types to SH3? I don't know, that's out of my league. It would need the support (and time) of one of the expert ship creators here to run with.

But theoretically it could be workable.


I've been debating whether or not to make ships nationality-specific myself. I've been aware of the problem with vessel names for some time - there's no way to prevent, say, American ships from having "Empire" name prefixes, or British ships from being named after famous Americans. The main reason I considered doing this, though, was as part of my replacement for the Merchant Variety Pack. Just as names are currently assigned incorrectly, paint schemes for the MVP have the same problem. I'd like the MVPII to be more realistic; commanders should be able to ID vessels based on funnel markings, company names on the hull, etc - as was the case historically. Creating nationality-specific ships would essentially kill two birds with one stone - we'd have appropriate names AND ship colors.

It would literally take about ten minutes to get this done with Pack3d, since it wouldn't involve 3d editing. However, there are a couple major "cons" -

-Filesize. A mod like this will incorporate a lot of DAT, SIM, ZON, and other files, making it difficult for some users to download.

-It will also add a very large number of unnecessary pages to the ID book. I'm already having some difficulty with the book because of the new merchants I've created; it will be really annoying to have 10 pages for the C-2, 10 for the T-3 tanker, and so on.

I think we'll need a pretty advanced file compression program to take care of this, especially for 56k users. Does anyone know of anything better than 7zip and WinRAR? It may also be necessary to use a printed-out copy of the original ID book to avoid thumbing through dozens or hundreds of duplicate pages ingame.
Back to top
View user's profile Send private message Send e-mail
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Sun Nov 20, 2005 2:25 am    Post subject: Reply with quote

iambecomelife wrote:
It would literally take about ten minutes to get this done with Pack3d, since it wouldn't involve 3d editing.

I knew you were da man! Thumbs Up

iambecomelife wrote:
However, there are a couple major "cons" -

-Filesize. A mod like this will incorporate a lot of DAT, SIM, ZON, and other files, making it difficult for some users to download.

Would there be any duplicate files that could perhaps be included once with a batch file copying and renaming after extracting? Or (and excuse my naivity here), if we had ten sets of each ship type, all different ship skins are included but only one set of controlling files are included? Then, after extraction, a file is run which makes the appropriate copies of each file and modifies them for each nationality (I hope this is clear)? I'd volunteer to develop such a tool if needed.

iambecomelife wrote:
I think we'll need a pretty advanced file compression program to take care of this, especially for 56k users. Does anyone know of anything better than 7zip and WinRAR? It may also be necessary to use a printed-out copy of the original ID book to avoid thumbing through dozens or hundreds of duplicate pages ingame.

lzma/ultra (ie 7z with ultra compression) is the best that I am aware of.
Back to top
View user's profile Send private message Visit poster's website
iambecomelife



Joined: 11 Apr 2005
Posts: 1047

PostPosted: Sun Nov 20, 2005 8:00 am    Post subject: Reply with quote

JScones wrote:
iambecomelife wrote:
It would literally take about ten minutes to get this done with Pack3d, since it wouldn't involve 3d editing.

I knew you were da man! Thumbs Up

iambecomelife wrote:
However, there are a couple major "cons" -

-Filesize. A mod like this will incorporate a lot of DAT, SIM, ZON, and other files, making it difficult for some users to download.

Would there be any duplicate files that could perhaps be included once with a batch file copying and renaming after extracting? Or (and excuse my naivity here), if we had ten sets of each ship type, all different ship skins are included but only one set of controlling files are included? Then, after extraction, a file is run which makes the appropriate copies of each file and modifies them for each nationality (I hope this is clear)? I'd volunteer to develop such a tool if needed.

iambecomelife wrote:
I think we'll need a pretty advanced file compression program to take care of this, especially for 56k users. Does anyone know of anything better than 7zip and WinRAR? It may also be necessary to use a printed-out copy of the original ID book to avoid thumbing through dozens or hundreds of duplicate pages ingame.

lzma/ultra (ie 7z with ultra compression) is the best that I am aware of.


Okay. What we COULD do is include one set of cfg and eqp files per unit, as long as there was a way of extracting them to each nationality during install. However, this might be more trouble than it's worth, since these files are pretty small to begin with. The larger files in the data\sea\ [unit] folders, like the DAT's, DSD, SIM, ZON must be unique for each ship to avoid ingame crashes. You may remember how I couldn't release the hospital ship when I first made it; this was because it had an identical ID to the NPTR, its parent unit, and was causing crashes.

As for the ID book, we can whip up a DOC file with the default ships in no time. If time allows, I'm going to create a more substantial version of a printable ID book that will hopefully include all the new cargo ships being made, as well as tips for identifying the MVPII's paint schemes, funnels, and structural features - just like WWII merchant ID books. This will hopefully make it interesting, and make up for the hassle of needing to print out a hard copy of it.

I'm going to take a look at that zip program you mentioned to see how well it works. Thanks for pointing it out to me.
Back to top
View user's profile Send private message Send e-mail
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Mon Nov 21, 2005 1:52 am    Post subject: Reply with quote

iambecomelife wrote:
Okay. What we COULD do is include one set of cfg and eqp files per unit, as long as there was a way of extracting them to each nationality during install. However, this might be more trouble than it's worth, since these files are pretty small to begin with. The larger files in the data\sea\ [unit] folders, like the DAT's, DSD, SIM, ZON must be unique for each ship to avoid ingame crashes. You may remember how I couldn't release the hospital ship when I first made it; this was because it had an identical ID to the NPTR, its parent unit, and was causing crashes.

OK, scrap that idea then. Smile

iambecomelife wrote:
As for the ID book, we can whip up a DOC file with the default ships in no time. If time allows, I'm going to create a more substantial version of a printable ID book that will hopefully include all the new cargo ships being made, as well as tips for identifying the MVPII's paint schemes, funnels, and structural features - just like WWII merchant ID books. This will hopefully make it interesting, and make up for the hassle of needing to print out a hard copy of it.

And perhaps someone could convert it to PDF for maximum flexibility?

iambecomelife wrote:
I'm going to take a look at that zip program you mentioned to see how well it works. Thanks for pointing it out to me.

Cool. There's a number of programmes that handle the 7z compression method, most notably 7-zip, WinRAR, PowerArchiver, TUGZip and IZArc. Apparently, 7-zip with ultra solid LZMA setting provides the highest compression out of all of these tools. Some people are against solid compression because if one file becomes corrupt, then the whole archive after that point becomes unreadable, but my argument is that if one file is corrupt there's every likelyhood that I'll need to re-download the whole archive anyway!
Back to top
View user's profile Send private message Visit poster's website
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Mon Nov 21, 2005 9:35 pm    Post subject: Reply with quote

Well, I'm glad I bumped this - really good to see you mod wizzes might have a way of making this work. I had wondered if you'd have to wind up with multiple pages in the recog manual (I agree, having to page past 10 pages of C2s before getting to the next basic ship type in the book in game would be a crappy solution).

Not knowing how this stuff works, this could be a dumb idea, but do all the countries' C2s have to all wind up in the one "handelschiff" section of the book? Could you not just leave one (the original) set of generic cargo types in that section of the book, and have the country-specific versions of (for example) C2s show up in their country-specific section of the recog manual?

It seems to me that if you could have all the new, country-specific cargo ships show up in either (1) a second cargo ship section you'd basically ignore and never really have to look at since you can get all the vital stats you need for targeting your shots from the original generic section, or (2) their own country's section of the manual (in which case when you look at the Norwegian section of the manual you would see both the cargo ships as well as any war ships, but who ever really needs to look in the Norwegian seciton of the manual?), that you would still have a workable, in game manual.

Any chance that this might work?
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Wed Nov 23, 2005 7:58 pm    Post subject: Reply with quote

bump Thumbs Up

Looking at my personnel files logs in SH3 Commander with the ship names next to my victims, as way cool as that is, has whetted my appetite to be able to have them ID'ed with country-appropriate names (I did manage to get rid of the extraneous "S.S." prefixes - that helps a lot). Unfortunately, I have the appetite but no skill/knowledge about what it would take to add ships like this - anybody got any encouraging angles on making this work maybe?

Thanks to all you mod masters for all the great work Rock
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group