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
0
votes
1 answer

How to handle game object updates with kryonet client

I working on a simple multiplayer game in java2d that handles 4 players at a time. Here is a code sample that receives data from the server. server.addListener(new Listener() { public void received (Connection connection, Object object) { …
0
votes
1 answer

What does Kryonet send over each couple seconds?

I noticed Kryonet sending/receiving an object I did not register to each connected member about every 5 seconds. It's probably just a couple byte and even for a couple thousand players would not up the server load much more then 1 kB/s but I need to…
Madmenyo
  • 8,389
  • 7
  • 52
  • 99
0
votes
1 answer

Unable to compile a project due to duplicate class definitions in Kryonet

Caused by: com.android.dex.DexException: Multiple dex files define Lcom/esotericsoftware/reflectasm/MethodAccess; The above error is preventing my Android project from building, I'm using Kryonet and including it in my build.gradle as a dependency…
Renari
  • 822
  • 7
  • 16
  • 32
0
votes
0 answers

Kryonet Client immediately disconnecting from server

I am currently in the process of writing an app which has the phone connect to a server. Both client and server are using the Kryonet framework. The problem ist the following : When the server is running and I then start up the client, the client…
jalako
  • 1
  • 1
0
votes
1 answer

Handling multiple TCP and HTTP responses in SplashActivity

I should organize 2 HTTP (Retrofit + Rx) and 2 TCP (KryoNet) requests in my SplashActivity. When I get the response from all requests I should start MainActivity. How can I combine requests, handle responses and after that start MainActivity? Help…
Timur Panzhiev
  • 607
  • 6
  • 12
0
votes
0 answers

JavaFX Components not updating

I'm building a lobby that should display messages from players. Here is my lobby controller: public class LobbyController{ @FXML public JFXTextArea chatArea; @FXML public JFXTextField chatField; public void displayChatMessage(String…
Jaden Wang
  • 126
  • 1
  • 9
0
votes
1 answer

Android client not connecting to server KryoNet

I am trying to connect from an Android client (from my phone) to a server (my PC). Both the server and the client are using KryoNet. The connection is succesful when I try to connect from a client which is on the same PC as the server. The…
Andy
  • 155
  • 1
  • 13
0
votes
1 answer

Connecting client to server Kryonet and Libgdx

I'm trying to connect from a client which uses libgdx for the interface to a server. I use Kryonet on both the client and the server. However it is not working. Any idea what's wrong? Here is the code that i use in the client: Client client =…
Andy
  • 155
  • 1
  • 13
0
votes
2 answers

Why are my getters returning null when I try to send to the server?

I know this question has been asked a countless number of times on here, and I've searched SO and other sources for a solution but I just can't resolve the error. I have a getter and setter for my ClientPlayer class attribute, the setter is called…
cndolo
  • 27
  • 2
  • 8
0
votes
1 answer

libgdx ios app getting rejected for not working on IPv6 network using Ec2 and Kryonet

My App has now gotten rejected twice for not working on an IPv6 network on a device running IOS 10.2 My App was built using these resources and I was hoping someone could give me some insight on where to start looking. Server: Amazon EC2…
0
votes
0 answers

hosting a game online using NIO Kryonet, performances issues and workflow and other issues

So I have been coding a game using Libgdx, and THE very simple and powerful kryonet(SERVER-CLIENT) for multiplayer section . So far I could properly do the multiplayer over LAN and it works great!. I'm Starting to do the Online part of multiplayer…
Mh_Bash
  • 36
  • 4
0
votes
1 answer

Java getting serializer error with kryonet and slick2d?

I am trying to execute this server code. package server; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.IOException; import javax.swing.JFrame; import javax.swing.JOptionPane; import…
posixKing
  • 408
  • 1
  • 8
  • 17
0
votes
1 answer

Slick2D+Kryonet - Client gets connected but packet was never received

Im devloping a game to learn the basics of making online games. Though, it didnt go as well as I hoped. From what it looks like its the client not receiving the packet for some reason. As said in the title I am using Kryonet and Slick2D. What…
0
votes
0 answers

ESP8266 communicating over wifi with android phone

I am trying to find a way to read data using my app from an ESP8266, on Chrome works fine by the way. According to the documentation (I am using the Simple HTTP Server example) ESP uses sockets. I tried Volley but it didn't work. My question is,…
traveller
  • 327
  • 1
  • 2
  • 11
0
votes
1 answer

Kryonet - how to get the sender (Connection) during serialization?

I have a huge, huge problem. I'm using AES serialization for packets and here comes an issue. Serializers in Kryo look like this: public class AESSerializer extends Serializer { private final Serializer serializer; public AESSerializer…
user6367252