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 08-06-07, 02:31 AM   #1
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Hope you don't mind, I compiled a list of first names for you from the web page you linked, in comma separated format (let me know if you want it any other way)... http://www.users.on.net/~jscones/FirstNames.7z

Took about 10 mins with the right tools.

Will do the surnames if you want too.

The rest is then up to you.
JScones is offline   Reply With Quote
Old 08-06-07, 02:49 AM   #2
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

And surnames... http://www.users.on.net/~jscones/LastNames.7z

That's 3564 first names x 3616 surnames.

Quick and dirty, so you'll need to go through and remove any crap and do some general QA (just noticed a "struck in head" surname still there and a comma after the last first name), but hopefully it will save you some time. All the obvious junk has been removed.

I excluded middle names from the first name list, but can pop them back in if you wish.

Or feel free to discard the lot and continue doing what you are doing.

Enjoy!

Last edited by JScones; 08-06-07 at 03:05 AM.
JScones is offline   Reply With Quote
Old 08-06-07, 04:22 PM   #3
LukeFF
Silent Hunter
 
Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
Default

Wow, JS! Thanks a bunch!

Quote:
Took about 10 mins with the right tools.
What exactly would those be? :hmm:
LukeFF is offline   Reply With Quote
Old 08-06-07, 04:42 PM   #4
LukeFF
Silent Hunter
 
Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
Grr, now this is frustrating. I just combined those two files together into the proper format for the game, activated it via JSGME, and what do I get? Nothing but blank lines for the crewmember's names.

Could somebody check this file out and see if I've made a mistake somewhere in the file format?

http://files.filefront.com/Historic+.../fileinfo.html
LukeFF is offline   Reply With Quote
Old 08-06-07, 09:53 PM   #5
jdkbph
Captain
 
Join Date: Mar 2007
Posts: 508
Downloads: 104
Uploads: 0
Default

Quote:
Originally Posted by LukeFF
Grr, now this is frustrating. I just combined those two files together into the proper format for the game, activated it via JSGME, and what do I get? Nothing but blank lines for the crewmember's names.

Could somebody check this file out and see if I've made a mistake somewhere in the file format?

http://files.filefront.com/Historic+.../fileinfo.html
I experimented with it a little bit to eliminate some possibilties.

I removed all the ' and . characters as well as the spaces between the multi-part names. I also looked at it in Word and removed all the manual line breaks that don't belong there.

None of these things, by themselves, fixed the problem... but I suspect they still need to be removed in order for the list to work correctly.

Anyway, that brought me to file size or the actual number of names in the lists.

So as a test I deleted most of the surnames from both sections (1 and 2) and that didn't work. Then I tried deleting a bunch of names from each of the 4 sections and hey presto!

So the problem appears to be that there's an upper limit on the number of names that can be in each of the four sections (Names 1 and 2, and Surnames 1 and 2).

I'm not sure exactly what that limit is, but I seem to have got under it when I deleted approximately half the names from each of those sections in your list.

BTW, it seems the devs got the labels backward here. For this to work, you need to put first names under the Surnames= section and last names under the Names= sections.

Go figure.

JD
jdkbph is offline   Reply With Quote
Old 08-06-07, 11:56 PM   #6
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by LukeFF
Quote:
Took about 10 mins with the right tools.
What exactly would those be? :hmm:
Notepad, Excel and Word. Throw in a quick Excel macro, and it's done.

Quote:
Originally Posted by jdkbph
Anyway, that brought me to file size or the actual number of names in the lists.

So as a test I deleted most of the surnames from both sections (1 and 2) and that didn't work. Then I tried deleting a bunch of names from each of the 4 sections and hey presto!

So the problem appears to be that there's an upper limit on the number of names that can be in each of the four sections (Names 1 and 2, and Surnames 1 and 2).

I'm not sure exactly what that limit is, but I seem to have got under it when I deleted approximately half the names from each of those sections in your list.
Yep, exactly as I mused above. I had the same problem with SH3Cmdr - the earlier versions of it consisted of merely a comma delimited list of names. I had to re-do it a different way to get around it (not possible here unfortunately without dev support).

You may find the limit is 2047 characters. If you are lucky, it could be as high as 32kb. Trial and error, as you have done, is the best way to find out.
JScones is offline   Reply With Quote
Old 08-07-07, 01:18 AM   #7
LukeFF
Silent Hunter
 
Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
Default

Hmph, so my suspicion that it's the file size is correct. I'm going to have to figure out then, how to go about getting around this limitation.
LukeFF is offline   Reply With Quote
Old 08-06-07, 04:53 PM   #8
Frederf
Seasoned Skipper
 
Join Date: Apr 2005
Posts: 665
Downloads: 79
Uploads: 1
Default

What are the side effects when overwriting values in TM1.4 when applying this mod?
Frederf is offline   Reply With Quote
Old 08-06-07, 04:53 PM   #9
LukeFF
Silent Hunter
 
Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
Default

Quote:
Originally Posted by Frederf
What are the side effects when overwriting values in TM1.4 when applying this mod?
Nothing

And, might I add, this mod is still a WIP and a beta, as I've not got it working correctly yet. I need someone to see if there's a reason why the game isn't generating names properly with this new file.
LukeFF is offline   Reply With Quote
Old 08-06-07, 09:29 PM   #10
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Not having SH4 installed, I'm not sure of the file format, but if the list of names is stored comma delimited, like the files I did for you, then you may simply have too many names for SH4 to handle.

As a test, take all but about 20 or so out. If that works, then this will most likely be the problem. Add them back in chunks until it fails.

This is assuming, of course, that your file is set up right to begin with - others can check that possibility first.
JScones 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:24 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.