nicholas477 / EngineSimulatorPlugin

Adds AngeTheGreat's Engine Simulator to Unreal Engine as a plugin. Integrates with Chaos Vehicle Physics
MIT License
40 stars 4 forks source link

Cant build 5.1.1 project #4

Open zeroy99 opened 1 year ago

zeroy99 commented 1 year ago

Hi, I have the plugin working fine with Chaos Vehicle template but if attempting packaging I get the following error very early on in the process:

UATHelper: Packaging (Windows): Library 'C:/local/boost_1_70_0/lib64-msvc-14.2\libboost_filesystem-vc142-mt-x64-1_70.lib' was not resolvable to a file when used in Module 'EngineSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
UATHelper: Packaging (Windows): Library 'C:/local/SDL2/lib/x64\SDL2.lib' was not resolvable to a file when used in Module 'EngineSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
UATHelper: Packaging (Windows): Library 'C:/local/SDL2/lib/x64\SDL2main.lib' was not resolvable to a file when used in Module 'EngineSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
UATHelper: Packaging (Windows): Library 'C:/local/SDL2_image/lib/x64\SDL2_image.lib' was not resolvable to a file when used in Module 'EngineSim', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
UATHelper: Packaging (Windows): Writing manifest to U:\UnrealProjects\GTRTests\Intermediate\Build\Manifest.xml
[...]
UATHelper: Packaging (Windows): LINK : fatal error LNK1181: cannot open input file 'C:\local\boost_1_70_0\lib64-msvc-14.2\libboost_filesystem-vc142-mt-x64-1_70.lib'
UATHelper: Packaging (Windows): [2/2] WriteMetadata GTRTests.target cancelled
UATHelper: Packaging (Windows): Took 7.0559195s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\xxxx\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Epic+Games+UE_5.1\UBT-GTRTests-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 8s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

Are there extra steps to be able to compile/build this correctly?

nicholas477 commented 1 year ago

It's a problem on my end, working on a fix rn

nicholas477 commented 1 year ago

https://cdn.discordapp.com/attachments/1028718524664918067/1096875368192946306/EngineSimulatorPlugin.zip

Try using this version and tell me if it works

zeroy99 commented 1 year ago

Im afraid this just broke everything in the project for the vehicle, the EngineSim Chaos sub class all broke and was not able to fix it. just reverted for now to the old plugin

nicholas477 commented 1 year ago

my apologies! the vehicle component got moved to another module, and there is a class redirect in the config files that should have handled that

zeroy99 commented 1 year ago

Ah ok, are you saying however that this should have worked or that it could not work? I can test this on a fresh project but the question then is, how to add the newer Plugin to existing project correctly?

Edit: Started with fresh project Vehicle template and now I can build the project however while gears and audio work in Editor they do not in the build.

zeroy99 commented 1 year ago

I managed to update my original project to the new Plugin version you linked but again I get no audio or movement in the built project, this is in the log a lot (spam like) when playing the game, not sure if relevant:

[2023.04.16-23.30.44:382][404]LogTemp: Warning: UEngineSimulatorAudioComponent::OnGenerateAudio: Buffer Underrun, not enough samples. Is EngineSimulator ticking fast enough?

[2023.04.16-23.30.44:402][405]LogTemp: Warning: UEngineSimulatorAudioComponent::OnGenerateAudio: Buffer Underrun, not enough samples. Is EngineSimulator ticking fast enough?
nicholas477 commented 1 year ago

Let me do some testing and get back to you on this 👍