English Amiga Board


Go Back   English Amiga Board > News

 
 
Thread Tools
Old 07 July 2021, 05:24   #1
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
PSXPort source released

I got in touch with PSXPort's developer Joe Fenton, who sent me with the latest user, developer and source archives and kindly agreed to release them. They are provided as is, so by using them, you accept full responsibility for any damage that might occur.

User archive: http://aminet.net/package/driver/input/psxport-user
Development kit: http://aminet.net/package/dev/misc/psxport-dev
Source code: http://aminet.net/package/driver/input/psxport-src

FAQ
Q: What is PSXPort for?
A: It allows you to connect a PlayStation compatible controller to your Amiga's parallel port. With a multitap up to four controllers and memory cards can be accessed (external power supply recommended).

Q: Why not just use an adapter that plugs to the standard DB9 joystick port?
A: These emulate a regular joystick or CD32 gamepad, which limits them to 7 unique buttons and a D-pad on the Amiga side. With this adapter Amiga programs can read all 14 buttons, D-pad and 2 analog sticks of the PlayStation controller.

Q: What supports it?
A: Various commercial games support it natively, like Wipeout 2097, Payback, Shogo, Quake II, Heretic II, Descent: Freespace. Some open source ports also support it: ADoomPPC, BlitzQuake, Quake (ported by Frank Wille, Steffen Haeuser), Duke Nukem 3D, Shadow Warrior, Blood, Exhumed (Powerslave), Dark Forces. The FPSE PlayStation emulator includes PSX Port plugin for joystick input. You can also manage PlayStation memory cards with MCControl on your Amiga if you have a multitap.
Of course for backwards compatibility this adapter can emulate a CD32 gamepad for games using lowlevel.library.
I also added native PSXPort support to my Build FPS ports. Besides the regular movement controls these games have jumping, crouching, vertical aiming, an inventory, alternate fire, etc, which is a pain to map to only 7 buttons and a D-pad. Of course they can be played keyboard and mouse, but even there can be issues with pressing some keys simultaneously due to keyboard matrix limitations. This is where PSXPort comes in.

Q: How can I build one myself?
A: Here's a schematic for the PSXPort adapter. It's slightly different from the PC version, pay attention to pin 10 and 11 of the parallel port:


I also made an ASCII version:
Code:
   ___
1 / * | DATA
2 | * | CMD
3 |_*_| motor (7.2 - 9V)
4 | * | GND
5 | * | VCC (3.3 - 3.6V)
6 |_*_| ATT
7 | * | CLK
8 | * | unused
9 \_*_| ACK

DB25 male               PSX 9-pin male
    D0  2 ------------- 2 CMD
    D1  3 ------------- 6 /SEL (ATT)
    D2  4 ------------- 7 /CLK
    D3  5 --->|---|
    D4  6 --->|---|
    D5  7 --->|---|---- 5 VCC
    D6  8 --->|---|
    D7  9 --->|---|
  /ACK 10 ------------- 9 /ACK
  BUSY 11 ------------- 1 DATA
   GND 18 ---|
             |--------- 4 GND
   GND 19 ---|

-->|-- 1N4148 diode
Notice: While the 5 data lines have enough power for a single controller, if you plan to connect a multitap you should consider using an external 3.3V power supply.
Attached Thumbnails
Click image for larger version

Name:	psx-amiga.gif
Views:	2827
Size:	2.7 KB
ID:	72482  

Last edited by BSzili; 02 September 2023 at 10:45. Reason: updates links, corrections
BSzili is offline  
Old 12 July 2021, 09:50   #2
vulture
Registered User
 
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,840
what would be cool, is if whdload added support for this somehow
vulture is offline  
Old 18 July 2021, 16:21   #3
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
Finally built myself one, it was relatively easy even with my modest soldering skills. The components didn't cost much either.

I tried it with PSXPortTest and the Quake port linked above, and they both worked great, all the buttons, analog sticks, etc. I can't wait to add PSXPort support to JFBuild.
Attached Thumbnails
Click image for larger version

Name:	20210718_145016-small.jpg
Views:	2264
Size:	93.0 KB
ID:	72577  
BSzili is offline  
Old 18 July 2021, 23:21   #4
kriz
Junior Member
 
kriz's Avatar
 
Join Date: Sep 2001
Location: No(R)Way
Age: 41
Posts: 3,185
Very cool project, will try to build my own! Thanks!!
kriz is offline  
Old 29 October 2021, 18:46   #5
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
Two of my Build ports now support the PSXPort: Blood and Shadow Warrior.
BSzili is offline  
Old 29 October 2021, 19:58   #6
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
Sadly no .FD or clib. Makes it harder to generate stubs.
Hedeon is offline  
Old 29 October 2021, 20:16   #7
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
PSXPort uses a gameport.device compatible interface with standard Exec device I/O. You don't need any stubs, just GetMsg, DoIO and SendIO.
BSzili is offline  
Old 03 November 2021, 08:39   #8
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
Exhumed now joins the fray. It's a bit less convenient as it has no in-game control settings, but I made sure the default preset is comfortable enough for those who don't want to customize the CFG by hand.
BSzili is offline  
Old 03 November 2021, 17:02   #9
saimon69
J.M.D - Bedroom Musician
 
Join Date: Apr 2014
Location: los angeles,ca
Posts: 3,519
Quote:
Originally Posted by vulture View Post
what would be cool, is if whdload added support for this somehow
I hear you, by offering an overlay to intercept joystick calls to the PS2 pad, but since most assembly games bash the metal directly i wonder if is feasible
saimon69 is online now  
Old 03 November 2021, 20:12   #10
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
For WHDLoad it's probably better to use an adapter that connects to the joytick port and emulates a 3-button or CD32 controller. The games that need WHDLoad couldn't make use of the extra buttons or analog sticks anyway, which is the main advantage of the PSXPort.
BSzili is offline  
Old 20 December 2022, 12:37   #11
BULI
Registered User
 
Join Date: Dec 2017
Location: Rzeszów
Posts: 404
Q: What supports it?
A: Various commercial games support it natively, like Wipeout 2097


I build this interface and it works fantastic with PSX emulator under amiga os 3.9 witch PPC- FPSE and with game PAYBACK, but Vipeout2097 don't support native psxport.device, this interface can only emulation pad CD32 (lowlevel.library).
BULI is offline  
Old 20 December 2022, 17:07   #12
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
That's interesting, thanks for testing. According to this review it should support it:
https://amigareviews.leveluphost.com/wipeout2.htm
I'll have a peek at the executable later to see if there's any trace of it.

Edit: Indeed, there's no psxport.device anywhere in the game's executable, nice catch!

Last edited by BSzili; 20 December 2022 at 17:46.
BSzili is offline  
Old 21 December 2022, 08:53   #13
BULI
Registered User
 
Join Date: Dec 2017
Location: Rzeszów
Posts: 404
Quote:
Originally Posted by BSzili View Post
That's interesting, thanks for testing. According to this review it should support it:
https://amigareviews.leveluphost.com/wipeout2.htm
I'll have a peek at the executable later to see if there's any trace of it.

Edit: Indeed, there's no psxport.device anywhere in the game's executable, nice catch!

Do you have just like me, that on Right Analog in the PSX PAD directions works in reverse?
When I push DOWN I get move UP, when I push UP I get move DOWN in games like Payback (for move forvard I must push DWON Right Analog, should be UP, in FPSE games a have the same (directions works in reverse on RIGHT ANALOG, other things works great).
BULI is offline  
Old 22 December 2022, 09:30   #14
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
Hmm, I don't remember having this issue in any of my build ports. Have you tried the test program from the user archive if that works OK?
BSzili is offline  
Old 13 January 2023, 11:17   #15
BULI
Registered User
 
Join Date: Dec 2017
Location: Rzeszów
Posts: 404
Quote:
Originally Posted by BSzili View Post
Hmm, I don't remember having this issue in any of my build ports. Have you tried the test program from the user archive if that works OK?

OK. I was wrong, becouse FPSE (old PSX emulator version for WOS AMIGA) don't support Analogs.
One of my controllers from PS2 have analogs working in Digital Mode, and I had problem only with this one controller.
Every think is all right.
Multitap works GREAT with Payback (4 controlers PS2 in the same time)
BULI is offline  
Old 13 January 2023, 20:23   #16
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
That makes sense, so it was the 3rd party controller's built in Analog to Digital emulation misbehaving. Payback supports up to 4 controllers? It's probably the only PSX Port compatible title that does.
BSzili is offline  
Old 02 September 2023, 10:46   #17
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
Added Dark Forces to the list of supported games.
BSzili is offline  
Old 12 September 2023, 21:46   #18
BULI
Registered User
 
Join Date: Dec 2017
Location: Rzeszów
Posts: 404
Quote:
Originally Posted by BSzili View Post
Added Dark Forces to the list of supported games.
Great
BULI is offline  
Old 30 October 2023, 23:17   #19
Angus
Amiga Games Database
 
Angus's Avatar
 
Join Date: Jun 2006
Location: South West England
Posts: 1,240
Quote:
Originally Posted by BSzili View Post
Finally built myself one, it was relatively easy even with my modest soldering skills. The components didn't cost much either.

I tried it with PSXPortTest and the Quake port linked above, and they both worked great, all the buttons, analog sticks, etc. I can't wait to add PSXPort support to JFBuild.
This is outside my comfort zone, but if nobody is selling them, I'd like to have a go. I had a quick look but couldn't see any Playstation controller connectors, any idea where I would source the parts?
Angus is offline  
Old 31 October 2023, 08:21   #20
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
I bought a bunch of cheap PSX extension cables from AliExpress and removed the male connector:
https://www.aliexpress.com/item/4000...48271eddlFM6UF
Ideally you want the cable to be as short as possible because of the power loss, but I found that this length still works OK.
BSzili is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pinball dreams (source code released?) Miggy2TheMax Coders. General 22 16 October 2023 23:24
X-Copy source code released! mr.vince News 59 21 May 2021 03:45
DPaint 1 source code released Jope News 18 27 July 2015 02:37
Solid Gold source released phx News 32 02 February 2014 19:45
WinUAEX Final? version released (with source) killergorilla Retrogaming General Discussion 20 05 February 2008 16:32

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:07.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11530 seconds with 16 queries