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!

Few PSP Specific Dev'ing Questions

This is a discussion on Few PSP Specific Dev'ing Questions within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I've had a couple of questions for a while now, and I've finally gotten around to asking them. 1. I'm ...

Reply
 
LinkBack Thread Tools
Old 02-09-2006, 06:45 PM   #1
 
Join Date: Jan 2006
Posts: 4,288
Trader Feedback: 0
Default Few PSP Specific Dev'ing Questions

I've had a couple of questions for a while now, and I've finally gotten around to asking them.

1. I'm not into apps using graphics, right now I'm just doing the essentials in text, but does anyone know if the text is formattable (printf), like centering it, or making it larger? I'm kinda too lazy to uses other ways of displaying simple text.


2. How exactly can the Home, vol +/-, screen and music buttons be used? I know that in PSPRadio the HOME button does nothing, and in PSPShot or whatever the music button takes a shot of the screen. How exactly is this done? Just doing "(pad.Buttons & PSP_CTRL_MUSIC)" or what?

3. In PSPFiler v0.2, at the top of the screen there is an icon for the triangle and square I believe. Can actual ASCII values call those, or are those just images in that program?

Lastly, this is a bit of a request but does anyone know how to use Ad-Hoc? I've looked into using infrastructure in Homebrew by looking at sources, and I understand it mostly, but how does Ad-Hoc compare? Perhaps someone could make a guide

Thanks in advance for any help!
soccerPMN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-09-2006, 06:56 PM   #2

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

for 1, 2 & 3, i dono, maybe someone else can explain.
for 4, i've been wondering the samething yet no one seems to explain (is it a developer secret or something?).
__________________

"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 -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-09-2006, 07:04 PM   #3
 
Join Date: Jan 2006
Posts: 4,288
Trader Feedback: 0
Default

I want to look into AdHoc Quake's source, I think that might be a good place to find the AdHoc stuff. If you're looking at infrastructure Alatnet, look at Danzel's Peldet source, v0.1 is the simplest, so I'd recommend looking at that one specifically.
soccerPMN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-09-2006, 07:47 PM   #4

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

Quote:
Originally Posted by soccerPMN
I've had a couple of questions for a while now, and I've finally gotten around to asking them.

1. I'm not into apps using graphics, right now I'm just doing the essentials in text, but does anyone know if the text is formattable (printf), like centering it, or making it larger? I'm kinda too lazy to uses other ways of displaying simple text.


2. How exactly can the Home, vol +/-, screen and music buttons be used? I know that in PSPRadio the HOME button does nothing, and in PSPShot or whatever the music button takes a shot of the screen. How exactly is this done? Just doing "(pad.Buttons & PSP_CTRL_MUSIC)" or what?

3. In PSPFiler v0.2, at the top of the screen there is an icon for the triangle and square I believe. Can actual ASCII values call those, or are those just images in that program?

Lastly, this is a bit of a request but does anyone know how to use Ad-Hoc? I've looked into using infrastructure in Homebrew by looking at sources, and I understand it mostly, but how does Ad-Hoc compare? Perhaps someone could make a guide

Thanks in advance for any help!
1. look in graphics.h and youll find things like printTextImage(); which will let u place the text you wnat anywhere, any color, and it can hold a variable via sprintf();

2.As for this one, i do not know EXACTLY how to do anyof those, but you can use the windows 'search' function and find pspctrl.h and u might find something there, or it might be a new lib or something, but i am not sure sorry about that

3. I have not used pspfiler but i will soon just to see, and if the X and [] buttons are at the top with color and such, than most likely its just 2 images. There are a couple other ways to do so, example: changing the pixel color of each pixel up in the left hand corner which is just like blitting an image but manually i guess (dont do that)

4. I have no clue as to Ad-Hoc, but infracture a little bit here and there, just wait for that psp crazy online thing to come out and there bound to have some Ad-Hoc functionality option, then just ask for the source

hope that helps?
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-10-2006, 05:08 AM   #5

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Quote:
Originally Posted by soccerPMN
I want to look into AdHoc Quake's source, I think that might be a good place to find the AdHoc stuff. If you're looking at infrastructure Alatnet, look at Danzel's Peldet source, v0.1 is the simplest, so I'd recommend looking at that one specifically.
Right now im codeing my acno's energizer game in lua, so i was wondering how to implament ad-hoc in lua (for posible future games i might make or switch to c/c++ to do it.).
__________________

"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 -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-10-2006, 09:48 AM   #6

Developer
 
Koba's Avatar
 
Join Date: Jul 2005
Location: Canada
Posts: 362
Trader Feedback: 0
Default

Quote:
Originally Posted by SG57
1. look in graphics.h and youll find things like printTextImage(); which will let u place the text you wnat anywhere, any color, and it can hold a variable via sprintf();
hm, i'm new to the programming for PSP world but i'm pretty sure the function you mean is printTextScreen(x, y, char, color);. and yes, for the music note button and stuff it is simply (pad.Buttons & PSP_CTRL_NOTE), which calls the music note button (HOME for home, START for start... you get my point), i really don't think there is an ascii value of control character in the PSP, i could be wrong though. and lastly, ad-hoc is definatly somthing your going to have to figure out on your own. its not an easy thing to just "go over" on the forums, http://lumo.at.tt has the PSP SDK documentation, it helps plenty when doing these kind of things. hope this answers questions that weren't already answered!
__________________
Windows: A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition...

Personal Development Blog:
http://keepitreal-dev.blogspot.com/
Koba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-10-2006, 07:52 PM   #7

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

Quote:
Originally Posted by soccerPMN
Lastly, this is a bit of a request but does anyone know how to use Ad-Hoc? I've looked into using infrastructure in Homebrew by looking at sources, and I understand it mostly, but how does Ad-Hoc compare? Perhaps someone could make a guide
Alright everyone, here's my understanding of the discovery of AD-HOC. Alright, so, this one guy took Lumines, then modded it with some of his own code (somehow) to make it save all the commands to a text file.

THEN, he created an AD-HOC game with the source code included. This was the first AD-HOC game....ever made....by the pspsdk....you know...the unofficial one...like, the one that people who cant spent 2,000$ on Sony's....

So, that one quake guy was like... WOAH. So then he implemented it. So.... all these people think the author of the psp quake discovered it, but it was really this other guy....

Look in the files section.
__________________
牧来栠摩琠敨映汩獥
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 02-10-2006, 11:41 PM   #8
 
Join Date: Nov 2005
Posts: 4
Trader Feedback: 0
Default

Quote:
Originally Posted by youresam
Alright everyone, here's my understanding of the discovery of AD-HOC. Alright, so, this one guy took Lumines, then modded it with some of his own code (somehow) to make it save all the commands to a text file.
That is correct, instead of getting the procedure to go directly to the network code, I made it go via my own procedures and dump all of the parameters.

Quote:
Originally Posted by youresam
THEN, he created an AD-HOC game with the source code included. This was the first AD-HOC game....ever made....by the pspsdk....you know...the unofficial one...like, the one that people who cant spent 2,000$ on Sony's....
That was SMSPlus and I was the author (released on the 1st birthday of the PSP).

Quote:
Originally Posted by youresam
So, that one quake guy was like... WOAH. So then he implemented it. So.... all these people think the author of the psp quake discovered it, but it was really this other guy....
I also released Quake with adhoc support.


Chris Swindle
cswindle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-15-2006, 04:31 PM   #9

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

lol, whoops. I didnt think you made the quake, sorry bout that..

yeah.... I just found your source (the title doesnt have the word 'ad-hoc'), and im going to experiment with it. Hopefully I might be able to implement it into a luaplayer function under 'System'.
__________________
牧来栠摩琠敨映汩獥
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 02-15-2006, 08:06 PM   #10
 
framerate's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 389
Trader Feedback: 0
Default

Quote:
Originally Posted by SG57
1. look in graphics.h and youll find things like printTextImage(); which will let u place the text you wnat anywhere, any color, and it can hold a variable via sprintf();
Is graphics.h included in the SDK? I was under the impression that printTextToScreen() was from code Shine wrote for luaplayer, no?
__________________
[URL=http://www.framerate.info/psp][IMG]http://www.framerate.info/_hosted/imageupload/signature.gif[/IMG][/URL]
framerate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-15-2006, 08:30 PM   #11

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

Quote:
Originally Posted by framerate
Is graphics.h included in the SDK? I was under the impression that printTextToScreen() was from code Shine wrote for luaplayer, no?
ACTUALLY, some one said a while back I was wrong, when really, I was right, there is a private function called printTextToImage(int x, int y, const char "", u32* color); (That was all from memory, probably wrong), what it does is write over or TO an image, it's basically the same as printTextToScreen. No, the graphics.h isn't in the SDK, atleast I don't think so (?), I just got it from the tutorials , but I have found a very useful header inside some MasterPiece source, it's called utils.c/.h, it has a char set built in (8x8 to be exact), flash screen 10 times for kicks, open up any file and view its data (good for options?!?!?!), get time of day, get MAC address, get Firmware version (only 2.0+ tho ), but that can come in hadny, because then we can detect if the pereson has firmwares version 2.0+, and have a specially made program just for that, and still include things for 1.5 users!!!!!!!!!!!!!!!!!!!! ... it has some more usefull functions also, here it is if you guyz were interested...
Attached Files
File Type: doc utils.doc‎ (45.3 KB, 5 views)
__________________

Last edited by SG57; 02-15-2006 at 08:33 PM..
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2006, 08:29 AM   #12
 
framerate's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 389
Trader Feedback: 0
Default

I just know my original learning code was from Shine's Luaplayer's graphics.c. He did some great work in that and it was a great way to learn how to use libpng and it's application the PSP. So if you're trying to learn how to blit PNG images to the screen, I recommend checking out the source for Lua Player.

Best of luck.

edit: also.. if it was built into the SDK wouldn't it be "scePrintTextToScreen ()" ?
__________________
[URL=http://www.framerate.info/psp][IMG]http://www.framerate.info/_hosted/imageupload/signature.gif[/IMG][/URL]

Last edited by framerate; 02-16-2006 at 08:52 AM..
framerate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2006, 01:24 PM   #13
 
Join Date: Jan 2006
Posts: 4,288
Trader Feedback: 0
Default

Also I was wondering if anyone has any code that will take a screenshot upon the pressing of any button? Preferably output to PNG but any other format is fine as well. I want to make a graphical menu, using just debug screen text, and so I'll print those in their desired locations, then take a screenie, then from the screenshot I'll make a background that has different color backgrounds for behind the text's location. <-- Wow it sounds as if English is a second language for me lol
soccerPMN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-19-2006, 12:56 PM   #14

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

look at the libpng's example code, it has the screenshot function in there
__________________
牧来栠摩琠敨映汩獥
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
Reply

Tags
deving , psp , questions , specific

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 02:43 PM.



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