Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game event detection stopped working? #1

Open
robegamesios opened this issue Sep 2, 2022 · 2 comments
Open

Game event detection stopped working? #1

robegamesios opened this issue Sep 2, 2022 · 2 comments

Comments

@robegamesios
Copy link

robegamesios commented Sep 2, 2022

Hi, I forked your repo and started a Haptic Gun project: https://github.com/robegamesios/VRHapticGun. The game event detection was working until today. Im not sure why it stopped sending game events.

at game start, It triggers and logs the GameEvent Game Reloaded with WeaponType.None but then it does not log anything anymore after.

this part of the code in HalfLifeAlyxGameMonitor.cs , PureEventString returns an empty string instead of e.g. player_shoot_weapon :

                    {
                        ParsedIndex = EventTextPool.IndexOf("\n", EventIndexStart);
                        if (ParsedIndex < 0)
                            ParsedIndex = EventTextPool.Length;
                        int StartParsing = EventTextPool.LastIndexOf("\0", ParsedIndex);
                        string PureEventString = EventTextPool.Substring(StartParsing + 1, ParsedIndex - StartParsing - 1);
                        ParseEvent(PureEventString);
                    }

ParseEvent still gets executed but Event is empty string.

any help is appreciated. thanks

@Solla
Copy link
Owner

Solla commented Sep 4, 2022

Thanks for letting me know that.
However, I don't have any VR HMD now, so I cannot reproduce the issue.
I saw your repo and realized that you have used the repo of bHaptics as an alternative.
I think that is a clever way to solve this problem.

Aside from that, I saw your commit log about the bug of SteamAPIHelper.
The bug was due to the upgrade of Steam and had been solved by the latest commit.

I cannot promise that I will fix the bugs due to the lack of resources, but I will try my best to solve it.

@robegamesios
Copy link
Author

robegamesios commented Sep 4, 2022 via email

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

No branches or pull requests

2 participants