shaneturner12
Tutorial Creator
Moderators - if this is in the wrong place, please put it in the correct place.
Hi Trainzers,
This is a bit of a mini-guide on some of the common missing file errors found when installing or running Trainz.
If other users wish to link to this, you are welcome to.
If other users are aware of any other common missing file errors in Trainz, let me know by replying to this post or contacting me directly. As always, comments are welcome but please keep them civil if possible.
Error 1 - The file 'd3dx9_43.dll' is missing
This particular file is part of the DirectX 9.0C set of files. If you get this error it usually means one of two things.
The first of the two is usually the case especially if you have a version of Windows later than XP. These versions usually only have a subset of the DirectX 9.0C files installed rather than the full set.
The solution is to download the DirectX installer. The version required depends on which version of Windows you have. For Windows XP or earlier, the web installer is sufficient, however for later versions of Windows you will need to install the redistributable version as the web installer has problems installing DirectX 9 on newer operating systems from my experience.
I have instructions over at http://forums.auran.com/trainz/showthread.php?58843-Updating-DirectX-9-0c-how-to-do-it on how to install DirectX 9.0C as well as a link to my automated DXInstallHelper tool which can simplify DirectX installation.
The number at the end of the filename may vary slightly though.
Error 2: The file 'msvcr120.dll' or 'msvcp120.dll' is missing
This particular error seems to crop up with Trainz A New Era mainly but may appear with older versions. These files are part of the Visual C++ redistributable for Visual Studio 2013.
The fix for this is to download the relevant version of the Visual C++ 2013 files from https://www.microsoft.com/en-us/download/details.aspx?id=40784.
There are three possible versions of this.
Simply download and install the relevant version for your computer. You may need both the 32-bit and 64-bit versions for Trainz A New Era though.
In some instances, the number at the end will vary for older versions. Here's a list of other possibilities:
80 at the end - this requires the Visual C++ 2005 redistributable files (32-bit version is at https://www.microsoft.com/en-gb/download/details.aspx?id=3387 and the 64-bit version is at https://www.microsoft.com/en-gb/download/details.aspx?id=18471)
90 at the end - this requires the Visual C++ 2008 redistributable files (32-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=29 and 64-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=15336)
100 at the end - this requires the Visual C++ 2010 redistributable files (32-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=5555 and 64-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=13523)
110 at the end - this requires the Visual C++ 2012 redistributable files (32 and 64 bit available from https://www.microsoft.com/en-us/download/details.aspx?id=30679 - same naming convention as the Visual C++ 2013 files)
140 at the end - this requires the Visual C++ 2015 redistributable files (32 and 64 bit available from https://www.microsoft.com/en-gb/download/details.aspx?id=48145 - same naming convention as Visual C++ 2012 and 2013 versions with the exception of there being no ARM version)
If I come across any other ones, I will update this thread.
Shane
Hi Trainzers,
This is a bit of a mini-guide on some of the common missing file errors found when installing or running Trainz.
If other users wish to link to this, you are welcome to.
If other users are aware of any other common missing file errors in Trainz, let me know by replying to this post or contacting me directly. As always, comments are welcome but please keep them civil if possible.
Error 1 - The file 'd3dx9_43.dll' is missing
This particular file is part of the DirectX 9.0C set of files. If you get this error it usually means one of two things.
- You have DirectX 9.0C installed, but it is not up to date
- You haven't got DirectX 9.0C installed
The first of the two is usually the case especially if you have a version of Windows later than XP. These versions usually only have a subset of the DirectX 9.0C files installed rather than the full set.
The solution is to download the DirectX installer. The version required depends on which version of Windows you have. For Windows XP or earlier, the web installer is sufficient, however for later versions of Windows you will need to install the redistributable version as the web installer has problems installing DirectX 9 on newer operating systems from my experience.
I have instructions over at http://forums.auran.com/trainz/showthread.php?58843-Updating-DirectX-9-0c-how-to-do-it on how to install DirectX 9.0C as well as a link to my automated DXInstallHelper tool which can simplify DirectX installation.
The number at the end of the filename may vary slightly though.
Error 2: The file 'msvcr120.dll' or 'msvcp120.dll' is missing
This particular error seems to crop up with Trainz A New Era mainly but may appear with older versions. These files are part of the Visual C++ redistributable for Visual Studio 2013.
The fix for this is to download the relevant version of the Visual C++ 2013 files from https://www.microsoft.com/en-us/download/details.aspx?id=40784.
There are three possible versions of this.
- The 32-bit version is the vcredist_x86.exe file.
- The 64-bit version is the vcredist_x64.exe file.
- The ARM version (for those with this specific processor type) is the vcredist_arm.exe file.
Simply download and install the relevant version for your computer. You may need both the 32-bit and 64-bit versions for Trainz A New Era though.
In some instances, the number at the end will vary for older versions. Here's a list of other possibilities:
80 at the end - this requires the Visual C++ 2005 redistributable files (32-bit version is at https://www.microsoft.com/en-gb/download/details.aspx?id=3387 and the 64-bit version is at https://www.microsoft.com/en-gb/download/details.aspx?id=18471)
90 at the end - this requires the Visual C++ 2008 redistributable files (32-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=29 and 64-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=15336)
100 at the end - this requires the Visual C++ 2010 redistributable files (32-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=5555 and 64-bit: https://www.microsoft.com/en-gb/download/details.aspx?id=13523)
110 at the end - this requires the Visual C++ 2012 redistributable files (32 and 64 bit available from https://www.microsoft.com/en-us/download/details.aspx?id=30679 - same naming convention as the Visual C++ 2013 files)
140 at the end - this requires the Visual C++ 2015 redistributable files (32 and 64 bit available from https://www.microsoft.com/en-gb/download/details.aspx?id=48145 - same naming convention as Visual C++ 2012 and 2013 versions with the exception of there being no ARM version)
If I come across any other ones, I will update this thread.
Shane
Last edited: