Schachcomputer.info Community

Schachcomputer.info Community (https://www.schachcomputer.info/forum/index.php)
-   Mess Emu & andere Emulationen / Mess Emu and other Emulations (https://www.schachcomputer.info/forum/forumdisplay.php?f=53)
-   -   MessEmu: Mess Emulator für diverse Schachcomputer ist fertig! (https://www.schachcomputer.info/forum/showthread.php?t=1448)

hap 14.05.2020 13:58

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.

fhub 14.05.2020 14:34

AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von hap (Beitrag 90580)
It needs to be after "if (image.loaded_through_softlist())".

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;

then everything is working fine (except that there's no overlay loaded now) and switching between the modules is working now (even if I let the other 2 features "ram" and "mhz" in).

So there must be something wrong with any code for loading or initializing the overlays!?

hap 14.05.2020 15:06

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:

https://i.imgur.com/9c2HzBX.jpg

Es ist Mephisto Junior.
Danke Berger und Achim!

fhub 14.05.2020 17:38

AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von hap (Beitrag 90583)
Try with strtoul instead of std::string? Then it definitely shouldn't crash.
I'll put it in my next MAME commit

Well, with your new driver it doesn't crash anymore, but nevertheless it's not working: the modules seem to be loaded but they are 'dead' - no display and no reaction to the keyboard.
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))?

hap 14.05.2020 17:47

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.

fhub 14.05.2020 17:58

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.

hap 14.05.2020 18:30

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.

Mythbuster 14.05.2020 20:15

AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von hap (Beitrag 90583)
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:

https://i.imgur.com/9c2HzBX.jpg

Es ist Mephisto Junior.
Danke Berger und Achim!

Thanks a lot! :top:

This is the last missing "Brikett" from Henne & Nitsche!

https://www.schachcomputer.info/foru...pictureid=3213

I love my "Brikett" collection ... they are weak but I love them nevertheless. ;)

Here are some of them: https://www.schachcomputer.info/foru...hp?albumid=244

Regards,
Sascha

hap 14.05.2020 20:15

Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Und jetzt Super System IV, wieder danke Berger & Achim.

https://i.imgur.com/rhs2MnI.jpg

--
@Mythbuster does this one count? It uses the Brikett housing too :P
https://www.schach-computer.info/wik...isto_Excalibur

berger 14.05.2020 20:42

Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
And more surprises are coming! I will be tomorrow Friday, and all weekend, working on the computers and cartridges that Achim has sent me.

Best,
Gerardo


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:46 Uhr.

Powered by vBulletin (Deutsch)
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
©Schachcomputer.info