Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

[Unity] BhapticsManager.cs - GetHaptic() / haptic_library #205

Open
Mcnath opened this issue Apr 26, 2022 · 3 comments
Open

[Unity] BhapticsManager.cs - GetHaptic() / haptic_library #205

Mcnath opened this issue Apr 26, 2022 · 3 comments

Comments

@Mcnath
Copy link

Mcnath commented Apr 26, 2022

Hi, i was using bHaptics vest to develop my game when I encounter this issue when the game is built where BhapticsLogger make a reference to a non-existent folder which makes haptics unusuable in build.

Fallback handler could not load library ....(Game folder)/(Data folder)/Mono/haptic_library
Fallback handler could not load library...(Game folder)/(Data folder)/Mono/haptic_library.dll

after digging it further i found that Bhapticmanager could not locate haptic_library despite the file exist in the different location

[bhaptics] BhapticsManager.cs - GetHaptic() / haptic_library

The haptic is working just fine in editor mode

ps. the first few part of the directory are intentionally editted by myself.

The game was built using Unity 2019.3.8f1

@Mcnath Mcnath changed the title [bhaptics] BhapticsManager.cs - GetHaptic() / haptic_library [Unity] BhapticsManager.cs - GetHaptic() / haptic_library Apr 26, 2022
@SanghunK
Copy link
Contributor

SanghunK commented Apr 27, 2022

Hi
First, I'm sorry for the inconvenience.
I think this issue related to things like project setting or unity setting.

I'm looking for the cause, and this one might be the cause.

  1. Please make sure CHECK this option of haptic_library.dll file. both x86 and x86_64.
    image

@Mcnath
Copy link
Author

Mcnath commented Apr 27, 2022

@SanghunK thankyou so much for the reply!

I did check the dll files themselves and both of them are checked. However, i did find a rough fix for the issue which is manually generate the mono folder and put the library file there. A bit of a scuff fix if you need to keep track of build version but it gets the job done.
Capture

@SanghunK
Copy link
Contributor

Oh, that sounds good.
But it's not a perfect solution, so I'll keep looking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants