Martin0037 Posted March 15, 2018 Author Posted March 15, 2018 I’ve just thought of something and not sure if this is a concern or not.... when a game is running, but in demo mode and not coined up. Does mame ignor the inputs for example the steering, apart from the coin input? reason for thinking this is- if mame was to remember the centre point no matter how many times the wheel or mouse input was applied in either direction..... when a game is loaded, for example outrun, but idle ie not coined up just in demo mode, if someone started to spin the wheel endlessly to the right say (kids do this quite a lot) ....then a few mins later someone actually walks up and puts a credit on to play, would the steering be so far off centre that they would have to stand there and spin the wheel to the left how ever many turns the kid just did to the right Just to get the steering back to centre? or does mame simply ignor this until a credit is applied?
Martin0037 Posted March 15, 2018 Author Posted March 15, 2018 Yes I think it would be a relative control as it uses a mouse x input. It would also need to have raw input as my cab (when it’s finished) will have 3 steering wheels, also no nag as it won’t have any joysticks to cancel the “left and right to continue” notice obviously this hack doesn’t need to apply to games that use 360 wheels such as super sprint as you spin the wheels countless times in each direction when playing.
phulshof Posted March 15, 2018 Posted March 15, 2018 So, if I understand correctly, in MAME 0.195 we have 2 types of wheels:1. Absolute analogue controlled wheels, which work fine (can anyone confirm this?).2. Relative steering wheels, which act as a single axis mouse, which need this fix.Is that correct?
Martin0037 Posted March 16, 2018 Author Posted March 16, 2018 Yes. The absolute analogue controls I would have thought wouldn’t be a problem in any version of mame as they would be a joystick axis or 270 steering wheel that uses a potentiometer. So they have a return to centre and only travel so far then stop Its the relative controls that need the fix
Martin0037 Posted March 18, 2018 Author Posted March 18, 2018 Just had a play with mame 0.195 and messed about with the dead zone and saturation values. Still has the centre wandering problem, as in - if you oversteer on outrun past the edge of steering value, when you turn the other direction the car straightens up immediately rather than having to steer the same value the other way to find centre point... this makes the steering wheel off centre
phulshof Posted March 18, 2018 Posted March 18, 2018 5 minutes ago, Martin0037 said: Just had a play with mame 0.195 and messed about with the dead zone and saturation values. Still has the centre wandering problem, as in - if you oversteer on outrun past the edge of steering value, when you turn the other direction the car straightens up immediately rather than having to steer the same value the other way to find centre point... this makes the steering wheel off centre Ok, attempt #1: http://www.retrofe.nl/Download/Temp/mame64_oversteer.exe The option to use is -oversteer, so e.g. mame64_oversteer.exe -oversteer outrun Let me know how that works so I can improve on it. If it works really well I'll discuss it with the MAME development team to see if they will accept the change.
Martin0037 Posted March 18, 2018 Author Posted March 18, 2018 do i just double click and run like regular mame? or do i turn the oversteer on somewhere?
Martin0037 Posted March 18, 2018 Author Posted March 18, 2018 sorry.... you meant run in a command promt right? if so, i tried running it first as normal, no effect... then with the mame64_oversteer.exe -oversteer outrun from a command prompt and yes the oversteering is corrected!! The car does wander as the steering is wobbly but the oversteer is working Basically i did a huge hard right crash into the trees.. then when the car starts again in the middle of the road you have to hard left the same value to get the car to steer straight again.
Martin0037 Posted March 18, 2018 Author Posted March 18, 2018 You can test this with a mouse also... Basically put a mark or some tape on your desk as a centre steering point. Put the mouse on the mark and start the game as this resets the steering to centre. Then move the mouse quite a way left or right to oversteer and you should have to move the mouse back to the mark on the desk to get the car running centre again. You’ll see that without this fix, if you start mame normally without the oversteer option, if you move off the centre mark on the desk quite a way as above, you won’t get any where near it when you try and straighten up with the steering again, resulting in a 360 optical steering wheel for example now being way off centre.
phulshof Posted March 18, 2018 Posted March 18, 2018 Here's attempt #2: http://www.retrofe.nl/Download/Temp/mame64_oversteer_v2.exe Perhaps this will improve the wobbly behavior a bit.
Martin0037 Posted March 18, 2018 Author Posted March 18, 2018 yes thats sorted the wobbly steering... only thing ive noticed is the steering doesnt wake up straight away. What I mean is normally in outrun when you start, the car can be steered just after the flag goes up... on this the steering doesnt seem to wake up until youve moved either left or right quite a bit, by this time the steering is then off center. However it does definitely remember where the center is no matter how far you oversteer, so its nearly there
Martin0037 Posted March 18, 2018 Author Posted March 18, 2018 ok, ive just tested it against the 0.148 geecab hack, and that does exactly the same. Steering doesnt wake up until you quite a way down the road.... not sure whats causing this, as it only does it with the hack versions, doesnt do it otherwise
phulshof Posted March 18, 2018 Posted March 18, 2018 I'll give it some thought. I should be able to figure this one out later this week. Since my fix is very similar to the 0.148 hack (but cleaner), it's logical that it functions the same. From what I remember, the function is called from two different locations; I'll see if I can figure out which one is responsible for the start-up problems.
Martin0037 Posted March 18, 2018 Author Posted March 18, 2018 Awesome. It’s definatley almost there! Thanks again for your help. Very much apriciated.
phulshof Posted March 18, 2018 Posted March 18, 2018 yes thats sorted the wobbly steering... only thing ive noticed is the steering doesnt wake up straight away. What I mean is normally in outrun when you start, the car can be steered just after the flag goes up... on this the steering doesnt seem to wake up until youve moved either left or right quite a bit, by this time the steering is then off center. However it does definitely remember where the center is no matter how far you oversteer, so its nearly thereWhen this happens, do you go straight or left or right until you start moving quite a bit?Sounds to me like it’s getting some kind of start value that gets stored in the oversteer until it is corrected by steering in the other direction.
Martin0037 Posted March 19, 2018 Author Posted March 19, 2018 Yes the car just goes in a straight line for quite a while unless you move steering quite a lot in either direction then it wakes up, but if It wakes while your turning then the steering is off
phulshof Posted March 19, 2018 Posted March 19, 2018 Yes the car just goes in a straight line for quite a while unless you move steering quite a lot in either direction then it wakes up, but if It wakes while your turning then the steering is offOk, and without the fix? Can you immediately turn off the road?
Martin0037 Posted March 19, 2018 Author Posted March 19, 2018 Yes. Without the fix, pretty much as soon as the flag goes up and you start moving you can steer ok. With the fix, you seem to be quite a way down the road before steering comes in
phulshof Posted March 22, 2018 Posted March 22, 2018 On 3/19/2018 at 10:45 AM, Martin0037 said: Yes. Without the fix, pretty much as soon as the flag goes up and you start moving you can steer ok. With the fix, you seem to be quite a way down the road before steering comes in I cannot really reproduce your problem with the mouse. With the fix I can just as quickly hit the trees on the left as without the fix. It does appear like the game starts out by centering the steering wheel (since the road is straight at that point), and with the fix this means that the oversteer might accumulate if you continue to twist the wheel to the right. I'm not quite sure how to fix that, since it's not clear to me from what time to what time the game does this. The actual handling of the analog output is handled by each individual game, so not easy to fix on a general level.
Martin0037 Posted March 22, 2018 Author Posted March 22, 2018 Ok no probs. I’m wondering then if it’s maybe something I’m doing wrong or just how I’d got it set up as since your fix does exactly the same as the 0.148 hack and nothing is mentioned about it in the thread for that, must be something I could tweak within the game. I’ve actually read about something to do with joystick settings for driving games in the thread below so could be that. I could try it on other games as the 0.148 hack worked brill for every other driving game I’d try it with... Driving game info thread.... something on here about games with 270 wheels setting the joystick deadzone to 0.5? http://forum.arcadecontrols.com/index.php/topic,105961.0.html
Martin0037 Posted March 24, 2018 Author Posted March 24, 2018 How do I permanently turn the fix on so I can try it with other games and use it in hyperspin?
phulshof Posted March 24, 2018 Posted March 24, 2018 How do I permanently turn the fix on so I can try it with other games and use it in hyperspin? Just putoversteer 1in your mame.ini file.Sent from my SM-G950F using Tapatalk
Martin0037 Posted March 24, 2018 Author Posted March 24, 2018 ? thanks for all your help brother ill have a play see if I can tweak it and try all the other games.
Martin0037 Posted March 29, 2018 Author Posted March 29, 2018 Just an idea... on a different note, could the shifter toggle be altered at all? currently it’s a toggle for Hi / Lo and is just 1 button input... I know the toggle can turned on or off within the each games ini file, but that then makes it Low gear by default and then when the button is held down, it changes to high Good if you’ve got an OutRun style shifter that latches into position but I use a sequential shifter that returns to centre. Bit awkward as sometimes if your not careful it goes out of sink and up on the shifter ends up as high any idea if it could be changed for 2 inputs? One input for high, one for low?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.