Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t run client on macOS (miss execute access to files) #9300

Open
Mickrange opened this issue Jul 21, 2022 · 14 comments
Open

Can’t run client on macOS (miss execute access to files) #9300

Mickrange opened this issue Jul 21, 2022 · 14 comments
Labels
FAQ Instructions to fix problems linux / macos

Comments

@Mickrange
Copy link

I've been playing xMage on the first versions of the client for many many years until now. There are just too few players on the German server for example.

They told me to get the BETA where new cards are still added. I downloaded the client, unzipped it and tried to launch the launcher. But nothing happened (I waited 3-4 hours). Why? I can still launch the old client but not the BETA one. Do I have to change something else, too? Got the newest JAVA so I don't know what to do...

@JayDi85
Copy link
Member

JayDi85 commented Jul 21, 2022

If you see empty screen then try to disable autoconnection (instruction). Or disable it in main client (beta uses same settings).

@Alex-Vasile
Copy link
Contributor

How did you try running the launcher?

@Mickrange
Copy link
Author

I just started it by double clicking the .jar, Same as i do it for years with the other one. I don’t See anything besides the Java Symbol in my Launchbar

@Alex-Vasile
Copy link
Contributor

I also primarily use my Mac, and that approach has never worked for me. I always need to launch it from the terminal with java -jar XMageLauncher-0.3.8.jar.

I found the following command that does seem to get the launcher working from double click, or at least gives you something to double click. Open up your terminal in the folder with the launcher and running the following 3 commands in order:
1.

cat > header-template <<"EOF"
#!/bin/sh

exec java -jar $0 "$@" > /dev/null

EOF
cat header-template "XMageLauncher-0.3.8.jar" > "XmageLauncher"
chmod +x "XmageLauncher"

from: https://apple.stackexchange.com/questions/65128/how-do-i-run-a-jar-when-i-double-click-it

@Alex-Vasile Alex-Vasile added linux / macos FAQ Instructions to fix problems labels Jul 21, 2022
@Mickrange
Copy link
Author

Trying this out, but I see a problem with having two actual XMage Launchers right now with the same name. How do I make my Mac open the Beta and not the "normal" one. And it says "there is no such file" after the second step.

@Alex-Vasile
Copy link
Contributor

Trying this out, but I see a problem with having two actual XMage Launchers right now with the same name. How do I make my Mac open the Beta and not the "normal" one.

I keep the beta and the non-beta in completely separate folders.

And it says "there is no such file" after the second step.

You have to change "XMageLauncher-0.3.8.jar" to whatever you have named your launcher .jar.

@Mickrange
Copy link
Author

I changed the name to xmageBETA.jar, then i did as you instructed. It still says, there is no such file. And i tried it several times hoping to find a spelling mistake....

What does it mean, to open the terminal inside the folder? i click on terminal while the folder is open, or is there any other specific thing i have to do?

@Alex-Vasile
Copy link
Contributor

I changed the name to xmageBETA.jar, then i did as you instructed. It still says, there is no such file. And i tried it several times hoping to find a spelling mistake....

If you renamed the launcher to xmageBETA.jar then make sure to change the command for step 2. so that it uses "xmageBETA.jar" instead of "XMageLauncher-0.3.8.jar" (including quotation marks).

What does it mean, to open the terminal inside the folder? i click on terminal while the folder is open, or is there any other specific thing i have to do?

When you open a terminal, it will open inside a folder. But that folder won't be the XMage folder, it's be your user folder `"Drive\Users\username". You need to navigate in the terminal so that you're inside the XMage folder. The easiest way is right-click on your main XMage folder, select "Services" at the very bottom, and select "New Terminal at Folder". Then you should be able to copy and paste the commands into the terminal.

@Mickrange
Copy link
Author

I changed the name to xmageBETA.jar, then i did as you instructed. It still says, there is no such file. And i tried it several times hoping to find a spelling mistake....

If you renamed the launcher to xmageBETA.jar then make sure to change the command for step 2. so that it uses "xmageBETA.jar" instead of "XMageLauncher-0.3.8.jar" (including quotation marks).

What does it mean, to open the terminal inside the folder? i click on terminal while the folder is open, or is there any other specific thing i have to do?

When you open a terminal, it will open inside a folder. But that folder won't be the XMage folder, it's be your user folder `"Drive\Users\username". You need to navigate in the terminal so that you're inside the XMage folder. The easiest way is right-click on your main XMage folder, select "Services" at the very bottom, and select "New Terminal at Folder". Then you should be able to copy and paste the commands into the terminal.
xMageErrorUpload
Thanks for everyone trying to help me but I really feel like a damn dog tapping his toes on the keyboard... I added the Terminal message as a png. I don't know what to do... I just wanna play the game...

@Alex-Vasile
Copy link
Contributor

Alright, try these steps as they are simple:

  1. Open Finder and navigate to wherever you saved the folder containing the beta (from screenshot it looks like Documents/Magic/xMage\ BETA)
  2. You xmage beta install is in mage-full_1.4.51-dev_2022-06-24_13-37.
  3. Open a terminal
  4. Type "cd " (that's the letters c d and a space)
  5. Drag your xmage beta install (the folder mage-full_1.4.51-dev_2022-06-24_13-37) into the terminal window. (this will copy the path to it and put it into your terminal)
  6. Hit enter in your terminal
  7. Go back to Finder and open the mage-full_1.4.51-dev_2022-06-24_13-37 folder
  8. Find the file run-LAUNCHER.cmd and drag that into your terminal
  9. Hit enter

@Mickrange
Copy link
Author

Alright, try these steps as they are simple:

  1. Open Finder and navigate to wherever you saved the folder containing the beta (from screenshot it looks like Documents/Magic/xMage\ BETA)
  2. You xmage beta install is in mage-full_1.4.51-dev_2022-06-24_13-37.
  3. Open a terminal
  4. Type "cd " (that's the letters c d and a space)
  5. Drag your xmage beta install (the folder mage-full_1.4.51-dev_2022-06-24_13-37) into the terminal window. (this will copy the path to it and put it into your terminal)
  6. Hit enter in your terminal
  7. Go back to Finder and open the mage-full_1.4.51-dev_2022-06-24_13-37 folder
  8. Find the file run-LAUNCHER.cmd and drag that into your terminal
  9. Hit enter

Thanks for your language! I am a bloody beginner regarding terminal things. It says permission denied after I hit enter in step 9.

@Mickrange
Copy link
Author

Thx everyone for trying to help me. This issue made me buy a mtgo collection in the end...

@Alex-Vasile
Copy link
Contributor

Alright, try these steps as they are simple:

  1. Open Finder and navigate to wherever you saved the folder containing the beta (from screenshot it looks like Documents/Magic/xMage\ BETA)
  2. You xmage beta install is in mage-full_1.4.51-dev_2022-06-24_13-37.
  3. Open a terminal
  4. Type "cd " (that's the letters c d and a space)
  5. Drag your xmage beta install (the folder mage-full_1.4.51-dev_2022-06-24_13-37) into the terminal window. (this will copy the path to it and put it into your terminal)
  6. Hit enter in your terminal
  7. Go back to Finder and open the mage-full_1.4.51-dev_2022-06-24_13-37 folder
  8. Find the file run-LAUNCHER.cmd and drag that into your terminal
  9. Hit enter

Thanks for your language! I am a bloody beginner regarding terminal things. It says permission denied after I hit enter in step 9.

before step 8, type "chmod +x " (including the space at the end). Then do 8 and 9. (this is a one time thing).

Then do 8 and 9 again.

@Alex-Vasile
Copy link
Contributor

Thx everyone for trying to help me. This issue made me buy a mtgo collection in the end...

Sorry to hear that :/

JayDi85 added a commit that referenced this issue Sep 7, 2024
- GUI: added non-blocking UI to almost all app and game dialogs;
- GUI: it allows to switch between UI dialogs and use any UI elements at any moment;
- GUI: it allows to use chat, card popup, battlefield, concede and other features while choosing (related to #12670);
- GUI: it allows to download images while playing (related to #4160, not fully tested);
- GUI: enabled by default, can be disabled by java option: -Dxmage.guiModalMode=true
- connection: auto-connect will be visible in main menu on startup;
- connection: removed some unused features (auto-connect by command line);
- connection: added <ESC> button to close connection dialog;
- download: added background images download (see non-blocking UI);
- download: improved cancel stability and fixes that it can't stop preparing/downloading process in some use cases;
- app: fixed freezes on macOS systems in some use cases (related to #12431, #11292, #9300, #4920);
@JayDi85 JayDi85 changed the title BETA Client doesn't start on MacOS Can’t run client on macOS (miss execute access to files) Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FAQ Instructions to fix problems linux / macos
Projects
None yet
Development

No branches or pull requests

3 participants