QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Using Netlib??

This is a discussion on Using Netlib?? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Yeah i started using youresam's netlib and.. It tried making the netlib example included to run on a background image ...

Reply
 
LinkBack Thread Tools
Old 01-14-2007, 10:28 PM   #1
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default Using Netlib??

Yeah i started using youresam's netlib and.. It tried making the netlib example included to run on a background image but it wont work?? If you didnt understand what i just said i mean i want the netlib example to have a image as its background instead of a black background.
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2007, 10:31 PM   #2

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

Wow... Just add:
Code:
image = Image.load("image.png")

-- add this somewhere in its main loop:
screen:blit(0,0,image)
screen.flip()
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2007, 10:32 PM   #3

Developer in Making...
 
BlackShark's Avatar
 
Join Date: Oct 2006
Location: Pimp'en in the US F#cking A!!!
Posts: 1,254
Trader Feedback: 0
Default

no no no, SG, thats WAY to hard for us to comprehend....
but really, what DID you have down in your code pspfreak?
__________________
The Wentire Worls in two Sectors....
When did I get dev statz?
Spoiler for my PSP homebrewReleases:
Ace of Space V1|PvP Pong Online|PvP Pong v3 | 3.03 BlackShark Custom Firmware
(PvP Pong DL'ed well over 2403 times combined! get yours now!)
Spoiler for Great Quotes:

"No Snowflake in an Avalanche ever feels responsible....." - Fortune Cookie.
BlackShark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2007, 10:43 PM   #4
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Man i tried that already ive done this before but it wont work with this i have no idea why
-= Double Post =-
I just printed text on a background but when i put the netlib stuff the background turnsblack
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.

Last edited by pspfreak9; 01-14-2007 at 10:43 PM.. Reason: Automerged Doublepost
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 10:29 AM   #5

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

The netlib example's text uses print. You cannot blit images over print. You need to do a screen:print. The example was not exactly designed to be built off of, so I recomend writing your own program using netlib.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 12:45 PM   #6

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

I never knew LUA had a debug console... Neato...
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 12:47 PM   #7

Developer in Making...
 
BlackShark's Avatar
 
Join Date: Oct 2006
Location: Pimp'en in the US F#cking A!!!
Posts: 1,254
Trader Feedback: 0
Default

Quote:
Originally Posted by SG57
I never knew LUA had a debug console... Neato...
...?Thats my line... but ya, thats pretty cool
__________________
The Wentire Worls in two Sectors....
When did I get dev statz?
Spoiler for my PSP homebrewReleases:
Ace of Space V1|PvP Pong Online|PvP Pong v3 | 3.03 BlackShark Custom Firmware
(PvP Pong DL'ed well over 2403 times combined! get yours now!)
Spoiler for Great Quotes:

"No Snowflake in an Avalanche ever feels responsible....." - Fortune Cookie.
BlackShark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 02:25 PM   #8
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Oh ok thanks Youresam.
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 03:55 PM   #9

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by SG57
I never knew LUA had a debug console... Neato...
Yep, it uses pspDebug

Also, debug.debug() in lua almost works....oh well.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 04:56 PM   #10
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

In Netlib is there anypiece of code i could use that deletes a id if no data is sent for a certain amount of time??
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 05:05 PM   #11

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Um, deleting IDs in netlib isnt needed, so I didnt add that feature to v2. May I ask what you are trying to do?
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 05:15 PM   #12
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Yea, sure see in my game I plan to send x,y coordinates to the server and recive them at the other PSP thus having the 2 players move. But if the player leaves the the player just stays in one spot using the x,y coordinates that was last used. I wanna make it so that it that person times out the id is deleted so they wont just freeze on the scrren.
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 05:20 PM   #13

Developer
 
cools's Avatar
 
Join Date: Aug 2005
Posts: 472
Trader Feedback: 0
Default

well if you need some help using netlib for a 2 player game, just check out my guide.

http://www.cools.biaklan.com/Tutorial/ or one of the links in my sig!
__________________

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
cools is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 06:41 PM   #14
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Your guide is very impressive. Very appreciated. Suprised it hasnt got stickied.
-= Double Post =-
Cools in your tut you put this line:

netsend("StickArena_room" ,info,"w")

It gives this error:

Bad argument to netsend

I changed it to this:

netsend("StickArena_room" ,"info","w")

Was that the right thing to do??
If someone but cools is reading this you might wanna read his tut to understand where i am.
-= Double Post =-
anyone...??
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.

Last edited by pspfreak9; 01-15-2007 at 06:41 PM.. Reason: Automerged Doublepost
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 06:59 PM   #15

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

UGH my domain went down today so I cant show you the 'official' netlib tutorial

Anyway, just send something like "OFFLINE" to tell it that the other has left.
And heres the way netsend works:
netsend(id, data, mode)

so to send "hello" to the variable bob you would do exactly:
netsend("bob","hello","w" )

cools tutorial is more like showing you how I wrote my connection code for games, but he made a few mistakes (like the info part)
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 07:07 PM   #16
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Ya but if I send "offline" The player the stands there frozen which interfers with the game play any ideas??
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 07:10 PM   #17

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

If it recieves "OFFLINE" it should exit the game.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 07:20 PM   #18
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Why dont i just create a quick version of the game show it to you later beacuse i'm not sure of what your saying right now will work.
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 07:29 PM   #19

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Your saying that in the event that the other user suddenly quits, you want your PSP to do what?
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 07:34 PM   #20
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Just wait please i'll PM you when i'm done with coding (this could take a while)
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2007, 07:52 PM   #21

Developer
 
cools's Avatar
 
Join Date: Aug 2005
Posts: 472
Trader Feedback: 0
Default

Didnt i say somewhere it was an optional step? Oh well... The info thing... yeah... It sent over which car to send over, so the other psp would be able to load the correct picture.

Trust youresam!
__________________

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
cools is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 06:59 PM   #22
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

When I do netsend how can i send over A VARIBLE??
Code:
netsend("whatever",(VARIBLE),"w")
Like that ??
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 07:15 PM   #23

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

in lua:
whatever = "hello world"

in netlib:
netsend("whatever","hello world","w")

so yeah, I think you got it.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 07:21 PM   #24
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Sorry, I think you got what i said wrong. I meant whatever would be the ID and I want the variable to the DATA. So like this:
Code:
VARIABLE =x+10
netsend("ID",(VARIABLE),w)
and the VARIABLE is constantly changing so i cant just type in the variable itself.
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 07:25 PM   #25

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Ok, so lets say you want to assign p1_score to the variable score:

lua:
p1_score = score

netlib:
netsend("p1_score",score, "w")
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 07:31 PM   #26
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Oh i get it you didnt put quotes around the score. Thx
P.S. While your here i have to ask this:
In that example you gave with Netlib you know where it says buffer =...( A bunch of stuff) Could I do this:

if buffer =OFFLINE then
(function)
end
Can i do that?? OFFLINE would be the data
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 08:05 PM   #27

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Yeah, that would work.
if buffer == "OFFLINE"
But remember, the other person would have to send "OFFLINE"
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 08:10 PM   #28
 
altunozara's Avatar
 
Join Date: Feb 2006
Location: www.ultimatetalkforums.com Games, RPG, quickchat and more!
Posts: 531
Trader Feedback: 0
Default

i still dontget what netlib is
__________________
[CENTER][COLOR=black][COLOR=black][URL="http://forums.qj.net/f-psp-firmware-discussion-253/t-psp-firmware-30-get-it-58053.html"][COLOR=cyan]would you upgrade?[/COLOR][/URL] [/COLOR][FONT=Times New Roman][COLOR=navy][URL="http://www.mindistortion.net/iwantyoursoul/?i_am=altunozara"]OMG ITS REAL![/URL][/COLOR][/FONT][COLOR=black] [URL="http://forums.qj.net/showthread.php?t=61756&page=1&pp=10"][COLOR=lime]Sony vs Nintendo[/COLOR][/URL][/COLOR][/COLOR][/CENTER]
[CENTER] [/CENTER]
[CENTER][URL="http://www.ultimatetalkforums.com"][IMG]http://i94.photobucket.com/albums/l82/Altunozara/userbar2.jpg[/IMG][/URL][/CENTER]
[CENTER][SIZE=3]i [/SIZE][URL="http://forums.qj.net/www.gamingwell.com"][SIZE=3]wonder what could be under this hyperlink..hmm[/SIZE][/URL][/CENTER]
[CENTER][SIZE=3][COLOR=green][B][I]Maniakc is awsome!!![/I][/B][/COLOR][/SIZE][/CENTER]
[CENTER][FONT=Arial Black][SIZE=3][COLOR=#660099][I][U][URL="http://forums.qj.net/member.php?u=58299"]The Brain Pwns!!![/URL][/U][/I][/COLOR][/SIZE][/FONT][/CENTER]

[COLOR=sienna]Creator of:[/COLOR][URL="http://forums.qj.net/f-psp-development-forum-11/t-release-go-go-go-beta-66652.html"][COLOR=sienna]GO GO GO![/COLOR][/URL]
altunozara is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 08:39 PM   #29

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

lib I wrote for making lua games online
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-20-2007, 01:29 PM   #30
 
Join Date: Sep 2006
Posts: 484
Trader Feedback: 0
Default

Can your netlib do something like this:
Code:
x = 240
pad =  Controls.read(); 
   if math.abs(pad:analogX()) > 20 then 
      px = x + pad:analogX() / 180; 
   end

xs = px
netsend("xs",px,"w")
When I do this it says bad argument for netsend. I think net lib cant have things like x+10 If that is true is there any way I can do it??
-= Double Post =-
Oh man, Youresam got banned again.
-= Double Post =-
anyone???
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there.
Just see some of my work. PM me for GFX.

Last edited by pspfreak9; 01-20-2007 at 01:29 PM.. Reason: Automerged Doublepost
pspfreak9 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
netlib

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 06:43 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us