Another USBQemu plugin, this time in VB.net (Keyboard only)
#21
(05-29-2016, 10:02 PM)FlatOut Wrote: Yes, it's continuously sending the same status.

As far as I know both configs should be default, except for the keyboard controls I added for Lilypad. I'll check up on it.

@gh0stp1rate: You need to start PCSX2 and go to Config > Plugin/BIOS selector > Plugins tab and select the Keyboard Plugin in the USB dropdown menu and click Apply.

Did that, selected the keyboard plugin from the USB dropdown menu but still not working for me.
Reply

Sponsored links

#22
(05-29-2016, 10:16 PM)gh0stp1rate Wrote: Did that, selected the keyboard plugin from the USB dropdown menu but still not working for me.
Go to Config > USB > Plugin Settings, check if the Keyboard is set the Port 1, click the OK button and try again.
Reply
#23
(05-29-2016, 10:22 PM)FlatOut Wrote: Go to Config > USB > Plugin Settings, check if the Keyboard is set the Port 1, click the OK button and try again.

Yes, it's already set to Port 1, but still no luck.  Sad
Reply
#24
(05-29-2016, 10:30 PM)gh0stp1rate Wrote: Yes, it's already set to Port 1, but still no luck.  Sad

Even if you manage to get keyboard input to work with the iso's there is still no guaruntee that loaded cheats will work properly with every game because PCSX2 manages ram COMPLETELY differently from a ps2. You are better off using the pnach system and not going on the fools errand of trying to get the cheat iso's to work properly.

At best you will be lucky to get 5 tlb miss errors that freeze some games at worst you will just crash pcsx2.

Please stop trying. PCSX2 !== PS2. In fact it doesn't even emulate it properly or read the bios correctly (even after a decade of its existance).

The devs for pcsx2 don't want me or others bringing up subjects like this unless we are "contributing to the code". Which i'm sorry but i wont contribute to code when the devs obviously still don't want to change anything with pcsx2. The base of pcsx2 requires a massive rewrite and i would rather make my own accurate emulator then try and fix the current one that uses nothing but cheap hacks to make games work.

PCSX2 only exists to "make games work". It's not a real emulator and will never be a real emulator. So please stop trying to use software for a program that acts nothing like the real thing.

Use the pnach system or don't bother.
ASUS ROG G750JM
Intel i7-4700HQ CPU @2.40GHz (Overclock 3.7GHz)
Intel® HD Graphics 4600
NVIDIA GeForce GTX 860M
32.0GB RAM
Reply
#25
(05-29-2016, 10:30 PM)gh0stp1rate Wrote: Yes, it's already set to Port 1, but still no luck.  Sad

Are you using Ctrl V or typing the codes in manually?
Reply
#26
(05-29-2016, 10:38 PM)Ge-Force Wrote: Are you using Ctrl V or typing the codes in manually?

Wow, I can Ctrl+V to paste in the codes? I was just gonna type them all in manually, once I get your plugin to work for me. lol

(05-29-2016, 10:37 PM)Kamijou Touma Wrote: Even if you manage to get keyboard input to work with the iso's there is still no guaruntee that loaded cheats will work properly with every game because PCSX2 manages ram COMPLETELY differently from a ps2. You are better off using the pnach system and not going on the fools errand of trying to get the cheat iso's to work properly.

But the cheats that came with the ISO's for the games that I have already work flawlessly. I only have no more than 10 games which are the only one's I would want or had anyways.
Reply
#27
(05-29-2016, 10:40 PM)gh0stp1rate Wrote: Wow, I can Ctrl+V to paste in the codes? I was just gonna type them all in manually, once I get the your plugin to work for me. lol


But the cheats that came with the ISO's for the games that I have already work flawlessly. I only have no more than 10 games which are the only one's I would want or had anyways.

you can't, I was asking if you where already doing that and expecting it to work, only to see it not.

Where you able to use a keyboard on a real PS2 with those cheat discs?

Can you enable logging in the usb plugin settings, run the disc and attempt to use the keyboard, and post both emulog and USB_CLR files log files.
Reply
#28
(05-29-2016, 10:50 PM)Ge-Force Wrote: you can't, I was asking if you where already doing that and expecting it to work, only to see it not.

Where you able to use a keyboard on a real PS2 with those cheat discs?

Can you enable logging in the usb plugin settings, run the disc and attempt to use the keyboard, and post both emulog and USB_CLR files log files.

Yes, I was able to use a USB keyboard when I still had my PS2 console with these cheat discs. I actually had the one that was made and sold from the guys who created ARMAX lol.

emuLog:
Code:
PCSX2 1.4.0-20160105132032- compiled on Jan  5 2016
Savestate version: 0x9a0b0000

Host Machine Init:
Operating System =  Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit
Physical RAM     =  130995 MB
CPU name         =  Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
Vendor/Model     =  GenuineIntel (stepping 02)
CPU speed        =  3.634 ghz (16 logical threads)
x86PType         =  Standard OEM
x86Flags         =  bfebfbff 7ffefbbf
x86EFlags        =  2c100000

x86 Features Detected:
SSE2.. SSE3.. SSSE3.. SSE4.1.. SSE4.2.. AVX.. AVX2.. FMA

Reserving memory for recompilers...

Loading plugins...
Binding   GS: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\plugins\gsdx32-avx.dll 
Windows 6.1.7601 (Service Pack 1 1.0)
Binding  PAD: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\plugins\lilypad.dll 
Binding SPU2: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\plugins\spu2-x.dll 
Binding CDVD: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\plugins\cdvdGigaherz.dll 
Binding  USB: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\plugins\CLR_USB.dll 
Binding   FW: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\plugins\FWnull.dll 
Binding DEV9: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\plugins\DEV9null.dll 
Plugins loaded successfully.

(GameDB) 9693 games on record (loaded in 116ms)

Loading plugins...
Binding   GS: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Plugins\gsdx32-avx.dll 
Windows 6.1.7601 (Service Pack 1 1.0)
Binding  PAD: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Plugins\lilypad.dll 
Binding SPU2: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Plugins\spu2-x.dll 
Binding CDVD: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Plugins\cdvdGigaherz.dll 
Binding  USB: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Plugins\CLR_USB.dll 
Binding   FW: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Plugins\FWnull.dll 
Binding DEV9: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Plugins\DEV9null.dll 
Plugins loaded successfully.


Initializing plugins...
Init GS
Windows 6.1.7601 (Service Pack 1 1.0)
Init PAD
Init SPU2
Init CDVD
Init USB
Init FW
Init DEV9
Plugins initialized successfully.

HLE Notice: ELF does not have a path.

Opening plugins...
Opening GS
Opening PAD
Opening SPU2
Current Renderer: Direct3D11 (Hardware mode)
Opening CDVD
isoFile open ok: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\Games\CodeBreaker\CodeBreaker v10 (USA).iso
Image type  = CD
 * CDVD Disk Open: DVD, Single layer or unknown:
 * * Track 1: Data (Mode 1) (612048 sectors)
Opening USB
Opening FW
Opening DEV9
McdSlot 0 [File]: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\memcards\Mcd001.ps2
McdSlot 1 [File]: E:\Games\PCSX2 Sony PlayStation 2 Emulator v1.4.0\1.4.0\memcards\Mcd002.ps2
Plugins opened successfully.
EE/iR5900-32 Recompiler Reset
Bios Found: USA     v02.20(10/02/2006)  Console
BIOS rom1 module not found, skipping...
BIOS rom2 module not found, skipping...
BIOS erom module not found, skipping...
(UpdateVSyncRate) Mode Changed to NTSC.
(UpdateVSyncRate) FPS Limit Changed : 59.94 fps
# Initialize memory (rev:3.70, ctm:392Mhz, cpuclk:294Mhz detected)

PlayStation 2 ======== Hard reset boot
 ROMGEN=2006-0210, IOP info (CPUID=1f, CACH_CONFIG=14000200, 2MB, IOP mode)
 <20060210-142424,ROMconf,PS20220WC20060210.bin:11824>
# Total accessable memory size: 32 MB (B:2:8:0) (370:2:7c30)
# TLB spad=0 kernel=1:12 default=13:30 extended=31:38
# Initialize Start.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize User Memory ...
# Initialize Scratch Pad ...
# Initialize Done.

EE DECI2 Manager version 0.06 Apr  7 2005 21:09:14
  CPUID=2e20, BoardID=0, ROMGEN=2006-0210, 32M


IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
loadelf: fname rom0:OSDSYS secname all
loadelf version 3.30
Input ELF format filename = rom0:OSDSYS
0 00100000 00058a48 ......
Loaded, rom0:OSDSYS
start address 0x100008
gp address 00000000
# Restart Without Memory Clear.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize Scratch Pad ...
# Restart Without Memory Clear Done.
# Restart Without Memory Clear.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize Scratch Pad ...
# Restart Without Memory Clear Done.
Get Reboot Request From EE
ROM directory not found

PlayStation 2 ======== Update rebooting..
ROM directory not found

PlayStation 2 ======== Update reboot complete
cdvdman Init
rmreset start
rmreset end
clearspu: completed
Pad Driver for OSD (2000/12/05 18:05) 392, 128

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
read/write allocate memory 4000
open name rom0:OSDVER flag 1 data 4aa78
open fd = 2
open name rom0:ROMVER flag 1 data 4aa78
open fd = 2
open name rom0:XDEV9 flag 1 data 4aa78
open fd = 2
loadmodule: fname rom0:XDEV9 args 0 arg 
dev9: unknown dev9 hardware.
loadmodule: id 32, ret 1
loadmodule: fname rom0:XDEV9SERV args 0 arg 
loadmodule: id -200, ret 1
open name rom0:ROMVER flag 1 data 4aa78
open fd = 2
open name rom0:FONTM flag 1 data 4aa78
open fd = 2
open name rom0:FNTIMAGE flag 1 data 4aa78
open fd = 2
open name rom0:SNDIMAGE flag 1 data 4aa78
open fd = 2
open name rom0:TEXIMAGE flag 1 data 4aa78
open fd = 2
open name rom0:ICOIMAGE flag 1 data 4aa78
open fd = 2
open name rom0:TZLIST flag 1 data 4aa78
open fd = 2
_spu_rev_offsetaddr 1f9021
### addr = 1034255  size = 28640
_spu_rev_offsetaddr 1d9021
### addr = 968719  size = 28640
get val add 3c0 type 2 ret 1ff000
get val add 1ff000 type 2 ret 0
open name rom0:PS1ID flag 1 data 4aa78
open fd = 2
open name rom0:PS1VERA flag 1 data 4aa78
open fd = 2
open name rom1:DVDID flag 1 data 4aa78
open fd = -6
(SYSTEM.CNF) Detected PS2 Disc = cdrom0:\SLUS_203.44;1
(SYSTEM.CNF) Software version = 1.04
(SYSTEM.CNF) Disc region type = PAL/NTSC
ELF (cdrom0:\SLUS_203.44;1) Game CRC = 0x5207CCA3, EntryPoint = 0x01000008
(SYSTEM.CNF) Detected PS2 Disc = cdrom0:\SLUS_203.44;1
(SYSTEM.CNF) Software version = 1.04
(SYSTEM.CNF) Disc region type = PAL/NTSC
open name cdrom0:¥SYSTEM.CNF;1 flag 5 data 4aa78
open fd = 2
ExecutePs2GameDisk
open name cdrom0:¥SYSTEM.CNF;1 flag 5 data 4aa78
open fd = 2
# Restart.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize User Memory ...
# Initialize Scratch Pad ...
# Restart Done.
Get Reboot Request From EE
ROM directory not found

PlayStation 2 ======== Update rebooting..

PlayStation 2 ======== Update reboot complete
cdvdman Init

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
loadelf: fname rom0:PS2LOGO secname all
loadelf version 3.30
Input ELF format filename = rom0:PS2LOGO
0 01000000 000172c0 ..
Loaded, rom0:PS2LOGO
start address 0x1000008
gp address 00000000
# Restart Without Memory Clear.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize Scratch Pad ...
# Restart Without Memory Clear Done.
read/write allocate memory 4000
open name rom0:ROMVER flag 1 data 45d78
open fd = 2
loadmodule: fname rom0:OSDSND args 0 arg 
loadmodule: id 25, ret 0
open name cdrom0:¥SYSTEM.CNF;1 flag 5 data 45d78
open fd = 2
loadmodule: fname rom0:XPARAM args 12 arg SLUS_203.44
loadmodule: id 26, ret 1
_spu_rev_offsetaddr 1dfff1
### addr = 2097120  size = 32
_spu_rev_offsetaddr 1f9021
### addr = 1034255  size = 28640
# Restart.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize User Memory ...
# Initialize Scratch Pad ...
# Restart Done.
Get Reboot Request From EE
ROM directory not found

PlayStation 2 ======== Update rebooting..

PlayStation 2 ======== Update reboot complete
cdvdman Init

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
loadelf: fname cdrom0:¥SLUS_203.44;1 secname all
loadelf version 3.30
(SYSTEM.CNF) Detected PS2 Disc = cdrom0:\SLUS_203.44;1
(SYSTEM.CNF) Software version = 1.04
(SYSTEM.CNF) Disc region type = PAL/NTSC
Input ELF format filename = cdrom0:¥SLUS_203.44;1
0 01000000 0038363a .........................................................
Loaded, cdrom0:¥SLUS_203.44;1
start address 0x1000008
gp address 00000000
# Restart Without Memory Clear.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize Scratch Pad ...
# Restart Without Memory Clear Done.
(R5900) Re-executed ELF Entry point (ignored) [addr=0x01000008]
Get Reboot Request From EE

PlayStation 2 ======== Soft reboot

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
Get Reboot Request From EE

PlayStation 2 ======== Soft reboot

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
loadmodule: fname rom0:SIO2MAN args 0 arg 
loadmodule: id 25, ret 0
loadmodule: fname rom0:PADMAN args 0 arg 
Pad driver. (99/11/22)
loadmodule: id 26, ret 0
loadmodule: fname rom0:MCMAN args 0 arg 
loadmodule: id 27, ret 0
loadmodule: fname rom0:MCSERV args 0 arg 
loadmodule: id 28, ret 0
loadmodule: fname rom0:CDVDFSV args 0 arg 
loadmodule: id 29, ret 1
deldrv device name firesux 
adddrv device addr 70e00
loadmodule: fname firesux0:cmx.irx args 0 arg 
loadmodule: id 30, ret 0
loadmodule: fname ee0:008320C0_000052AC args 0 arg 
WARNING: SleepTread KE_CAN_NOT_WAIT
loadmodule: id 31, ret 0
loadmodule: fname ee:00867BC0_00001ECC args 0 arg 
WARNING: SleepTread KE_CAN_NOT_WAIT
loadmodule: id 32, ret 1
loadmodule: fname ee:00869AC0_000027AD args 0 arg 
WARNING: SleepTread KE_CAN_NOT_WAIT
loadmodule: id -200, ret 1
Closing plugins...
Closing DEV9
Closing FW
Closing USB
Closing CDVD
Closing SPU2
Closing PAD
Closing GS
Plugins closed successfully.
Shutting down plugins...
Plugins shutdown successfully.
(GameDB) Unloading...

USB_CLR
Code:
USB_CLR:PluginInterface Information: 2 : CLR USB Keyboard plugin version 0.7
USB_CLR:PluginInterface Information: 2 : Initializing CLR USB Keyboard
USB_CLR:USBPort Information: 3 : usb-ohci: Attached port 1
USB_CLR:USBPort Information: 3 : usb-ohci: Detached port 0
USB_CLR:PluginInterface Information: 2 : Opening CLR USB Keyboard
USB_CLR:USBInterface Information: 10 : USB:*SR: Setting ram
USB_CLR:USBPort Information: 3 : usb-ohci: Detached port 1
USB_CLR:USBPort Information: 3 : usb-ohci: Attached port 1
USB_CLR:USBPort Information: 3 : usb-ohci: Detached port 1
USB_CLR:USBPort Information: 3 : usb-ohci: Attached port 1
USB_CLR:PluginInterface Information: 2 : Closing CLR USB Keyboard
Reply
#29
I made a custom version of your plugin to prevent the spam on the log and simulate the Escape and F keys and noticed that if you're hotswitching two versions of the plugin it will crash with the following dialog:
Code:
Encounted Exception! : Object reference not set to an instance of an object.

  at CLRUSB.OHCI.OHCI_State.cpu_physical_memory_rw(UInt32 addr, Byte[] buffer, Int32 len, Boolean is_write)

  at CLRUSB.OHCI.OHCI_State.frame_boundary()

  at CLRUSB.CLR_USB.USBasync(UInt32 cycles)
Reply
#30
(05-30-2016, 12:40 AM)FlatOut Wrote: I made a custom version of your plugin to prevent the spam on the log and simulate the Escape and F keys and noticed that if you're hotswitching two versions of the plugin it will crash with the following dialog:
Code:
Encounted Exception! : Object reference not set to an instance of an object.

  at CLRUSB.OHCI.OHCI_State.cpu_physical_memory_rw(UInt32 addr, Byte[] buffer, Int32 len, Boolean is_write)

  at CLRUSB.OHCI.OHCI_State.frame_boundary()

  at CLRUSB.CLR_USB.USBasync(UInt32 cycles)

Switching between v6 and v7 modified or v7 and v7 modified?

The switch between v6 and v7 is also a switch between .net versions due to compatibility with wine.

Most likely the crash is because v6 is 4.5 and v7 is 4.0 (if your switching between those versions.)

(could be wrong though)
ASUS ROG G750JM
Intel i7-4700HQ CPU @2.40GHz (Overclock 3.7GHz)
Intel® HD Graphics 4600
NVIDIA GeForce GTX 860M
32.0GB RAM
Reply




Users browsing this thread: 1 Guest(s)