microdee / UE4-SpaceMouse

Control Viewport cameras with 3DConnexion SpaceMice, using HID directly.
MIT License
156 stars 23 forks source link

HIDUE Missing when packaging a blueprint-only project #103

Open otherstew opened 5 months ago

otherstew commented 5 months ago

Setup:

Things work fine in the editor, but when you try to run the packaged project you get the 'Missing HIDUE' message and the packaged game crashes.

If you add a C++ class to the project (Tools>New C++ Class) then everything works fine. The Readme mentions that you need to create a code project to build the plugin from source, but I'm using the pre-built version so that shouldn't apply? Or does it only work blueprint-only if you get it from the marketplace?

microdee commented 5 months ago

well unfortunately I've never packaged an Unreal project without C++ code, so I don't really know how does it handle code plugins without building first, or if it works from marketplace, what are they exactly executing to get binaries compatible with code-less projects. although I'd be surprised if the same thing doesn't happen from the marketplace

otherstew commented 5 months ago

Neither had I, until the the other day... Maybe (to catch future 'HIDUE Missing' issues) it would be helpful to add a note clarifying that you can use the plugin with blueprint projects, but if you want to be able to package the project you'll have to add at least one C++ class first (even if it's just an empty class).

(I'm pretty sure the binaries from the pre-built plugin that I linked would be compatible, but they're just not packaged with the rest of the project since the files don't show up in the package. I don't have time to sift through the arcane details of the UE build/package to figure out how to package things properly though, so I'll just use the 'add a dummy C++ class' workaround)