Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: M2emulator and troubleshooter 2  (Read 2637 times)

0 Members and 1 Guest are viewing this topic.

supernono

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:December 11, 2024, 01:06:21 pm
  • I want to build my own arcade controls!
M2emulator and troubleshooter 2
« on: August 06, 2015, 05:24:34 pm »
hello

i try to run an ultimarc PacDrive with M2emulator,troubleshooter 2and mamehooker

i run :
M2emulator V1.0
troubleshooter V1.2
mame Hooker 5.1

all work fine for indy500 ,over rev and sgt24h  ,but i can't make it work for sega rally and sega touring car championship
 
troubleshooter 2 tell me a message box "error'13' Incompatible type" for these 2 roms

i'm looking the srally.ini stcc.ini and sgt24h.ini in the TS2\memcfg file  they seems very similar i dont understand why sgt24h work and srallyc don't

i'm looking the &H559CA4 adress with "cheat engine 6.4" and i have an alternate 0/32 for srallyc and nothing for stcc

for stcc it seems it is not the good adress

on a second time i try to use Sailorsat lua script for daytona
 
i'm writing this lua code :
 
Code: [Select]
require("model2"); -- Import model2 machine globals


function Init()
  Patch_LampOutputs();

end


function Patch_LampOutputs()
-- reroute 0x01C0001E to 0x00500824
for offset = 0x00000000, 0x0003FFFF, 4 do
if Romset_ReadDWord(0, offset) == 0x01C0001E then
Romset_PatchDWord(0, offset, 0x00500824);
local opcode = offset - 1;
if Romset_ReadByte(0, opcode) == 0x80 then
Romset_PatchByte(0, opcode, 0x90) -- replace LDOB with LD
end
if Romset_ReadByte(0, opcode) == 0x82 then
Romset_PatchByte(0, opcode, 0x92) -- replace STOB with ST
end
end
end
end

function PostDraw()

STVRLR = (I960_ReadByte(0x00500824))    -- Reads VRView from VR View in M2EMU RAM
Video_DrawText(20,10,STVRLR,0xFFFFFF);


 if STVRLR == 1   then Video_DrawText(20,60,"COIN1",0xFFFFFF)
elseif STVRLR == 4   then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 12  then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 20  then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 36  then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 68  then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 132 then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 140 then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 148 then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 164 then Video_DrawText(20,40,"START",0xFFFFFF)
elseif STVRLR == 196 then Video_DrawText(20,40,"START",0xFFFFFF)
end

    if STVRLR == 8   then Video_DrawText(20,60,"VR1",0xFF0000)
elseif STVRLR == 12  then Video_DrawText(20,60,"VR1",0xFF0000)
elseif STVRLR == 136 then Video_DrawText(20,60,"VR1",0xFF0000)
elseif STVRLR == 140 then Video_DrawText(20,60,"VR1",0xFF0000)
end

    if STVRLR == 16  then Video_DrawText(20,60,"VR2",0x0000FF)
elseif STVRLR == 20  then Video_DrawText(20,60,"VR2",0x0000FF)
elseif STVRLR == 144 then Video_DrawText(20,60,"VR2",0x0000FF)
elseif STVRLR == 148 then Video_DrawText(20,60,"VR2",0x0000FF)
end

    if STVRLR == 32  then Video_DrawText(20,60,"VR3",0xFFFF00)
elseif STVRLR == 36  then Video_DrawText(20,60,"VR3",0xFFFF00)
elseif STVRLR == 160 then Video_DrawText(20,60,"VR3",0xFFFF00)
elseif STVRLR == 164 then Video_DrawText(20,60,"VR3",0xFFFF00)
end

    if STVRLR == 64  then Video_DrawText(20,60,"VR4",0x00FF00)
elseif STVRLR == 68  then Video_DrawText(20,60,"VR4",0x00FF00)
elseif STVRLR == 192 then Video_DrawText(20,60,"VR4",0x00FF00)
elseif STVRLR == 196 then Video_DrawText(20,60,"VR4",0x00FF00)
end


    if STVRLR == 128 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 132 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 136 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 140 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 144 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 148 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 160 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 164 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 192 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
elseif STVRLR == 196 then Video_DrawText(20,80,"LEADER",0xFFFFFF)
end

end

with this code i can see "START"  "VR1"  "VR2"  "VR3"  "VR4" and "LEADER"  blinking in M2emulator screen but i dont understand how i can use it with troubleshooter 2  and how writing  the "daytona.ini" file for the TS2\memcfg file

Somebody can he help me ?

supernono

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:December 11, 2024, 01:06:21 pm
  • I want to build my own arcade controls!
Re: M2emulator and troubleshooter 2
« Reply #1 on: August 09, 2015, 12:38:08 pm »
hello

some new

after many hour playing with troubleshooter2 ,it work fine with indy500,overrev ,sgt24h and srallyc

only stcc don't work

i rewrite the ***.ini in TS2\memcfg file

example for srallyc  for M2emulator V1.0:
Code: [Select]
[Info]
Name=Sega Rally Championship (Rev B)
WinCaption=Sega Rally Championship (Rev B)
WinClass=MYWIN
ExeName=
ExePath=
LaunchGame=0
Enable=1
ExitMode=1

[Outputs]
Enable=1
EmuName=Model2
NumberOutputs=3

Output1PTR=||&H159CA4
Output1Type=integer
Output1BitMask=4
Output1Name=P1_Start_Lamp

Output2PTR=||&H159CA4
Output2Type=integer
Output2BitMask=32
Output2Name=VR_Lamp

Output3PTR=||&H159CA4
Output3Type=integer
Output3BitMask=128
Output3Name=LEADER_Lamp

changing &H159CA4 adress by &H174CF0 adress allow TS2 Work with M2emulator V1.1a (only for driving games)

for stcc i'm looking the adress with "CHEAT ENGINE6.4" the values change in test mode for START ,VIEW1 , VIEW2 and REV MAX but not in game ,i don't understand why

for daytona no more news yet ,but i work again

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 11:06:50 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: M2emulator and troubleshooter 2
« Reply #2 on: August 09, 2015, 01:32:00 pm »
You need to check the driving and racing forums.  Sailorsat and the gang have explained the Daytona issues and provided a fix.  I'm sorry but I haven't worked on ts2 in a few years. 

supernono

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:December 11, 2024, 01:06:21 pm
  • I want to build my own arcade controls!
Re: M2emulator and troubleshooter 2
« Reply #3 on: August 09, 2015, 01:41:19 pm »
thank you for your answer Howard_casto

i'm going to read the driving and racing forums

my problem is just i don't understand how to use my pacdrive with Sailorsat's patching lua script