Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Sega AI Computer reverse engineering thread

Reply to topic Goto page Previous  1, 2, 3, 4
Author Message
  • Joined: 13 Mar 2007
  • Posts: 51
  • Location: Portugal
Reply with quote
Post Posted: Mon Nov 06, 2023 8:43 pm
There has been some internal restructuring inside MAME. The updated code and driver can be found at: https://github.com/wilbertpol/mame/tree/segaai

For building I use the following command line:
make DEBUG=1 SYMBOLS=1 -j3 SUBTARGET=segaai SOURCES=src/mame/sega/segaai.cpp


And then the following command lines start the base system or with a card attached:
./segaaid -nodebug -window segaai
./segaaid -nodebug -window segaai -card alicewor

I am on a mac, so the './segaaid' bit may need to be just 'segaaid' for windows.

In the latest code I also made the soundbox optional so the above command lines start the driver without the soudbox. If you want the soundbox attached use:
./segaaid -nodebug -window segaai -exp soundbox
./segaaid -nodebug -window segaai -exp soundbox -card alicewor


I have attached the artwork to display the overlays. This needs to be unpacked in the artwork folder. So you get the .lay and .jpg files in the folder "artwork/segaai".
After this you can use:
./segaaid -nodebug -window segaai -card alicewor -view alicewor

And it will show the scanned overlay in the bottom half of the screen.

The alignment between the overlays and where the emulation thinks you have clicked is far from perfect due to MAME not having true touchpad emulation yet, but it's better than nothing. In fullscreen mode you cannot see the mouse pointer to click the overlays hence starting the emulation in windowed mode.

Cassette is sadly enough not working. MAME cannot handle flac files as input for cassette interfaces. The cassette subsystem also cannot handle multiple tracks.

All these issues are the reason why the driver is still marked as 'not working'.

A window binary built by github yesterday can be downloaded here: https://github.com/wilbertpol/mame/actions/runs/6776779362 (How long this will exist, I do not know)
artwork_segaai.zip (1.98 MB)
Sega AI artwork

  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8653
  • Location: Paris, France
Reply with quote
Post Posted: Fri Nov 17, 2023 1:41 pm
jdg has rebased code to latest and posted a public PR of the wip code:
https://github.com/mamedev/mame/pull/11747
  View user's profile Send private message Visit poster's website
  • Joined: 13 Mar 2007
  • Posts: 51
  • Location: Portugal
Reply with quote
Post Posted: Thu Nov 23, 2023 9:06 pm
With my last commit placing the extra files in the artwork is no longer needed. The 'old' segaai.lay file should even be removed/renamed.

The overlays should now be added to the zips with the software and when they are loaded through the software list the overlay will be loaded as well and displayed on screen.

This also makes the touchpad behave more like a real touchpad.
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8653
  • Location: Paris, France
Reply with quote
Post Posted: Mon Dec 04, 2023 12:18 pm
I managed to build and run latest. Thank you.
Trying to get better acquainted with the emulator, and I'm trying to see if there is a way to access the Prolog thing if that's only part of how the software were made but not accessible by the user.

Question: System resolution appears to be 256x212 but MAME boot screen shows it as 543x465 with screen doubled inside. Do you know if there is a way to take lossless 256x212 screenshots in MAME?
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8653
  • Location: Paris, France
Reply with quote
Post Posted: Wed Jan 31, 2024 3:54 pm
Everything was now made public, see hub:
http://www.smspower.org/SegaAI
  View user's profile Send private message Visit poster's website
Reply to topic Goto page Previous  1, 2, 3, 4



Back to the top of this page

Back to SMS Power!