Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Networking & Multiplayer / Re: UDP woes? Or a logic error? on: 2011-05-25 00:47:13
Yeah. You have to .flip() your bytebuffer before sending and after receiving it. lol
Cool, glad to see you got it working. Sorry I wasn't able to look at it until you already had it done. Smiley
Hey how come he gets a medal Angry
(jk Tongue )

But that's just weird, why call "flip()" when you receive it? O.o

You need to copy data out in the reverse order it was sent. You can think of it sort of like this:

Actually that is totally wrong.

On a reliable connection packets arriove in the order they were sent. In a non-reliable, they arrive in any order.

But within the packet you need to read the data out in the same order you wrote it in.  If you actually RTFM you find out that flip doesnt do what you think it does.
Quote
Flips this buffer. The limit is set to the current position and then the position is set to zero. If the mark is defined then it is discarded.

When you finish writing into the buffer, you are in "just written" state.  Your current position is the byte just after the last one you wrote (the next place to write if you continued writing) and your limit is the last byte in the buffer.

Flip puts you into "ready to read state" by putting the current position into the limit so you cannot read past what you wrote, and then putting 0 into current position as this is the place you want to start reading from.
2  Game Development / Networking & Multiplayer / Re: Java Game Server (RedDwarf) job in North Boston on: 2011-05-25 00:39:35
Unfortunately I really need the team working closely together.  This is a Scrum project with a tight deadline.

The only way I can imagine it working would be if you were keeping US hours and on Skype all day with the team.  Even then Im somewhat concerned about team cohesion...
3  Game Development / Networking & Multiplayer / Re: Java Game Server (RedDwarf) job in North Boston on: 2011-05-24 05:50:09
You know I'd take you in  a heart beat were you available!
4  Game Development / Networking & Multiplayer / Re: How to do simple local network games? on: 2011-05-21 20:06:58
Whatever you do, dont try to do all your game traffic on multi-cast.  If you use multi-cast for all your game traffic then two sessions of the same game on the same subnet will conflict.  

I have a chapter all about this in "Practical Java game Programming."  It covers both discovery and communication and includes example code.

http://www.amazon.com/Practical-Programming-Charles-River-Development/dp/1584503262/ref=sr_1_1?ie=UTF8&s=books&qid=1306001203&sr=8-1
5  Game Development / Networking & Multiplayer / Re: Java Game Server (RedDwarf) job in North Boston on: 2011-05-21 05:51:31
I wish you did too!

Obviously the pay scales somewhat with experience.  The high end is for someone with solid RedDwarf experience.  But we are looking to get someone senior and solid and are willing to pay for it.
6  Game Development / Networking & Multiplayer / Java Game Server (RedDwarf) job in North Boston on: 2011-05-21 05:33:27
Hey guys,

Its been awhile that I've been away pursuing other things, but I wasted to let you know that I am looking to hire a good systems level Java engineer in the North Boston, MA area.  The position is a RedDwarf coding position but I am willing to teach someone with a strong systems level Java background, a sensitivity to the needs of games, and an eagerness to learn and use a new paradigm.

The Gamasutra listing is here.  This is a serious position on an interesting project with a well funded startup.

http://jobs.gamasutra.com/jobseekerx/ViewJob.asp?JobID=FtncdXaHHGpfYvaSUQqQmbmSBPEH&Keywords=Stealth
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (47 views)
2014-04-15 18:08:23

BurntPizza (43 views)
2014-04-15 03:46:01

UprightPath (59 views)
2014-04-14 17:39:50

UprightPath (41 views)
2014-04-14 17:35:47

Porlus (57 views)
2014-04-14 15:48:38

tom_mai78101 (80 views)
2014-04-10 04:04:31

BurntPizza (139 views)
2014-04-08 23:06:04

tom_mai78101 (239 views)
2014-04-05 13:34:39

trollwarrior1 (199 views)
2014-04-04 12:06:45

CJLetsGame (207 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!