Cpe2x for Win7

General help for the PSY-Q SDK, such as setting the SDK up, compiling correctly, linking and debugging
User avatar
Admin / PSXDEV
Admin / PSXDEV
Posts: 2471
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Cpe2x for Win7

Post by Shadow » July 8th, 2016, 11:45 pm

gwald wrote:Edit, can't run in dos mode, it might work without dosbox, I think dosbox is just 16bit.
win7 64 should run a win32 exe :shrug
Well first off, he is using the Windows tools. Psy-Q has separate DOS tools. You can try using "DOS4GW.EXE".
Otherwise, yes, just use a 32-bit version of Windows.
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.

User avatar
C Programming Expert
C Programming Expert
Posts: 248
Joined: July 17th, 2013, 9:32 pm
I am a: Chocolate-fueled pug fetish robot.
Location: Scotland

Re: Cpe2x for Win7

Post by sickle » February 19th, 2020, 10:25 am

Thanks for CPE2X; it's great, it fixes everything.
Just to be clear, I'm leaving this purely out of curiosity.
I'm not advocating using dosbox over cpe2x, it's not a good idea if you can help it.

Found a workaround for the time being using doxbox on the command line:

Asuming your psyq is at c:\psyq\
and your project: c:\psyq\fps\

First copy the following into your project directory from your dosbox install dir (or reference them by their full path, i'm not your mother). I'm using 0.74.

For the future peeps with broken imgurl links, that's Dosbox.exe, dosbox.conf, SDL.dll and SDL_net.dll

Next, alter your dosbox conf to match:

Code: Select all

mount C c:c:
cd c:\psyqcall pspaths
cd c:\psyq\fps
 ! Message from: sicklebrick
Remember to cd into your project dir after setting paths as I have on the last line!
And convert your make file to a .bat something like the following:

Code: Select all

@echo off

echo seting paths...

call c:\psyq\pspaths.bat

echo deleting stuff...

del fps.cpe
del fps.sym
del fps.map

echo ccpsx...

ccpsx -O3 -Xo$80010000 main.c 2mbyte.obj -ofps.cpe,fps.sym,fps.map

echo cpe2x...

REM to debug...
REM dosbox.exe -conf dosbox.conf -c "cpe2x fps.cpe"

REM or to automate this last bit...
REM set SDL_VIDEODRIVER=dummydriver
dosbox.exe c:\psyq\bin\cpe2x.exe -conf dosbox.conf -noconsole -exit -c "cpe2x tuto1.cpe"
echo done...

 ! Message from: sicklebrick
The first param "c:\psyq\bin\cpe2x.exe" is only necessary if you want it to automatically exit. E.g. this marks it as a "named" process and dosbox will stay open till it's done!

Should be enough for most cases.
Bit of a faff, but it gets the job done without resorting to VM.

(Note: ccpsx won't run in dosbox, so you can't just get away with doing that!)

(un double posting)

 ! Message from: sicklebrick
Don't use a directory name longer than 8 chars unless you intend to get all oldsch~1 with your names!
Last edited by sickle on July 3rd, 2020, 3:16 pm, edited 2 times in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest