Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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 / Newbie & Debugging Questions / Breaks only as Java Applet? on: 2013-02-26 03:38:22
I have a server/client architecture running on the same computer (which I have apache service running so acts as a webserver).

The game uses kryonet for it's communication.
It works fine when it's not an applet, but now that it is an applet, I'm getting some odd Buffer underflow messages on server side:

Code:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
Exception in thread "Server" com.esotericsoftware.kryo.KryoException: Buffer underflow.
Serialization trace:
password (main.Packet$Packet0CreateRequest)
   at com.esotericsoftware.kryo.io.Input.require(Input.java:157)
   at com.esotericsoftware.kryo.io.Input.readString(Input.java:354)
   at com.esotericsoftware.kryo.serializers.DefaultSerializers$StringSerializer.create(DefaultSerializers.java:151)
   at com.esotericsoftware.kryo.serializers.DefaultSerializers$StringSerializer.create(DefaultSerializers.java:140)
   at com.esotericsoftware.kryo.Kryo.readObjectOrNull(Kryo.java:730)
   at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:229)
   at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:760)
   at com.esotericsoftware.kryonet.KryoSerialization.read(KryoSerialization.java:57)
   at com.esotericsoftware.kryonet.TcpConnection.readObject(TcpConnection.java:137)
   at com.esotericsoftware.kryonet.Server.update(Server.java:192)
   at com.esotericsoftware.kryonet.Server.run(Server.java:350)
   at java.lang.Thread.run(Unknown Source)


A really odd thing is that it works fine when sending Strings across the network...

Any ideas please?

Thanks!
2  Game Development / Newbie & Debugging Questions / Re: Another clueless newbie. on: 2010-04-01 17:25:40
Ah great, thanks. Do you think you can explain why people use engines etc. I would have thought people would create games from scratch so they'd get better control/understanding and so on? Or is there something that these engines do that is nearly always required? I don't know if my question makes any sense...
3  Game Development / Newbie & Debugging Questions / Another clueless newbie. on: 2010-04-01 17:13:57
I've been studying Java at University for 8 months now, which has basically involved a dull routine of adapting a program given to you into doing whatever is specified.

However I've been looking at creating games in Java for a while now and have looked up numerous tutorials and have learnt things such as using images, how to set display modes, threads, etc...

However is there anywhere that has good tutorials on what's required to make a game? For instance I still have no clue how to make good animations etc... I'd much rather find a collection of tutorials specifically for Gaming rather than learning things that I may or may not need and get confused as to what I should be using.

I've looked at some other newbie topics and they're being redirected to engines such as Slick2D... is this just so that it's easier to create games? I would have thought you should make a game from scratch, make your own engine and whatnot? Albeit very clueless when it comes to game development and whatever I search seems to end up in the completely wrong direction.

I guess what I really want for now is a simple side-scroller, and expand from there to create different games.

Thanks and sorry if this is extremely newbie, I thought I'd ask people who know what they're doing rather than bashing google with the same thing only slightly differently phrased.

Thanks in advance Smiley.
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.

xsi3rr4x (63 views)
2014-04-15 18:08:23

BurntPizza (61 views)
2014-04-15 03:46:01

UprightPath (74 views)
2014-04-14 17:39:50

UprightPath (57 views)
2014-04-14 17:35:47

Porlus (75 views)
2014-04-14 15:48:38

tom_mai78101 (100 views)
2014-04-10 04:04:31

BurntPizza (160 views)
2014-04-08 23:06:04

tom_mai78101 (255 views)
2014-04-05 13:34:39

trollwarrior1 (208 views)
2014-04-04 12:06:45

CJLetsGame (215 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!