User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Tiny MooSock MMORPG example

  1. #1
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Tiny MooSock MMORPG example

    This tiny example includes a server and a client.

    To test it:
    Unpack all files to a folder and build both .mfa files to .exe files. Run the server once and the client a few times.

    This MMORPG engine features:
    -Logging in and out
    -Walking around w. point and click
    -Chat
    -Position correction for player movement when you just log in.

    The last feature basically means that if someone starts walking to another position, a message will be sent to all players about the move. But if you log in while the player is moving normally no message would be sent to you about that player moving. Then server then sends you information about the player so the client can correct the player's position and make that player move from the position the player would logically be in.

    Note:
    This example is kinda insecure as everything sent is plain-text, and the server doesn't check for position cheats. That is up to you to add
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tiny MooSock MMORPG example

    wow very cool system with moosock

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tiny MooSock MMORPG example

    nice altough, i wouldnt call it a Massive Multiplayer Online Role Player Game

  4. #4
    No Products Registered

    Join Date
    Aug 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tiny MooSock MMORPG example

    The Client and Server .exe files crash after I run them

    If I click on X to close one, it crashes and I have to force quit. I don't know whats wrong.

  5. #5
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Tiny MooSock MMORPG example

    Have you updated to the latest MMF2 version?

  6. #6
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tiny MooSock MMORPG example

    Nice Andos!

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tiny MooSock MMORPG example

    Thanks for sharing Andos
    Just a question, why did you use a "recv" fastloop ? I usually do it with a group of events, is it supposed to be faster this way (just like you stop your loop, i close my group as soon as possible) ?

    You should add a ping timeout to this system !

  8. #8
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Tiny MooSock MMORPG example

    Hi Corentin:

    No I'm just fond of event based programming (not to be confused with MMF2 events).

    If MMF2 has a "on function" feature I would use that instead for clarity, but I just run a fastloop once to do that.

    I guess having a group to do that stuff would be faster but using those for anything functional isn't really my cup of tea. I just use them for separating events into logical groups.

  9. #9
    No Products Registered

    Join Date
    Aug 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tiny MooSock MMORPG example

    it'd be nice if this was better commented, explaining exactly what's going on in the events. Especially for people are new to MooSock.

  10. #10
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tiny MooSock MMORPG example

    When you loop through sockets to send messages or such, you don't have to start the loop countsockets times, countsockets-1 is enough. Of course, if you do this, you take the risk to start loop -1 time...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. mmorpg
    By Martin in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 24th June 2008, 11:18 AM
  2. MMORPG
    By grayhuskie53 in forum File Archive
    Replies: 0
    Last Post: 28th January 2007, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •