Interesting "Issue"
the_Grinch
Member Posts: 4,165 ■■■■■■■■■■
in Off-Topic
Not an issue per say, but more of an attempt to automate some of my work. Basically, I am in the process of testing a ton of virtual slot machines. Physical slot machines we have a physical device we can hook up and run through all of the scenarios that could happen. On the virtual side not so much, which is why I am trying to write my own. The issue I am running into is actually with confirming that the amount that is suppose to be paid is actually paid. Visually I can see it and verify it, but a computer program can't say "I see 5 cents was bet and it paid me $50 so I know I got 1000x the amount I bet." Is there anything basically like a wireshark for programs where I could actually see the output of the program running and confirm the pay amount? The rest of the automation is easy, it's just this last bit I need to figure out. Python if possible
WIP:
PHP
Kotlin
Intro to Discrete Math
Programming Languages
Work stuff
PHP
Kotlin
Intro to Discrete Math
Programming Languages
Work stuff
Comments
-
Asif Dasl Member Posts: 2,116 ■■■■■■■■□□I am presuming that you don't own the program/code for these slot machines? so could you OCR the screen itself? I know in VBA for office (and Java when I did that in college) you can run code line by line but if you don't own the program then maybe the other method might help?? What are you using for the automation, a windows macro recorder?
-
pram Member Posts: 171If it's running in Linux you can attach strace to the process and see all the calls.
-
Akaricloud Member Posts: 938That sounds like an awesome project! -Can you provide us on any more details on the interfaces available to you? Is this actually visually the same as a slot machine or more on a back end level?
I used to "automate" games by using a scriptable program that would pick out colors and text. I still use this as a last-resort to automating tasks. -
the_Grinch Member Posts: 4,165 ■■■■■■■■■■Sorry for taking so long to reply. In regards to OCR, that might work for some of the pictures, but the major ones have no characters for which to convert to text. For the actual clicking (to spin) some sort of recording software, it's just a matter of confirming the results (that the right combo came up and that the payout was correct). Windows/web based and I do not have access to their code base. Three of the games I am testing reside in what amounts to a virtual machine on a laptop they've provided. The other games are on a test site which I have access too. All are completely visual though as I don't have access to the back end. The color thing could definitely work.
Thanks for the ideas guys!WIP:
PHP
Kotlin
Intro to Discrete Math
Programming Languages
Work stuff