Main > Driving & Racing Cabinets

Hacking Hydro Thunder..err Offroad Thunder (Updated)

<< < (17/33) > >>

Howard_Casto:
Ok disregard what I just typed in regards to the info.... this is so convoluted I'm confusing myself.  Long story short start and pause are mapped to joystick buttons 8 and 7 respectively.

*edit*  (Modified since I found more)

The address of "pcoffroad.exe+7A0549" holds the button data in two bytes.  Why 2 bytes when the data can fit in one and every game I've ever seen only uses one byte?  Because Midway.  ;) The analog stuff is in the byte before.

here is the mapping:


Analog:
x- = 4
x+ = 8
y- = 1
y+ = 2
z- = 16
z+ = 32

Digital:
up= 1
down= 2
left= 4
right= 8
button 1 = 128
button 2 = 256
button 3 = 64
button 4 = 512
button 5 = 2048
button 6 = 8192
button 7 = 1024
button 8 = 4096
button 9 = 16384
button 10 = 32768
As you can see it makes no logical sense what-so-ever.  Typically button 1 would be "1", two would be "2" and they'd go up by a power of 2 each time (button 3 is "4" button 4 is "8" ect).

But anyway that's what I've got to work on. 

The easiest way is probably to NOP the code that passes the data into that variable and set it myself. 

*edit*

I blocked the code that writes to these and sure enough I can control them.

Howard_Casto:
So blocking it blocks the inputs in the race as well.  Incidentally it's the same byte I have to write to when controlling the vr buttons.  I don't have to block anything on that though... I just write to the viewport byte the view I want, then send a "1"  to simulate the view button press. 

BadMouth:
Since this game uses Backspace for back, I thought I'd start with the oddball keys newer games never use.

The UP arrow reverses the track.

the END key opens the box to enter the secret code (haven't tried entering anything yet)
Entered a few random things and they worked.

While the secret code box is open:

HOME enters 1
UP Arrow enters 2
END enters 3

This basically means those are your view buttons while in the track and truck selection screens.

for the sake of clarity......



While in the track or truck selection menu:

HOME=red view button 1 (Slam Cam)
UP ARROW=orange view button 2 (Crash Cam)
END=yellow view button 3 (Chopper Cam)
While in a race, these do nothing and have been replaced with C=change view.



Default In-Game Controls (can be remapped):

Start = Enter
Pause = Esc
Steering = Left & Right arrows
Gas = Left ALT
Brake = Down Arrow
Nitro = Spacebar
Shift Up = Left Shift
Shift Down = Left CTRL
Change View = C

BadMouth:
Here is what I'm thinking:

Home, up arrow, & END aren't used in-race.  Pressing them has no effect and won't screw anything up.
So if you could use those keys to force the views while in game(instead of having a single change view button),
Then they would behave as expected in both the menu and the race.

Sorry if I missed how it worked on the original arcade, but I'd be fine with pressing the yellow view button (chopper cam) to enter the secret code
and pressing the orange view button (crash cam) to reverse the track.
Entering the secret codes would correspond to the correctly colored/numbered buttons on screen.

People without an H-shifter may prefer to keep the shift up/shift down method.

EDIT: from mame history.dat

--- Quote ---- TIPS AND TRICKS -


* Codes : Before picking a truck or a track, press the Yellow Button. This will bring up the Cheat Screen. Use the camera view buttons to enter the codes. NOTE : The Truck Codes can only be entered at the Truck Selection Screen.

Chieftan Truck : Red, Red, Red

Dust Devil Car : Red, Orange, Yellow

Hyena Truck : Yellow, Yellow, Yellow

Wild Car Truck : Orange, Orange, Orange

No Drones : Red, Orange, Red

No Nitros : Orange, Red, Orange

No Catch-Ups : Yellow, Red, Yellow

Cliffhanger Track : Yellow, Orange, Red


--- End quote ---

Sounds like the right button to enter the cheat code anyway...

Howard_Casto:
Well it would be 3 of 6 keys I didn't try when testing. 

I agree, vr3 makes more sense than start. 

I'm less worried about the view and more the other buttons, particularly start, pause, ok and cancel.  I'm going to have to play with it a little more and see if the game can tolerate simulated keypresses.  I mean for most of us we could just fire up the Logitech profiler or equivalent and map some buttons to the needed keys. 

I don't foresee having to mess with the arrows either.  I can't imagine a setup where the wheel isn't mapped to x AND there isn't a hat switch on the gamepad/wheel AND there aren't already buttons mapped to arrow keys somewhere. 

The shifter thing is going to be a non-issue.  I don't have to block anything... I can just write to the shift position.. so the original shifter and optional h-shifter buttons can co-exist. 

Thanks for the heads up.  I most likely won't have to block the menus now, which makes things a lot easier.   

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version