The Daily Click ::. Forums ::. Klik Coding Help ::. Online game problem again...
 

Post Reply  Post Oekaki 
 

Posted By Message

Aptennap



Registered
  23/04/2004
Points
  916
20th January, 2007 at 11:51:43 -

Oke heres the prob:
whenever i want to load the saved player data, the server then sends a too big message and the client crashes.

client->login reqeust
server->load data from ini.
server->send loaded data (the data are 10 numbers(level,hp,mp,xp,class,str,acc,mag,lck and sp)) in this form : o(for good login),name player(so only the right player gets the message),level,hp,mp,xp,class,str,acc,mag,lck,sp.
client-> receives the big message and crashes.

 
Oh sweet mary.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
20th January, 2007 at 20:11:43 -

What online extension are you using and what click product are you using?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
20th January, 2007 at 20:24:29 -

split the send up into 2 or 3 (or even more) messages, with an identifier to say what type of message is being sent. I say type because I assume you get the server to send other pieces of data?
i,e form: o,name,stat1,stat2,stat3,type
Compile the message at the client end (with the message type), and intepret it.

 
My signature is never too big!!!

Aptennap



Registered
  23/04/2004
Points
  916
21st January, 2007 at 01:11:21 -

oke thanks im trying that now.

 
Oh sweet mary.

Aptennap



Registered
  23/04/2004
Points
  916
21st January, 2007 at 02:38:24 -

Thank you! it worked!

 
Oh sweet mary.
   

Post Reply



 



Advertisement

Worth A Click