2016-07-29 00:45:02 +00:00
# XMage — Magic, Another Game Engine
2012-06-21 19:31:00 +00:00
2020-08-31 22:51:25 +00:00
[![Build Status ](https://travis-ci.org/magefree/mage.svg?branch=master )](https://travis-ci.org/magefree/mage) [![latest release ](https://img.shields.io/github/v/release/magefree/mage )](https://github.com/magefree/mage/releases/) [![commints since latest release ](https://img.shields.io/github/commits-since/magefree/mage/latest )](https://github.com/magefree/mage/commits/) [![Join the chat at https://gitter.im/magefree/mage ](https://badges.gitter.im/Join%20Chat.svg )](https://gitter.im/magefree/mage?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
2015-12-04 17:17:31 +00:00
2020-08-28 04:41:55 +00:00
XMage allows you to play Magic against one or more online players or computer opponents.
2020-12-24 18:47:31 +00:00
It includes full rules enforcement for over **20 000** unique cards and more than 50.000 reprints from different editions.
2020-08-28 04:41:55 +00:00
You can also find custom sets like Star Wars. All regular sets have nearly all implemented cards.
2012-06-21 19:31:00 +00:00
2020-08-28 04:41:55 +00:00
It's support single matches and tournaments with dozens game modes like duel, multiplayer, standard, modern, commander,
pauper, oathbreaker, historic, freeform and much more.
2019-07-03 07:36:51 +00:00
2020-12-24 18:47:31 +00:00
Local server supports a [special test mode ](https://github.com/magefree/mage/wiki/Development-Testing-Tools ) for
testing combos and other game situations with pre-defined conditions.
2020-08-28 04:41:55 +00:00
There are [public servers ](http://xmageservers.online/ ) where you can play XMage against other players.
You can also host your own server to play against the AI and/or your friends.
2012-06-21 19:31:00 +00:00
2020-08-28 05:01:00 +00:00
XMage community and resources:
2017-12-29 13:37:10 +00:00
* [Official XMage forum ](http://www.slightlymagic.net/forum/viewforum.php?f=70 );
* [Official XMage support and feature request on github ](https://github.com/magefree/mage/issues );
* [Reddit XMage group ](https://www.reddit.com/r/XMage/ );
2020-08-28 05:01:00 +00:00
* [Reddit XMage discord channel ](https://discord.gg/Pqf42yn );
* [Latest releases ](https://github.com/magefree/mage/releases );
* [Latest news ](https://jaydi85.github.io/xmage-web-news/news.html );
* [Project documentation ](https://github.com/magefree/mage/wiki ).
2012-06-21 19:31:00 +00:00
2018-12-01 17:57:06 +00:00
Servers status:
* http://xmageservers.online/
2020-08-28 04:41:55 +00:00
Beta server with un-released or under development features:
* http://xmage.today/
2012-06-21 19:31:00 +00:00
## Features
2016-07-29 00:45:02 +00:00
2019-07-03 07:55:56 +00:00
* Multiplatform app: Windows, Linux, MacOS;
* Deck editor (support multiple deck formats and deck sources);
2019-07-03 07:42:24 +00:00
* Two player duel or a multiplayer free-for-all game with up to 10 players;
2019-07-03 07:55:56 +00:00
* Computer AI opponents;
* Players rating system (Glicko);
2019-07-03 07:42:24 +00:00
* Supports special formats like Commander (up to 10 players), Oathbreaker, Cube, Tiny Leaders, Super Standard, Historic Standard and more;
* Single matches or tournaments supported (elimination or swiss type handling), which can be played with up to 16 players:
2016-07-29 00:45:02 +00:00
* Booster (also Cube) draft tournaments (4-16)
* Sealed (also from Cube) tournaments (2-16)
2015-07-27 11:06:34 +00:00
2020-08-28 05:01:00 +00:00
## Bug report / feature request
2018-05-31 11:28:07 +00:00
2020-08-28 04:41:55 +00:00
The best way to report bug or feature request is [github's issues page ](https://github.com/magefree/mage/issues ).
There are another way to report bugs too:
* Feedback from xmage app's main menu;
* Bug thread in the [Official XMage forum ](http://www.slightlymagic.net/forum/viewforum.php?f=70 ).
2012-06-21 19:31:00 +00:00
2020-08-28 05:01:00 +00:00
## Installation / running
2016-07-29 00:45:02 +00:00
2019-07-03 07:52:21 +00:00
* Download [latest XMage launcher file ](http://xmage.de ) and put it to any folder like `D:\games\xmage` ;
2020-08-28 04:41:55 +00:00
* You need to have [Java version 8 or later ](http://java.com/ ) to run launcher;
2019-07-03 07:52:21 +00:00
* If you can't run it then create `run-LAUNCHER.cmd` text file in launcher folder and put that line to it and save as ANSI format:
2020-08-28 04:41:55 +00:00
* `java -Djava.net.preferIPv4Stack=true -jar XMageLauncher-0.3.8.jar`
2020-08-28 05:01:00 +00:00
* or just [downlod and unpack that archive ](http://xmage.today/X/run.zip ) to launcher folder.
Look [here ](http://www.slightlymagic.net/forum/viewtopic.php?f=70&t=13632 ) for more detailed instructions.
2013-03-05 14:22:45 +00:00
2020-08-28 05:01:00 +00:00
[Wiki page ](https://github.com/magefree/mage/wiki ) contains detail information about private or public server setup.
2014-04-26 08:04:11 +00:00
2020-08-28 04:41:55 +00:00
## Troubleshooting / FAQ
Github issues page contain [popular problems and fixes ](https://github.com/magefree/mage/issues?q=is%3Aissue+label%3AFAQ+ ):
* [Program freezes on startup (white/blue/black screen) ](https://github.com/magefree/mage/issues/4461#issuecomment-361108597 );
* [Can't download images or it stops after some time ](https://www.reddit.com/r/XMage/comments/agmcjf/new_xmage_release_with_ravnica_allegiance_rna/ );
* [MacOS client freezes in GUI ](https://github.com/magefree/mage/issues/4920#issuecomment-517944308 );
* [Battlefield broken or ugly cards drawing ](https://github.com/magefree/mage/issues/4626#issuecomment-374640070 );
* [No texts or small buttons in launcher ](https://github.com/magefree/mage/issues/4126 );
* [Could not open ...jvm.cfg ](https://github.com/magefree/mage/issues/1272#issuecomment-529789018 ).
2020-01-10 09:05:35 +00:00
## Performance tweaks
If you have a good GPU, it's very likely you'll be able increase performance by **a lot** through extra Java flags.
XMage runs on JRE 8, so [this link ](https://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html ) should give you the available flags.
### How to enable the extra flags
1. Launch XMage
2. In the menu bar from the launcher, click on "Settings", which will open up the Settings Window
3. Go to the "Java" tab
4. You can pass extra flags by editing the "Client java options" text field
2020-08-28 04:41:55 +00:00
### Linux tweaks
2020-01-10 09:05:35 +00:00
#### Enable OpenGL
2020-08-28 04:41:55 +00:00
More info about [OpenGL ](https://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#opengl ):
* `-Dsun.java2d.opengl=true`
2020-01-10 09:05:35 +00:00
2020-08-28 04:41:55 +00:00
Possible problems:
* _**Caveat**_: [There's a bug ](https://bugs.openjdk.java.net/browse/JDK-6545140 ) with the file chooser when OpenGL is enabled (you use the file chooser when you, for instance, try to load a deck from disk). The [suggested workaround ](https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6439320 ) will make the game crash, so it's not an option.
* _**Workaround**_: When using [i3 ](https://github.com/i3/i3 ), you're able to work around the bug by toggling the "floating" capabilities of the window and forcing it to re-render.
2020-01-10 09:05:35 +00:00
#### Enable XRender
2020-08-28 04:41:55 +00:00
More info about [XRender ](https://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#xrender ):
* `-Dsun.java2d.xrender=true`
2020-01-10 09:05:35 +00:00
2020-08-28 04:41:55 +00:00
#### Increase memory usage
2020-01-10 09:05:35 +00:00
2020-08-28 04:41:55 +00:00
This is not guaranteed to yield improvements, but it depends on your use-case.
If you have a lot of RAM to spare, you might as well increase the initial heap size for good measure.
More details about [memory settings ](https://stackoverflow.com/a/57839720/8401696 ):
* `-Xms1G -Xmx2G`
2020-01-10 09:05:35 +00:00
2012-06-21 19:31:00 +00:00
## Developer
2020-08-28 05:01:00 +00:00
Full project documentation and instructions for developers can be found in [wiki pages ](http://github.com/magefree/mage/wiki/ ).
First steps for Xmage's developers:
2020-10-02 20:26:00 +00:00
* [Setting up your Development Environment ](https://github.com/magefree/mage/wiki/Setting-up-your-Development-Environment )
* [Development Testing Tools ](https://github.com/magefree/mage/wiki/Development-Testing-Tools )
* [Development Workflow ](https://github.com/magefree/mage/wiki/Development-Workflow )
* [Development HOWTO Guides ](https://github.com/magefree/mage/wiki/Development-HOWTO-Guides )