Cpe2x for Win7

General help for the PSY-Q SDK, such as setting the SDK up, compiling correctly, linking and debugging
User avatar
Orion_
Legendary Programmer
Legendary Programmer
Posts: 228
Joined: August 13th, 2012, 2:48 am
I am a: Programmer
PlayStation Model: Net Yaroze
Location: France
Contact:

Cpe2x for Win7

Post by Orion_ » February 4th, 2013, 8:24 am

Using the old PSY-Q SDK on modern OS like Windows 7 64bits is possible !
The toolchain still works, except the cpe2x program (that convert the cpe file of psy-q to a psx exe file)
So I recompiled it for modern os and you can get it here:
http://onorisoft.free.fr/psx/cpe2x.zip

or visit my Playstation Page if you are interested by other tools.
http://onorisoft.free.fr/
Retro game development on Playstation and other consoles http://orionsoft.free.fr/

User avatar
t0rxe
C Programming Expert
C Programming Expert
Posts: 140
Joined: December 19th, 2012, 8:08 pm
IRC: t0rxe
Motto: /\OX[]
PlayStation Model: SCPH-5502
Location: Australia

Re: Cpe2x for Win7

Post by t0rxe » February 4th, 2013, 1:27 pm

I could not get the Psy-Q SDK to work in Windows 7 64-bit.
PSYMAKE.COM refused to work.

CPE2X works for me under Windows 7 32-bit, and Windows XP for that matter.
Don't know why people say it does not work...
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"

User avatar
Orion_
Legendary Programmer
Legendary Programmer
Posts: 228
Joined: August 13th, 2012, 2:48 am
I am a: Programmer
PlayStation Model: Net Yaroze
Location: France
Contact:

Re: Cpe2x for Win7

Post by Orion_ » February 5th, 2013, 1:39 am

I don't use make file, I use ccpsx directly:

My compil.bat file

set prog=test
set address=$80100000

ccpsx -O2 -Xo%address% %prog%.c -o%prog%.cpe,,%prog%.map
cpe2x %prog%.cpe

maybe I had an old cpe2x version (it was an old .com program, and win7 is not dos friendly)
Retro game development on Playstation and other consoles http://orionsoft.free.fr/

User avatar
sofzilog
Interested PSXDEV User
Interested PSXDEV User
Posts: 7
Joined: May 6th, 2013, 10:03 pm
Location: Brussel

Re: Cpe2x for Win7

Post by sofzilog » May 6th, 2013, 10:37 pm

Hi everyone !
I have Window 7 32-bits and when I type PSYMAKE, DOS tell me: " Fatal Error: could not open make file 'makefile.mak' "
I realy want to see that Hello world on my emulator, and then do more stuff.
Does anyone know about that problem?

PS: I don't speek english, sorry

User avatar
sofzilog
Interested PSXDEV User
Interested PSXDEV User
Posts: 7
Joined: May 6th, 2013, 10:03 pm
Location: Brussel

Re: Cpe2x for Win7

Post by sofzilog » May 7th, 2013, 1:16 am

Ok, I have solved my problem.

User avatar
inc^lightforce
Psy-Q Enthusiast
Psy-Q Enthusiast
Posts: 149
Joined: March 7th, 2013, 7:34 am
I am a: Programmer Windows+PS1, GFX Artist
PlayStation Model: Black
Skype: a5recordings
Location: Germany

Re: Cpe2x for Win7

Post by inc^lightforce » May 7th, 2013, 3:53 am

so feel free to start here:
WORKSHOP PS1 CODING

i have no idea why ppl are using PSYMAKE and MAKEFILE ??? :shrug
it is useless and time-robbing .

looking forward

PS:
where are you come from? your English is good enough


__________________
german & english support

User avatar
sofzilog
Interested PSXDEV User
Interested PSXDEV User
Posts: 7
Joined: May 6th, 2013, 10:03 pm
Location: Brussel

Re: Cpe2x for Win7

Post by sofzilog » May 12th, 2013, 5:57 am

Thank's for the tip, I am no longer on PSY-Q, I use Blade's lib now.
By the way, I am from Belgium.

DEBRO
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: February 5th, 2013, 3:08 am

Re: Cpe2x for Win7

Post by DEBRO » May 13th, 2013, 12:24 pm

Hi there,
sofzilog wrote:Thank's for the tip, I am no longer on PSY-Q, I use Blade's lib now.
You can use Bladelib but it has it's limitations. Two that I've had to work around were...
  • There are no interrupts
  • [list]You can do simple projects without a vertical blank interrupt but I think as you start to do more; the vertical blank interrupt will be needed.
[*]You will need a launcher to play your final project on a real PlayStation[/*]
  • Not that big of a deal but you will need to use PSY-Q to create one. I created one a couple of years ago to get around this. You can get a launcher from Candus Console Dev site. This works however it is a hack and will need you to name your project PSX.EXE and press X to load the program
[/list]

User avatar
Shendo
C Programming Expert
C Programming Expert
Posts: 238
Joined: March 21st, 2012, 4:34 am
I am a: Programmer
Motto: Never settle
PlayStation Model: SCPH-9002
Location: Croatia, EU

Re: Cpe2x for Win7

Post by Shendo » July 12th, 2013, 2:24 am

Don't use Blade's libs. As DEBRO mentioned it has it's limitations and even if you have a chipped PSX you still need
to use launcher to set everything up properly (otherwise you will find out that your controllers don't respond).

There is a newer, better and open source alternative called PSXSDK made by Tails92.
It's miles ahead of Blade's libs and when you compile your code it even gives you a cue/bin image so you can test it right away on emulator or the real thing. No 3rd party launchers needed too.

It has a Windows installer so you don't even need to install Cygwin and compile it yourself.
Just run the installer and you have everything set up. Go to samples directory, choose a sample and type make.

If you want to stay on the legal side (no PsyQ) it's the SDK to use.
My PS1 consoles: 2 x SCPH-1002, SCPH-5552, SCPH-7002, 4x SCPH-9002, 2 x SCPH-102.
Dev console: SCPH-9002, MM3 - 7 wire modchip, PAL color mod, CH340 serial cable addon.

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

Re: Cpe2x for Win7

Post by sicklebrick » July 25th, 2013, 2:44 pm

Cheers Orion - I thought I was forgetting a switch somewhere, but that fixed it! Much appreciated :)

User avatar
Rubiyooo
Interested PSXDEV User
Interested PSXDEV User
Posts: 8
Joined: April 1st, 2016, 5:58 pm
I am a: 3d Modeler, Artist
Skype: Rubiyooo
Steam: rubiyooo
Location: Spain

Re: Cpe2x for Win7

Post by Rubiyooo » July 7th, 2016, 8:37 pm

Hi :) Then is possible to compile with cpe2x without psymake command?

I´m using DOS-BOX in Windows 7 64 bits and i can use ccpsx and cpe2x but when i use "psymake" with makefile.mak
forever i see an error similar as my friend @sofzilog " Fatal Error: could not open make file 'makefile.mak' " :crying

I would like to know how do you use ccpsx to compile the makefile as say @Orion!! :D

Regards!!

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2286
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Cpe2x for Win7

Post by Shadow » July 7th, 2016, 8:54 pm

What does your MAKEFILE contain?

Also, can you do a tree listing of your directory and put the contents of the file 'tree.txt' here?

Code: Select all

tree /f /a > text.txt
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
Rubiyooo
Interested PSXDEV User
Interested PSXDEV User
Posts: 8
Joined: April 1st, 2016, 5:58 pm
I am a: 3d Modeler, Artist
Skype: Rubiyooo
Steam: rubiyooo
Location: Spain

Re: Cpe2x for Win7

Post by Rubiyooo » July 8th, 2016, 1:18 am

Shadow wrote:What does your MAKEFILE contain?

Also, can you do a tree listing of your directory and put the contents of the file 'tree.txt' here?

Code: Select all

tree /f /a > text.txt
Shadow is only the first "hello world" that i want to compile without makefile command :lol:
You do not have the required permissions to view the files attached to this post.

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2286
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Cpe2x for Win7

Post by Shadow » July 8th, 2016, 1:21 am

Okay, assuming that your directory listing only contains those files, it's probably that you have not updated your environment variables so it's using another compiler (SDK) which may be installed on your computer.
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
Rubiyooo
Interested PSXDEV User
Interested PSXDEV User
Posts: 8
Joined: April 1st, 2016, 5:58 pm
I am a: 3d Modeler, Artist
Skype: Rubiyooo
Steam: rubiyooo
Location: Spain

Re: Cpe2x for Win7

Post by Rubiyooo » July 8th, 2016, 2:01 am

Shadow wrote:Okay, assuming that your directory listing only contains those files, it's probably that you have not updated your environment variables so it's using another compiler (SDK) which may be installed on your computer.
Thanks by your fast reply

I used the PSPATHS.bat that include PSYQ

REM ================= PSX DEVELOPMENT ENVIRONMENT VARIABLES =============
REM RELEASE 1.8 LIBRARY 3.6.1 Date: 1-31-1998 Time: 21:38:44
set PATH=C:\Psyq\bin;
set PSX_PATH=C:\Psyq\bin
set LIBRARY_PATH=C:\Psyq\lib
set C_PLUS_INCLUDE_PATH=C:\Psyq\include
set C_INCLUDE_PATH=C:\Psyq\include
set PSYQ_PATH=C:\Psyq\bin

And to i dowloaded and execute the archive pspath.reg

I have the sdk in the folder C:\PSYQ\ as the tutorial says :geek:
P.d Sorry by my english ^^U

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2286
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Cpe2x for Win7

Post by Shadow » July 8th, 2016, 4:01 am

Are you using 64-bit 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
Rubiyooo
Interested PSXDEV User
Interested PSXDEV User
Posts: 8
Joined: April 1st, 2016, 5:58 pm
I am a: 3d Modeler, Artist
Skype: Rubiyooo
Steam: rubiyooo
Location: Spain

Re: Cpe2x for Win7

Post by Rubiyooo » July 8th, 2016, 5:40 am

Shadow wrote:Are you using 64-bit Windows?
Yes!! i said that 3 messages before ^^U

But i use DOS-BOX and i can execute that commmands :shrug

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2286
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Cpe2x for Win7

Post by Shadow » July 8th, 2016, 7:02 am

Rubiyooo wrote:
Shadow wrote:Are you using 64-bit Windows?
Yes!! i said that 3 messages before ^^U

But i use DOS-BOX and i can execute that commmands :shrug
Okay. Are you calling PSPATHS.BAT in your working directory once and then typing PSYMAKE?

If that isn't the problem, I'll have to RDP into your computer and try to find the problem. I can't debug it without looking at your computer. Please setup TeamViewer, and tell me a date and time to connect with the ID and password in a PM.
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
Rubiyooo
Interested PSXDEV User
Interested PSXDEV User
Posts: 8
Joined: April 1st, 2016, 5:58 pm
I am a: 3d Modeler, Artist
Skype: Rubiyooo
Steam: rubiyooo
Location: Spain

Re: Cpe2x for Win7

Post by Rubiyooo » July 8th, 2016, 8:08 am

Hi again dear Shadow. Don´t worry i will install a Windows 7 32 bits in another personal computer. If i still have problem i will send you a PM. I don´t want to stole your time. You are very kind :)


EDIT*


Nothing the problem is DOSBOX with Windows 7 64. Sometimes not all video games in MS-DOS can be executed with DOSBOX. For that i suppose that must be impossible to run that ccpsx and cpe2x.

I used a modified archive about cpe2x for Win7 64 and nothing too.

For that must be a problem about the 64 bits...
ouch.png
You do not have the required permissions to view the files attached to this post.

User avatar
gwald
1997 Yaroze Enthusiast
1997 Yaroze Enthusiast
Posts: 256
Joined: September 18th, 2013, 8:44 am
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Location: Australia
Contact:

Re: Cpe2x for Win7

Post by gwald » July 8th, 2016, 5:21 pm

maybe try this: viewtopic.php?f=53&t=591&p=4470#p4470
But you have a Net Yaroze! you don't need Psyq! :P

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest