Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (517)
Games in Android Showcase (123)
games submitted by our members
Games in WIP (578)
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: [Kryonet] Getting indexOutOfBounds on Client.Update line 297 on: 2013-04-01 19:24:05
I found it !

Okay, so it turns out it actually does not have anything to do with kryonet, but it just crashes while doing some kryonet stuff in the background, or something like that.

It turns out that it was an index out of bounds in my "unresolved moves" list that I use for client side prediction. This list is one of the things that is checked up against when I recieve packets from the server, and the crash turned out to be trivial.

I ended up pinpointing it by running the game with the play button instead of the debug button, this game me a much more useful exception that lead me to find the crash reason.

Thanks for the help anyway, I love the response time on this forum

Peter
2  Game Development / Networking & Multiplayer / Re: [Kryonet] Getting indexOutOfBounds on Client.Update line 297 on: 2013-04-01 17:23:48
This is what I see, when the crash happens and I press "yes" to go in to debug view:



What you see in the background is the server running as build.

In the foreground is my client running in debug.

Does any of that help?

Peter
3  Game Development / Networking & Multiplayer / Re: [Kryonet] Getting indexOutOfBounds on Client.Update line 297 on: 2013-04-01 16:39:57
I feared it would be hard to tell anything from it, I could post my code, and I would not mind, but there is a lot of it and since I dont know where the error occurs, I cant seem to see where in the code the program was before it entered the client class and crashes, so I would not know what part to post unfortunately :/

I guess I was hoping that someone else had this error and had an idea how to start debugging it. I tried to limit the packets send, but that doesn't seem to be it.

Peter
4  Game Development / Networking & Multiplayer / Re: [Kryonet] Getting indexOutOfBounds on Client.Update line 297 on: 2013-04-01 16:07:04
Unfortunately there is no output in the console :/

I went to google, because this is not some code that I wrote, and Eclipse is for some reason not able to show it to me, so I went there to find it.
All I get where the code from my own classes usually is in the debug view is a: source not found. Thats why I went to google to find out what happens at line 297.

5  Game Development / Networking & Multiplayer / [Kryonet] Getting indexOutOfBounds on Client.Update line 297 on: 2013-04-01 15:51:54
Hi guys,

I am working on a small client/server game using java and the Kryonet library.

I am recieving and sending packets just fine, but up to a limit it seems, but I am having a real hard time debugging this, as Eclipse really doesn't give me anything to go by.

This is the print out from the debug window:


When I look up the Client class on the google code page all I see is a closing bracket at line 297, so I am not really sure what to make of it.

If any of you have any idea about where I should start looking, it will be greatly appreciated Smiley

Peter
6  Games Center / WIP games, tools & toy projects / Re: 2d RPG with no name... on: 2013-03-16 16:01:06
There is nothing I can send, the window just flashes and disappears.

I think when you export the game you have to look for an option for "mac application bundle" or something like that to make it work Smiley

Peter
7  Games Center / WIP games, tools & toy projects / Re: 2d RPG with no name... on: 2013-03-10 19:41:55
Hi Wreed,

I thought the game looked interesting so I downloaded it, but when I double click it a frame appears and flashes twice then the game closes.

I am on Mac OSX 10.7.5  maybe that has something to do with it. Just wanted to let you know Smiley

Let me know if there is anything I can do on my part so I can try it out Smiley

Peter
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

DarkCart (11 views)
2014-10-31 21:44:48

DarkCart (14 views)
2014-10-31 21:43:57

TehJavaDev (40 views)
2014-10-27 03:28:38

TehJavaDev (30 views)
2014-10-27 03:27:51

DarkCart (44 views)
2014-10-26 19:37:11

Luminem (25 views)
2014-10-26 10:17:50

Luminem (30 views)
2014-10-26 10:14:04

theagentd (36 views)
2014-10-25 15:46:29

Longarmx (64 views)
2014-10-17 03:59:02

Norakomi (62 views)
2014-10-16 15:22:06
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!