PDA

View Full Version : [WIP] U.S. Medals Fix


CapnScurvy
09-10-08, 10:17 AM
I've been looking at the awards and medals issued within the game and have come up with a different plan. As you may know, there's not much we can do with the criteria for issuing awards. The criteria seems to be for the most part, hard coded in the game. However, we can work within the game structure to achieve a more accurate realistic system. There are six awards and medals available from highest ranking to lowest. RFB and TMO both use the same awards. Top ranked is the Congressional Medal of Honor, next the Navy Cross, Navy Distinguished Service Medal, Silver Star, Bronze Star Medal, and although it is not an achievement award, nor does it fit in the ranking system, the Purple Heart. My contention is the authentic Navy Distinguished Service Medal has a criteria of "exceptionally mertorious service to the government in a duty of great responsibility" which in my opinion does not hold true of a sub Captain, and especially an enlisted crewman. What I have found is the medal is usually bestowed to senior "Navy Flag and Marine Corps General Officers" not rank and file sub Captains and definitely not to an enlisted man, unless he happened to be on Nimitz's "personal" staff of high enlisted rank.

So, my plan is to remove the DSM from the awards, move up the Silver Star and Bronze Star Medal in rank and add the Navy Commendation Medal as the lowest tier award. I have thought about the "Dolphins" badge for this 1st tier award but the game structure does not allow for a different award for both the Crewmen and the player/Captain. Six medals are what you have, and all are given to both Captain and Crewman alike. The "Dolphins" badge would not be appropriate for the Captain to yet earn; he should have received it long before making Captain. (Actually I think the images could be different for the two recipients, but the mouse over descriptions would have to be the same, as well as the "left hand" medal icons when they are shown either within the Captain's Award box or the Crew Management screen.) In my research I found the Navy Cross and DSM were "switched" in rank in 1943 by an act of Congress, although the criteria for the DSM was not changed. I also know I'm taking a bit of license with the Navy Commendation Medal since it was first received in 1943 (by this same Congressional Act), but it seems to be the best fit for the way the game is structured.

Something I had found within the stock game that had not been addressed by RFB, TMO or any other medals fix mod is the Captain's Office Award Box (sitting on the desk) does not display the correct medals when given. The process is when an award is gained by the player, it's displayed within the box. When you mouse click the medal, you go to another screen that shows the medal in high res with the written commendation for it. If you receive more than one, the "left hand" icons will direct you to the various medals images and written commendations. These "left hand" icons seem to be correct for the specific award given with TMO 1.5.2, however the small "left hand" icon for RFB is truely messed up as I will show you.

Getting back to the medal shown within the box when it is first opened, it does not show correctly in RFB 1.51 062308 (the current version) nor in TMO 1.5.2, and your not even close with the stock system either. I found the "order" was not correct within the .dat file that controls this particular display. Changing the listed order corrected the wrong display and now the correct medal will be found in the box when you frist open it.

In the last several days, I have talked to LukeFF regarding the needed fix for RFB. His latest beta of RFB 1.52_090708 still has the problems with the medals and I hope he will correct this soon in the next release. To test the problem in RFB, I completed a first patrol, completed two objectives, one refit. I had a total tonnage of 84,444, with 50,000 or so in merchants and about 33,000 in an Ise BB. My settings were on "noob" everything on easy. I wasn't trying to out do myself with an expert setting, just acquire tonnage and see what the given awards would be when I commited sucide every so often in the patrol. I had just killed myself and the awards were a Purple Heart and a Congressional Medal of Honor with a Bronze Star Medal in the "left hand" icon spot. I have my suspicions about the CMOH for 84,000 tons, but I reloaded the saved game and made my way back to port. Here is what the Captain's Award box showed:

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-09_214509_937.jpg

The medal shown is the Congressional Medal of Honor, with the Navy Cross label, in the stock Bronze Star position!!! Triple trouble!! When you click on the medal this is the screen you get:

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-09_205507_843.jpg

It's the Navy Cross in the "left hand" icons position, with the Distinguished Service Medal image and it's written commendation!! I think I've just about covered all the medals there are with this RFB modded game. The only one not covered is the Purple Heart! As a bonus picture I've thrown in what the CrewManagement screen looks like with RFB.

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-09_214540_812.jpg

There's that CMOH image showing up with the Bronze Star Medal label. Is there a connection to this or what? Well yes, this was one of the telltale signs I used to trace down what the connections were between the mismatched images and labels. Again, this does not have anything to do with the Captain's Award Box, but it does show the incorrect labels that the RFB 1.51 has. Again, TMO does not look any different within the Captain's award box, it's just as messed up. But, Ducimus does get it right with the "left hand" icons for both the Captain's award screen and the CrewManagement screen. Great job Duci!! At least it's right for the medal it represents, but I further questioned the accuracy of the medal that is given.

So here is the U.S. Medals Fix mod added to the mix.

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-09_214255_859.jpg

A Silver Star for 84,000 tons sunk; I think that sounds about right. You will notice the label is correct for the image even though the 3D model outline is of the old Distinguished Service Medal. Changing the "order" of the medals has corrected the misslabeling which I believe is key to the correct hard coded criteria the game uses to award a medal. Also, causing a second correction to take place:

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-09_210045_828.jpg

The correct medal image is now shown in this Captain's awards screen, with the correct written commendation. The "left hand" icons are now correct, because of the menu_1024.... correction. And so is the CrewManagement "left hand" screen:

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-09_214317_234.jpg

It's my belief that the controlling order of the medals in the appropriate .dat file has corrected much of the existing problems within the game. Credit should still go to many others who have worked to this end: FullMetalledges, Midnite1977, Ducimus and others. Their ground breaking work has brought us to this point where the medals may be finally correct. But, I too have yet one more hurdle to cross. The 3D models in the Captain Award Box need to coincide with the new medals. As the above image shows the Silver Star needs to have the outline of the stock Distinguished Service Medal removed and it's outline imported into the CaptainRoom.dat file. The other "new" medals should have their models changed as well. I freely admit, the learning curve to 3D modeling has been my stumbling block to releasing this fix. If any one would like to help please join in. I have the 3D's materials file image changed for the new medals, but I just dont know how to make a new model from it. I could release the fix "as is" but I would hope some 3D modeling guru could help in the last piece of the puzzle.

virtualpender
09-10-08, 06:58 PM
Even if you are unable to sort out the 3D model issue, I hope you will proceed with this mod. The awards system definitely needs sorting out. Thanks for the testing and work.

silent killer
09-10-08, 07:38 PM
:D thanks for your hard work trying to fix the medals,so they can be earned in a more realistic manner and to appear in the proper place .

aanker
09-10-08, 08:30 PM
Did you say a DAT file controls the box on the desk? I've been using a fix I found by Ducimus that was made around April and everything is correct except for the box... which isn't a showstopper for me. However, which DAT file is it - if you wouldn't mind saying - please? CaptainRoom.dat?

I like your idea of adding the NCM however I don't think it was awarded until 1944 IRL. Of course you are correct regarding the DSM ... lol

Anyway, thanks for working on this.

Art

LukeFF
09-11-08, 02:21 AM
I like your idea of adding the NCM however I don't think it was awarded until 1944 IRL. Of course you are correct regarding the DSM ... lol

You're correct, but then it's no different than having the Bronze Star Medal, which was also introduced in 1944. The DSM...yeah, that one is totally out of place. I noticed the original Silent Hunter also has it in that game. Guess the devs were following that pattern when designing the SH4 awards system.

CapnScurvy
09-11-08, 08:02 AM
Did you say a DAT file controls the box on the desk? I've been using a fix I found by Ducimus that was made around April and everything is correct except for the box... which isn't a showstopper for me. However, which DAT file is it - if you wouldn't mind saying - please? CaptainRoom.dat?

I like your idea of adding the NCM however I don't think it was awarded until 1944 IRL. Of course you are correct regarding the DSM ... lol

Anyway, thanks for working on this.

Art

Yes Art, the Data/Interior/CaptainRoom/CaptainRoom.dat has the Awards Box. Using Silent 3ditor open
2:Node-CaptainRoom
/370:Node-caseta (This is the box)
/373:Node-SupMed
/379:Node-deco04. (This is the stock Distinguished Service Medal)

By changing the stock listed order of the medals and using Ducimus image files, the medals seem to work out right for the medals offered. I could be off base on this but I used a bit of logic in believing the devs had "some" of the image files correct but let the math coordinates get out of place. The image's can be checked and double checked with a quick look (are they in the right place or not?). The wrong math coordinates had an easier time to slip through since it takes some head scratching to figure if their correct.

Deco01 to deco06 each have the 3d models of the Award Box medals with two UV channel images. It's these models that create the medals in the box.

Regarding the actual medals used, 1943 was the year congress did some major restructuring of the awards. We had been at war for a year and someone decided to make some changes to what was an award system from WW1. Many changes took place during this time throughout the services. The Navy Cross which had a lesser rank, switched with the Navy Distinguished Service Medal in precedence. New awards were added such as the Navy Commendation Ribbon which morphed into the medal. My dad who joined the Army Armor service proudly wore the WW1 tank insignia for his collar when he first entered the service in 1942.

The game gives us six awards and unfortunatly we can't change them mid way through the campaign (no act of congress is simulated :lol: ). Sooo, whatever we pick out has to be used throughout. I am going to look at making the "Dolphins" badge for just the enlisted men though as a 1st tier award. The problem is not so much in the image file but having the correct label show when you mouse over it.

Sea Otter
09-11-08, 08:43 AM
I think that you are working on a MUCH needed improvement. Good luck!

CapnScurvy
09-12-08, 11:36 AM
I've been working on adding the Submariners "Dolphins" to the Crew Management screen and I think I've done just about all I can do. For those that don't know what the Dolphin's Badge represents I'll give you a quick run down. The Dolphins Badge originated in 1923 for the U.S. Navy's Submarine Service. To earn one, it involves an individual "Qualifying" by learning the location of equipment, operation of systems, damage control procedures and you must have a general knowledge of the operational characteristics of your boat. Once your qualified through tests of these factors you earn your Dolphins Badge. Dolphin wearers qualify initially on one boat and must re-qualify on boats that are subsequently assigned. Here's a close up image of one.

http://i175.photobucket.com/albums/w132/crawlee/submariner20enlisted.gif

Unfortunately as I pointed out before, the mouse over label for the Dolphin's are a compromise with the Captain's Navy Commendation Medal. There is only one .upc file listing for this 1st tier award. So the Dolphins Badge will have to share labels with the Commendation Medal. The first following image shows all the Crew Management awards that can be awarded, with the Dolphins Badge in the "left hand" icons.

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-12_082450_078.jpg

With the U.S. Medals Fix installed, I had just completed a stock game patrol of one completed objective, 3 merchants sunk, 2 warships (couple of DD's) with a total of 18,986 tons to my credit. The crew received a Bronze Star Medal, and two Dolphins Badges. The Captain received the Navy Commendation Medal.

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-12_111655_220.jpg

As you can see I was able to seperate the crew's 1st tier award Dolphin's image from the Captain's Commendation Medal, but again the label has to be compromised. Anyway, the medals given sound about right for the 18,986 tonnage sunk.

The next image shows the Captain's desk with all the medals showing in the Award Box.

http://i175.photobucket.com/albums/w132/crawlee/SH4Img2008-09-12_082312_984.jpg

Again, the images are of the new medals, in their corrected place, with their corrected labels (these labels do not come from the .upc data). However, the 3D outlines are of the stock medals. I have some ideas on what a Noob 3D moddler like me will try next but if I can't get it done and no one else can help, I'll probably just release the mod as is. I think it'll be better than nothing.

aanker
09-12-08, 01:24 PM
I am the Original 3D noob - and am going in circles trying to be of some help with your project because you got me interested, but I am sorry to report that I'm not having any luck. Arrgh! However it was a nice break from another 3D project frustrating me.

(these labels do not come from the .upc data)

It almost seems like the Dev's were trying to help steer us in the right direction - but I could be wrong and just have an active imagination.

You've done an outstanding job.

Thanks, Art

Lt commander lare
09-12-08, 02:05 PM
how long do you think it will be before you can release it it looks wonderful great job


lt commander lare

CapnScurvy
09-12-08, 03:53 PM
I am the Original 3D noob - and am going in circles trying to be of some help with your project because you got me interested, but I am sorry to report that I'm not having any luck. Arrgh! However it was a nice break from another 3D project frustrating me.

(these labels do not come from the .upc data)

It almost seems like the Dev's were trying to help steer us in the right direction

For anyone that has probably looked under the hood of this game and has run across the menu.txt file listing most game text. You have seen the entries for the medals in the 5000's numbered area. The only place these descriptions are used are within the Captain's Award Box when you mouse over the medals. The rest of the descriptions come out of the medals.upc file. I do think the dev's tried to help with the authentic medal images since they are found in the Data\Menu\Gui\Medals folder but as far as any bread crumbs they left behind, their long gone!!!

I suppose I could have the mod released soon; finish a readme and make a version for TMO, RFB, and stock. The menu_1024_768.ini file will have to be different for each one to make it compatible. One note, the mod will have to be installed in port, to not have an already started patrol CTD. That's the problem with messing around with the .UPC files, they are looked at with every saved game and it doesn't like changes in mid stream.

Zero Niner
09-12-08, 09:28 PM
A thought just occurred to me - is it possible to mod in the Presidential Unit Citation?

CapnScurvy
09-13-08, 03:57 AM
The game has much of the award system hard coded in regards to what factors make up a issue of an award. There are many places that relate to image files which can be changed by adding images, changing their list of order, or changing their labels and descriptions. But the actual system is not exposed for us to tinker with. There is an exception to this if you can figure out what the heck it means. In Data\Cfg\ there is a file called "medals.cfg" which has two sets of components. One set called [AWARD_MEDALS_x] and another [MEDALS_x] each having 20 entries. The file looks like this:

[AWARDED_MEDAL_0]
Idx=0
Cantity=1
[AWARDED_MEDAL_1]
Idx=1
Cantity=2
[AWARDED_MEDAL_2]
Idx=2
Cantity=0
[AWARDED_MEDAL_3]
Idx=3
Cantity=0
[AWARDED_MEDAL_4]
Idx=4
Cantity=20
[AWARDED_MEDAL_5]
Idx=5
Cantity=3
[AWARDED_MEDAL_6]
Idx=6
Cantity=2
[AWARDED_MEDAL_7]
Idx=7
Cantity=2

And so on.

I'm just guessing here but the index # represents either a specific ship or situation and the "Cantity" (whatever in the world that means) is a modifier. You'll notice index #4 has a modifier of 20. Just how this applies, and to what, I don't know. But, this is just about all we get regarding setting citeria for the award system.

When I was testing the stock game medal system I found I received a higher ranking award for less tonnage sunk because of the difference in ship quality. In other words, one CV sunk will get you a higher award greater than say four DD's, and a couple of small merchants, even if the DD's and merchants have a greater tonnage total! It does seem the devs got some things right, although the specific mechanics of the award system are dismal with allowing the "order" of values to be misplaced causing incorrect medals to be displayed.

Getting back to you question.

A thought just occurred to me - is it possible to mod in the Presidential Unit Citation?

The game allows for six awards given to both crewmen and Captain alike. For the most part the awards are individually given as a measure of accomplishment. The Presidential Unit Citation is usually given to entire squadrons or flotillas after a combined effort is made to a successful outcome. I could see the Citation being given at the end of a successful campaign but frankly I've not gotten to the end to see what occurs.

Nisgeis
09-13-08, 05:31 AM
When I was testing the stock game medal system I found I received a higher ranking award for less tonnage sunk because of the difference in ship quality. In other words, one CV sunk will get you a higher award greater than say four DD's, and a couple of small merchants, even if the DD's and merchants have a greater tonnage total!

There's been lots of care and attention put into the game by the devs and I find it annoying that most of it goes unnoticed because the manual was so rubbish. Stuff like that and the angle the torpedo hits being taken into account for contact exploder failures are all really nice little touches. I wonder what other delights have yet to be discoevered.

In the game files, there are often words that are almost English spelling, whether it's because they have been transliterated, or not I don't know, but my first thought is cantity means quantity. Perhaps it is the max number of medals that your crew can receive for that type of medal?

CapnScurvy
09-14-08, 11:06 PM
When I was testing the stock game medal system I found I received a higher ranking award for less tonnage sunk because of the difference in ship quality. In other words, one CV sunk will get you a higher award greater than say four DD's, and a couple of small merchants, even if the DD's and merchants have a greater tonnage total!

There's been lots of care and attention put into the game by the devs and I find it annoying that most of it goes unnoticed because the manual was so rubbish. Stuff like that and the angle the torpedo hits being taken into account for contact exploder failures are all really nice little touches. I wonder what other delights have yet to be discoevered.

In the game files, there are often words that are almost English spelling, whether it's because they have been transliterated, or not I don't know, but my first thought is cantity means quantity. Perhaps it is the max number of medals that your crew can receive for that type of medal?

Yes, the game has many great features. Little unknown things that required great care in figuring how to apply them in the game. The medals mixup is not a hit on the devs, but it does show the complexity of the game and how difficult it is to get 100% right. So a few things slipped through the cracks; the game still is a marvel at what was accomplished. If it didn't have those underlying great qualities I think I would have shelved it long ago.

Carotio
09-15-08, 04:53 AM
I suppose I could have the mod released soon; finish a readme and make a version for TMO, RFB, and stock. The menu_1024_768.ini file will have to be different for each one to make it compatible.

So does this mean that you'll write in your readme, what needs to be changed in the menu_1024_768.ini file for those of us, who allready have a modified file?

CapnScurvy
09-15-08, 10:07 AM
What I'm going to do is make several versions of what I've done compatible to the major mods that are out. I've completed a TMO 1.5.2 version, an RFB 1.51 062308 version and a stock version. I also plan to update my Sub Centered, Accuracy Fix (SCAF) mod with the medals fix which is compatible with the same mods. I'm an RFB Team Member and have been involved in having the Medals Fix incorporated into the soon to be released update. There is more to the Medals Fix mod than just a few changes in the menu_1024_768.ini file though. The menu.txt file is changed, several image .dds files are different and a couple of other files. I have a readme that does list the files changed and I will put a change log file with it.

Right now, I'm on an electric generator I have to provide power after Ike moved through yesterday. It could be a couple of days before I can upload the files to FileFront without a glich.