Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (690)
Games in Android Showcase (201)
games submitted by our members
Games in WIP (764)
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 2967 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
Administrator

« JGO Overlord »


Medals: 1239
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: 482
Exp: 7 years



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

Blam:

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  
 
 
You cannot reply to this message, because it is very, very old.

 
xTheGamerPlayz (219 views)
2016-09-26 21:26:27

Wave Propagation (418 views)
2016-09-20 13:29:55

steveyg90 (526 views)
2016-09-15 20:41:23

steveyg90 (521 views)
2016-09-15 20:13:52

steveyg90 (564 views)
2016-09-14 14:44:42

steveyg90 (587 views)
2016-09-14 14:42:13

theagentd (540 views)
2016-09-12 16:57:14

theagentd (466 views)
2016-09-12 14:18:31

theagentd (317 views)
2016-09-12 14:14:46

Nihilhis (750 views)
2016-09-01 13:36:54
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
java-gaming.org 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‑gaming.org
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!