[b]Note, this is to essentially expose Steam Chat to lua using Steamworks[/b]
(yes i know there's pretty much no reason for it, butwhatever, this is just for shiggles)
I'm attempting to add a hook to gmod to run whenever the local player receives a chat message over steam. Normally I don't like using Visual Studio, but that's the only way you can use Steamworks on Windows. It uses Visual Studio 2013 Express
Here is my current project file: [url=https://www.dropbox.com/s/ye12l97x298mev5/SteamChatBinding.zip]SteamChatBinding[/url] I apologize in advance if the code is a bit messy or disorganized. I was more or less making this up as I went along.
I've determined where it's causing the game to crash. Line 27 in main.cpp:
[code]steamFriends->SetListenForFriendsMessages(true); [/code]
I assume this is a problem with how gmod handles Steamworks? The dump file gmod produces gives me the error: [code]The thread tried to read from or write to a virtual address for which it does not have the appropriate access.[/code][url=https://www.dropbox.com/s/a47e7ah7m9pl8d3/hl2_130914_crash_2013_11_19T2_58_48C0.mdmp]crash dump[/url]
That's about all I got.
However, while we're at it, I'd like to ask a few more questions about this kind of stuff. If you look around my comments in main.cpp, I half-assume that gmod is running SteamAPI_RunCallbacks() and SteamAPI_Init() internally. Is this true? (I have no idea why it wouldn't, but I've seen more bizarre things.)
Thanks in advance for your help.
second page, bump
Sorry, you need to Log In to post a reply to this thread.