View Full Version : noob question
weewun
05-06-2007, 11:37 AM
ok, iv made a game for the PS2 on a dev kit at my uni. iv compiled it, and it runs fine on the dev kit (the p2s is hardwired to a pc, and use mappy.exe to access the console). now i was wondering how i can burn my game onto a cd so i can play it and show my friends... im kinda confused about it :( i tried just burning all the stuff i had onto the cd, all of the .o files and all of the source code, etc, etc.
cheers in advance :D
Chilly Willy
05-06-2007, 07:22 PM
You can make a CD image of the ELF file along with any data files and a properly constructed SYSTEM.CNF file via CDGENPS2 (google for it).
The SYSTEM.CNF file is a plain text file that looks like this:
BOOT = cdrom:\PROGRAM.ELF;1
VER = 1.00
VMODE = PAL/NTSC
Of course, the PS2 will need a mod-chip or swap discs to play the burned CD.
Remember that PS2 discs are ISO9660 level 1, so don't use names for the files that are more than 8.3. MySillyDataFileNumber1.png is no good. SILLY001.PNG is fine.
weewun
05-07-2007, 08:45 PM
so let me get this right. iv downloaded CDGENPS2. now i use notpad? to create the SYSTEM.CNF file, and click and drag my game and the system file onto the main bit in CDGENPS2 then save the image, and burn the files it makes to cd?
another question... my game doesn't have a .ELF file.... i made it on a PS2 dev kit at uni, and after compiling it the main file is 'main.o' and there are about 10 other .o files too. do i need to convert it to a .ELF file or will it work all the same?
cheers :D
Chilly Willy
05-08-2007, 07:50 PM
so let me get this right. iv downloaded CDGENPS2. now i use notpad? to create the SYSTEM.CNF file, and click and drag my game and the system file onto the main bit in CDGENPS2 then save the image, and burn the files it makes to cd?
Yes. Some older/less advanced mod-chips may need you to set the block address of the SYSTEM.CNF file, but otherwise, what you described is what you do.
another question... my game doesn't have a .ELF file.... i made it on a PS2 dev kit at uni, and after compiling it the main file is 'main.o' and there are about 10 other .o files too. do i need to convert it to a .ELF file or will it work all the same?
All the object files ( .o files) are linked into the final executable (the elf file). It'll be there somewhere... look at your makefile to see if it's making the final linked executable somewhere other than where you're looking. There's no way you can run unlinked object files, so if you've run this, there's a linked binary somewhere. :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.