Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  RTS / MOBA networking methods.  (Read 4993 times)
0 Members and 1 Guest are viewing this topic.
Offline trollwarrior1
« Posted 2014-03-25 19:26:41 »

I will try to make some kind of moba game. I didn't really do any networking before for a game, so some tutorials on this topic would be nice. Or maybe just few main outlines of it. What I mean is for example: do I just stream data to clients or does the client request for certain information?
Offline Riven

« JGO Overlord »

Medals: 1340
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #1 - Posted 2014-03-25 19:35:53 »

Show us what information you have already read, and what questions you have. That way we don't risk putting effort into writing an informative reply that means little to you (either because you know too little, or too much).

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline trollwarrior1
« Reply #2 - Posted 2014-03-25 19:54:16 »

I have probably none knowledge other than that TCP transfers 100% info and is slow and UDP loses info sometimes and is fast.
So for game you use UDP and probably stream data to clients, but how would that work? I would make a huge mess which I would be cleaning for a long time..

this isn't thread for 'how to send' but rather 'how to structure networking'
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline BurntPizza

« JGO Bitwise Duke »

Medals: 485
Exp: 7 years

« Reply #3 - Posted 2014-03-25 20:05:02 »


What Every Programmer Needs to Know About Game Networking
Make sure you check the 'related posts' at the bottom.

I remember directing someone to another really good article on this subject, but I can't find it...

Offline argixx

Junior Newbie

« Reply #4 - Posted 2014-03-28 23:48:23 »

I would checkout kryonet as a medium for multiplayer with your first attempt at multiplayer with a java game. It has a built in serialization library (transfers all data to and from bytes in between client and server) with an easy setup. It features both TCP and UDP transfer of information, the TCP is much better built and maintained compared to the UDP, but the UDP still works fine for sending position info and health info and other things like that. Essentially all you do is make a network listener for a client and server (built into KN) and send packets from 1 to another then in the listener check if a received object is an instanceof whichever packet class you were sending. The only issue I have ever found with kryonet is that the ByteBuffer size is really garbage and when you have like 10 clients syncing 100's of entity data and map data the server will just $h1t itself and say im done and crash so you gotta try to keep packets only sending primitive data types of java instead of entire custom classes
Pages: [1]
  ignore  |  Print  

EgonOlsen (44 views)
2018-06-10 19:43:48

EgonOlsen (24 views)
2018-06-10 19:43:44

EgonOlsen (46 views)
2018-06-10 19:43:20

DesertCoockie (201 views)
2018-05-13 18:23:11

nelsongames (126 views)
2018-04-24 18:15:36

nelsongames (125 views)
2018-04-24 18:14:32

ivj94 (866 views)
2018-03-24 14:47:39

ivj94 (127 views)
2018-03-24 14:46:31

ivj94 (770 views)
2018-03-24 14:43:53

Solater (142 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!