DJSPRandom Homebrew: DJSP
Good mp3 player with visualizations and an equalizer
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

Compile Tool (First tool)

Forum rules
Any post not directly related to programming will be moderated.
Do not request people to code something for you.
Avoid posting messages that do not bring anything to the conversation. We want the threads in this subforum to stay focused.

Compile Tool (First tool)

Postby npissoawsome » Mon Mar 19, 2012 11:50 pm

So well, I just spent the last 10 minutes making this, and I thought it would be kinda useful, and don't flame me if it's bad, I still don't really know what I'm doing

anywho this little tool will compile your .elf for you than move it to your PSP, and it's a little menu too. it'll also tell you if your .elf is missing, if your EBOOT.PBP is missing, or if your psp is not plugged in

so to make this, just make a file called build.bat and paste this code into it
Code: Select all
@echo off
color 2

:MENU
cls
echo 1 - Compile
echo 2 - Copy Files
echo 3 - Exit
SET /P M=
IF %M%==1 GOTO COMPILE
IF %M%==2 GOTO COPY
IF %M%==3 EXIT

:COMPILE
IF EXIST MAIN.ELF (
"C:\pspsdk\bin\mksfo.exe" HelloWorld title.sfo
"C:\pspsdk\bin\psp-fixup-imports.exe" main.elf
"C:\pspsdk\bin\psp-strip.exe" main.elf -o stripped.elf
"C:\pspsdk\bin\pack-pbp.exe" EBOOT.PBP title.sfo NULL NULL NULL NULL NULL stripped.elf NULL
del title.sfo
del stripped.elf
pause
) ELSE (
echo Main.elf is missing!
pause
)
GOTO MENU

:COPY
IF EXIST H:/PSP (
   IF EXIST EBOOT.PBP (
      copy "EBOOT.PBP" "H:\PSP/GAME/CAT_Utilities/Hello World"
      echo.
      echo Finished
      echo.
      pause
   ) ELSE (
      echo EBOOT.PBP is missing, compile .elf first
      pause
   )
) ELSE (
   echo PSP is not plugged in
   pause
)
GOTO MENU


you'll have to do a couple things first

1. wherever it says main.elf change that to the name of your .elf

2. change the HelloWorld in this line
Code: Select all
"C:\pspsdk\bin\mksfo.exe" HelloWorld title.sfo

to the name of your program

3. Change the path in this line
Code: Select all
copy "EBOOT.PBP" "H:/PSP/GAME/CAT_Utilities/Hello World"

to the path you want your eboot.pbp to be copied to

4. change the #:/PSP in this line
Code: Select all
IF EXIST H:/PSP (

to your #:/PSP path

and it should work from there, I'll appreciate any feedback [:
npissoawsome
 
Posts: 40
Joined: Mon Mar 19, 2012 10:01 pm

Re: Compile Tool (First tool)

Postby Yoti » Tue Mar 20, 2012 5:37 pm

I think it useless
1) For Windows only
2) Drive Letter is fixed
3) No icon0/etc support
4) No way to compile prx, kexp-pbp...

make + makefile = win

P.S. Not a tool, it's a batch script
User avatar
Yoti
VIP
 
Posts: 246
Joined: Sun Oct 17, 2010 4:49 am
Location: Russia

Re: Compile Tool (First tool)

Postby npissoawsome » Tue Mar 20, 2012 5:40 pm

Yoti wrote:I think it useless
1) For Windows only
2) Drive Letter is fixed
3) No icon0/etc support
4) No way to compile prx, kexp-pbp...

make + makefile = win

P.S. Not a tool, it's a batch script


You can change the drive letter ahah, and yeah I've recently just figured out how much more useless windows is then linux for psp coding
npissoawsome
 
Posts: 40
Joined: Mon Mar 19, 2012 10:01 pm

Re: Compile Tool (First tool)

Postby m0skit0 » Tue Mar 20, 2012 7:25 pm

Yoti wrote:I think it useless
1) For Windows only
2) Drive Letter is fixed
3) No icon0/etc support
4) No way to compile prx, kexp-pbp...

make + makefile = win

P.S. Not a tool, it's a batch script

+1
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4783
Joined: Mon Sep 27, 2010 6:01 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests