Magic Another Game Engine
Find a file
Oleg Agafonov 2bbe2b3c43 GUI - new card hints window features:
* new help window can be opened from a player panel;
* it collect and show all visible game hints from all players and all zones;
* it updates in real time on game update;
* allows to customize visible data;
* allows to open multiple windows (current limit is 5 windows, can be slow to render);
* allows to minimize opened windows;
* workable card popup on mouse move over card name or card id;
* filter modes:
  * all - show hints from all players;
  * player - show hints from single player;
* group mode:
  * by hints - show same hints as one with all used cards;
  * by cards - show full cards list with own hints;
* search mode:
  * allows to filter card hints by player name, card name, card id or card hint;
  * allows to search multiple words (equals to "or")
* current limitation:
  * card popup shows a card instead a real object, e.g. miss card hints in it (relelated to game logs problem);
  * unsupport of emblems, dungeons and other non card objects from a command zone;
  * unsupport of revealed and library's top cards;

GUI - player's panel improves:
* added hints helper button;
* added player hithlight as possible target in choose dialogs;
* improved player name button in small mode;
* fixed wrong height in small mode;

Other fixes:
* game logs: added card popup support for logs with custom object name;
2023-11-18 14:48:25 +04: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 GUI - new card hints window features: 2023-11-18 14:48:25 +04:00
Mage.Client GUI - new card hints window features: 2023-11-18 14:48:25 +04:00
Mage.Common GUI - new card hints window features: 2023-11-18 14:48:25 +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 refactor: improved code to increase readability. (#11418) 2023-11-17 10:47:53 +04:00
Mage.Server.Console dev: improved code coverage (jacoco) and static analyser (sonar) support (#11367): 2023-10-30 09:19:12 +04:00
Mage.Server.Plugins Small refactor to the fix for #6844. 2023-11-05 19:59:54 -06:00
Mage.Sets game: fixed "if mana was spent to cast" abilities after leaves (#11419) 2023-11-17 12:02:47 +04:00
Mage.Tests GUI - new card hints window features: 2023-11-18 14:48:25 +04:00
Mage.Verify remove temporary verify skip, fix failures 2023-11-13 10:42:32 -05:00
repository/com/googlecode/jspf/jspf-core
Utils refactor vanishing (#11408) 2023-11-14 08:26:08 -05:00
.gitignore dev: added Mage.Reports output files to git ignore 2023-11-02 12:24:47 +04:00
.travis.yml travis: added custom logs settings, disabled AI decision logs for ci builds 2023-10-15 22:47:23 +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 docs: updated readme to actual info and card stats (closes #10405) 2023-05-24 00:47:21 +04:00
RemoveHeaders.java remove all MIT copyright notices from files 2018-06-02 17:59:49 +02:00
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 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