PDA

View Full Version : Creating home brew?



carlitx
December 29th, 2006, 17:12
ya I was just interested how do i make homebrew i have no idea how o code/hack/program but i am very willing to learn so if anybody got a tutorial on this stuff but id realy like to get into the hombrew making scene for psp. so please help me somebody.

splodger15
December 29th, 2006, 17:51
You have to learn how to code.And you need to choose what language to code in either:Lua or C++

Lua is a simple language to learn and C++ is harder but can be more powerfull

carlitx
December 29th, 2006, 18:25
ok i think ill start with lua to start me off untill i get to be good enough foe c++. so any tutorials on lua lol?

splodger15
December 29th, 2006, 18:39
Here is a little Basic Lua script i have wrote up it just moves the image up and down on the screen

--Basic application by splodger15
-----------------
Room_width = 480
Room_height = 272
player1x =240
player1y =136
---Load Sprites ---
background =Image.load ("images/Background.PNG")
player1=Image.load("images/Player1.PNG")

------functions
function checkcontrols()
pad = Controls.read()
if pad:start() then
exitgame = 1
end
if pad:right() then
player1x = player1x -2
end
if pad:left() then
player1x = player1x +2
end
if pad:up() then
player1y = player1y - 2
end
if pad:down() then
player1y = player1y +2
end
end
function drawall()
screen:blit (0,0,background)
screen:blit(player1x,player1y,player1)
screen.waitVblankStart()
screen.flip()

end
-- MAIN LOOP
while true do

checkcontrols()
drawall()
if exitgame ==1 then
break
end
end

Check HERE (http://www.evilmana.com/tutorials/lua_tutorial_list.php) for Lua tutorials

If you need any help just pm me

vision
December 29th, 2006, 19:52
Awesome man, im starting to learn homebrew too. It going to be a pain in the w.e lol


thanks for the site splodger do you any for c++


Edit: i just read over your script and it's actually very understanding

splodger15
December 29th, 2006, 19:58
Check out HERE (http://www.psp-programming.com/tutorials/) to learn C++

vision
December 29th, 2006, 19:59
Thanks what about tiff is it harder?easier?

splodger15
December 29th, 2006, 20:03
I would say tiff is harder as you need to learn C++ first

Here is my Basic C++ Application i created

// Basic C++ Application

/*
This program was created by (splodger15) on (22/12/2006)
It is a simple "C++" Application.
*/

#include <pspkernel.h>
#include <pspdebug.h>

PSP_MODULE_INFO("Hello World", 0, 1, 1);

#define printf pspDebugScreenPrintf

/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}

/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
int cbid;

cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallback(cbid);

sceKernelSleepThreadCB();

return 0;
}

/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void) {
int thid = 0;

thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0) {
sceKernelStartThread(thid, 0, 0);
}

return thid;
}

int main() {

pspDebugScreenInit();
SetupCallbacks();

printf("This was created by splodger15 on 23/12/2006.\n ");

printf("There is a few people that made the whole PSP scene possible.\n ");

printf("Dark Alex- For his great PSP applications.\n ");

printf("Harley g- For his great Custom firmware.\n ");

printf("Team Noobz-For all your great work on the Eloader project and many other projects.\n ");

printf("Booster-For his excellent Devhook application.\n ");

printf("Team C+D-For there exploit found in 2.80.\n ");

printf("ZX-81-For his great emulators that just keep on coming.\n ");

printf("Art-For his X-Flash applications.\n ");

printf("0okm-For his excellent PSP programs.\n ");

printf("AhMan-For his Ir Shell.\n ");

printf("Anonymous Coder-For his PS1P Emulator.\n ");

printf("Yoshihiro-For his PSX-P Emulator.\n");

printf("There is alot more.\n ");


printf("Here is a list of coders that have helped me out on PSP Turismo and other games.\n ");

printf("Gunntims0103.\n ");

printf("Ninja9393.\n ");

printf("Benh.\n ");

printf("lmtlmt.\n ");

printf("Zion.\n ");

printf("Sorry if i have forgot anyone.\n ");

printf("You can check out my site to find my latest work at www.freewebs.com/splodger15.\n ");

sceKernelSleepThread();

return 0;

}

carlitx
December 29th, 2006, 21:56
wow i got alot of reading to do thnx splodger!

splodger15
December 29th, 2006, 22:00
No problem if you need any help with Lua just pm me

carlitx
December 29th, 2006, 22:07
Ok thnx again much aprectiated

vision
December 29th, 2006, 22:47
Indeed i can see that c++ is more complicated

carlitx
December 29th, 2006, 23:42
yes it is all of done so far with lua though is cover the variables, text stuff such as welcome screens and i started buttons but took a break and now here i am playin tlz: tp and on this :p