Questions tagged [kryonet]

TCP and UDP client/server library for Java

KryoNet is a Java library that provides a clean and simple API for efficient TCP and UDP client/server network communication using NIO. It runs on both the desktop and on Android. It is very efficient, so is especially good for games. KryoNet can also be useful for inter-process communication.

KryoNet makes the assumptions that it will only be used for client/server architectures and that KryoNet will be used on both sides of the network.

The following resources are available for KryoNet:

151 questions
2
votes
0 answers

Using kryonet and amazon aws elastic beanstalk

Does anyone have any experience they could share with deploying a kryonet server within an amazon aws elastic beanstalk? And a more specific question - do you have to use a fixed ip-address or can it work via the beanstalk's url? If you need to…
Ari
  • 21
  • 4
2
votes
0 answers

Kryonet won't connect from android

I have created a client and a server, which both work fine and have no trouble connecting. Now I would like to be able to connect from my android phone to the server. I have imported the kryonet library and copy-pasted the client code into a new…
2
votes
0 answers

Kryonet on new Client() gives Exception "Unable to create serializer ..."

I'm trying to get a simple client/server classes to communicate in order for later use to implement into my game for MP. The problem is I'm getting this Unable to create serializer exception when I do new Client(), a problem that apparently could be…
nullwriter
  • 785
  • 9
  • 34
2
votes
2 answers

Trying to get Kryonet to work with Android

Ok I have googled the hell out of this issue, but I can not for the life of me fix my issue. First off I am using eclipse making a game within the libGDX framework. I have imported kryonet within my projects. It works when I compile for the PC. My…
Krtko
  • 1,055
  • 18
  • 24
2
votes
1 answer

android game server not working using kryonet + LibGdx !! hallpp

I am currently developing an android multiplayer game (one on one fighting) using libgdx graphics api and the kryonet api for all server client networking . In case you might not know , libgdx is an open source java api for game development .…
codehawk
  • 21
  • 3
2
votes
1 answer

Is there a way to get the Log of Kryonet?

I want to get the Console Log of the Kryonet as String so that i can display it in a TextArea. Now my question, is there a way to do it? I'm stuck at this problem.. Any suggestions would be so much appreciated. Thanks
AsirC
  • 449
  • 1
  • 6
  • 20
2
votes
1 answer

Running a method from an object in another Thread

I have LibGDX Application in which I paint and a Thread for Client or Server. Connections are done using Kryonet. When your opponent creates does something a message is recieved linke so: public void received(Connection con, Object object) { …
yafrack
  • 654
  • 1
  • 8
  • 24
2
votes
1 answer

Problems porting Kryonet library from jar to GWT format

I'm trying to port the Kryonet to the GWT format. I'm building the GWT.XML but when I launch my GWT app, I have 2 error reported (I don't know where). I put the code here. Can you help me to port this wonderful library to the GWT…
1
vote
1 answer

Race Condition: Kryo keeps attempting to serialize items with references

I'm writing a video game utilizing a procedurally generated universe using KryoNet. A bit of context, KryoNet will serialize the object, and then every reference in the object along with it and try to send that to the other end of the connection,…
1
vote
1 answer

Linear impulse and incorrect positions in multiplayer

I'm creating a game in LibGDX. I was initially following a tutorial for a super Mario brother game from youtube, however, I have changed the game to include my own characters and graphics. I am using Kryonet as a means of including multiplayer…
1
vote
0 answers

Problem with TextArea using Kryonet and Libgdx Project

Im new to stackoverflow, Kryonet and libgdx, too. Here, while learning process of libgdx, I want to make an online rock-paper-scissors game to experience both libgdx kryonet. At first I wanted to implement a chat system to my game to try out…
Redarchy
  • 13
  • 3
1
vote
1 answer

How to send data to kryonet outside java

trying to understand how to work with kryonet, it is quite easy to send and receive message from java client, but what if I want to send it from some UI tool like Hercules, or not java code. As I see it uses kryo for Serialization, is there way to…
eriksson
  • 169
  • 1
  • 14
1
vote
2 answers

Class references null when starting service in background

I am trying to implement a "never-ending background service" in my android app. It should be used to wait for a server sending a certain type of object to the client and notify the user when this happens. As a template I use fabcirablog. When I try…
1
vote
0 answers

Kryonet server / client connection successful but having issues printing out emoji

I'm using Kryonet API for a chat app. I managed to get the server / client connected. Text messages are sent and received successfully but I'm having difficulty posting emoji's. When debugging I'm able to print emoji's in the terminal but not in the…
crgt8g
  • 11
  • 1
1
vote
1 answer

kryonet client, send message to server without open a new connection

I'm saying i'm not a programmer but a guy who has been learning to program with java for a while. I hope to find the solution to my problem here. I'm trying to program my home automation system and remote control and to do this, I chose to use…
ilnick
  • 11
  • 2
1 2
3
10 11