How to setup Windows XP/7 Enviroment Variables for Psy-Q

Confidential documents, images and information by Sony and miscellaneous hackers for the PlayStation 1
Post Reply
User avatar
Administrator
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2689
Joined: Dec 31, 2012
I am a: Shadow
PlayStation Model: H2000/5502

How to setup Windows XP/7 Enviroment Variables for Psy-Q

Post by Administrator » January 5th, 2013, 6:38 pm


:null:
Automatic Method
There is no need to follow the guide below. You can now download the registry file and run it to automatically add the required variables to Windows, not needing to manually add the variables from PSPATHS.BAT found under C:\psyq

On a side note, if you do not trust the contents of the file and what it may do to your computer, open it with notepad and check it's code before you run it.

Download for Windows XP:
pspath.reg
:null:
Download for Windows 7:
pspath.reg
:null:
:null:
Manual Method
As per the Psy-Q installation and setup routine, you need to use PSPATHS.BAT as an AUTOEXEC.BAT call under the older Microsoft OS's. This will then let you call and use 'psymake' in any given DOS window.

To solve this problem for Windows XP, 7 and 8, you need to add them manually from the PSPATHS.BAT file into the user defined 'Environment Variables'.

To do this, it is extremely easy:
- First, make sure that you have Psy-Q installed and setup correctly as per this guide: http://www.psxdev.net/help/psyq_install.html

- Then, go to your 'System Properties' page, and then click 'Advanced System Settings' as Administrator (or with Admin permissions)

- In the new window, go to the 'Advanced' tab, and click 'Environment Variables' at the bottom.
Image

- Click 'New', and add all the 6 SET variables found at the start of PSPATHS.BAT (seen below).
- Make sure you enter them as 'User' variables, unless you want them as system variables for other users to use also.
Image

- You need to add all the SET paths in as seen in the image below (make sure that you set the path to your Psy-Q folder! If you followed the tutorial in the link above, you will have it as seen in the image below).

- You do not need to add the equals (=) into the path string.
Image

- Here you can see me adding in the first SET variable...
Image

- Don't forget to add the 4 found at the end of PSPATHS.BAT too!
Image


There is no need to restart. They will work as soon as you click 'OK' on the main system window. You will have to close and re-open any command prompt windows that are still running however to 'reflush' the variables.

Lastly, add a copy of CMD.EXE from C:\WINDOWS\System 32\CMD.exe to your working directory.
This will start a path for you in your working directory, making psymake a whole lot easier, and quicker to use :)
Otherwise, under Windows 7, you can hold 'SHIFT' + 'RIGHT CLICK' in any window and select, "Open command window here".

If you can't compile anything and you get a possible 'access denied' error, please read this topic.
https://www.psxdev.net/forum/viewtopic.php?f=53&t=4010

That's all there is to it.
Enjoy faster PSX development :mrgreen:
:null:
:null:
You do not have the required permissions to view the files attached to this post.
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.

Noplace
What is PSXDEV?
What is PSXDEV?
Posts: 2
Joined: Mar 06, 2013

Post by Noplace » March 6th, 2013, 10:55 pm

Great guide, on a related note I found using dosbox to be useful for setting up Psyq

Type 79
Verified
Active PSXDEV User
Active PSXDEV User
Posts: 61
Joined: Sep 18, 2012
Location: Finland

Post by Type 79 » July 29th, 2013, 9:17 am

Some notes from Windows 8 with PsyQ 4.6.
You only need to add PSYQ_PATH as new environment variable, and add 'BIN' directory to 'path'.

Image

The PSYQ_PATH environment variable must point to the 'BIN' directory with PSYQ.INI file.

Here is my PSYQ.INI:

Code: Select all

[ccpsx]
stdlib=libgs.lib libgte.lib libgpu.lib libspu.lib libsnd.lib libetc.lib libapi.lib libsn.lib libc.lib libcd.lib libcard.lib libsio.lib
compiler_path=C:\PsyQ\BIN
assembler_path=C:\PsyQ\BIN
linker_path=C:\PsyQ\BIN
library_path=c:\PsyQ\LIB
c_include_path=c:\PsyQ\INCLUDE
cplus_include_path=c:\PsyQ\INCLUDE

tlrmcknz
Curious PSXDEV User
Curious PSXDEV User
Posts: 28
Joined: Feb 18, 2014

Post by tlrmcknz » April 2nd, 2014, 2:47 pm

Running Windows XP 32bit, I needed to add "REGEDIT4" at the top of the reg file for it to be recognized.

jman
Rookie Programmer
Rookie Programmer
Posts: 110
Joined: Aug 13, 2013

Post by jman » April 14th, 2014, 7:34 am

tlrmcknz wrote:Running Windows XP 32bit, I needed to add "REGEDIT4" at the top of the reg file for it to be recognized.
That header is likely to enforce compatibility with RegEdit v4. I have v5.1 on XP/SP3 updated.
Possibly you have a older version of XP?

User avatar
Administrator
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2689
Joined: Dec 31, 2012
I am a: Shadow
PlayStation Model: H2000/5502

Post by Administrator » March 6th, 2015, 9:34 pm

Just found a problem with the Registry file. The line PATH=C:\psyq\bin; was wrong. It should not contain a semi-colon. On a quick side note, there should also be a "TEMP" folder under C:\ for CCPSX to work correctly.

The files have been updated anyhow, and I have made two versions with Tlrmcknz's "REGEDIT4" fix (Windows 7).
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.

sogilbert
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: Mar 02, 2020

Post by sogilbert » April 30th, 2020, 11:54 pm

So, how do I do this on Windows 10?

onza22
What is PSXDEV?
What is PSXDEV?
Posts: 1
Joined: May 11, 2021

Post by onza22 » May 11th, 2021, 12:40 am

I just got this setup on Win 10.

Basically use the guide by lameguy64 found on this page here: http://psx.arthus.net/starting.html and it pretty much works.

gargoyles
What is PSXDEV?
What is PSXDEV?
Posts: 2
Joined: Sep 21, 2022
Location: China

Post by gargoyles » September 21st, 2022, 1:47 am

I have tranlated the "PlayStation Development - Setup and Install PSY-Q" into Chinese (http://www.psxdev.net/help/psyq_install.html)

Chinese Tutorial: https://blog.csdn.net/Elizabethjiang/ar ... /126963483
https://zhuanlan.zhihu.com/p/567065401

gargoyles
What is PSXDEV?
What is PSXDEV?
Posts: 2
Joined: Sep 21, 2022
Location: China

Post by gargoyles » September 24th, 2022, 4:54 pm

in my computer(xp 32bits), when I run the reg file, it would show that " The specified file is not a registration script. You can only import binary registration files in Registry Editor."
Then I add "Windows Registry Editor Version 5.00" to the first line and save as unicode, it succeeded.

Code: Select all

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Environment]
"C_INCLUDE_PATH"="C:\\psyq\\include"
"C_PLUS_INCLUDE_PATH"="C:\\psyq\\include"
"COMPILER_PATH"="C:\\psyq\\bin"
"G032TMP"="C:\\TEMP"
"GO32"="DPMISTACK 1000000"
"LIBRARY_PATH"="C:\\psyq\\lib"
"PATH"="C:\\psyq\\bin"
"PSX_PATH"="C:\\psyq\\bin"
"PSYQ_PATH"="C:\\psyq\\bin"
"TMPDIR"="C:\\TEMP"

Adri2700
What is PSXDEV?
What is PSXDEV?
Posts: 1
Joined: Mar 28, 2024
PlayStation Model: SCPH-9002
Location: Spain

Post by Adri2700 » April 1st, 2024, 4:51 pm

It works! Thank you so much!

gargoyles wrote: September 24th, 2022, 4:54 pm in my computer(xp 32bits), when I run the reg file, it would show that " The specified file is not a registration script. You can only import binary registration files in Registry Editor."
Then I add "Windows Registry Editor Version 5.00" to the first line and save as unicode, it succeeded.

Code: Select all

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Environment]
"C_INCLUDE_PATH"="C:\\psyq\\include"
"C_PLUS_INCLUDE_PATH"="C:\\psyq\\include"
"COMPILER_PATH"="C:\\psyq\\bin"
"G032TMP"="C:\\TEMP"
"GO32"="DPMISTACK 1000000"
"LIBRARY_PATH"="C:\\psyq\\lib"
"PATH"="C:\\psyq\\bin"
"PSX_PATH"="C:\\psyq\\bin"
"PSYQ_PATH"="C:\\psyq\\bin"
"TMPDIR"="C:\\TEMP"

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests