![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
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. |
|
|
|
|
|
|
#2 |
![]() ![]() ...in a dream...
|
Wow... Just add:
Code:
image = Image.load("image.png")
-- add this somewhere in its main loop:
screen:blit(0,0,image)
screen.flip()
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#3 |
![]() ![]() Developer in Making...
|
no no no, SG, thats WAY to hard for us to comprehend....
but really, what DID you have down in your code pspfreak?
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
|
#5 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#6 |
![]() ![]() ...in a dream...
|
I never knew LUA had a debug console... Neato...
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#7 | |
![]() ![]() Developer in Making...
|
Quote:
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
|
#9 | |
![]() ![]() total-Z
|
Quote:
![]() 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 |
|
|
|
|
|
|
#10 |
|
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. |
|
|
|
|
|
|
#11 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#12 |
|
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. |
|
|
|
|
|
|
#13 |
![]() ![]() Developer
|
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 |
|
|
|
|
|
#14 |
|
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 |
|
|
|
|
|
|
#15 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#16 |
|
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. |
|
|
|
|
|
|
#18 |
|
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. |
|
|
|
|
|
|
#19 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#21 |
![]() ![]() Developer
|
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 |
|
|
|
|
|
#22 |
|
When I do netsend how can i send over A VARIBLE??
Code:
netsend("whatever",(VARIBLE),"w")
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there. Just see some of my work. PM me for GFX. |
|
|
|
|
|
|
#23 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#24 |
|
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)
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there. Just see some of my work. PM me for GFX. |
|
|
|
|
|
|
#25 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#26 |
|
Oh i get it you didnt put quotes around the score.
ThxP.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. |
|
|
|
|
|
|
#27 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#28 |
![]() Join Date: Feb 2006
Location: www.ultimatetalkforums.com Games, RPG, quickchat and more!
Posts: 531
Trader Feedback: 0
|
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] |
|
|
|
|
|
#30 |
|
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")
-= 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 |
|
|
|
|
![]() |
| Tags |
| netlib |
| Thread Tools | |
|
|