| View previous topic :: View next topic |
| Author |
Message |
Predator892
Joined: 11 May 2008 Posts: 5
|
Posted: Sun May 11, 2008 8:47 pm Post subject: Client Server WLAN (String problem) |
|
|
hi
i have created a program on pc (server) and a lua script on psp,
i connect to the pc>work
i send message to pc>work
i send message from pc to psp>don't work, or better it work,psp receive message but when i print this message i see only special characters!
then i tryed to resend my received message from psp to pc, and the pc see the string! then the problem is only in screen:print i think...
how i can solve? |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Mon May 12, 2008 10:14 pm Post subject: |
|
|
I have had a problem with sending data to the PSP from a windows application using TCP/IP Socket as well. Although my problem wasn't that is displayed special charactors. My problem was that it didnt send a whole string, it would stop after 10 or so characters. My best bet to tell you is to send strings through the socket if you are not already doing so. _________________ Enlighten me, Reveal my fate -- Follow - Breaking Benjamin |
|
| Back to top |
|
 |
Predator892
Joined: 11 May 2008 Posts: 5
|
Posted: Tue May 13, 2008 4:57 am Post subject: |
|
|
for pc i use the TCP (Socket) and from the psp Socket.send()
but i say you when the psp receive a string (and print like bad character) if i send this string again to the pc it receive the good string!! then only when i print... |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Tue May 13, 2008 9:47 pm Post subject: |
|
|
try a System.sleep(50) after you send or something like that.. honeslty thats the only guess I have for you since I have not experimented very much with doing this. _________________ Enlighten me, Reveal my fate -- Follow - Breaking Benjamin |
|
| Back to top |
|
 |
Predator892
Joined: 11 May 2008 Posts: 5
|
Posted: Wed May 14, 2008 4:37 am Post subject: |
|
|
same thing :(
EDIT:wait wait, if i send a high string every time from pc to psp, psp will flash or one symbol or letter or the good string!
EDIT2: YESSSS It was beacouse psp i don't know why receive the string with 2 spaces at start for example
i send 'hello'
psp receive
'__hello' (__=spaces)
now it work!!!!!!! Than you
only another thing... why i got again the limit of 512x512 in HM |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Thu May 15, 2008 2:54 am Post subject: |
|
|
because the graphics lib for luaplayers limits are 512x512 _________________ Enlighten me, Reveal my fate -- Follow - Breaking Benjamin |
|
| Back to top |
|
 |
Predator892
Joined: 11 May 2008 Posts: 5
|
Posted: Fri May 16, 2008 9:49 pm Post subject: |
|
|
| I know the old versione of luaplayer (i think also HM) had support for big images |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Sat May 17, 2008 2:50 am Post subject: |
|
|
Nope... there are limits on libpng that limit it to 512x512 or else it crashes. The sources for HM and original luaplayer cap it at 512. _________________ Enlighten me, Reveal my fate -- Follow - Breaking Benjamin |
|
| Back to top |
|
 |
Predator892
Joined: 11 May 2008 Posts: 5
|
Posted: Sun May 18, 2008 7:32 pm Post subject: |
|
|
| ok thx anyways ^^ |
|
| Back to top |
|
 |
|