Results 1 to 30 of 64
RELEASE: netlib
This is a discussion on RELEASE: netlib within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hey everyone, I have created a small function library in Lua that will allow anyone with knowledge in Lua to ...
-
02-23-2006, 04:30 AM #1
RELEASE: netlib
Hey everyone, I have created a small function library in Lua that will allow anyone with knowledge in Lua to make their game be online multiplayer.
It uses simple commands such as netsend(id,data,abtribute ) and netget(id).
The idea of the id is say if I made a game, the id could be "samsgame". Then, I could do netsend("samsgame","sam is at level 1","a"). If the abtribute is "a", it will add to the data, if it is "w", it will replace the data. Then another PSP would do something like
otherlevel = netget("samsgame")
Sending data takes .3 seconds, recieving data takes 1 to 3 seconds.
I do ask that if you use this, dont abuse it. Dont make programs that sit there and make hundreds of useless ID's just to spam. I also ask that if you are done with an id, delete it using netdelete(id). If an id does not exist, netsend will create it.
Also, please don't change the source if you include it in your programs. Please email/pm me with bugs and suggestions.
(I wonder when they will put this on the front page...emailed them yesterday)
BUGS:
-On release file, I put "r" adds to file, I meant "a".
-I need a new server because Yeldarbs domain's IP doesnt work... this will fix most freezes.
NEW: I have created a sample chat program.
Controls:
Square to refresh
Start to quit
Cross to enter message:
up/down to change letter
left is backspace, right is next letter
cross is send
Last edited by youresam; 02-23-2006 at 05:40 PM.
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 08:28 AM #2Suicide Silence

- Join Date
- Sep 2005
- Location
- New Jersey
- Posts
- 2,163
- QJ Pts
- 21,012
- Level
- 91
- Downloads
- 0
- Uploads
- 0
Hey thanks, i know a couple devs that could use this, including myself

-
02-23-2006, 05:00 PM #3
Wow.... I wonder why its not front-paged...
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 05:45 PM #4
It's a very worthy program, great job. I'm sure it will get on the front page soon =)
-
02-23-2006, 05:45 PM #5
Now this could come in handy! I may use it in Monopoly! I still need to dl and see its availabitlities and limitations though...
Its prob not front paged, because no mod ( that can post on front page ) has seen it.
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude
http://www.cools.biaklan.com
Currently Working on ?????
Quote of the Week
-
02-23-2006, 05:47 PM #6Quality Haxing Since 1991
- Join Date
- Oct 2005
- Location
- Pennsylvania, USA Fi
- Posts
- 6,206
- QJ Pts
- 29,255
- Level
- 99
- Downloads
- 0
- Uploads
- 0
Just send them an email about it, and they'll probably post it. Seems really nice, and I will definitely use it once i start developing a new lua game that I'm not quite sure what it is yet...
Originally Posted by Noriko
-
02-23-2006, 05:48 PM #7
I know you sent an email before, but I sent another one in case they overlooked it :P
-
02-23-2006, 05:56 PM #8QJ Gamer Green
- Join Date
- Apr 2006
- Location
- Grand Line
- Posts
- 5,996
- QJ Pts
- 40,380
- Level
- 100
- Downloads
- 0
- Uploads
- 0
hey yoursam, could i work with you later after i get the engine of my game down (naruto adventure) to maybe add some Co-op (ad-hoc, maybe online) and some Vs ( ad-hoc maybe online)?
[CENTER][IMG]http://img130.imageshack.us/img130/1640/acefcbanner2wo9.gif[/IMG]
[SIZE=1][B]I'm soo hot[/B][/SIZE]
[/CENTER]
[SIZE=2][CENTER][/SIZE][/CENTER]
[center]Sorry. No Advertising[/center]
-
02-23-2006, 06:14 PM #9
Well, all this is is luaplayer code, I'm not sure what your program is in (download link expired), but I also dont think I will have time to work on this for a while (thats why I was rushing a release, finished in 2 hours).
Yup, thats right! report cards come tomorrow. cya everyone.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 06:17 PM #10
I assume it's GPL so that others can improve upon it in your absence?
-
02-23-2006, 06:24 PM #11
How?
Originally Posted by TheKnightInHell
2.6, no GTA....牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 06:25 PM #12
Um... the most I'll be out is 3 weeks, but I dont want anyone modifying it.
Originally Posted by Yeldarb
Not that they can, anyway. They would need access to the server.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 06:26 PM #13
But they could work on the client side Lua part :P
Originally Posted by youresam
-
02-23-2006, 06:40 PM #14QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Hey youresam, I modified the netlib code where it might have a faster data transfer speed and added 2 new functions:
netconnect()
and
netdisconnect()
I saw that your netlib code always connected to the server, did it's thing, then disconnected after it was done every time you called the function
. So, to smooth things out, I had the 2 functions created and modified the original code so that it always had a connection to the server when netconnect() was called untill the netdisconnect() was called :Punk:.
BTW, how many connections can the server hold?
[ATTACHMENT REMOVED by alatnet]Last edited by alatnet; 02-23-2006 at 07:27 PM.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
02-23-2006, 06:41 PM #15
Um.... no. The lua part is 'perfect', IE no way to improve it. ;)
Originally Posted by Yeldarb
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 06:42 PM #16
Have you even tried your code?
Originally Posted by alatnet
If you keep the connection open, the next time you try to send a HTML GET command, the socket will close immediatly. Find a work-around to this and I will gladly put you in the credits.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 06:45 PM #17QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
I added an if statement to every function:
That should be an ok work around.Code:if socket=nil or not socket:isConnected() then netconnect() end

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
02-23-2006, 06:56 PM #18
No code is ever perfect or without room for improvement ;)
Originally Posted by youresam
-
02-23-2006, 06:56 PM #19
no it shouldnt.
Originally Posted by alatnet
It will FREEZE every time you try the 2nd time. this is because the socket is connected until you try to SEND the GET command. ou know, that bytesSend = whatever junk? yeah, that makes it lose connection to the socket.
Please take down your code, it does not work.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 06:57 PM #20
Yeah, well, I meant as far as connecting and getting data from the server. I'm going to add additional functions soon enough...
Originally Posted by Yeldarb
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 07:26 PM #21QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Dang. Well back to the modding board.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
02-23-2006, 07:34 PM #22
Yup.
Now, in my other thread, framerate said:
Originally Posted by framerate
Now... if we (or Shine) could implement that (UDP), this thing would be fast. (Ever played Burnout online? LOTS of variables/second) I would imagine that PSPRadio uses UDP.
But, unfortuantuly, we have HTTP. Which, even though is awesome, is only good for webbrowsers and stuff like that.Last edited by youresam; 02-23-2006 at 07:37 PM.
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 07:55 PM #23QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
I couldn't really test out the program cus for some fracking reason my wan light goes on for a few seconds (around 2-5), light turns off, and nothing happens.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
02-23-2006, 08:02 PM #24
Ah! Bingo!
Originally Posted by alatnet
See, thats what was happening to my PSP about 2 days ago.
Do you by any chance use PSIX? I think that program might have messed it up. Or maybe WiFi sniffer. Please tell me witch of those programs you have (if any).
I fixed it by clicking "Restore Default Settings", then I had to re-set up my wireless network (20 digit WEP key!). But, after that it worked. Oh, and for some reason, my version number is still 2.00... (not the actual version, Ive never upgraded)牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-23-2006, 08:15 PM #25
Sam, do you mind if I try porting this to C tomorrow? I have a day off from school and that would be a pretty cool thing to do in it :P
Edit: by the way you made the main page at psp-hacks psphacks psp3d and dcemu
-
02-23-2006, 08:29 PM #26QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
No I didn't use PSIX of Wifi sniffer, it does work for the infanstructure mode of the games that i have. I did up/downgrade a few times though. And i use LUA OS, File Assistant++, and UMD Emulator.
Originally Posted by youresam

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
02-23-2006, 08:57 PM #27
Hey you made the front page
Congrats.
-
02-23-2006, 09:01 PM #28Cool Developer

- Join Date
- Nov 2005
- Location
- Australia
- Posts
- 1,301
- QJ Pts
- 9,008
- Level
- 63
- Downloads
- 0
- Uploads
- 0
This is interesting, but unsecure...
Its as easy as making a 2 line lua script, and a certain app would be destroyed...
Perhaps the ability to register an id, so it cannot be deleted?Hmm...
-
02-23-2006, 10:28 PM #29Developer

- Join Date
- Jun 2005
- Location
- New Zealand
- Posts
- 171
- QJ Pts
- 5,478
- Level
- 47
- Downloads
- 0
- Uploads
- 0
At first I was quite excited when I saw this, then I realised that it only uses infrastructure mode.
No offense to you, you have done a good job on this. But it would be really great if someone could make it this easy to communicate between two PSPs in AdHoc mode.
-
02-24-2006, 11:20 AM #30
- Join Date
- Feb 2006
- Posts
- 11
- QJ Pts
- 4,169
- Level
- 41
- Downloads
- 0
- Uploads
- 0
I agree with Fabre. I am looking for some code to transfer arbitrary ascii/binary data in ad-hoc mode using LuaPlayer.


LinkBack URL
About LinkBacks
Reply With Quote

I recently played a bit of Super Mario 3D World + Bowser's Fury and I enjoyed playing this...
Super Mario Fans Out There!