PCinit causes black screen

General PSX CD Troubleshooting, PSX CD-ROM Mastering and Disc Creation
Post Reply
Mills
Curious PSXDEV User
Curious PSXDEV User
Posts: 16
Joined: May 03, 2016

PCinit causes black screen

Post by Mills » March 2nd, 2020, 5:45 am

Some time ago I made a little demo using psyq, now I wanted to test loading things from CD.

Cd functions (init, search etc) worked well, but I have to create an ISO every time I want to test. So I tried PCinit:

Code: Select all

int file,size;
char *filebuffer;
PCinit();
file = PCopen("\\model\\PTEX.TIM;1", 0, 0);
size = PClseek(file, 0, 2);
filebuffer = (char*) malloc (size);
PCread(file, filebuffer, size);
PCclose(file);
This is supposed to load a tim image from the model folder, relative to main.exe.

PCinit() alone just hangs the game, and I can only see a black screen. Do I have to include some library for it to work?

I forgot to say, I'm using windows 10 64, and ePSXe205

Thanks.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » March 2nd, 2020, 10:01 am

It won't work with ePSXe. You need to use real development hardware (DTL-H2000, CAETLA, CATFLAP, etc).
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Mills
Curious PSXDEV User
Curious PSXDEV User
Posts: 16
Joined: May 03, 2016

Post by Mills » March 2nd, 2020, 10:06 am

Shadow wrote: March 2nd, 2020, 10:01 am It won't work with ePSXe. You need to use real development hardware (DTL-H2000, CAETLA, CATFLAP, etc).
Thanks, I guess creating an ISO every time I compile won't be too hard because it is a very small game.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » March 2nd, 2020, 10:15 am

For emulators, compiling an ISO every time is fine because it's extremely quick. If you're on a real PlayStation it's a nightmare because you need to waste and burn disc after disc so that's when PCinit(); comes in handy for quick data transfers to the PSX memory :)
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests