View Single Post
Old 02-12-11, 06:33 PM   #587
frau kaleun
Rear Admiral
 
Join Date: Nov 2009
Location: Skyri--oh who are we kidding, I'm probably at Lowe's. Again.
Posts: 12,706
Downloads: 168
Uploads: 0


Default

Quote:
Originally Posted by Damo
I was hoping to add a generic class to the shipnames.cfg so a ship sunk entry may look something like this:

Ship Sunk!! Medium Merchant 13 ####tons Unidentified. Cargo: Unknown Crew: Unknown Crew Lost: Unknown.

My reasoning is that if the allies were disguising ships with neutral vessels' hull flags or just sailing them with no markings, it'd be against the war regulations and as such, the existence of that particular ship would be denied, although it would still be entered in a patrol log as that's the record of ships sunk by the sub captain, and BdU are more likely to believe his version of events.

But this is all stuff I've already gone through in Steve's thread and as yet I've not looked into how to achieve it or whether it's possible. Jaesen is the best person to ask as to how flexible the coding is in regards to creating a generic entry as above specifically for those neutrals.
Based on the explanatory info at the top of the Ship Names config file, I'm thinking you could do this pretty easily.

Just create a list for your generic class, such as [MFMX].

Use the CLASSMAP to map each individual MFM 'X' class to [MFMX].

Add the list of "names" for [MFMX] to the file, as follows:

[MFMX]
0001=Unidentified

Now, if I'm right about how it works, you've got two choices.

1) You can leave it with just that one line, and under [Settings] at the top of the file, change

RepeatWhenAllUsed=0

to

RepeatWhenAllUsed=1

With only one name in the list for [MFMX], and every X class ship mapped to that list, the first time you sink one of those ships Commander will consult the list and name it Unidentified in your log since that's the only entry for the class. But since you've opted to repeat names when a class list is exhausted, every time you sink another one of those X ships it should go back to the list and reuse the same name again. So they would all show up in your logs as Unidentified.

Of course the "repeat when all used" will also apply to all the other classes in the list, but given the sheer number of ship names Steve has already provided, I don't think you're gonna run out of names for most of them.

-OR-

2) You can add additional entries to the list for [MFMX] as follows:

[MFMX]
0001=Unidentified
0002=Unidentified
0003=Unidentified
0004=Unidentified

and so on, up to a maximum of 3000 entries. Then you can leave RepeatWhenAllUsed=0 the way it is if you want, and as long as you don't sink more X ships than you've made entries in that list, Commander should give them all the "name" Unidentified in your logs.
frau kaleun is offline   Reply With Quote