Magic Another Game Engine
Find a file
2024-01-10 17:28:25 -06:00
.github don't card fetch on PRs since it fails 2023-07-04 18:15:10 -04:00
.travis travis: added custom logs settings, disabled AI decision logs for ci builds 2023-10-15 22:47:23 +04:00
Mage Fixed #11623 2024-01-10 17:24:42 -06:00
Mage.Client Reverted pom.xml to original source. 2024-01-10 17:28:25 -06:00
Mage.Common server, tests: improved game error and AI logs, added docs, added error stats in load test's result table (related to #11572); 2024-01-08 23:21:44 +04:00
Mage.Plugins dev: improved code coverage (jacoco) and static analyser (sonar) support (#11367): 2023-10-30 09:19:12 +04:00
Mage.Reports dev: improved code coverage (jacoco) and static analyser (sonar) support (#11367): 2023-10-30 09:19:12 +04:00
Mage.Server tests: fixed error on load tests end (related to #11572), improved logs, improved session lifecycle on load tests; 2024-01-08 04:14:27 +04:00
Mage.Server.Console Network upgrade and new reconnection mode (#11527) 2023-12-07 20:56:52 +04:00
Mage.Server.Plugins server, tests: improved game error and AI logs, added docs, added error stats in load test's result table (related to #11572); 2024-01-08 23:21:44 +04:00
Mage.Sets Fixed #11623 2024-01-10 17:24:42 -06:00
Mage.Tests tests: improved load tests with AI games, added parallel option (play multiple AI games at the same time and show final result table, auto-generated decks can be repeatable by random seed - see test_TwoAIPlayGame_Multiple); 2024-01-10 18:53:44 +04:00
Mage.Verify fix verify failure, remove skip 2023-12-07 18:36:37 -05:00
repository/com/googlecode/jspf/jspf-core
Utils [CLU] Implement Commander Mustard 2023-12-07 18:31:26 -05:00
.gitignore dev: added Mage.Reports output files to git ignore 2023-11-02 12:24:47 +04:00
.travis.yml Merge fix 2023-12-01 14:26:09 +04:00
clean_dbs.sh
LICENSE.txt
Makefile Makefile: optional include for .env file rather than required (#11293) 2023-10-11 20:52:56 -04:00
pom.xml dev: improved code coverage (jacoco) and static analyser (sonar) support (#11367): 2023-10-30 09:19:12 +04:00
readme.md tests: fixed error on load tests end (related to #11572), improved logs, improved session lifecycle on load tests; 2024-01-08 04:14:27 +04:00
RemoveHeaders.java
sonar-project.properties added sonarcloud support (hopefully it works) 2019-01-05 11:29:35 -05:00

XMage — Magic, Another Game Engine

Build Status Lines of Code Coverage Technical Debt latest release commints since latest release Join the chat at https://gitter.im/magefree/mage

XMage allows you to play Magic against one or more online players or computer opponents. It includes full rules enforcement for over 25 000 unique cards and more than 65 000 reprints from different editions. You can also find custom sets like Star Wars. All regular sets have nearly all implemented cards.

It supports single matches and tournaments with dozens of game modes like duel, multiplayer, standard, modern, commander, pauper, oathbreaker, historic, freeform, richman and much more.

Local server supports a special test mode for testing combos and other game situations with pre-defined conditions.

There are public servers where you can play XMage against other players. You can also host your own server to play against the AI and/or your friends.

XMage community and resources:

Servers status:

Beta server with un-released or under development features:

Features

  • Multiplatform app: Windows, Linux, MacOS;
  • Deck editor (support multiple deck formats and deck sources);
  • Two player duel or a multiplayer free-for-all game with up to 10 players;
  • Computer AI opponents;
  • Players rating system (Glicko);
  • 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:
    • Booster (also Cube) draft tournaments (4-16)
    • Sealed (also from Cube) tournaments (2-16)

Bug report / feature request

The best way to report bug or feature request is github's issues page.

Installation / running

Wiki page contains detail information about private or public server setup.

Server options

The XMage server locates by default the configuration file from the current working directory to the relative path config/config.xml (config\config.xml in Windows). To change this location, start the server with the property xmage.config.path set to the desired location, for example -Dxmage.config.path=config/otherconfig.xml. The option can be set from the XMageLauncher in Settings > Java > Server java options.

Troubleshooting / FAQ

Github issues page contain popular problems and fixes:

Performance tweaks

If you have a good GPU, it's very likely you'll be able to increase performance by a lot through extra Java flags.

XMage runs on JRE 8, so this link 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

Linux tweaks

Enable OpenGL

More info about OpenGL:

  • -Dsun.java2d.opengl=true

Possible problems:

  • Caveat: There's a bug 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 will make the game crash, so it's not an option.
  • Workaround: When using i3, you're able to work around the bug by toggling the "floating" capabilities of the window and forcing it to re-render.

Enable XRender

More info about XRender:

  • -Dsun.java2d.xrender=true

Increase memory usage

This is not guaranteed to yield improvements, but it depends on your use-case. If you have a lot of RAM to spare, you can increase the initial heap size for good measure. More details about memory settings:

  • -Xms1G -Xmx2G

Developer

Full project documentation and instructions for developers can be found in wiki pages.

First steps for Xmage's developers:

Torch icons created by Freepik - Flaticon