Schachcomputer.info Community

Zurück   Schachcomputer.info Community > Computerschach / Computer Chess: > Mess Emu & andere Emulationen / Mess Emu and other Emulations


Antwort
 
Themen-Optionen Ansicht

  #6351  
Alt Gestern, 17:55
Mark 1 Mark 1 ist offline
Mephisto Wundermaschine
 
Registriert seit: 27.09.2006
Beiträge: 475
Abgegebene Danke: 741
Erhielt 307 Danke für 166 Beiträge
Aktivitäten Langlebigkeit
3/20 18/20
Heute Beiträge
0/3 ssssss475
AW: Mess Emulator für diverse Schachcomputer ist fertig!

Hallo Franz..

über die ganzen Jahre habe ich an dir gesehen , dass du extrem Motiviert bist.
Da ziehe ich meinen Hut

Vielen , Vielen Dank ...


Gruß
Mark 1
Mit Zitat antworten
  #6352  
Alt Gestern, 18:49
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.714
Abgegebene Danke: 500
Erhielt 6.185 Danke für 1.431 Beiträge
Aktivitäten Langlebigkeit
11/20 15/20
Heute Beiträge
1/3 sssss2714
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von hap Beitrag anzeigen
Use clear_value to cancel the override. It will return to whatever the value was before it was changed with set_value.
Great, works perfectly - many thanks!
Zitieren:
Before set_value, do a read() on 0x18 and set the starting value to that, so the value after a rotation is unchanged after clear_value.
This 'DATA' dial seems to be a bit more complicated - my first trials were not successful.
For read() it's not allowed to add a field(0x18), so I've tried it this way(?):
io = (ioport.ports[":IN.0"]:read())&0x18
But a following command
ioport.ports[":IN.0"]:field(0x18):set_value(io)
changes the 'MENU dial again!?

What I'd like to do is to switch to "P-P on" mode, and later back to "P-C on" again - the first is done by Down-Right-Right-Right-Up.
Could you please tell me the exact command sequence for this task?
__________________
Meine Webseite: https://fhub.jimdofree.com/
Mit Zitat antworten
  #6353  
Alt Gestern, 19:13
hap hap ist offline
Resurrection
 
Registriert seit: 27.07.2019
Beiträge: 556
Abgegebene Danke: 200
Erhielt 1.948 Danke für 371 Beiträge
Aktivitäten Langlebigkeit
7/20 5/20
Heute Beiträge
0/3 ssssss556
Re: Mess Emulator für diverse Schachcomputer ist fertig!

void analog_field::set_value(s32 value) for analog_field 0x18 should not be able to affect analog field 0x07 (the mode dial). If it does, maybe a bug in MAME? Or a mistake in your script?

I don't know the exact steps, I haven't tried it.
Mit Zitat antworten
  #6354  
Alt Gestern, 19:29
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.714
Abgegebene Danke: 500
Erhielt 6.185 Danke für 1.431 Beiträge
Aktivitäten Langlebigkeit
11/20 15/20
Heute Beiträge
1/3 sssss2714
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von hap Beitrag anzeigen
void analog_field::set_value(s32 value) for analog_field 0x18 should not be able to affect analog field 0x07 (the mode dial). If it does, maybe a bug in MAME? Or a mistake in your script?
Well, it's rather my wrong script.

I've tried it with these steps:
Code:
	local io
	ioport.ports[":IN.0"]:field(0x07):set_value(1) -- Options
	emu.wait(0.5)
	io = (ioport.ports[":IN.0"]:read())&0x18
	emu.wait(0.5)
	ioport.ports[":IN.0"]:field(0x18):set_value(io)
	emu.wait(0.5)
	ioport.ports[":IN.0"]:field(0x18):set_value(0)
	emu.wait(0.5)
	ioport.ports[":IN.0"]:field(0x18):set_value(1)
	emu.wait(0.5)
	ioport.ports[":IN.0"]:field(0x18):set_value(3)
	emu.wait(0.5)
	ioport.ports[":IN.0"]:field(0x18):clear_value()
	emu.wait(0.5)
	ioport.ports[":IN.0"]:field(0x07):clear_value() -- Ready
but the data dial didn't change at all, only the menu dial changes with each of these commands.
__________________
Meine Webseite: https://fhub.jimdofree.com/
Mit Zitat antworten
  #6355  
Alt Gestern, 20:08
hap hap ist offline
Resurrection
 
Registriert seit: 27.07.2019
Beiträge: 556
Abgegebene Danke: 200
Erhielt 1.948 Danke für 371 Beiträge
Aktivitäten Langlebigkeit
7/20 5/20
Heute Beiträge
0/3 ssssss556
Re: Mess Emulator für diverse Schachcomputer ist fertig!

io = ((ioport.ports[":IN.0"]:read())&0x18) >> 3
or maybe / 8 if LUA can't do shifts

Then
if io == 0:
do sequence: 0, 1, 3, 2, 0

or if io == 1:
do sequence: 1, 3, 2, 0, 1

and so on

Also, in case the user has put it into the Options menu already, start the menu dial with ready, then go to options.

Geändert von hap (Gestern um 20:19 Uhr) Grund: woops
Mit Zitat antworten
Folgender Benutzer sagt Danke zu hap für den nützlichen Beitrag:
fhub (Gestern)
  #6356  
Alt Gestern, 20:37
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.714
Abgegebene Danke: 500
Erhielt 6.185 Danke für 1.431 Beiträge
Aktivitäten Langlebigkeit
11/20 15/20
Heute Beiträge
1/3 sssss2714
AW: Mess Emulator für diverse Schachcomputer ist fertig!

Well, no matter what values I set for field(0x18) - the data dial doesn't change at all.
Could it be that this data dial is a digital port (instead of analog)? IIRC I've seen in ioport.cpp that this set_value() only works for analog ports!?

But no problem, I don't want to annoy you (and me) any longer, so I give up now.
I only needed to change the data dial for using the Edit-Mode (Player-Player) - a function that would be useful but not absolutely necessary.
More important was your first hint about clear_value() to reactivate the cursor keys again!

Thanks for your help,
Franz
__________________
Meine Webseite: https://fhub.jimdofree.com/
Mit Zitat antworten
  #6357  
Alt Gestern, 22:14
hap hap ist offline
Resurrection
 
Registriert seit: 27.07.2019
Beiträge: 556
Abgegebene Danke: 200
Erhielt 1.948 Danke für 371 Beiträge
Aktivitäten Langlebigkeit
7/20 5/20
Heute Beiträge
0/3 ssssss556
Re: Mess Emulator für diverse Schachcomputer ist fertig!

I didn't try it, but maybe the value needs to be shifted.
so not 1,2,3, but 0x08,0x10,0x18
Mit Zitat antworten
Folgender Benutzer sagt Danke zu hap für den nützlichen Beitrag:
fhub (Gestern)
  #6358  
Alt Gestern, 22:21
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.714
Abgegebene Danke: 500
Erhielt 6.185 Danke für 1.431 Beiträge
Aktivitäten Langlebigkeit
11/20 15/20
Heute Beiträge
1/3 sssss2714
AW: Mess Emulator für diverse Schachcomputer ist fertig!

Hi,

dank hap's Hilfe konnte ich nun auch das Problem mit den (nach bestimmten Funktionen) nicht mehr reagierenden Cursortasten beheben.

Außerdem habe ich nun doch noch eine Methode gefunden, um den Edit-Modus durch direkte Änderung eines Bytes im RAM ein- und wieder auszuschalten (wobei das Ausschalten sich ziemlich kompliziert gestaltet hat).

Kurz gesagt: jetzt geht also beim Saitek Blitz im Prinzip alles, was auch bei den anderen Engines funktioniert, auch der Edit-Modus - nur der Setup-Modus fehlt, aber der ginge nur, wenn man auch die Cursortasten für das DATA-Einstellrad per Plugin steuern könnte, was aber eben nicht funktioniert.

Also einfach das Blitz-Plugin hier im Anhang nochmal herunterladen - die Einträge in die WinBoard- und Arena-Konfigurationen kommen dann mit der nächsten Version.

Grüße,
Franz
Angehängte Dateien
Dateityp: zip Blitz_Plugin.zip (1,1 KB, 6x aufgerufen)
__________________
Meine Webseite: https://fhub.jimdofree.com/

Geändert von fhub (Gestern um 23:19 Uhr)
Mit Zitat antworten
Folgende 4 Benutzer sagen Danke zu fhub für den nützlichen Beitrag:
Mapi (Heute), Robert (Heute), Tibono (Heute), Wandersleben (Gestern)
  #6359  
Alt Gestern, 22:42
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.714
Abgegebene Danke: 500
Erhielt 6.185 Danke für 1.431 Beiträge
Aktivitäten Langlebigkeit
11/20 15/20
Heute Beiträge
1/3 sssss2714
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von hap Beitrag anzeigen
I didn't try it, but maybe the value needs to be shifted.
so not 1,2,3, but 0x08,0x10,0x18
I've already tried this before with <<3, but that didn't work,too.
Maybe it's in fact impossible to handle this data dial with any usual ioport commands.

But it's no problem, because I could now also switch to and from Player-Player mode by directly manipulating a byte in the RAM.
Of course it had been much easier if you had implemented these 2 dials with 'normal' buttons that could also be used with the mouse and be 'pressed' in the plugin. I've looked at the driver, but my MAME knowledge is not sufficient to make the necessary changes there.

Thanks anyway for your help!
__________________
Meine Webseite: https://fhub.jimdofree.com/
Mit Zitat antworten
Antwort


Forumregeln
Du bist nicht berechtigt, neue Themen zu erstellen.
Du bist nicht berechtigt, auf Beiträge zu antworten.
Du bist nicht berechtigt, Anhänge hochzuladen.
Du bist nicht berechtigt, deine Beiträge zu bearbeiten.

BB code ist An
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist An.

Gehe zu

Ä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


Alle Zeitangaben in WEZ +2. Es ist jetzt 08:01 Uhr.



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