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   
  Show Posts
Pages: [1]
1  Game Development / Networking & Multiplayer / Re: UDP woes? Or a logic error? on: 2011-05-24 22: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.
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-24 22: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 03: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 18: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.
5  Game Development / Networking & Multiplayer / Re: Java Game Server (RedDwarf) job in North Boston on: 2011-05-21 03: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 03: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.
Pages: [1]
EgonOlsen (79 views)
2018-06-10 19:43:48

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

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

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

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

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

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

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

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

Solater (177 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!