|
|
|
|||||||||||
|
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
If I try to load it directly (skip the softwarelist) then I get the same crash. It tries to get parameters, but there aren't any if you load it directly.
mame.exe ggm -cart file.bin Caught unhandled St11logic_error exception: basic_string::_M_construct null not valid I fixed that crash. Zitieren:
You added a CPU frequency parameter, right? Maybe you forgot to add it to the new capa set? So, MAME tries to fetch the "mhz" string, but will crash if it's null.
And it crashes also for all other modules, e.g. the overclocked Steinitz modules which do have such a "mhz" feature. |
|
|||||||||||
|
Re: Mess Emulator für diverse Schachcomputer ist fertig!
It needs to be after "if (image.loaded_through_softlist())".
But if that is the cause of your crash, it means you're not loading through the softwarelist and can't get the "ram" and "overlay" parameters. |
|
|||||||||||
|
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
No, that didn't help either.
But now I've made some more tests, and I think I've found what could be the problem: Only if I comment out your following lines: Code:
// keypad overlay
std::string overlay(image.get_feature("overlay"));
m_overlay = std::stoul(overlay, nullptr, 0) & 0xf;
So there must be something wrong with any code for loading or initializing the overlays!? |
|
|||||||||||
|
Re: Mess Emulator für diverse Schachcomputer ist fertig!
Try with strtoul instead of std::string? Then it definitely shouldn't crash.
I'll put it in my next MAME commit, and that one will also include: ![]() Es ist Mephisto Junior. Danke Berger und Achim! |
| Folgende 8 Benutzer sagen Danke zu hap für den nützlichen Beitrag: | ||
achimp (16.05.2020), bataais (18.05.2020), berger (14.05.2020), Bryan Whitby (14.05.2020), Eastnor (31.05.2020), fhub (14.05.2020), Mythbuster (14.05.2020), Tibono (15.05.2020) | ||
|
|||||||||||
|
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
I think the problem is, that all these "features' in the softwarelist are just not set when loading the module from the menu 'Media'. The only idea to solve this problem may be to use your previous suggestion, i.e. to read these features only "if (image.loaded_through_softlist())", and else I would have to set these feature values directly in the driver, depending on the loaded module. But for this I would have to know which module has just been loaded, so is there any function in MAME to get the name of the loaded module (in DEVICE_IMAGE_LOAD_MEMBER(ggm_state::cartridge))? |
|
|||||||||||
|
Re: Mess Emulator für diverse Schachcomputer ist fertig!
These games need to be loaded through the softwarelist for the parameter settings to be applied.
It works fine in MAME, I don't know if there is a problem in MESSUI. eg. on MAME: mame.exe ggm sandy then after a few moves, do as the manual says and: press Rank, set switch to MEM. Then in the Tab menu, go to File Manager, and load a new module from the software list. Another way: simply exit MAME after step 1, and then: mame.exe ggm capa Followed by MEM switch to ON position. |
|
|||||||||||
|
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
Yep, it works when using the file manager from the Tab menu, but the usual way in MESSUI is to just load such modules from the 'Media' menu, so I would prefer this method.
So my question still remains: is there any command to get the name of the loaded module? Then I could set those feature values directly in the driver for each module. |
|
|||||||||||
|
Re: Mess Emulator für diverse Schachcomputer ist fertig!
image.basename()
I don't think it will work: capa is 2 separate roms, and rom mapping information is in the softwarelist. The media loader can only load single files. |
|
|||||||||||
|
Re: Mess Emulator für diverse Schachcomputer ist fertig!
Und jetzt Super System IV, wieder danke Berger & Achim.
![]() -- @Mythbuster does this one count? It uses the Brikett housing too :P https://www.schach-computer.info/wik...isto_Excalibur |
![]() |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Erstellt von | Forum | Antworten | Letzter Beitrag |
| Info: Mephisto Emulator für den Mac fertig | RolandLangfeld | Die ganze Welt der Schachcomputer / World of chess computers | 3 | 09.09.2007 22:56 |