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

64bit Editor issues - RequestInternetServerList #18

Closed
garrynewman opened this issue Sep 26, 2014 · 1 comment
Closed

64bit Editor issues - RequestInternetServerList #18

garrynewman opened this issue Sep 26, 2014 · 1 comment

Comments

@garrynewman
Copy link

NOTHISPTR is always defined in editor - even if the editor is 64bit. This was causing the callbacks to return junk in Unity5.

After fixing this, I'm finding that querying servers isn't working as I'd expect. It seems like the filters don't get applied properly?

        filterArray = new Steamworks.MatchMakingKeyValuePair_t[3];
        filterArray[0].m_szKey = "gamedir";
        filterArray[0].m_szValue = "rust";

        filterArray[1].m_szKey = "secure";
        filterArray[1].m_szValue = "1";

        filterArray[2].m_szKey = "gametagsand";
        filterArray[2].m_szValue = "official";

        request = Steamworks.SteamMatchmakingServers.RequestInternetServerList( SteamSystem.STEAM_APPID, filterArray, (uint)filterArray.Length, serverResponder );
@rlabrecque
Copy link
Owner

Good catch. You dove right into the least used area of Steamworks.NET!

There was a clear issue with the marshalling of MatchMakingKeyValuePairs into native code. Only the first filter worked and the rest were garbage.

A fix is pushed out on master here: 2ec6893

As for the NOTHISPTR I'm curious what you ended up with. In your case assuming everyone on your team is using the 64bit editor I'd probably do this until we get a way to differentiate the 32bit and 64bit editors. (untested)

#if UNITY_BUILD && WINDOWS_BUILD && !UNITY_EDITOR && !UNITY_64
    #define NOTHISPTR
#endif

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