How to network a game in jMonkeyPlatform?


#1

may i ask a question on how to network in jMonkeyPlatform??

  • actually we were trying to make a 3D game that can be played in LAN or Wireless.,but we dont know how…??

    -would you like to help us in networking the game??

#2

I believe someone is writing a module for doing this, but I would suggest learning about socket communication, object streams and serialization either way. Your best bet is to write your own server (or client that can act as a server).


#3

@annie please stop your duplicate posting across the site. Keep a single topic for a single thread.



Looking at your questions it’s clear that you do not have a lot of experience in software/game development in general. I recommend starting with something simpler, like a small single player 2D game, alongside learning more about Java programming as a whole.


#4

@t0neg0d: how can we create a wireless connection between a client and a server…?? you know how to connect??can you send us the source code…


#5
how can we create a wireless connection between a client and a server..??

exactly in the same way you would with a wired connection. Harware connection is the basic layer from iso/osi, and you HAVE to learn about socket, TCP, ISO/OSI, and obviously data synchronization (there is a better name for this but I can't remember. basically is what database does)

#6

@lesto: Is it possible to have wireless connection without database using jMonkeyPlatform?

-would you help me??


#7

you can do networking in game with some libraries such as Apache MINA (http://mina.apache.org), SpiderMonkey, kryonet (http://code.google.com/p/kryonet/). If you want samplecodes about LAN game networking with Apache MINA you can download our game source code at https://boombat.dev.java.net.


#8

@annie rather than repeatedly asking for help it may be helpful to ask specific questions. What exactly are you trying to network? Is this a centralized or de-centralized networking scheme you’re looking to build? Is there a requirement for data persistence?



To answer the question you have posed, yes it is possible to do networking over wireless. This is a feature of the individual operating system though, and not jMonkeyPlatform. Java will work over whatever connection the host system has available, be it wired or wireless.



If you do some looking around for how to use Java sockets you will find many tutorials on network programming in Java. Here is one such example: http://download.oracle.com/javase/tutorial/networking/sockets/


#9

try this basic…socket programming


#10

now we got “Spider Monkey” :slight_smile:
https://github.com/jMonkeyEngine/jmonkeyengine/tree/master/jme3-networking


#11

well that was a big necrobump :slight_smile:


#12

And SimEthereal on top of that…


#13

Thanks @marsalcrow I’m sure those people 7 years in the past really appreciate your input lmao


#14

well said @MoffKalast - thread closed because this isnt even relevant anymore.


closed #15