Posted June 05, 2015
high rated
Hello guys.
First off credit for finding out why the npcs numbers come up and stops the issue should be directed to this forum post on this link, this Is a guide mainly for those who have issues with getting widescreen resolution issues for the expansions
http://forum.dosclan.org/viewtopic.php?f=14&t=80 - credit for NPC fix. Follow his guide first and if it doesn't work for you for the expansions come back here and go the paragraph that starts with "now the expansions are a bit more complicated"
I had a huge difficulty getting this games expansions to use widescreen because it kept resetting their own settings and would like to write a small guide on how these issues might be solved for others as they were solved for me.
First you need to install all 3 games before starting any of them. I myself am using the 10th aniversary edition but it should work all the same.
Ok lets first get the original game out of the way first. Boot up the game and setup all your settings without changing the resolution to your liking, this includes controls, sound and advanced options. Once you have done this close the game and go into Main/Config and you will find the config file unnamedsoldier.cfg. (for the expansion packs Mainta is Spearhead while Maintt is Breakthrough.)
You want to add these lines under the very last seta option at the bottom of your text editor just above the //
seta r_customwidth "1920" //set this variable to whatever you want the resolution to be.
seta r_customheight "1080" //set this variable to whatever you want the resolution to be.
seta r_mode "-1"
seta ui_console "1"
seta developer "0" //setting to 1 will cause number of npcs to display.
Once these settings have been added. Save the config close it and boot up medal of honor allied assault to see if the settings changed. An easy way to do this is to use Steam and add a steam shortcut and when the message that says "press shift tab top open the community screen appears" you can see if it has changed or not to your typical reslolution and is really handy. If for some reason this did not work, delete the config and try again but this time after setting up your settings START A NEW GAME! Once it has finished loading "in this case you should be in the back of the truck, quit the game and add those lines again (make sure there aren't any duplicates using the find option in your text editor (Ctrl+F by default)
If it worked congratulations! First step completed.
Now the expansions are a bit more complicated and it wasn't explained in the NPC fix from the other forum. it took me an hour just to get the resoluitions working properly. While the instructions are similar YOU MUST START A NEW GAME or the settings will always reset. So repeat the steps for Medal of Honor Allied assault start a new game then add the lines to the unnamed soldier.cfg in the main folders of the expansion packs. Do one expansion at a time and hopefully it should work for you guys.
Remember to have seta developer as 0 or you will get that annoying NPC numbers on the bottom left of your screen.
If you wish to change your FOV I think you might need to do it in the config because turning off developer i think turns off the ability to change the FOV.
Good luck and have fun!
EDIT 31/07/2021: So this is a long time edit coming!
I've finally decided to play this game again mainly because i wanted to stream it and i wanted to solve the FOV and NPC issue with the expansion packs and thanks to wide screen gaming forums it seems we can now have both :)
Pretty much the same steps above still apply but if you want to get rid of the annoying NPC counter that appears with seta developer "1" you can do this method. This does require editing a DLL file however with something like HxD and changing a few values however it is fairly easy.
Step 1: Go to the WSGF Medal of Honor page here. https://www.wsgf.org/dr/medal-honor-allied-assault-war-chest and go to the section where it says FOV HEX EDIT. YOU STILL NEED TO DO THE STEPS ABOVE FOR YOUR RESOLUTION SO DON'T FORGET TO DO SO
Notice under solutions & issues it still has some of the steps i have listed and under it the FOV INI edit in the config which does show the NPC counter in the expansions and the fact you still need to do it every mission the FOV command but we are going to ignore that part.
Step 2: Download Hxd, its free and you can download a portable exe or an installer version of it here
https://mh-nexus.de/en/downloads.php?product=HxD20
It does look a little daunting but I'm here to help make it easier :)
Step 3: Go to any of the main configs you wish to edit (Remember Main for the base game, MainTA for spearhead and MainTT for breakthrough), make a folder called gamex86.dll backup or whatever you wish to call the backup and copy the gamex86.dll file so we have a backup in case something does go wrong. PLEASE DONT SKIP THIS STEP GUYS OR YOU MAY NEED TO REINSTALL THE GAME!
Step 4: With HxD open up the gamex86.dll file and notice a lot of those numbers appear. On the WSGF page you will see that we need to edit 2 values, a Cutscene FOV and Game FOV. Instead of scrolling down to find those offsets (the numbers on the left) go to the search list on the top of HxD and click go to, then type in the offset you are searching for. In this example we will use allied assault so we will search for the offset 000A10A0 (just search the numbers and letters don't include offset in the search bar!) It will then take you to the offset you need to edit.
Step 5: WSGF shows you the values you need to edit, in this case we need to change 00 00 A0 42 to 00 00 B4 42 (if we are using 16:10) OR 00 00 BE 42 (if we are using 16:9) If you don't know just google search your resolution and aspect ratio. 1080P is 16:9 so we will use the latter one. All we need to do really is edit the value A0 into BE so click behind the A0 so the cursor is behind A0 and then type BE. Notice how it turns red to indicate what you have changed.
Step 6: Repeat steps 4-5 but this time with the Game FOV offset. You can use the go to search again to help and then replace it with what WSGF suggests which is again 00 00 A0 42 to 00 00 BE 42. Then click save.
Step 7: Boot up a New game and compare with an older screenshot or from memory (I don't think this game likes print screen much every time I tried it would just show the main menu as an example so i had to do it by memory) and find something on the weapon to compare it to. I used the M1 Garand to compare. If you have all the levels unlocked already a good level to check without wasting time on cutscenes is Mission 4 Behind Enemy Lines.
Step 8: Repeat for the expansion packs and you should be good to go! REMEMBER THAT THEY DO HAVE DIFFERENT VALUES SO CHECK THE WSGF PAGE You will have widescreen resolutions with an FOV fix without the annoying NPC counter or slow server message that sometimes appears!
A Very special thank you to Czarman on the WSGF discord who helped me with the Hex Edit.
Let me know if you guys would like me to do a video guide or screenshot if it will make it easier for you :)
NOTE WSGF does seem to have a downloadable attachment that has all these done with specific FOVs in mind in increments of 10 and are separated by base/expansion pack folders so if you just wish to use those you can. Just remember to have a backup of your original!
My testing was with the Origin war chest edition but it should work with GOG too.
First off credit for finding out why the npcs numbers come up and stops the issue should be directed to this forum post on this link, this Is a guide mainly for those who have issues with getting widescreen resolution issues for the expansions
http://forum.dosclan.org/viewtopic.php?f=14&t=80 - credit for NPC fix. Follow his guide first and if it doesn't work for you for the expansions come back here and go the paragraph that starts with "now the expansions are a bit more complicated"
I had a huge difficulty getting this games expansions to use widescreen because it kept resetting their own settings and would like to write a small guide on how these issues might be solved for others as they were solved for me.
First you need to install all 3 games before starting any of them. I myself am using the 10th aniversary edition but it should work all the same.
Ok lets first get the original game out of the way first. Boot up the game and setup all your settings without changing the resolution to your liking, this includes controls, sound and advanced options. Once you have done this close the game and go into Main/Config and you will find the config file unnamedsoldier.cfg. (for the expansion packs Mainta is Spearhead while Maintt is Breakthrough.)
You want to add these lines under the very last seta option at the bottom of your text editor just above the //
seta r_customwidth "1920" //set this variable to whatever you want the resolution to be.
seta r_customheight "1080" //set this variable to whatever you want the resolution to be.
seta r_mode "-1"
seta ui_console "1"
seta developer "0" //setting to 1 will cause number of npcs to display.
Once these settings have been added. Save the config close it and boot up medal of honor allied assault to see if the settings changed. An easy way to do this is to use Steam and add a steam shortcut and when the message that says "press shift tab top open the community screen appears" you can see if it has changed or not to your typical reslolution and is really handy. If for some reason this did not work, delete the config and try again but this time after setting up your settings START A NEW GAME! Once it has finished loading "in this case you should be in the back of the truck, quit the game and add those lines again (make sure there aren't any duplicates using the find option in your text editor (Ctrl+F by default)
If it worked congratulations! First step completed.
Now the expansions are a bit more complicated and it wasn't explained in the NPC fix from the other forum. it took me an hour just to get the resoluitions working properly. While the instructions are similar YOU MUST START A NEW GAME or the settings will always reset. So repeat the steps for Medal of Honor Allied assault start a new game then add the lines to the unnamed soldier.cfg in the main folders of the expansion packs. Do one expansion at a time and hopefully it should work for you guys.
Remember to have seta developer as 0 or you will get that annoying NPC numbers on the bottom left of your screen.
If you wish to change your FOV I think you might need to do it in the config because turning off developer i think turns off the ability to change the FOV.
Good luck and have fun!
EDIT 31/07/2021: So this is a long time edit coming!
I've finally decided to play this game again mainly because i wanted to stream it and i wanted to solve the FOV and NPC issue with the expansion packs and thanks to wide screen gaming forums it seems we can now have both :)
Pretty much the same steps above still apply but if you want to get rid of the annoying NPC counter that appears with seta developer "1" you can do this method. This does require editing a DLL file however with something like HxD and changing a few values however it is fairly easy.
Step 1: Go to the WSGF Medal of Honor page here. https://www.wsgf.org/dr/medal-honor-allied-assault-war-chest and go to the section where it says FOV HEX EDIT. YOU STILL NEED TO DO THE STEPS ABOVE FOR YOUR RESOLUTION SO DON'T FORGET TO DO SO
Notice under solutions & issues it still has some of the steps i have listed and under it the FOV INI edit in the config which does show the NPC counter in the expansions and the fact you still need to do it every mission the FOV command but we are going to ignore that part.
Step 2: Download Hxd, its free and you can download a portable exe or an installer version of it here
https://mh-nexus.de/en/downloads.php?product=HxD20
It does look a little daunting but I'm here to help make it easier :)
Step 3: Go to any of the main configs you wish to edit (Remember Main for the base game, MainTA for spearhead and MainTT for breakthrough), make a folder called gamex86.dll backup or whatever you wish to call the backup and copy the gamex86.dll file so we have a backup in case something does go wrong. PLEASE DONT SKIP THIS STEP GUYS OR YOU MAY NEED TO REINSTALL THE GAME!
Step 4: With HxD open up the gamex86.dll file and notice a lot of those numbers appear. On the WSGF page you will see that we need to edit 2 values, a Cutscene FOV and Game FOV. Instead of scrolling down to find those offsets (the numbers on the left) go to the search list on the top of HxD and click go to, then type in the offset you are searching for. In this example we will use allied assault so we will search for the offset 000A10A0 (just search the numbers and letters don't include offset in the search bar!) It will then take you to the offset you need to edit.
Step 5: WSGF shows you the values you need to edit, in this case we need to change 00 00 A0 42 to 00 00 B4 42 (if we are using 16:10) OR 00 00 BE 42 (if we are using 16:9) If you don't know just google search your resolution and aspect ratio. 1080P is 16:9 so we will use the latter one. All we need to do really is edit the value A0 into BE so click behind the A0 so the cursor is behind A0 and then type BE. Notice how it turns red to indicate what you have changed.
Step 6: Repeat steps 4-5 but this time with the Game FOV offset. You can use the go to search again to help and then replace it with what WSGF suggests which is again 00 00 A0 42 to 00 00 BE 42. Then click save.
Step 7: Boot up a New game and compare with an older screenshot or from memory (I don't think this game likes print screen much every time I tried it would just show the main menu as an example so i had to do it by memory) and find something on the weapon to compare it to. I used the M1 Garand to compare. If you have all the levels unlocked already a good level to check without wasting time on cutscenes is Mission 4 Behind Enemy Lines.
Step 8: Repeat for the expansion packs and you should be good to go! REMEMBER THAT THEY DO HAVE DIFFERENT VALUES SO CHECK THE WSGF PAGE You will have widescreen resolutions with an FOV fix without the annoying NPC counter or slow server message that sometimes appears!
A Very special thank you to Czarman on the WSGF discord who helped me with the Hex Edit.
Let me know if you guys would like me to do a video guide or screenshot if it will make it easier for you :)
NOTE WSGF does seem to have a downloadable attachment that has all these done with specific FOVs in mind in increments of 10 and are separated by base/expansion pack folders so if you just wish to use those you can. Just remember to have a backup of your original!
My testing was with the Origin war chest edition but it should work with GOG too.
Post edited August 01, 2021 by MajorFoley