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!

[DEV LIB]Mootje's API for LPHMv2

This is a discussion on [DEV LIB]Mootje's API for LPHMv2 within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Since there aren't many LPHMv2 developers (because all the old LPHM devs think it's so hard), I've decided to write ...

Reply
 
LinkBack Thread Tools
Old 06-13-2009, 02:31 PM   #1

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default [DEV LIB]Mootje's API for LPHMv2

Since there aren't many LPHMv2 developers (because all the old LPHM devs think it's so hard), I've decided to write a library that will simplify all the functions. They will be even easier than the old LPHMs' ones!
So, here's a list of what I've already done:
Code:
initColors() | initiates all the LPHMv2 colors (white, green, black, ...)
initButtons() | initiates all the buttons so you don't have to keep calling "pad = Controls.read()" or pad:cross(), it's just cross or x or circle or up...
initCursor(speed,cursor image path) | speaks for itself
initiate() | will load all the functions that start with "init"
cursor() | will show the a cursor with the specs from initCursor()
print(x,y,text,color) | will print "text" to the screen with the original XMB font, if there's no color it will automatically print in black
f:init(font path,font size) | load a font
f:print(x,y,text,color) | will print "text" with the f:init() specs,if there's no color it will automatically print in black
f:term() | unloads the font
load(file type,file path) | there are 10 different file types:
1: PBP
2: PSX
3: PRX
4: ELF
5: LUA
6: sound (eg: wav)
7: MP3
8: OGG
9: AA3
10: AAC

blit(x,y,image path) | speaks for itself
read(path) | will load the "path" file and show it's content
assign(flash) | will assign a flash. eg: assign(2)     will assign flash2:/
pause(seconds) | will freeze the homebrew for the number of seconds given
usb(device,mode) | will activate the usb with the specified device and mode, eg: usb("ms0:",true)
osk(title,input) | speaks for itself
encrypt(file path,new name) | since LPHMv2 can't read encrypted scripts I've decided to make my own code encrypter
execute(file) | will execute the previously encrypted "file"
get.nick() | will search for the PSPs nickname and will return "nickname" as it's nickname (I felt like making my own one :P)
browser(device,mode) | will show a browser that will explore "device" in the selected mode, there are two modes:
1: tile map
2: list
eg: browser("flash0:",2)
well that's all, but I promise that more will be coming
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2009, 03:18 PM   #2
Enter Custom Title
 
dan369's Avatar
 
Join Date: Jan 2008
Real First Name: Dan
Location: Wales, cardiff
Just Played: Overlord 2
Posts: 1,306
Blog Entries: 1
Trader Feedback: 0
Default

"(because all the old LPHM devs think it's so hard)"

Not really. It isn't hard, so people just prefer to use other things like pge because it has less bulk.
dan369 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2009, 06:17 AM   #3

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default

I'm not just talking about the lua devs form qj, I'm also talking about Lua devs from all around the globe.
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2009, 07:02 AM   #4

Developer
 
homemister91's Avatar
 
Join Date: Sep 2007
Location: AUS
Posts: 281
Trader Feedback: 0
Default

nice work
__________________
Heres to the Wyvern,
Heres to getting Wyvern,
Heres to staying Wyvern,
And if you can't get Wyvern.......
You should become a kingsman!

http://arnold.hyperphp.com/ arnold, Light_AleX and my releases

homemister91 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2009, 07:57 AM   #5

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default

thanks man

btw: ideas are welcome
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2009, 12:35 PM   #6
 
Join Date: Apr 2009
Posts: 15
Trader Feedback: 0
Default

Looking forward to the encryption, I can use that one
jackrunner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2009, 11:35 PM   #7
 
Join Date: May 2009
Posts: 106
Trader Feedback: 0
Smile

so when will this be released? nice work by the way
thecraziness1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-04-2009, 05:33 AM   #8

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default

thanks. I'm still working on the encryption and I'm also porting it to C++. so both versions will be released on the same day. I was thinking that I could be done this 15th ?


btw: the C++ version uses the OSLib mod by Sakya
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-04-2009, 03:53 PM   #9
 
Join Date: May 2009
Posts: 106
Trader Feedback: 0
Default

sweet sounds awesome. look forward to it.
thecraziness1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-24-2009, 04:04 PM   #10

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default

just to say that I've officially dropped this project.
why? because I realized what I was doing: trying to bring noobs to C/C++ with their "hello worlds" and "button testers"
I'm sorry but after what happened to Lua, I just can't see the same thing happen to C++
but for the (real) devs that are still interested in this, you can contact me by PM and I'll send you the C++ files


anyway, this thread is just as good as locked
later!
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-24-2009, 04:36 PM   #11
Developer
 
Zack_PSP's Avatar
 
My Mood: Happy
Join Date: May 2009
Posts: 72
Trader Feedback: 0
Default

Quote:
Originally Posted by mootjeuh View Post
just to say that I've officially dropped this project.
why? because I realized what I was doing: trying to bring noobs to C/C++ with their "hello worlds" and "button testers"
I'm sorry but after what happened to Lua, I just can't see the same thing happen to C++
but for the (real) devs that are still interested in this, you can contact me by PM and I'll send you the C++ files


anyway, this thread is just as good as locked
later!
No offense, but what the hell does that even mean?
Bring noobs to C/C++? What??

You were making a simplified API to allow Lua coders to make apps or games easier. So what on earth does any of that have to do with what you said above??
__________________

My Releases :



^-------------------------^

^-------------------------^

Zack_PSP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2009, 04:16 AM   #12

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default

Quote:
Originally Posted by Zack_PSP View Post
You were making a simplified API to allow Lua coders to make apps or games easier. So what on earth does any of that have to do with what you said above??
like I said, in some earlier posts, I was porting the project to C++ so that it would also make C++ coding easier. but then I realized that if noobs use this, they're going to make all those horrible noob-releases in C++ too! I mean, UMD Dumpers, Button Testers, Hello Worlds with a menu and those worthless shells
now do you get what I mean?
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2009, 04:48 AM   #13
Developer
 
Zack_PSP's Avatar
 
My Mood: Happy
Join Date: May 2009
Posts: 72
Trader Feedback: 0
Default

Quote:
Originally Posted by mootjeuh View Post
like I said, in some earlier posts, I was porting the project to C++ so that it would also make C++ coding easier. but then I realized that if noobs use this, they're going to make all those horrible noob-releases in C++ too! I mean, UMD Dumpers, Button Testers, Hello Worlds with a menu and those worthless shells
now do you get what I mean?
That makes more sense

Much better explanation
__________________

My Releases :



^-------------------------^

^-------------------------^

Zack_PSP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2009, 04:58 AM   #14

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default

glad you understand, but if a serious developer (like you) wants to use it, just send me a PM
it's already done, now adding some useful functions
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-25-2009, 03:43 PM   #15
Developer and Tutor.
 
FaT3oYCG's Avatar
 
My Mood: Happy
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
Default

why dont you just implement it into luaplayer hm and release a new version the source is availible and that coms under the terms of the liscence.
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference.
My Website: is down for a while ... I'll bring a new one back soon.

Currently working on:
(0) PGE Gears Of War - On hold (Very large project).
(0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).
FaT3oYCG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-26-2009, 02:08 PM   #16

 
mootjeuh's Avatar
 
Join Date: Nov 2008
Posts: 320
Trader Feedback: 0
Default

Quote:
Originally Posted by FaT3oYCG View Post
why dont you just implement it into luaplayer hm and release a new version the source is availible and that coms under the terms of the liscence.
yeah, I don't know maybe during the vacation =P
anyway, here's the Lua version
Attached Files
File Type: zip Mootje's API.zip‎ (1.5 KB, 1 views)
mootjeuh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
api , dev , libmootje , lphmv2

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 05:27 PM.



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