Previous Thread
Next Thread
Print Thread
Page 13 of 18 1 2 11 12 13 14 15 17 18
#105456 - 05/06/16 07:30 PM Re: New Fidelity chess modules [Re: Haze]  
Joined: Jan 2009
Posts: 139
fhub Offline
Senior Member
fhub  Offline
Senior Member

Joined: Jan 2009
Posts: 139
Originally Posted By Haze
divide the offset by 2? might help.
4 if you're dealing with 32-bit.


OMG, such a lot of things to consider for MAME programming (especially for an amateur)!

But that was indeed the problem - everything working now. smile

Many thanks to all for your help,
Franz

#105457 - 05/06/16 07:56 PM Re: New Fidelity chess modules [Re: fhub]  
Joined: Jan 2009
Posts: 139
fhub Offline
Senior Member
fhub  Offline
Senior Member

Joined: Jan 2009
Posts: 139
Ooops, the next small problem:

This driver fidel68k.cpp contains 4 different models, feagv7/10/11 are 32bit, but feagv2 is 16bit, and so this new code with the UINT32 definition crashes when I run feagv2 (same error message: "required shared pointer 'nvram' not found"), i.e. for this module I would have to use UINT16.

Any ideas how to solve this?

#105458 - 05/06/16 08:34 PM Re: New Fidelity chess modules [Re: fhub]  
Joined: Mar 2001
Posts: 15,707
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,707
USA
Use separate shared pointers / code for the 16 and 32-bit systems. And make both of them optional_shared_ptr instead of required.

Last edited by R. Belmont; 05/06/16 08:35 PM.
#105459 - 05/06/16 08:57 PM Re: New Fidelity chess modules [Re: R. Belmont]  
Joined: Jan 2009
Posts: 139
fhub Offline
Senior Member
fhub  Offline
Senior Member

Joined: Jan 2009
Posts: 139
Originally Posted By R. Belmont
Use separate shared pointers / code for the 16 and 32-bit systems. And make both of them optional_shared_ptr instead of required.


Yep, that worked - you're really a MAME expert! smile

I hope this was the last issue, and I don't have to annoy you any longer. wink

Thanks once more,
Franz

#105467 - 05/08/16 12:20 AM Re: New Fidelity chess modules [Re: fhub]  
Joined: Jul 2007
Posts: 4,590
Anna Wu Offline
Very Senior Member
Anna Wu  Offline
Very Senior Member

Joined: Jul 2007
Posts: 4,590
@fhub

Just for info. smile
Lector wrote (http://www.schachcomputer.info/forum) he has some problems with the last version of Fidelity.exe on WinXP.
Your last release is working on my WinXP SP3 32-bit OS.
I get no errors like
Failed to initialize function pointer for DXInputGetState. Error: 1157
XInput_api_helper failed to initialize Error: 4294967295

#105468 - 05/08/16 01:07 PM Re: New Fidelity chess modules [Re: Anna Wu]  
Joined: Jan 2009
Posts: 139
fhub Offline
Senior Member
fhub  Offline
Senior Member

Joined: Jan 2009
Posts: 139
Originally Posted By Anna Wu
@fhub
Just for info. smile
Lector wrote (http://www.schachcomputer.info/forum) he has some problems with the last version of Fidelity.exe on WinXP.

Thanks Anna,
I've seen this posting and I have the same problem on my 2nd WinXP partition, too.

Here's now a new update, which solves this WinXP problem with a patch (just execute the included XP_patch.bat),
and also fixes a small bug when the Fidelity should start the game with White (clicking on RV).

Fidelity_upd2.zip:
http://www30.zippyshare.com/v/sYS72trF/file.html

Franz

#105495 - 05/10/16 01:25 PM Re: New Fidelity chess modules [Re: fhub]  
Joined: Jan 2009
Posts: 139
fhub Offline
Senior Member
fhub  Offline
Senior Member

Joined: Jan 2009
Posts: 139
Important question to 'hap':
(since you've written the Fidelity drivers, I guess you're the only one who could answer this)

Why the heck is the fidel68k.cpp driver so different (and does behave so differently) to the other 2 Fidelity drivers (and to all other about 40 old Mephisto modules I have)???

These 'feagv' machines are the only ones who write the board postition into their config file, no other chess machines do that - e.g. following lines in 'feagv10.cfg':
Code:
<input>
    <port tag=":IN.0" type="KEYPAD" mask="1" defvalue="0" value="1" />
    .....
</input>


And this fidel68k driver is the only one which uses PORT_TOGGLE in the input ports - again no other chess machine contains this PORT_TOGGLE.

When I remove this PORT_TOGGLE, then the port values are not stored in the config file anymore (as described above), but then a click on a board square does not toggle the LED status anymore - again a completely different behaviour than the other 2 Fidelity drivers (and all other chess machines).

Because of his different behaviour of the 'feagv' machines I'm not able to successfully implement the 'save & load state' feature, no matter what I do (and I've made already many trials), whereas for all other chess modules it's working perfectly.

So how can I change this unusual behaviour of the 'feagv' modules, so that they work like all other ones???

Franz

#105496 - 05/10/16 01:54 PM Re: New Fidelity chess modules [Re: fhub]  
Joined: Mar 2002
Posts: 845
hap Offline
Senior Member
hap  Offline
Senior Member

Joined: Mar 2002
Posts: 845
Remove PORT_TOGGLE then? This is the only emulated Fidelity board with magnet sensors. PORT_TOGGLE makes the sensors act as switches, I added that to make it playable (as blind chess instead of not playable at all).

When we get game pieces added with a weight under them to make the sensor active whenever there's a piece on it, PORT_TOGGLE will be removed. The current solution is a workaround.

#105497 - 05/10/16 02:00 PM Re: New Fidelity chess modules [Re: hap]  
Joined: Jan 2009
Posts: 139
fhub Offline
Senior Member
fhub  Offline
Senior Member

Joined: Jan 2009
Posts: 139
Originally Posted By hap
Remove PORT_TOGGLE then?

Well, I've already tried this, but as I said: clicking on the squares doesn't switch the status anymore (at least not permanently).
Quote:

When we get game pieces added with a weight under them to make the sensor active whenever there's a piece on it, ...

And how could this be done?
If it's not too difficult, then I would certainly try it ...

#105503 - 05/10/16 06:00 PM Re: New Fidelity chess modules [Re: fhub]  
Joined: Mar 2002
Posts: 845
hap Offline
Senior Member
hap  Offline
Senior Member

Joined: Mar 2002
Posts: 845
The place to start is the lua scripts crazyc was working on.

Page 13 of 18 1 2 11 12 13 14 15 17 18

Who's Online Now
3 registered members (Reznor007, Heihachi_73, 1 invisible), 15 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,411
Posts108,903
Members4,757
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.030s Queries: 15 (0.010s) Memory: 5.0313 MB (Peak: 5.2581 MB) Zlib enabled. Server Time: 2017-09-20 21:56:10 UTC