Trainer definition for ColecoVision games

Page 2/2
1 |

By mandoju

Rookie (31)

mandoju's picture

05-04-2022, 11:57

Manuel wrote:

If you explain to me what this means...

Hi,
This is the content from a cheat file from Mame, .xml. I want to convert to _trainerdefs.tcl, like this...

create_trainer "A1 Spirit - The Way To Formula 1" {time 1} {
"Cheats: All Combis With Konami Carts" {dpoke 0xe1de 2}
"Cheats: Escon Cheat Active" {dpoke 0xe1fd 1}
"Cheats: Hyperoff Cheat Active" {dpoke 0xe1d6 1}
"Cheats: Maxpoint Cheat Active" {dpoke 0xe1df 1}
"Player 1 Settings: Player 1 First Position" {dpoke 0xe331 1}
"Player 1 Settings: Player 1 Full Fuel" {dpoke 0xe310 255}
"Player 1 Settings: Player 1 No Damage" {dpoke 0xe328 0}
"Player 2 Settings: Player 2 First Position" {dpoke 0xe3f1 1}
"Player 2 Settings: Player 2 Full Fuel" {dpoke 0xe3d0 255}
"Player 2 Settings: Player 2 No Damage" {dpoke 0xe3e8 0}
}

By mars2000you

Enlighted (6227)

mars2000you's picture

05-04-2022, 12:49

The only interesting part (for the conversion) is

coleco_cart:rom.mb@0D9B=C9
coleco_cart:rom.mb@0DA3=C9
coleco_cart:rom.mb@0E24=C9
coleco_cart:rom.mb@1419=00
coleco_cart:rom.mb@1421=C9
coleco_cart:rom.mb@1526=18
coleco_cart:rom.mb@1718=00
coleco_cart:rom.mb@174A=C9

We don't know why MAME 'wastes' its time with temporary values. If a cheat must only be temporary, you can enable it, then disable it after some time. I think openMSX format allows to specify this time. But again, we don't know what's the effect of this MAME cheat (invulnerability or something else??? .... the C9s let me think to cancellation of some routines) .... and it's required in the cheat description for openMSX.

By mandoju

Rookie (31)

mandoju's picture

05-04-2022, 15:43

I want to convert this cheats like that fo Montezumas Revenge, have a function "time".

temp0 =z80.mb@894C

z80.mb@894C=18

z80.mb@894C=temp0

Page 2/2
1 |