Jump to content
The simFlight Network Forums

Recommended Posts

Posted

I manually installed Ultimate Traffic 2 into a working installation of Prepar3D 2.5.

To do this, I had to copy the Prepar3d.exe and rename it as FSX.exe.

Now, when I start Prepar3D, it crashes after loading into a flight scenario.

I deleted the 'fake' FSX.exe after successfully installing UT2.

Everything was working beautifully before I installed UT2 manually.

 

If I remove FSUIPC.dll, the sim starts normally and does not crash.

 

If I try to reinstall FSUIPC using the latest Install FSUIPC4.exe, it asks me to locate FSX but there are no Registry entries for FSX as all I did was copy the Prepar3D.exe file, I did not add a registry entry.

 

It installs successfully though as proven by the installer log, see below.

The registry key indicated below for FSX does NOT exist though. (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Flight Simulator\10.0)

 

I have already tried replacing the Sim1.dll and VisualFX.dll with my original backups but this did not change anything.

 

How do I solve this problem?

********* FSUIPC4, Version 4.939t by Pete Dowson *********
Running inside Prepar3D v2 on Windows 7
Module base=53CA0000
User Name="REMOVED FOR PRIVACY"
User Addr="REMOVED FOR PRIVACY"
FSUIPC4 Key is provided
WIDEFS7 not user registered, or expired
       32 System time = 18/06/2015 15:25:35
       32 FLT path = "C:\Users\Toby\Documents\Prepar3D v2 Files\"
       32 Trying E:\1 Simulator\Lockheed Martin\Prepar3D v2\Modules\SimConnectP3D2.dll
       32 Found it: trying to connect
       32 FS path = "E:\1 Simulator\Lockheed Martin\Prepar3D v2\"
       47 LogOptions=00000000 00000001
       47 --- CONTROLS timer memory location obtained ok
       47 --- SIM1 Frictions access gained
       47 --- FS Controls Table located ok
       47 --- Installed Mouse Macro hooks ok.
       47 --- Wind smoothing fix is fully installed
       47 SimConnect_Open succeeded: waiting to check version okay
       47 Trying to use SimConnect Prepar3D
    48860 Running in "Lockheed Martin® Prepar3D® v2", Version: 2.5.12945.0 (SimConnect: 2.5.0.0)
    48860 Initialising SimConnect data requests now
    48860 FSUIPC Menu entry added
    48891 C:\Users\Toby\AppData\Local\Lockheed Martin\Prepar3D v2\Prepar3D_Default.fxml
    48891 E:\1 Simulator\Lockheed Martin\Prepar3D v2\SimObjects\Airplanes\IRIS Raptor Driver\Raptor.air
    73883 System time = 18/06/2015 15:26:49, Simulator time = 15:56:46 (20:56Z)
    73883 Aircraft="F-22 Raptor - 525th Fighter Squadron"
    74881 Starting everything now ...
    81074 Hook Error: can't find .42 in SIM1.dll
    81074 Hook Error: can't find .42 in VISUALFX.dll
Installer for FSUIPC4.DLL version 4.939t


Looking in registry for FSX install path:
     HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Flight Simulator\10.0
     Parameter"SetupPath"
... >>>  OK! FOUND FSX!  <<< ...
     SetupPath=E:\1 Simulator\Lockheed Martin\Prepar3D v2

Looking in registry for FSX-SE install path:
     HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Flight Simulator - Steam Edition\10.0
     Parameter"SetupPath"
Not there, so looking in:
     HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft Games\Flight Simulator - Steam Edition\10.0
     Parameter"AppPath"
... NOT found! ...

Looking in registry for Prepar3D v1 install path:
     HKEY_LOCAL_MACHINE\SOFTWARE\LockheedMartin\Prepar3D
     Parameter"SetupPath"
Not there, so looking in:
     HKEY_CURRENT_USER\SOFTWARE\LockheedMartin\Prepar3D
     Parameter"AppPath"
... NOT found! ...

Looking in registry for Prepar3D v2 install path:
     HKEY_LOCAL_MACHINE\SOFTWARE\Lockheed Martin\Prepar3D v2
     Parameter"SetupPath"
... >>>  OK! FOUND Prepar3D v2!  <<< ...
     SetupPath=E:\1 Simulator\Lockheed Martin\Prepar3D v2
===========================================================

INSTALLATION FOR FSX:
SetupPath="E:\1 Simulator\Lockheed Martin\Prepar3D v2\"
Checking version of the FSX EXE:
Couldn't obtain Version Info! Asking user to find FSX.EXE ...
User aborted attempt to find FSX. Installation failed.
===========================================================

INSTALLATION FOR Prepar3D v2:
SetupPath="E:\1 Simulator\Lockheed Martin\Prepar3D v2\"
Checking version of the Prepar3D v2 EXE:
... Version 2.5.12945.0  (Need at least 1.0.677.0)
Checking compatibility with installed SimConnect:
Checking if there's already a version of FSUIPC4 installed in:
       E:\1 Simulator\Lockheed Martin\Prepar3D v2\Modules\FSUIPC4.DLL
... No previous valid version found.
Prepar3D v2 Modules folder already exists.
Okay -- installed FSUIPC4 into "E:\1 Simulator\Lockheed Martin\Prepar3D v2\Modules\FSUIPC4.DLL"
Looking for the current user's Application Data path: 
... found as "C:\Users\Toby\AppData\Roaming"
Now finding \Lockheed Martin\Prepar3D v2\Prepar3D.CFG for all users, including this one
Looking in "C:\Users\All Users\AppData\Roaming"
 ... No Prepar3D.CFG there
Looking in "C:\Users\Default\AppData\Roaming"
 ... No Prepar3D.CFG there
Looking in "C:\Users\Default User\AppData\Roaming"
 ... No Prepar3D.CFG there
Looking in "C:\Users\Public\AppData\Roaming"
 ... No Prepar3D.CFG there
Looking in "C:\Users\Toby\AppData\Roaming"
Found Prepar3D.CFG in "C:\Users\Toby\AppData\Roaming\Lockheed Martin\Prepar3D v2\Prepar3D.CFG"
Now checking DLL.XML ...
... There is a previous DLL.XML, checking for FSUIPC4 section.
... FSUIPC4 section already exists but will be replaced.
     (for FSUIPC4, without Loader)
... FSUIPC4 section of DLL.XML written okay
Now checking for a SimConnect.XML file ...
... No SimConnect.XML file found. This is okay.
"Modules\FSUIPC Documents" folder already exists.
Now installing the Prepar3D SimConnect interface for FSUIPC4 into the "Modules" folder:
   Installed "SimConnectP3D2.dll" okay
Now installing additional files into the "Modules\FSUIPC Documents" folder:
   Installed "FSUIPC4 User Guide.pdf" okay
   Installed "FSUIPC4 for Advanced Users.pdf" okay
   Installed "FSUIPC4 History.pdf" okay
   Installed "List of FSX and P3D controls.pdf" okay
   Installed "FSUIPC Lua Library.pdf" okay
   Installed "FSUIPC Lua Plug-Ins.pdf" okay
   Installed "Lua License.pdf" okay
   Installed "Lua Plugins for VRInsight Devices.pdf" okay
   Installed "LuaFileSystem.pdf" okay
   Installed "Example LUA plugins.zip" okay
   Installed "ASN WX Radar facilities in FSUIPC4.pdf" okay
   Installed "Offset Mapping for PMDG 737NGX.pdf" okay
   Installed "FSUIPC4 Offsets Status.pdf" okay
   Installed "Profiles in Separate Files.pdf" okay
===========================================================

All installer tasks completed.
Registration check for FSUIPC4 was successful! (result code 00)

*************** End of Install Log ***************

Posted

I manually installed Ultimate Traffic 2 into a working installation of Prepar3D 2.5.

To do this, I had to copy the Prepar3d.exe and rename it as FSX.exe.

Now, when I start Prepar3D, it crashes after loading into a flight scenario.

I deleted the 'fake' FSX.exe after successfully installing UT2.

Everything was working beautifully before I installed UT2 manually.

 

Whilst renaming the EXE will certainly cause problems, I see from the log that FSUIPC is correctly recognising the EXE as P3D 2.5. The problem appears to be that your P3D installation is actually corrupt. I don't know what UT2 did to it, but I think you need to reinstall, or at least restore ALL the DLLs and the EXE.

 

If I try to reinstall FSUIPC using the latest Install FSUIPC4.exe, it asks me to locate FSX but there are no Registry entries for FSX as all I did was copy the Prepar3D.exe file, I did not add a registry entry.

 

That's another big problem. Your registry is pointing to your P3D installation as an FSX one. See here:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Flight Simulator\10.0

Parameter"SetupPath"

... >>> OK! FOUND FSX! <<< ...

SetupPath=E:\1 Simulator\Lockheed Martin\Prepar3D v2

 
The registry key indicated below for FSX does NOT exist though. (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Flight Simulator\10.0)

 

 

 

Oh, yes it does, but it is hidden in the 64-bit to 32-bit compatibility system which your 64-bit Win7 uses. The full path is

 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft Games\Flight Simulator\10.0

 

32-bit programs are unaware of that RED part -- it's an automatic compatibility implementation in 64-bit Windows.

 

Pete

Posted

1. I copied the Prepar3D.exe and renamed the copy FSX.exe, the original was not changed.

 

2. After deleting that 'hidden' key (thanks for that information), FSUIPC installs correctly into P3Dv2 BUT the sim still crashes on load.

 

Oh, yes it does, but it is hidden in the 64-bit to 32-bit compatibility system which your 64-bit Win7 uses. The full path is

 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft Games\Flight Simulator\10.0

 

32-bit programs are unaware of that RED part -- it's an automatic compatibility implementation in 64-bit Windows.

 

Pete

 

3. I have replaced all of the .dll files with my original backup but the sim still crashes on load, same error as before.

********* FSUIPC4, Version 4.939t by Pete Dowson *********
Reading options from "E:\1 Simulator\Lockheed Martin\Prepar3D v2\Modules\FSUIPC4.ini"
Running inside Prepar3D v2 on Windows 7
Module base=58D30000
User Name=""
User Addr=""
FSUIPC4 Key is provided
WIDEFS7 not user registered, or expired
       15 System time = 18/06/2015 16:56:00
       15 FLT path = "C:\Users\Toby\Documents\Prepar3D v2 Files\"
       15 Trying E:\1 Simulator\Lockheed Martin\Prepar3D v2\Modules\SimConnectP3D2.dll
       15 Found it: trying to connect
       31 FS path = "E:\1 Simulator\Lockheed Martin\Prepar3D v2\"
       46 LogOptions=00000000 00000001
       46 --- CONTROLS timer memory location obtained ok
       46 --- SIM1 Frictions access gained
       46 --- FS Controls Table located ok
       46 --- Installed Mouse Macro hooks ok.
       46 --- Wind smoothing fix is fully installed
       46 SimConnect_Open succeeded: waiting to check version okay
       46 Trying to use SimConnect Prepar3D
    49530 Running in "Lockheed Martin® Prepar3D® v2", Version: 2.5.12945.0 (SimConnect: 2.5.0.0)
    49530 Initialising SimConnect data requests now
    49530 FSUIPC Menu entry added
    49546 C:\Users\Toby\AppData\Local\Lockheed Martin\Prepar3D v2\Prepar3D_Default.fxml
    49546 E:\1 Simulator\Lockheed Martin\Prepar3D v2\SimObjects\Airplanes\IRIS Raptor Driver\Raptor.air
   103023 System time = 18/06/2015 16:57:43, Simulator time = 15:56:46 (20:56Z)
   103023 Aircraft="F-22 Raptor - 525th Fighter Squadron"
   104005 Starting everything now ...
   114146 Hook Error: can't find .42 in SIM1.dll
   114146 Hook Error: can't find .42 in VISUALFX.dll

Posted

1. I copied the Prepar3D.exe and renamed the copy FSX.exe, the original was not changed.

 

2. After deleting that 'hidden' key (thanks for that information), FSUIPC installs correctly into P3Dv2 BUT the sim still crashes on load.

 

But something is evidently wrong with your P3D installation. Try reinstalling.

 

Pete

Posted

I have only just finished reinstalling Pete...

I do not want to reinstall everything again.

Is there no fix for this?

If i disable the FSUIPC.dll, everything works fine.

Posted

I have only just finished reinstalling Pete...

I do not want to reinstall everything again.

Is there no fix for this?

If i disable the FSUIPC.dll, everything works fine.

 

You should not need to reinstall everything. Just P3D. Don't delete anything beforehand.

 

Pete

Posted

I'm afraid I cannot "fix" a broken P3D installation from here. To save re-running installers, I tend to keep a backup from which I can just copy over all the correct DLLs and EXEs.

 

Try that if you have one.

 

Pete

Posted

Pete, see my post above, I already copied the .exe and .dll's across.

How can this have corrupted my installation and why does everything work if i disable fsuipc.dll?

Doesn't that indicate that the problem lies there?

Sorry to be pushy but I have just completed a painstaking two weeks of installation and everything was running so well... I really do not want to reinstall P3D.

Posted

Pete, see my post above, I already copied the .exe and .dll's across.

How can this have corrupted my installation and why does everything work if i disable fsuipc.dll?

 

Because most things don't do the things FSUIPC does, especially not placing hooks into the code.

 

Sorry to be pushy but I have just completed a painstaking two weeks of installation and everything was running so well..

 

Exactly. And what was the last change you made? It wasn't me who changed things. You need to get back to when it was good.

 

The best I can do is look to see if I can disable parts of FSUIPC -- maybe functions you don't need -- but I'd need more information. Like the Windows crash data, from the event viewer.

 

Pete

Posted

One other thing. Does UT2 install any DLL (check DLL.XML)or is it just an EXE? Try not running it, in case it's some sort of hooking interference. I really don't know UT2 very well, though I know it works fine with FSX and FSUIPC.

 

Pete

Posted

My mistake, i replaced all the .dll files in the main folder as well as the main .exe file.

 

As far as I know, UT2 only runs it's own .exe through the exe.xml file.

Posted

My mistake, i replaced all the .dll files in the main folder as well as the main .exe file.

 

As far as I know, UT2 only runs it's own .exe through the exe.xml file.

 

Try not running it.

 

I still need the error information.

 

Were the DLLs and EXE you copied back copied out when things were working fine?

 

Pete

Posted

After I install a sim, I always make a so-called vanilla backup, without any edits.

 

Sorry, which error do you mean?

It was still the same error as originally.. 

 

I am now trying a Repair using the P3D setup.exe.

   114146 Hook Error: can't find .42 in SIM1.dll
   114146 Hook Error: can't find .42 in VISUALFX.dll
Posted

 

After I install a sim, I always make a so-called vanilla backup, without any edits.

 

Sorry, which error do you mean?

It was still the same error as originally.. 

 

I am now trying a Repair using the P3D setup.exe.

   114146 Hook Error: can't find .42 in SIM1.dll
   114146 Hook Error: can't find .42 in VISUALFX.dll

 

No, those are recoverable errors, they are symptoms, not a crash. The crash is what Windows reports, and there will be full identification of the crashed module (which may not even be FSUIPC4) and the address and type of crash (error code). You can view crash data, and copy it for pasting, in the Windows event viewer.

 

Pete

Posted

Just additional information: those two hook errors would simply stop FSUIPC's wind smoothing abilities, not crash P3D. The errors may actually point to a problem with the WEATHER.DLL, not SIM1 or VISUALFX.

 

Pete

Posted

If the ai_player.dll is crashing P3D, why does disabling FSUIPC.dll prevent the crash?

 

Maybe something about the way UT2 (now a very old product, and not necessarily compatible with P3D) sets the AI traffic data, which of course FSUIPC continually reads for the benefit of other programs. Didn't you yet try with UT2 not running, as I suggested? That would seem to be an important thing to check, now?

 

Of, probably more likely, it's a timing matter -- something FSUIPC doing changing the roder of events somewhere else. It's all a very complex system with lots of interactions.

 

Still, though, the Hook errors logged by FSUIPC suggest something else wrong in the installation itself. Until that's solved I suspect there'll be problems if not like this then elsewhere..

 

BTW, next time, rather than post a screen shot, just cut and paste the data itself. There's even a facility to do the copying for you in the "Details" tab.

 

Pete

Posted

1. I posted a screenshot because of the text at the base of the image, wasn't sure if that was important but thanks for the tip.

2. I did disable UT2 but the sim still crashed.

3. I uninstalled UT2 and the sim still crashed with the same ai_player.dll error.

 

So... to cut a long story short... I ran the Prepar3D setup.exe and told it to repair the installation and now it is working correctly again.

To say I am surprised is a massive understatement as I have never made a positive experience with repairing before.

I haven't been able to test a flight yet but the sim has been open for 5 mintues without crashing, which is a good sign.

 

TL:DR I won't be installing UT2 again. Apart from Tongass Fjords, this was the only non-native add-on that I wanted to install this time round. I will stick with My Traffic 6, which runs perfectly.

 

Pete, thank you very much for your support and help. It is a pleasure for me to be able to learn from your experience and knowledge.
 

Toby

Posted

One other possible trick. Instead of having UT2 start up from the EXE.XML file, try letting FSUIPC start it, e.g. via:

 

[Programs]
Run1=READY,KILL,"E:\1 Simulator\Lockheed Martin\Prepar3D v2\Flight One Software\Ultimate Traffic 2\UT2Services.exe"

 

in the FSUIPC4.INI file ... assuming I have the path correct?

 

This may avoid any timing or pre-hooking problems. Maybe?

 

Pete

Posted

3. I uninstalled UT2 and the sim still crashed with the same ai_player.dll error.

 

Ah, that's interesting.

 

So... to cut a long story short... I ran the Prepar3D setup.exe and told it to repair the installation and now it is working correctly again.
 
Ah, good! So something somewhere was corrupted! I wonder what?
 
I won't be installing UT2 again.
 
Well, I just popped over to the P3D forum on AVSIM and checked, and there does appear to be quite a number of folks using UT2 with P3D quite happily, though with struggles to get it correctly installed. No w you have a solution if P3D does get corrupted again, maybe you could be adventurous again! ;-)
 
Anyway, glad it is all sorted out -- relatively quickly as well.
 
Pete
Posted

I was using UT2 before too, after installing with the Estonia Migration Tool but I also had problems with some files getting corrupted and had to reinstall as the sim would not start correctly any more. P3D v2.5 apparently has more changes under the hood that most people seem to imagine.

I have never had problems with P3D before v2.5.

 

This time round, I promised myself to only use add-ons made for P3D but the temptation was too big, as you can see.

I have learnt my lesson.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.