forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Client Server WLAN (String problem)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Predator892



Joined: 11 May 2008
Posts: 5

PostPosted: Sun May 11, 2008 8:47 pm    Post subject: Client Server WLAN (String problem) Reply with quote

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
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Mon May 12, 2008 10:14 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Predator892



Joined: 11 May 2008
Posts: 5

PostPosted: Tue May 13, 2008 4:57 am    Post subject: Reply with quote

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
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Tue May 13, 2008 9:47 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Predator892



Joined: 11 May 2008
Posts: 5

PostPosted: Wed May 14, 2008 4:37 am    Post subject: Reply with quote

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
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Thu May 15, 2008 2:54 am    Post subject: Reply with quote

because the graphics lib for luaplayers limits are 512x512
_________________
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Back to top
View user's profile Send private message AIM Address
Predator892



Joined: 11 May 2008
Posts: 5

PostPosted: Fri May 16, 2008 9:49 pm    Post subject: Reply with quote

I know the old versione of luaplayer (i think also HM) had support for big images
Back to top
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Sat May 17, 2008 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Predator892



Joined: 11 May 2008
Posts: 5

PostPosted: Sun May 18, 2008 7:32 pm    Post subject: Reply with quote

ok thx anyways ^^
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group