User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 24

Thread: We need a better Network extension

  1. #11
    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: We need a better Network extension

    You should use a combinations of both UDP and TCP

    Example, for moving characters or updating animations or rotating, you can surely use UDP. However, in order to prevent bugs in there, you use TCP to start it (send the first values, like speeds, etc...) and finish it (send its final X,Y cordinate)

    In case NO UDP packet (i dont know why, but whatever...) would have arrived, the character would teleport to its final destination. But it least it gets there, and doesnt get stuck in some wall, because it missed a "rotate to left" UDP packet.

    Also, for RPG games, dead-reckoning isnt nessesary with MooClick. You can just sent values every 3rd or 5th of a second. Where you use the "ball movement" on the clients. So the ball keeps moving, even if it doesnt have any UDP or TCP input.

    But let me give you an even better key to a good RPG based MMORPG. You do not move the character at all, remotley. What you do is you send your keyboard input to the client. Make an eventlist (a list box) where you save your commands.
    Then, in 1 loop, if someone presses both Up and Left and Space, then those are qued up in your Eventlist. You parse the list into a string, and send it to the client. There you un-parse it, apply the commands, and do all the movement stuff there.

    Afterall, what happens after a keypress, is always more then the keypress its self. So you just send your keypress command to the client. Using your own commands. And you only send this, when something changes.
    I would suggest to capute KeyUp and KeyDown same for mouse. And thats basicly all you need.
    Having fixed that, you have plenty of available bandwith to take care for NPC's, bullets, etc... which ARE supposed to be controlled directly, as they are automated. But the best thing, is to make 1 client, a robot client, which is in fact the NPC / Bullet server, which is always logged in to the main server. It doesnt control players, but NPC's and bullets.
    Most important thing here is that you will do collisions in the robot-client to, cutting out all lag and synchronization issues.

    Ofcorse, when talking about MMORPG you >>ARE<< required to have a dedicated webserver in a datacenter with at least upload speeds of 10MB/sec. If you control NO npcs, bullets, or less then 15 players. You could try hosting a server at your home, but would still be a bad idea.

  2. #12
    Clicker Fusion 2.5

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

    Re: We need a better Network extension

    UDP for things which won't really matter if one or two packets go missing, like movement.
    I disagree... but it truly depends on the code...
    Anyway UPD could me more usefull for rotation... Like if a character is looking at the "mouse", then it dont really matter if the it miss some packets...

  3. #13
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: We need a better Network extension

    You have to be really careful with UDP, not only is it not guaranteed delivery, but it's not even guaranteed to arrive in the order you sent it.

  4. #14
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: We need a better Network extension

    Yes, and good dead reckoning algorithms cope with this. I think Patrick had the most sensible answer.

  5. #15
    Clicker Fusion 2.5

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

    Re: We need a better Network extension

    @Dynasoft:
    Um, yeah... but uh.. player direction isn't that important... so you would recommend to use TCP in this case :S .
    Later, When the character IS moving it can send the correct direction in a TCP packet.

  6. #16
    Clicker Fusion 2.5 Developer

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

    Re: We need a better Network extension

    Yes, good point with the Movement. I already have a grid-based movement in place. And yes, things will be send out at the time of the input, not after the player got to his destination.

    That's really one of the advantages of this movement type. The player Presses Up to go to the above field (32 pixels higher), and we know exactly what will happen. Now it just needs to be acted out on both the client, and all the other clients.

  7. #17
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: We need a better Network extension

    Someone could make an extension based off http://www.rakkarsoft.com/ or someone could give a heads up to the devs over there and ask them to make an extension for us :P (it's free to use if your game is free... otherwise the developer actually lets you pick your price :P)

  8. #18
    Clicker Fusion 2.5 Developer

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

    Re: We need a better Network extension

    Yeah, a RakNet extension would be sweeeet. Light years ahead of anything we have.

  9. #19
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: We need a better Network extension

    Jeff: would Clickteam be willing to fund an extension developer to create an extension based off RakNet?


  10. #20
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,822
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)

    Re: We need a better Network extension

    Perhaps if its not too expensive but its also unclear if Raknet will allow this. I have yet to find an extension creator that wanted to work on this -- Its not a new idea its been around for a couple years.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. MLP Neural Network extension
    By Mokhtar in forum Extension Development
    Replies: 66
    Last Post: 21st August 2013, 03:09 AM
  2. [PAID] (Mobile Ad Network) RevMOB extension for Android and iOS exporter
    By Matriax in forum Paid Design & Development Requests
    Replies: 1
    Last Post: 23rd April 2013, 11:59 AM
  3. Extension "Network" you ave an example?
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th July 2012, 03:15 AM
  4. current network extension to work with non-mmf app
    By nightofgrim in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th June 2009, 04:02 AM
  5. Help wanted (Neural Network Extension)
    By Mokhtar in forum Extension Developers Lobby
    Replies: 3
    Last Post: 20th November 2007, 02:16 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
  •