Jump to content


Photo

Can't connect to a session?


  • Please log in to reply
No replies to this topic

#1 Huskehn

Huskehn

    GMC Member

  • New Member
  • 8 posts
  • Version:GM8

Posted 19 February 2012 - 07:12 AM

I'm not sure how to explain this, so here's my code:

Server:
mplay_session_create( sesname, 0, global.playername );
room_goto( rom_game );

Client:
        if ( mplay_session_find() > 0 )
        {
            if ( show_question( "Found game: " + mplay_session_name( 0 ) + ". Join?" ) == true )
            {
                mplay_session_join( 0, global.playername);
                room_goto( rom_game );
            }
        }
        else
        {
            show_message("Failed to find sessions at " + ip);
            mplay_end();
        }

For some reason, when running two instances of the game on my computer, one the host and one the client, the client can never find a session. I have no firewalls of any sort enabled. Am I doing something wrong here, or should I just use a .dll to handle networking?

Edit:

Nevermind, solved the problem by switching to 39dll.

Edited by Huskehn, 19 February 2012 - 07:39 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users