mchung94 / solitaire-player

Automatically play Pyramid and TriPeaks Solitaire in Microsoft Solitaire Collection for Windows 10
MIT License
41 stars 14 forks source link

Error when opening the solver app - please help... (Sorry, I know nothing about programming, I just need help.) #27

Open Deltricxulub opened 2 years ago

Deltricxulub commented 2 years ago

So when I first tried to open the app, it didn't open because I had to extract all files from the folder. I did that, but now when I open it, this happens: an error message from the windows system 32 running thing opens up for a fraction of a second and disappears again. I managed to get a screenshot of it. What should I do? Here is the screenshot. (https://user-images.githubusercontent.com/112972098/188698743-e484ae6d-8e93-4e48-983a-d85c8cb7c3e1.png)

mchung94 commented 2 years ago

Hi, sorry about the problems you've been having - I need to work on making it easier to run. I unfortunately have not had any time to make progress on this yet.

It looks like the error is about the version of Java that you're using may be older - I use Java 11 that I downloaded from https://adoptium.net/ - I think you may be using Java 8.

Also it is a command line program, not a graphical app that you can just click on. So to run the program you need to open up the command prompt (cmd.exe). I have an old video where I walk through how to run the program at https://www.youtube.com/watch?v=15EBJO5PNnU but it's from a few years ago - today I would install Java using adoptium.net.. I hope that is helpful.

If it still does not work after upgrading your Java version, I may need to make a fix.

mchung94 commented 2 years ago

I also wanted to mention, as you've said you don't know about programming - did you install Java just to try out my program? I am worried that maybe you already have Java installed in order to run some other program, and that upgrading to a newer version may cause a problem with other apps on your computer.

If you already have Java installed because of another program, I think you should not try to run this program because it needs Java 11 installed. I will work on a new way to run this program where you don't have to install Java yourself, but it may be months before I get it ready.

Deltricxulub commented 2 years ago

Hey, thanks so much for your help. I have been using Java 8, I'll install 11. Also, I don't need it for anything else, so it should be fine, but thank you for mentioning it!

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Mitchell Chung @.> Sent: Wednesday, September 7, 2022 8:00:41 AM To: mchung94/solitaire-player @.> Cc: Deltricxulub @.>; Author @.> Subject: Re: [mchung94/solitaire-player] Error when opening the solver app - please help... (Sorry, I know nothing about programming, I just need help.) (Issue #27)

I also wanted to mention, as you've said you don't know about programming - did you install Java just to try out my program? I am worried that maybe you already have Java installed in order to run some other program, and that upgrading to a newer version may cause a problem with other apps on your computer.

If you already have Java installed because of another program, I think you should not try to run this program because it needs Java 11 installed. I will work on a new way to run this program where you don't have to install Java yourself, but it may be months before I get it ready.

— Reply to this email directly, view it on GitHubhttps://github.com/mchung94/solitaire-player/issues/27#issuecomment-1238941677, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A255CQRMBURMM53SK7J3RU3V5AVQTANCNFSM6AAAAAAQGA3EFA. You are receiving this because you authored the thread.Message ID: @.***>

Deltricxulub commented 2 years ago

Hey again, I have installed the correct Java version and managed to get it to flip through all the cards of the deck in Pyramid. But after it flips through them all, it stops, nothing happens. It doesn’t even ask me to undo it all. Do you know why this might be? Thanks.

From: Indi Huntley @.> Sent: 12 September 2022 16:36 To: mchung94/solitaire-player @.>; mchung94/solitaire-player @.> Cc: Author @.> Subject: Re: [mchung94/solitaire-player] Error when opening the solver app - please help... (Sorry, I know nothing about programming, I just need help.) (Issue #27)

Hey, thanks so much for your help. I have been using Java 8, I'll install 11. Also, I don't need it for anything else, so it should be fine, but thank you for mentioning it!

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Mitchell Chung @.**@.>> Sent: Wednesday, September 7, 2022 8:00:41 AM To: mchung94/solitaire-player @.**@.>> Cc: Deltricxulub @.**@.>>; Author @.**@.>> Subject: Re: [mchung94/solitaire-player] Error when opening the solver app - please help... (Sorry, I know nothing about programming, I just need help.) (Issue #27)

I also wanted to mention, as you've said you don't know about programming - did you install Java just to try out my program? I am worried that maybe you already have Java installed in order to run some other program, and that upgrading to a newer version may cause a problem with other apps on your computer.

If you already have Java installed because of another program, I think you should not try to run this program because it needs Java 11 installed. I will work on a new way to run this program where you don't have to install Java yourself, but it may be months before I get it ready.

— Reply to this email directly, view it on GitHubhttps://github.com/mchung94/solitaire-player/issues/27#issuecomment-1238941677, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A255CQRMBURMM53SK7J3RU3V5AVQTANCNFSM6AAAAAAQGA3EFA. You are receiving this because you authored the thread.Message ID: @.**@.>>

mchung94 commented 2 years ago

I'm sorry the program isn't working for you - I'll take a look at it this weekend when I have more time to figure out what could be going wrong.

mchung94 commented 2 years ago

I still haven't figured out what the problem could be, but here are some things that might be worth checking if you are interested. I made a brief video on youtube at https://youtu.be/I9dOXXKO8Sc showing what happens when I try to run it on a Pyramid game, and in the middle I use the --show-prompts option to make it pop up a window after it flips through the face down cards. That might be helpful to see where it is at. After it flips through the cards, it takes a few seconds (up to a minute) to figure out what the solution is.

  1. It only understands the Classic Theme and Classic Card Deck.
  2. The toolbar at the bottom with the buttons like New, Undo, etc. should be visible. Click on the triangle on the bottom right of the window to make sure it's visible.
  3. Check what the solitaire-player program prints when it starts up, it'll try to resize the Solitaire Collection window to 1440x900, and expects the scaling factor to be 100% (this is the part of the Windows Display Settings where you can increase the size of text, apps, and other items to over 100% to make it bigger). Mine looks like this:

System Report: Window Size (after adjustment) = 1440x900 Expected Window Size = 1440x900 DPI = 96 Expected DPI = 96 Scaling Factor = 100.0% Primary Screen Size (Adjusted for Scaling Factor) = 3840x1600 Expected Primary Screen Size = 3840x1600

  1. Finally one more thing you can try is run with the --show-prompts option, for example "solitaire-player --show-prompts Pyramid" - this will pop up a window to show you the cards after it finishes flipping through the face down cards in the deck. The "--show-prompts" option starts with two dashes.