Previous Thread
Next Thread
Print Thread
#122002 02/21/23 10:28 PM
Joined: Feb 2004
Posts: 2,461
Likes: 160
Very Senior Member
OP Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,461
Likes: 160
MAME 0.252

After almost two months, we’re ready to release MAME 0.252, the first MAME release of 2023! As promised, there are some big updates, and some of them may require you to make a few adjustments to your MAME setups. In particular, the modules MAME uses to handle input and output (e.g. video, sound and controllers) have been cleaned up, fixing lots of bugs and resource leaks.

First of all, the BGFX video module has had a serious overhaul. Numerous issues affecting artwork rendering have been fixed, and toggling full-screen mode no longer crashes. MAME now saves many BGFX video settings to your CFG files for each emulated system.

Game controller handling has also been overhauled. The downside is that you may need to reconfigure inputs for MAME. The upside is that things should work better out-of-the-box, with better default input assignments for more controllers:
  • For Windows users, more XInput controllers are fully supported, including guitars, the DJ Hero turntable, and the Rock Band keyboard.
  • For people using SDL builds, like our lovely macOS and Linux users, there’s a brand new joystick input module using the SDL game controller API. This gives consistent assignments for popular gamepads, and allows you to supply your own button and axis assignment schemes if the defaults don’t suit you. If want the old behaviour, it’s still available: just set the joystickprovider setting to sdljoy in your mame.ini file.
  • For everyone, it should be easier to navigate MAME’s UI using a game controller, and MAME should choose better default game input assignments for more gamepads.


Of course, we haven’t stopped working on emulation. Newly supported systems include the NABU PC (a Canadian 8-bit home computer and cable network terminal), the I-Star Chess King (a Taiwanese hand-held chess computer of dubious quality), Computer Othello (one of Nintendo’s earliest video games), YoYo Spell (a prototype of the arcade game Little Robin), the very rare English language version of SegaSonic Cosmo Fighter (dumped from the unit previously operated at Sega World Sydney), and Saturn: Space Fighter 3D (a Space Invaders variant from Data East).

The MSX updates haven’t stopped: this release includes support for MSX-DOS2 and RAM expansion cartridges. The Hyper Neo Geo 64 has had some welcome fixes for both 2D and 3D graphics, and there should be more coming in the next release. At the other end of the spectrum, Apple II video has seen a number of improvements, and somewhere in between, S3 ViRGE reached a point where 256-colour mode works in Windows 98.

That’s all we have time for here, but you can read about the whole two months’ worth of changes in the whatsnew.txt file, or download the source code and 64-bit Windows binary packages from the download page.

Read the rest of this entry »

4 members like this: robcfg, Golden Child, MrBogi, R. Belmont
Vas Crabb #122005 02/22/23 12:06 AM
Joined: Sep 2000
Posts: 238
W
Senior Member
Offline
Senior Member
W
Joined: Sep 2000
Posts: 238
Can't compile on macOS 13.2.1 on my Intel iMac from 2017.

[bgfx] Error 2

I posted details on the non-Windows forum.


=will=
Vas Crabb #122012 02/22/23 04:23 PM
Joined: Feb 2014
Posts: 927
Likes: 75
G
Senior Member
Offline
Senior Member
G
Joined: Feb 2014
Posts: 927
Likes: 75
I thought I'd fire up the 0.252 nabupc with the nabu.ca internet adapter and use this command line but it didn't work until I went into UI/Machine Configuration and set the null_modem to 111900 baud.

./mame nabupc -kbd nabu_hle -hcca null_modem -bitb socket.127.0.0.1:5816

Is there a way to set the null modem rates on the command line?


Just thought I'd mention it for those who want to try the nabupc.

Thanks Brijohn for the awesome mame nabu driver!

Vas Crabb #122013 02/22/23 04:51 PM
Joined: Feb 2004
Posts: 2,461
Likes: 160
Very Senior Member
OP Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,461
Likes: 160
You can set I/O port defaults for it in the driver by attaching them to the slot option.

Vas Crabb #122014 02/22/23 07:16 PM
Joined: Feb 2014
Posts: 927
Likes: 75
G
Senior Member
Offline
Senior Member
G
Joined: Feb 2014
Posts: 927
Likes: 75
so, something like this added to nabupc.cpp: (cribbing from src/mame/acorn/z88.cpp)

Code
static DEVICE_INPUT_DEFAULTS_START( hcca_null_modem_defaults )
        DEVICE_INPUT_DEFAULTS( "RS232_TXBAUD", 0xff, RS232_BAUD_111900 )
        DEVICE_INPUT_DEFAULTS( "RS232_RXBAUD", 0xff, RS232_BAUD_111900 )
        DEVICE_INPUT_DEFAULTS( "RS232_DATABITS", 0xff, RS232_DATABITS_8 )
        DEVICE_INPUT_DEFAULTS( "RS232_PARITY", 0xff, RS232_PARITY_NONE )
        DEVICE_INPUT_DEFAULTS( "RS232_STOPBITS", 0xff, RS232_STOPBITS_1 )
        DEVICE_INPUT_DEFAULTS( "FLOW_CONTROL", 0x07, 0x00 ) // Flow Control: None
DEVICE_INPUT_DEFAULTS_END


        rs232_port_device &hcca(RS232_PORT(config, "hcca", hcca_devices, "pty"));
        hcca.set_option_device_input_defaults("null_modem", DEVICE_INPUT_DEFAULTS_NAME(hcca_null_modem_defaults));  // defaults for null_modem
        hcca.rxd_handler().set(m_hccauart, FUNC(ay31015_device::write_si));


Vas Crabb #122015 02/22/23 07:45 PM
Joined: Feb 2004
Posts: 2,461
Likes: 160
Very Senior Member
OP Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,461
Likes: 160
Yeah, you can attach something like that to the null_modem and terminal options.

Vas Crabb #122016 02/22/23 08:30 PM
Joined: Feb 2004
Posts: 2,461
Likes: 160
Very Senior Member
OP Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,461
Likes: 160
If someone could help this guy, I’d appreciate it: https://www.reddit.com/r/emulation/comments/118h27s/mame_0252/j9lamvx/

The error suggests MAME is trying to new[] a zero-length array somewhere. I have no idea how that would happen. I haven’t tested on Win7 specifically, but I can’t think of anything I changed that should be affected by that.


Link Copied to Clipboard
Who's Online Now
4 members (box, Pernod, 2 invisible), 22 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,171
Posts120,123
Members5,039
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com