English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.WinUAE (https://eab.abime.net/forumdisplay.php?f=5)
-   -   CD32 Cubo (https://eab.abime.net/showthread.php?t=28294)

F1ReB4LL 01 March 2007 13:39

Quote:

Originally Posted by gizmomelb
Hi Toni,

in the recent 0.112 release of MAME they added CD32 (arcade machine) support - I was wondering if you had any involvement with that or if you ever worked with the MAME/MESS guys at all?

Cubo CD32 is a regular CD32 hacked to handle the coin input. At least 8 games are known to exist on this h/w (6 of them are in MAME). You can boot the games into the attract mode in WinUAE as CD32 ones, but you won't be able to insert coin or enter the service mode, since they are unmapped.

Toni Wilen 01 March 2007 15:09

They are mapped, try pressing all CD32 buttons.. (FFW = Numpad - by default)

F1ReB4LL 01 March 2007 18:35

Nope, nothing. Are you sure they are mapped to the CD32 joypad buttons? According to http://ninjaw.ifrance.com/cd32/cubo/ , it has a custom controller card with the coin input and some additional dip switches.

Toni Wilen 01 March 2007 20:40

Two randomly chosen games (Harem Challenge and Laser Quiz) can be played without problems. FFW = insert coin here.

Don't know about possible service mode switches. (there is absolutely nothing Cubo specific in WinUAE, Cubo games just appeared to work so I didn't bother with it)

F1ReB4LL 01 March 2007 22:03

I have only Candy Puzzle, doesn't work there. Maybe, FFW is one of the service buttons, not the coin input itself.

emufan 02 January 2013 15:37

i found odeon twister 2. these dumps were done in mame's chd format. i can insert the chd image, but stalled on some cd32-menu-screen.
Toni: next to cubo "emulation", do you think there will be chd support, once in winuae?

Toni Wilen 02 January 2013 15:50

AFAIK there still isn't full source without license issues. I am not going to write one myself.

chdman.exe probably supports conversion to some supported format.

emufan 02 January 2013 15:59

codesearch revealed some related file:
chd related files from mame sourcetree
cannot say what it mean. does it fit somehow to winuae?
maybe chdman is the way to go. with chd support, we could use, whats already preserved.

Arbee 02 January 2013 16:43

Hi Toni,

All of the files involved in CHD are dual-licensed as plain MIT/no-credit BSD to enable usage by other emulators. If any files were missed, please let us know and we can correct the situation.

Thanks!
-RB

Arbee 02 January 2013 16:49

emufan,

That is not the main MAME code, that's a fork/port to the Nintendo Wii. Current MAME source is browsable at http://git.redump.net/mame/

Thanks,
-RB

emufan 02 January 2013 17:55

thank you for joining Mr. R. Belmont. :D
what i get from your posting here, it seems possible to have chd support in winuae. that is good news.
thanks to the mame team for all your work you have done :great
ps: i bookmark the correct source url now - i too fixed the link above.

Toni Wilen 02 January 2013 19:21

No wonder I never found anything, very well hidden in deep directory structure. (I did find chdman sources but it didn't look right)

I guess with some copy/pasting it can be done. I am not going to include anything else than low level CD toc/subchannel/read functions, I don't need any sector conversion or any other helper functions.

emufan 02 January 2013 19:37

Quote:

Originally Posted by Toni Wilen (Post 859146)
I don't need any sector conversion or any other helper functions.

just the possibility to insert and use a chd image , thats it. thank you. :great

Toni Wilen 03 January 2013 17:06

Quote:

Originally Posted by Arbee (Post 859112)
If any files were missed, please let us know and we can correct the situation.

First problem: LzmaDec_Allocate_MAME() in chdcodec.c. Does this need some special Lzma SDK? (and why?)

ADDED: It is also quite impossible to disable compression support without big modifications.

Arbee 03 January 2013 20:13

Hi Toni,

That function is simply to glue LZMA to MAME's internal memory manager, which tracks leaks and such. The actual compression is completely standard LZMA and you can use the stock LZMA SDK.

-RB

Toni Wilen 03 January 2013 21:11

Quote:

Originally Posted by Arbee (Post 859425)
That function is simply to glue LZMA to MAME's internal memory manager, which tracks leaks and such. The actual compression is completely standard LZMA and you can use the stock LZMA SDK.

I don't think so. Check the function yourself in lib/lib7z/LzmaDec.c, there is also interesting comment.

Anyway, I got zlib compressed chd working already. (no audio tracks or subchannel support yet but soon)

EDIT: audio tracks work too (only zlib tested, don't have other test images)

EDIT2: zlib, lzma, flac tested and confirmed working (with LzmaDec_Allocate_MAME added to LzmaDec.c). Subchannels should work but not tested because chdman does not seem to accept .ccd and all my CD+G test images are .ccd.

AnnaWu 04 January 2013 10:15

Quote:

Originally Posted by Toni Wilen (Post 859433)
I don't think so. Check the function yourself in lib/lib7z/LzmaDec.c, there is also interesting comment.

Anyway, I got zlib compressed chd working already. (no audio tracks or subchannel support yet but soon)

EDIT: audio tracks work too (only zlib tested, don't have other test images)

EDIT2: zlib, lzma, flac tested and confirmed working (with LzmaDec_Allocate_MAME added to LzmaDec.c). Subchannels should work but not tested because chdman does not seem to accept .ccd and all my CD+G test images are .ccd.

Do you have a test build?

Toni Wilen 04 January 2013 12:29

http://www.winuae.net/files/b/winuae.zip hopefully works..

AnnaWu 04 January 2013 13:45

2 Attachment(s)
Quote:

Originally Posted by Toni Wilen (Post 859549)

Nice job, Toni. : )

My first test was the CD32 version of Pinball Fantasies and it works.

Quote:

28-001 [0 000=000]: 1: 0 00:02:00 DATA 4 0 101621376
28-001 [0 000=000]: - C:\Emulator\Amiga\Games\CD32\Pinball Fantasies.chd
28-001 [0 000=000]: 2: 2208 00:31:33 CDA 0 2208 101621376
28-001 [0 000=000]: - C:\Emulator\Amiga\Games\CD32\Pinball Fantasies.chd
28-001 [0 000=000]: 3: 20133 04:30:33 CDA 0 20136 101621376
28-001 [0 000=000]: - C:\Emulator\Amiga\Games\CD32\Pinball Fantasies.chd
Code:

FILE "Pinball Fantasies.bin" BINARY
  TRACK 01 MODE1/2352
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    PREGAP 00:02:00
    INDEX 01 00:29:33
  TRACK 03 AUDIO
    INDEX 00 04:26:33
    INDEX 01 04:28:33

Code:

11:37:23.063: CreateCD: starting process
11:37:23.083: CreateCD: process started: PID = 264
11:37:23.163: CreateCD: Compressing, 0.0% complete... (ratio=100.0%)
11:37:26.868: CreateCD: Compressing, 1.8% complete... (ratio=100.0%)
11:37:28.371: CreateCD: Compressing, 1.8% complete... (ratio=100.0%)
11:37:31.876: CreateCD: Compressing, 2.5% complete... (ratio=27.4%)
11:37:33.578: CreateCD: Compressing, 4.1% complete... (ratio=45.7%)
11:37:36.683: CreateCD: Compressing, 7.4% complete... (ratio=31.6%)
11:37:39.987: CreateCD: Compressing, 7.4% complete... (ratio=23.7%)
11:37:43.292: CreateCD: Compressing, 9.9% complete... (ratio=36.5%)
11:37:46.507: CreateCD: Compressing, 14.8% complete... (ratio=44.0%)
11:37:49.721: CreateCD: Compressing, 14.8% complete... (ratio=37.7%)
11:37:52.926: CreateCD: Compressing, 19.7% complete... (ratio=55.5%)
11:37:56.131: CreateCD: Compressing, 22.2% complete... (ratio=50.5%)
11:37:59.335: CreateCD: Compressing, 24.7% complete... (ratio=52.1%)
11:38:02.440: CreateCD: Compressing, 24.7% complete... (ratio=52.1%)
11:38:05.644: CreateCD: Compressing, 29.6% complete... (ratio=54.2%)
11:38:08.749: CreateCD: Compressing, 29.6% complete... (ratio=50.0%)
11:38:11.953: CreateCD: Compressing, 32.1% complete... (ratio=55.0%)
11:38:15.258: CreateCD: Compressing, 37.0% complete... (ratio=56.2%)
11:38:18.573: CreateCD: Compressing, 39.5% complete... (ratio=56.5%)
11:38:21.797: CreateCD: Compressing, 39.5% complete... (ratio=56.5%)
11:38:25.112: CreateCD: Compressing, 44.4% complete... (ratio=56.9%)
11:38:28.557: CreateCD: Compressing, 46.9% complete... (ratio=56.8%)
11:38:31.281: CreateCD: Compressing, 46.9% complete... (ratio=56.8%)
11:38:34.566: CreateCD: Compressing, 51.8% complete... (ratio=55.2%)
11:38:37.700: CreateCD: Compressing, 51.8% complete... (ratio=55.2%)
11:38:40.815: CreateCD: Compressing, 54.3% complete... (ratio=52.4%)
11:38:43.919: CreateCD: Compressing, 59.2% complete... (ratio=54.0%)
11:38:47.054: CreateCD: Compressing, 61.7% complete... (ratio=53.6%)
11:38:50.268: CreateCD: Compressing, 64.1% complete... (ratio=53.3%)
11:38:53.433: CreateCD: Compressing, 66.6% complete... (ratio=53.0%)
11:38:56.888: CreateCD: Compressing, 66.6% complete... (ratio=53.0%)
11:39:00.213: CreateCD: Compressing, 69.1% complete... (ratio=50.9%)
11:39:03.517: CreateCD: Compressing, 71.5% complete... (ratio=52.4%)
11:39:06.722: CreateCD: Compressing, 74.0% complete... (ratio=52.1%)
11:39:09.857: CreateCD: Compressing, 76.5% complete... (ratio=50.3%)
11:39:12.981: CreateCD: Compressing, 78.9% complete... (ratio=51.6%)
11:39:16.106: CreateCD: Compressing, 81.4% complete... (ratio=51.4%)
11:39:19.350: CreateCD: Compressing, 86.3% complete... (ratio=51.1%)
11:39:22.445: CreateCD: Compressing, 86.3% complete... (ratio=51.1%)
11:39:25.539: CreateCD: Compressing, 88.8% complete... (ratio=51.0%)
11:39:28.583: CreateCD: Compressing, 93.7% complete... (ratio=50.7%)
11:39:31.848: CreateCD: Compressing, 93.7% complete... (ratio=49.4%)
11:39:34.893: CreateCD: Compressing, 96.2% complete... (ratio=50.5%)
11:39:36.695: CreateCD: Compression complete ... final ratio = 50.1%
11:39:36.765: CreateCD: chdman - MAME Compressed Hunks of Data (CHD) manager 0.147u4 (Dec 25 2012)
11:39:36.765: CreateCD: trk 1: 2208 frames @ offset 0
11:39:36.775: CreateCD: trk 2: 17925 frames @ offset 5193216
11:39:36.775: CreateCD: trk 3: 21375 frames @ offset 47352816
11:39:36.775: CreateCD: Output CHD:  C:/Temp/xxx/Pinball Fantasies.chd
11:39:36.775: CreateCD: Input file:  C:/Emulator/Amiga/Games/CD32/Pinball Fantasies.cue
11:39:36.775: CreateCD: Input tracks: 3
11:39:36.775: CreateCD: Input length: 09:13:33
11:39:36.785: CreateCD: Compression:  cdlz (CD LZMA), cdzl (CD Deflate), cdfl (CD FLAC)
11:39:36.785: CreateCD: Logical size: 101,621,376
11:39:36.785: CreateCD: process finished: exitCode = 0, exitStatus = normal, execTime = 00:02:13.820


Arbee 04 January 2013 14:17

Great work, Toni!

Do you have documentation for .ccd? That is the main reason chdman doesn't accept it at this time.


All times are GMT +2. The time now is 04:43.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04815 seconds with 11 queries