Search found 22 matches

by aserto
Wed Jun 07, 2006 1:02 am
Forum: PSP Lua Player Development
Topic: PSPirc v0.1b Released!
Replies: 0
Views: 2140

PSPirc v0.1b Released!

I've just finished to write PSPirc, an IRC client written in lua. Features **************** - Multichannel support - Base IRC commands support - Base DCC support (you can only receive files) - Private messages support - Danzeff virtual keyboard TODO **************** - Text scrolling - Improoved nick...
by aserto
Sun Jun 04, 2006 10:25 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

I mean than luaplayer 0.20 doesn't work with eloader 0.97
by aserto
Sun Jun 04, 2006 8:42 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

Doesn't work.... :(
I think I'll write a php script to convert ip. Then I'll put the script on a web hosting. Then the lua program will connect to the web server and will get the converted ip.
I know... It's very lame... But I can't find another solution!
by aserto
Sun Jun 04, 2006 7:25 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

Will Luaplayer 0.20 work on eloader 0.97?
by aserto
Sat Jun 03, 2006 7:50 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

Ok... The long formatted ip is obtained from normal ip using this code: tonumber(ip[4])+256*tonumber(ip[3])+256*256*tonumber(ip[2])+256*256*256*tonumber(ip[1]) where ip is ...
by aserto
Sat Jun 03, 2006 7:19 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

you don't understand the problem. is converting a long int ip to an human readable ip.
by aserto
Sat Jun 03, 2006 6:04 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

Yes.. but the problem is that i'm writing an irc client and when a user sends a file via DCC he sends the following string:

nick!user@host PRIVMSG nick :\001DCC SEND Filename address port\001

so the user that receives the file has to connect to address:port, but address is in the long format.
by aserto
Fri Jun 02, 2006 10:49 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

can you give me an example?
by aserto
Fri Jun 02, 2006 10:11 pm
Forum: PSP Lua Player Development
Topic: Speed up file transfers
Replies: 1
Views: 1875

Speed up file transfers

I'm writing an irc client. I'have just added the dcc support. But the file transfer is very slow... here is the code: while true do --if string.len(buffer)>0 then buffer = dcc:recv() rbytes=rbytes+string.len(buffer) file=io.open(conf.do...
by aserto
Fri Jun 02, 2006 9:52 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

math.pow(256,0) returns 1
by aserto
Fri Jun 02, 2006 9:28 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

The function works fine with the first 3 numbers. But the last number is wrong.
by aserto
Fri Jun 02, 2006 8:05 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

Your idea is good... but luaplayer 0.16 doesn't support shift operators.
Shine says that x>>y == math.floor(x / math.pow(2, y)).
http://forums.ps2dev.org/viewtopic.php?t=3138
So the result is the same as my function.
by aserto
Thu Jun 01, 2006 6:06 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7698

LongtoIp problem

Im'm writing an irc client in lua. For the dcc send support i have to convert a long integer ip to an human readable ip. I wrote this function: function longtoip(long) ip = "" for i=3,0,-1 do ip = ip .. (long / math.pow(256,i)) long = long - ...
by aserto
Mon May 22, 2006 11:35 pm
Forum: PSP Lua Player Development
Topic: Controls help
Replies: 3
Views: 2841

i tried but doesn't work...
by aserto
Mon May 22, 2006 11:28 pm
Forum: PSP Lua Player Development
Topic: Controls help
Replies: 3
Views: 2841

Controls help

I have to check if 2 buttons are pressed at the same time. Do you know how to do this?
by aserto
Sun May 21, 2006 9:04 pm
Forum: PSP Lua Player Development
Topic: Socket.connect() not working
Replies: 18
Views: 7356

You have to do it in the network settings
by aserto
Sun May 21, 2006 7:22 pm
Forum: PSP Lua Player Development
Topic: Socket.connect() not working
Replies: 18
Views: 7356

if you have a 2.0+ firmware and you are using eloader 0.97 you need to make a dhcp connection. Try...
by aserto
Sat May 20, 2006 10:31 pm
Forum: PSP Lua Player Development
Topic: Socket.connect() not working
Replies: 18
Views: 7356

i mean in the connection configuration the DNS server field
by aserto
Sat May 20, 2006 7:18 pm
Forum: PSP Lua Player Development
Topic: Socket.connect() not working
Replies: 18
Views: 7356

0.16 has no DNS you will have to type the ipaddress manual. Example. 192.168.1.1 From Luaplayer changelog: v0.16 (all changes for this version by Shine) ================================================ - Wlan:getIPAddress bugfix: now it returns nil on error and the IP address otherwise - DNS resolv...
by aserto
Tue May 16, 2006 11:48 pm
Forum: PSP Lua Player Development
Topic: Socket.connect() not working
Replies: 18
Views: 7356

i found the problem... eloader 0.97 with luaplayer needs a dhcp connection. But now i have another problem with wifi: when i do socket, error = Socket.connect(host, port) while not socket:isConnected() do System.sleep(100) end the program seems...
by aserto
Fri May 12, 2006 11:18 pm
Forum: PSP Lua Player Development
Topic: Socket.connect() not working
Replies: 18
Views: 7356

I have a similar problem. I can't use sockets in my apps. If I use them the program freezes at the instruction

Code: Select all

Wlan.useConnectionConfig(1)
i use eloader 0.97, luaplayer 0.16, firmware 2.60
what's the problem?
by aserto
Mon Apr 17, 2006 10:42 pm
Forum: PSP Lua Player Development
Topic: Luaplayerwindows sockets support
Replies: 0
Views: 1365

Luaplayerwindows sockets support

did you plan to add sockets support in luaplayerwindows?