Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Solved][Kryonet] Server not interacting with packets  (Read 1618 times)
0 Members and 1 Guest are viewing this topic.
Offline Ashedragon

JGO Coder


Medals: 27
Projects: 1
Exp: 4 years


The best person you could possibly be is yourself.


« Posted 2013-09-10 06:21:05 »

Salutations,

To cut to the chase, I have an issue with Kryonet in which my server seems to be receiving the packets--but it doesn't do anything with them.  I use only the TCP, it connects fine, and the initial register packets of them connecting have been sent just fine and accepted.  However, when it comes to me sending my own packets (i.e. LoginRequest, with two Strings.  One with the version of the client, and the other with the user's name) the server appears to be receiving them, but it doesn't want to do anything further.  After this point it just goes on to send keepAlive packets.

Both my client and server are internal, so it would be a two player match with one hosting a server and the other player connecting.  I have uploaded the networking files here ( https://dl.dropboxusercontent.com/u/10498962/dae.rar ) for easy access, so I don't have to make a bunch of paste documents to put on the net.  Any help would be greatly appreciated.

Thanks,
Us.

boo
Offline Ashedragon

JGO Coder


Medals: 27
Projects: 1
Exp: 4 years


The best person you could possibly be is yourself.


« Reply #1 - Posted 2013-09-11 21:37:22 »

Hello?  Can't anyone lend me assistance?  I can't even work on progressing until this major issue is fixed, so if anyone could help me at all that would be really fantastic.

EDIT: Blah, I got it working finally.  For some reason, despite both of the Packets.java in both the server and client being copies of each other, they were still registered as different classes, so I ended up just linking the server with the client's packets.java and it works now, I guess.

EDIT2: Actually no, it seems I was registering the packets from the client's side, and comparing them to the ones imported from the server in NetworkListener, which is why they weren't working.  Everything's super dandy now.

Thanks,
Us.

boo
Offline jonjava
« Reply #2 - Posted 2013-09-12 09:46:17 »

Marking the topic solved. Explaining the situation, what happened, and how you solved it. I like.

Pages: [1]
  ignore  |  Print  
 
 

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

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

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

Solater (63 views)
2018-03-17 05:04:08

nelsongames (110 views)
2018-03-05 17:56:34

Gornova (159 views)
2018-03-02 22:15:33

buddyBro (704 views)
2018-02-28 16:59:18

buddyBro (93 views)
2018-02-28 16:45:17

xxMrPHDxx (494 views)
2017-12-31 17:17:51

xxMrPHDxx (734 views)
2017-12-31 17:15:51
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
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!