Emuforums.com

Go Back   Emuforums.com > PS2 Emulation > PS2 Plugin Questions & Troubleshooting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old February 1st, 2008   #1 (permalink)
GiGaHeRz
ⒷⓄⓄⒷⓈ (emu/plugin author)
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 761
Gigaherz's cdvd plugin

Latest Stable Version: (none yet!)
Latest Beta Version: (none yet!)
Latest Experimental Version: Public Alpha 0.6! [LATEST!]

Rant:
Heya people,

A few days ago I started to code a CDVD plugin using IOCtl raw reading as the access method.

The main reasons I started this plugin were:
1. To have the ability to start the emulator without a disk in the drive, and to be able to swap discs anytime.
2. To be able to keep some kind of "cache" or maybe a file with "hints" about what is the game gonna read next.

At the moment, the plugin will start without a disc, and will detect when the disc is removed or inserted, but sometimes it fails to detect the disc correctly and it will report the disc as being illegal (making the bios show that annoying red screen).

I have attached two versions of the plugin: v0.1 and v0.1b2. The code is all the same for both, with the exception b2 has pauses after detecting a new disc. These pauses might help in avoiding discs being detected as illegal, but make the detection slower.

In any case, it's a really young plugin, just a few days old, so enjoy it as much as you can, and tell me of any problems you find on it!

Note: If anyone is interested, the code can be downloaded from the SPU2ghz SVN server in SourceForge.net .
Attached Files
File Type: rar cdvdGigaherz-v0.4r2.rar (134.9 KB, 282 views)
File Type: rar cdvdGigaherz-v0.4r3.rar (42.5 KB, 52 views)
File Type: rar cdvdGigaherz-v0.4r4.rar (135.1 KB, 105 views)
File Type: rar cdvdGigaherz-v0.5r2.rar (42.5 KB, 237 views)
File Type: rar cdvdGigaherz-v0.6.rar (42.5 KB, 1311 views)
__________________
The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.

Last edited by GiGaHeRz; February 6th, 2008 at 16:24.
GiGaHeRz is offline   Reply With Quote
Old February 1st, 2008   #2 (permalink)
petit français
Registered User
 
petit français's Avatar
 
Join Date: Feb 2007
Location: France
Posts: 61
Thnaks you !

But i have a problem... Nothing appear with Stella Deus and other original ps2 game
__________________
Intel core 2 duo e4400 @ 2950 GHZ
ATI Radeon HD3850 Gigabyte P35C DS3R 2 GB RAM DDR2 PC26400 Kingston

petit français is offline   Reply With Quote
Old February 1st, 2008   #3 (permalink)
GiGaHeRz
ⒷⓄⓄⒷⓈ (emu/plugin author)
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 761
Is it only those 2 games or all your games?
Are the games on CD or DVD?
What brand is your drive?

I can't help you or fix anything without enough info!
__________________
The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.
GiGaHeRz is offline   Reply With Quote
Old February 1st, 2008   #4 (permalink)
petit français
Registered User
 
petit français's Avatar
 
Join Date: Feb 2007
Location: France
Posts: 61
Sorry

All of my game (dragon quest 8, Final Fantasy 12, Stella Deus, Atelier Iris : Eternal Mana 2) don't work. It block here :

Quote:
Starting GS thread
Using Frame Skipping: Limit
Framelimiter rate updated (cpuExecuteBios): 50 fps
* PCSX2 *: ExecuteBios
NTSC
Framelimiter rate updated (UpdateVSyncRate): 50 fps
NTSC
Framelimiter rate updated (UpdateVSyncRate): 50 fps
# Initialize memory (rev:3.63, ctm:393Mhz, cpuclk:295Mhz detected)
# Total accessable memory size: 32 MB (B:2:8:0) (363:2:7c30)
# TLB spad=0 kernel=1:12 default=13:30 extended=31:38
# Initialize Start.
NTSC
Framelimiter rate updated (UpdateVSyncRate): 50 fps
NTSC
Framelimiter rate updated (UpdateVSyncRate): 50 fps
# 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 Jul 4 2001 16:03:45
CPUID=2e20, BoardID=0, ROMGEN=2001-1004, 32M

# Restart Without Memory Clear.
NTSC
Framelimiter rate updated (UpdateVSyncRate): 50 fps
NTSC
Framelimiter rate updated (UpdateVSyncRate): 50 fps
# 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.
EE Recompiler data reset
* PCSX2 *: ExecuteBios Complete
PCSX2 v0.9.5
ExecuteBios Complete
Games on dvd and brand of my drive : LG GSA H42L
__________________
Intel core 2 duo e4400 @ 2950 GHZ
ATI Radeon HD3850 Gigabyte P35C DS3R 2 GB RAM DDR2 PC26400 Kingston

petit français is offline   Reply With Quote
Old February 1st, 2008   #5 (permalink)
Squall-Leonhart
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,918
have you updated to the latest Firmware?
Squall-Leonhart is online now   Reply With Quote
Old February 1st, 2008   #6 (permalink)
Air-Gamer
BEYOND All Limits
 
Air-Gamer's Avatar
 
Join Date: Jan 2008
Location: UK
Posts: 101
1 good thing is it makes the bios faster

1 bad thing is it freezes the emu when i put a disc in

any advice on this?
Air-Gamer is offline   Reply With Quote
Old February 1st, 2008   #7 (permalink)
Squall-Leonhart
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,918
Quote:
GIF reset
NTSC
* CDVD: Opening drive '\\.\E:'...
* CDVD: IO thread started...
* CDVD: Disk Type: No Disc
creating zerogs
ZeroGS: *********
GS WARNING: Need at least 2 simultaneous render targets. Some zbuffer effects will look wro
*********
ZeroGS: *********
GS ERROR: Need separate alpha blending! Some effects will look bad
*********
ZeroGS: ******
GS WARNING: Need independent write masks! Some z buffer effects might look bad
*********
ZeroGS: ******
GS WARNING: Need MRT Post Pixel Shader Blending for some effects
*********
ZeroGS: ******
GS ERROR: Device doesn't support alpha blending for 16bit floating point targets.
Quality will reduce.
*********
ZeroGS: Creating effects
ZeroGS: Creating extra effects
ZeroGS: GS Using pixel shaders ps_2_a
ZeroGS: Set game options: 0x00400000
init zerogs
SYSTEM.CNF not found
loadElfFile:
ZeroGS: Set game options: 0x00400000
NTSC
NTSC
# Initialize memory (rev:3.63, ctm:393Mhz, cpuclk:295Mhz detected)
Write to 32bit count reg counter 5
Counter 5 count write 0
# Total accessable memory size: 32 MB (B:2:8:0) (363:2:7c30)
# TLB spad=0 kernel=1:12 default=13:30 extended=31:38
# Initialize Start.
NTSC
NTSC
# 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 Feb 7 2002 16:41:20
CPUID=2e20, BoardID=0, ROMGEN=2002-0207, 32M

# Restart Without Memory Clear.
NTSC
NTSC
# 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.
NTSC
NTSC
# 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.
Write to 32bit count reg counter 5
Counter 5 count write 0
Write to 32bit count reg counter 5
Counter 5 count write 0
MFC0 Breakpoint debug Registers code = 0
MFC0 PCCR = 0 PCR0 = 0 PCR1 = 0 IMM= 0
MTC0 PCCR = 0 PCR0 = 0 PCR1 = 0 IMM= 0
MTC0 Breakpoint debug Registers code = 0
MTC0 Breakpoint debug Registers code = 0
MTC0 PCCR = 0 PCR0 = 0 PCR1 = 0 IMM= 0
NTSC
NTSC
* CDVD Disk Open: 1 tracks (1 to 1):
* * Track 1: Data (Mode 2) (2441807 sectors)
* CDVD: Disk Type: PS2 DVD
cdvdReadKey(0, 0, 75)
got further then others
Squall-Leonhart is online now   Reply With Quote
Old February 1st, 2008   #8 (permalink)
El_Diablos
iLLiDaN sTormRaGe
 
El_Diablos's Avatar
 
Join Date: Jun 2006
Location: Ukraine, Kharkiv
Posts: 369
why do we need new cdvd plugin ? O_O
I thought CDVDbin 0.65 works very well...
__________________
Intel Core Duo E6750 @ 3.0 Ghz
DDR2 1033 Mhz 2x1 Gb
GeForce 8600GT 256Mb 128 bit
Samsung 500Gb
El_Diablos is offline   Reply With Quote
Old February 1st, 2008   #9 (permalink)
Godwin
Watching your every move
 
Godwin's Avatar
 
Join Date: Aug 2005
Location: Capitalist Nation
Posts: 840
Giga is trying to crack disc swapping.
__________________
昨日にさよなら。

Intel E8400 @ 4.1Ghz // P35-DS3R // Transcend aXeram (D9 Microns) DDR2-1026 5-5-5-15 // MSI 8800GT OC
Godwin is offline   Reply With Quote
Old February 1st, 2008   #10 (permalink)
GiGaHeRz
ⒷⓄⓄⒷⓈ (emu/plugin author)
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 761
Quote:
Originally Posted by El_Diablos View Post
why do we need new cdvd plugin ? O_O
I thought CDVDbin 0.65 works very well...
CDVDbin works with images, mine works with real discs. And peops will not support swapping discs and other features I want to implement later.
__________________
The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.
GiGaHeRz is offline   Reply With Quote
Old February 2nd, 2008   #11 (permalink)
Harlay
Registered User
 
Join Date: May 2007
Location: Shanghai
Posts: 22
can i use image with the plugin?
all of my game blocked just like the 4#.
Harlay is offline   Reply With Quote
Old February 2nd, 2008   #12 (permalink)
petit français
Registered User
 
petit français's Avatar
 
Join Date: Feb 2007
Location: France
Posts: 61
Quote:
Originally Posted by Squall-Leonhart View Post
have you updated to the latest Firmware?
Yes, the firmware is up-to-date (SL01).

EDIT : Don't work with daemon tool
__________________
Intel core 2 duo e4400 @ 2950 GHZ
ATI Radeon HD3850 Gigabyte P35C DS3R 2 GB RAM DDR2 PC26400 Kingston

petit français is offline   Reply With Quote
Old February 2nd, 2008   #13 (permalink)
rama2
Registered User
 
Join Date: Sep 2007
Location: Germany
Posts: 230
Works fine here, using deamon tools. No complaints from the emulator, all games i tried run.
Good work, Gigaherz
rama2 is offline   Reply With Quote
Old February 2nd, 2008   #14 (permalink)
GiGaHeRz
ⒷⓄⓄⒷⓈ (emu/plugin author)
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 761
Oh well... later today I will implement a diagnostic test (to be accessed in the test button in the config) to check what exactly fails on your pcs.
__________________
The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.
GiGaHeRz is offline   Reply With Quote
Old February 2nd, 2008   #15 (permalink)
cyclonmaster
EmuAddict-_-;;
 
cyclonmaster's Avatar
 
Join Date: Apr 2005
Location: Sarawak, Malaysia
Posts: 2,203
Very nice. Thanks. Start testing now
__________________
Windows XP SP2 | Monitor BenQ FP 91G+|AMD Athlon 64 3000+(9x239=2.145GHz) | Corsairs 512MB RAM 3-3-3-8 Dual Channel
Albatron 6600GT 128MB PCI-E | Albatron KXT890 ProII | WD SATA 120GB | SONY DVDRW DW-Q30A
cyclonmaster is offline   Reply With Quote
Old February 2nd, 2008   #16 (permalink)
Shiro_Yamada
Schoolboy-type guy
 
Shiro_Yamada's Avatar
 
Join Date: Jan 2008
Location: 日本
Posts: 21
Cool, i hope this new pluggin work fine enought to spend some hard disk space.
thanks!!
Shiro_Yamada is offline   Reply With Quote
Old February 2nd, 2008   #17 (permalink)
orusskich
Felix Leonhart
 
orusskich's Avatar
 
Join Date: Nov 2004
Location: Russia
Posts: 114
One question: Will the second game work if the bios is NTSC, the first game is NTSC but the second game I swap is a PAL?
__________________
| Athlon 4600+ x2 2.4 | GeForce 8600GT 256mb | 512x2Mb Kingston DDR400+256Mb DDR400 |
| Asus A8N-VM | Logitech Rumblepad 2 | Lite-On DVD-RW |
| Windows XP SP2 | Windows XP x64 | Windows Vista Ultimate 32 bit |

Åñëè ãäå-òî åñòü ÷òî-òî õàëÿâíîå, çíà÷èò òàì Ðóññêèå!
orusskich is offline   Reply With Quote
Old February 2nd, 2008   #18 (permalink)
TLIXX
<( '-')>
 
TLIXX's Avatar
 
Join Date: Nov 2005
Location: nom nom nom
Posts: 162
0.1b2 still crashes my action replay max. I'm looking forward to your diagnostic test
__________________
Who is General Failure and why is he trying to access my drive?

New Super Extreme Processor @ 1.86Ghz @ 2.49Ghz
Sparkle 9600GT (formerly known as 3dLabs Graphics Blaster Exxtreme PCI)
(Gecube ATI Radeon X1900XT failed me)
Ubuntu 7.10 / Windows Vista Ultimate x86 (but usually the latter one)
TLIXX is offline   Reply With Quote
Old February 2nd, 2008   #19 (permalink)
GiGaHeRz
ⒷⓄⓄⒷⓈ (emu/plugin author)
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 761
Uploaded v0.2 on the first post earlier. Just marking the thread changed.
__________________
The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.
GiGaHeRz is offline   Reply With Quote
Old February 2nd, 2008   #20 (permalink)
afx420
Registered User
 
Join Date: Jan 2007
Location: usa
Posts: 36
by diagnostic do you mean that test button? if so... http://rafb.net/p/a2ROR575.html it fails on step one for me with FFX-2 SLUS_206.72. pc stat: AMD x2 4400+ oc2.6ghz, 2gigs DDR2 667, ATI HD2400 pro, TSSTcorp SH-S182F latest SB02 firmware.
afx420 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On