Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. Thank you for your support. Tom Speirs

Patreon

[RESOLVED] Attract mode failure


Les73gtx

Recommended Posts

So I am having a problem with attract mode starting up again after I play a table and exit back to PinballX. If I boot the system and walk away it will go into attract mode no problem and will continue to run in attract mode. Until I play a table and exit back to the front-end and then no attract mod no matter how long I leave it sit. 

 

 I have attached my log from a long day of running and my settings xml 

I can tell you when this started to happen, it was right after I did the DIY plunger for MJR found here http://www.vpforums.org/index.php?showtopic=28313&hl=

 

If I unplug the Freescale board it will have no trouble going back into attract mode no matter the tables I play and exit. I know that is the cause but I would like someone to look at the files and see exactly what is happening so I can let MJR know, and see if there is something he needs to do to fix it, or if there is something I need to adjust in PinballX settings. I suspect a keystroke is being registered but that doesn't make sense because it will go into attract mode before I play my first table of the day. The code MJR has written for the nudge on the freescale board does have a self zeroing feature that runs all the time and I suspect this is the cause ...

Thanks for your time.

PinballX.ini

log.txt

Link to comment
Share on other sites

I had the same problem and it was my nudge sensor making contact.  If PBX thinks(knows) there is a button pushed it will not restart attract mode.

My guess is that once you have played a table, the DIY plunger is maintaining a connection somewhere. Most likely at the "self zeroing feature" as you suspect.

Link to comment
Share on other sites

It is possible that there needs to be an adjustment in calibration. Are you using any software, such as Xpadder or x360ce? I use the latter and had to make adjustments in the dead zone settings until I got it right. 

Link to comment
Share on other sites

Yes RustyCardores that was my suspicion also but I was looking for a more "yes it seeing this keystroke xyz at these times" to help MJR fix the code in some way. @Draco1962 I am not using any of that software as the code is all contained in the Freescale board. The only calibration required is a built in tool that MJR created. No dead zone adjustments that can be manually made. Mabel it needs some and that would solve this issue .... thanks for the suggestions guys.

Sent from my SAMSUNG-SM-G870A using Tapatalk

Link to comment
Share on other sites

  • 2 weeks later...

would be nice to get some feedback as to what the logs say about why pinballX will not start attract mode after I play a game in VP. I obviously gave too much information and got no official help about the logs themselves. Thanks 

Link to comment
Share on other sites

Sorry but your files are not going to tell you what to tell MJR or be of any use other than showing that Attract Mode is not starting. There is an apparent input showing towards the end of the log.txt file:

16:51:14.8  5/3/2016:  C:\Program Files (x86)\Visual Pinball\VPinball992.exe /play -"C:\Program Files (x86)\Visual Pinball\Tables\Star Wars.vpt"
16:51:14.8  5/3/2016:  C:\PinballX\vpauto.exe 
16:51:20.1  5/3/2016:  Hidden Visual Pinball Editor Window
17:24:26.5  5/3/2016:  Exit System Control Pressed
17:24:34.0  5/3/2016:  Created DirectX BackGlass Window
17:24:34.0  5/3/2016:  Created DirectX DMD Window

I am assuming that is not from you but possibly your Freescale board. Again, the log isn't going to tell us much more than you already know. If you disconnect the Freescale board, all is right with the world so far as Attract mode is concerned. If the board is spitting out errant keypress signals to the system, there isn't anything that can be done from a PinballX perspective to right this for you.

  • Like 1
Link to comment
Share on other sites

Well that was a nice effort but unfortunately incorrect as the red you highlighted was the exit of the table Star Wars after 33 minutes of play.

I was under the impression that there is log that shows more detailed information than this one?

OK so let me see if I have this right .... both parties are pointing fingers and saying it must be the others fault. But since there is no logs saying anything is going on it really is not happening at all?

Cool thanks for you time.

Sent from my SAMSUNG-SM-G870A using Tapatalk

Link to comment
Share on other sites

You stated that the issue went away when you disconnected the board. It came back when you reconnected the board.

The log.txt file does not show that specific detail and there is no other way within PinballX to get more detail in the logging to give you the evidence you are seeking.

If the board is connecting via USB to your PC, have you tried connecting to a different USB port or header to see if the issue continues? IMO, you have identified the issue.

You can get basic details using USB View as documented here. I am not sure if there is an application that will capture and log inputs from USB devices on a system, at least in the public domain.

Link to comment
Share on other sites

Can't you use a key logging app to see if a key is being pressed? It seems quite simple to me, unplug the board and there's no interruption. Plug it in and it doesn't work any longer.

Since the mod you pointed out uses joystick strokes to work, I can almost personally guarantee that the stick isn't properly dead zoned, and PBX isn't going into standby because it's not seeing that stick as inactive.

"KL25Z has an on-board USB port that lets it act like a USB HID (human interface device), so with the proper USB configuration reports we can make it look to Windows like a joystick."

  • Like 1
Link to comment
Share on other sites

32 minutes ago, Adultery said:

Can't you use a key logging app to see if a key is being pressed? It seems quite simple to me, unplug the board and there's no interruption. Plug it in and it doesn't work any longer.

Since the mod you pointed out uses joystick strokes to work, I can almost personally guarantee that the stick isn't properly dead zoned, and PBX isn't going into standby because it's not seeing that stick as inactive.

"KL25Z has an on-board USB port that lets it act like a USB HID (human interface device), so with the proper USB configuration reports we can make it look to Windows like a joystick."

I think that MJR is suggesting along similar lines here. The only problem with using On-Screen Keyboard may be keeping it above PinballX on the display unless he is running it in windowed mode for the testing so that it can be displayed beside PinballX on the same monitor at the time that Attract Mode should kick in (approximately 2-3 minutes from the last input). I am not sure if that will capture all inputs in the view as I am typing now with the app enabled and it only appears to reflect the ALT, CTRL, Shift, and Windows Key inputs as indicated by the changing key color from dark grey to black.

Link to comment
Share on other sites

Thanks guys I am out of town atm ... but will try these suggestions for sure ... I was at the point of not knowing what to try next. Make cense to me and will try tomorrow.

Sent from my SAMSUNG-SM-G870A using Tapatalk

Link to comment
Share on other sites

So ...  I stepped out of pinballX and was doing my testing in Windows only ... as it makes sense that if PinballX is seeing a non-idle state then so must windows. I followed some suggestions from this thread and from MJR and I think I have my problem .... bad driver install from the freescale board. I have removed all drivers and reinstalled and that seems to have fixed the issue .... 

 I had the Game Pad Test window open in Window along with notepad and the onscreen keyboard. The only thing that was making anything happen was the x-y axis was always in motion. So my first thought was "this is the problem Great" .... but the problem would still happen (no windows screen saver and no pinballx attract mode AFTER the first game played) if I unplugged the freescale board while windows was running ..... only on a fresh boot without the board plugged in would I get a successful Windows screen saver and pinballx attract mode  ..... What still baffles me is the fact that PinballX will do attract mode for hours with no problem as long as I didn't play a game. So I can only assume that the driver is getting hung up someplace after the card is accessed for data? .... I don't know.  Anyways, I think we will call this one solved here and I REALLY really appreciate your time and help and suggestions. Sorry for getting annoyed but I very seldom ask for help and just need a different perspective on the problem. 

Link to comment
Share on other sites

Glad you got it sorted. My guess is that the bad driver was not detecting that the devices using x-y axis had returned their resting state after game play. Something not clearing a buffer - Ghost in the machine data perhaps?

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...