Issue with Match

97 views
Skip to first unread message

Bob

unread,
Sep 9, 2024, 9:38:29 PMSep 9
to MPF Users
2 problems with my match.
1. It seems to match someone every single game game. 
2. When there is a double match I'm only getting one credit.

I've attached:
- a screen shot of the part of my log that is reporting this
- my match.yaml mode file
 - screenshot of the credit section of my config.yaml file

Any ideas??



credit.JPG

Capture.JPG
match.yaml

Bob

unread,
Sep 29, 2024, 4:18:18 PMSep 29
to MPF Users
just bumping this up. 
Been all through this and can't see any issue.
Help!

cobra18t

unread,
Oct 3, 2024, 12:56:27 AMOct 3
to MPF Users
Regarding #2, you are getting one credit because match_has_match only occurs once regardless of the number of winners. Break the match_has_match entry in your credit events into multiple entries -- match_has_match{winners==1}, match_has_match{winners==2}, etc. and include the appropriate number of credits for each case.

Not so sure about #1. Could you share your machine_vars.yaml file in the data folder?

bobp...@rogers.com

unread,
Oct 3, 2024, 8:57:17 PMOct 3
to mpf-...@googlegroups.com

Thank you! I will try that but it makes sense.

My programming is limited to what is on the MPF site and example code form other games but I’ve never seen that option.

Is there another site that I can use that will up my knowledge base? It seems there is so much that I still need to learn, but I’m not sure how.

 

I’ve attached by machine_vars.yml file

 

And thank you for the transistors and CPU’s. Part’s received!

 

--
You received this message because you are subscribed to a topic in the Google Groups "MPF Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpf-users/MLvYBvwihsE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/19efe1bd-ffe5-49f9-af44-7de911fa7ba0n%40googlegroups.com.

machine_vars.yaml

cobra18t

unread,
Oct 4, 2024, 5:47:20 PMOct 4
to MPF Users
Muscling your way through trying to get your game working is not a bad way to learn. 

Jan did a video on events that may help:
Events and Event Handler in the Mission Pinball Framework - MPF Software (youtube.com)

Here is the MPF docs info on conditional events:
Conditional Events - The Mission Pinball Framework

I use MPF Monitor and its Events window to find events and conditionals that I want to use in my game. "Playing" the game using the Monitor has been useful for both creating and testing new logic.

I took a course on Udemy for python to help brush up on my programming skills. It was $22 on sale. Udemy regularly has sales on courses. This is the one I did which is listed at $200, so maybe wait for a sale:
Python Mega Course: Learn Python in 60 Days, Build 20 Apps | Udemy

Message has been deleted

Bob

unread,
Oct 7, 2024, 3:00:54 AMOct 7
to MPF Users
I have only been using the MPF site and other game code I can find. I'll take a look at those other sites. I don't mind muscling my way through but that last bit of code for the match surprised me. 
It's a surprisingly simple approach when you read it but with all the code I've seen for match, why are they not using it? This stuff is so humbling ....
Did yo have a look at the MAchine_Vars file i sent?  

cobra18t

unread,
Oct 8, 2024, 10:21:42 PMOct 8
to MPF Users
I did look at the machine_vars file that you posted, but it did not point me to the possible cause I was thinking of. Are you sure you are getting match every game or are you just getting a credit every game? Maybe one of the other sources of credits is firing every game?

Do you have a service menu mode? Have you tried adjusting the match_percentage setting in the service menu?

bobp...@rogers.com

unread,
Oct 9, 2024, 9:17:44 PMOct 9
to mpf-...@googlegroups.com

Yes. It’s actually matching every game.

Nope, no Service mode

Message has been deleted

Bob

unread,
Oct 14, 2024, 6:09:05 PMOct 14
to MPF Users
what is this match_percentage setting you mention?
I've been searching for any reference to the same with no luck.
Does it only run in a service mode?

Bob

unread,
Oct 19, 2024, 10:06:47 AMOct 19
to MPF Users
could it be because I have priority in the mode at 1000?
Reply all
Reply to author
Forward
0 new messages