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

add MTG Forge game #2640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add MTG Forge game #2640

wants to merge 1 commit into from

Conversation

janAkali
Copy link

No description provided.

Comment on lines +42 to +47
# problem: forge-adventure doesn't launch with java versions > 8
# workaround: create `forge-mobile.sh` script that's a modified copy of `forge.sh` script
status "Creating workaround for adventure shell script."
jarname="$(find "$game_folder" -name 'forge-gui-mobile*.jar' | xargs basename)"
cp "$game_folder/forge.sh" "$game_folder/forge-mobile.sh"
sed -i "s|forge-gui-desktop-.*-jar-with-dependencies.jar|$jarname|" "$game_folder/forge-mobile.sh"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the goal here? if the program doesn't launch with java > 8 then why are you installing java 17?

Copy link
Author

@janAkali janAkali Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with java > 8 then why are you installing java 17?

the app itself does work with java version > 8, but iirc launch scripts for "adventure" mode doesn't have proper flags so it just fails.

Why not just install java 8? Because it doesn't work with java 8 😂. Forge needs a java fx library that's not available in free (as in freedom) builds of java 8, apparently it has support only for official oracle's build of java 8 and that's certainly harder to legally obtain.

Maybe it's possible to make it work with java 8 on linux, but with my limited knowledge of java - I couldn't. But all other versions of java should be supported, I chose java 17 because most software in pi-apps use that version, so good chances that it will be already installed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you link an upstream bug report for that issue (or PR to fix it if one is open). If it's just bad flags it would be better to have it corrected upstream.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you link an upstream bug report for that issue (or PR to fix it if one is open). If it's just bad flags it would be better to have it corrected upstream.

Here's my issue from 1+ year ago - Card-Forge/forge#2221, it was marked as stale and closed. Note, that I was absolutely unfamiliar with git at that time.
Looking at it now, I could try to submit PR that fixes the issue and we will see if it gets somewhere 😅.

@theofficialgman theofficialgman linked an issue Aug 30, 2024 that may be closed by this pull request
3 tasks
@theofficialgman theofficialgman added Upstream Bug something isn't working that can only be fixed upstream changes requested labels Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Upstream Bug something isn't working that can only be fixed upstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MTG Forge - script to install App from official ftp server
2 participants