-
Notifications
You must be signed in to change notification settings - Fork 783
Developer HOWTO Guides
Oleg Agafonov edited this page Dec 22, 2017
·
25 revisions
Before proceed read getting started guide about tools and project structure.
Below you can found howto guides or developer's checklist.
TODO
TODO
- Create new set's java file in
..\Mage.Sets\src\mage\sets\
folder by copy-paste template from any other set (example:ExplorersOfIxalan.java
); - Setup official set code and release date (use scryfall for set's info);
- Add new cards to set (see above);
- Add new tokens to set (see above);
- Setup set symbols download options:
- Go to
..\Mage.Client\src\main\java\org\mage\plugins\card\dl\sources\GathererSets.java
; - Add set's code to one of the supported list (example:
symbolsBasic
); - Add replace code when source uses non standard codes (example:
codeReplacements.put("CMA", "CM1");
);
- Go to
- Setup card images download options:
- Find current supporting images sources
DownloadSources
in..\Mage.Client\src\main\java\org\mage\plugins\card\images\DownloadPictures.java
file; - For each image source that you can download go to class file and add set's code to support list;
- Add set's code to supported (example for scryfall:
supportedSets.add("OGW");
); - Add replace code when source uses non standard codes (example for scryfall:
put("DD3GVL", "gvl");
);
- Add set's code to supported (example for scryfall:
- If set's can be downloaded then remove that code from global ignore list (
ignore.urls
inC:\mage\Mage.Client\src\main\resources\image.url.properties
file);
- Find current supporting images sources
- Setup token images download options:
- Some sources can support tokens download: if so then repeat cards images setup but search source code for tokens data (start with
getTokenImages()
method from java class, example:..\Mage.Client\src\main\java\org\mage\plugins\card\dl\sources\TokensMtgImageSource.java
); - Add tokens data to
..\Mage.Client\src\main\resources\card-pictures-tok.txt
; - Find each new token class and add set's code to supported list
tokenImageSets.addAll
(example:..\Mage\src\main\java\mage\game\permanent\token\SaprolingToken.java
-- it's will help xmage to select token image on battlefield by set's priority (seeimage.url.properties
file);
- Some sources can support tokens download: if so then repeat cards images setup but search source code for tokens data (start with