Commit Graph

24 Commits

Author SHA1 Message Date
cajun
4273221c3c Reapply "Bump to 2 5 8 (#141)"
This reverts commit 75307ecbe4.
2025-09-23 22:58:06 -05:00
cajun
75307ecbe4 Revert "Bump to 2 5 8 (#141)"
This reverts commit 240c1532ee.
2025-09-23 22:32:25 -05:00
GenevensiS
240c1532ee Bump to 2 5 8 (#141)
* Bump to 2.5.8

- Hard code exception for word "plains" in english_singular and english_plural functions
- Add font preloading by TomTkacz
- Add import_image function by TomTkacz
- Fix freeze when loading a set with missing templates

* add locale entries

* include localized keywords and statistics

* Add slider fields and get_mse_path

* Allow "Default" in slider fields

* better fix for print bug

* don't draw checkerboard when image field has default

this allows an image field to be transparent before an image has been selected by the user

* allow additional individual choices in slider fields

* Add CSV / TSV importer

* Update README.md

* move game scripts to separate file

* add json import

* format english locale

* format foreign locales

* localize

* finish locales

* cleanup

* minor tweaks

* fix bug in import csv

* optimize card counts display

* tighten conditions on drop down menu closing

* widen welcome window buttons

* Update changelog.txt

* tweaks

* update cli

* add locale entries, add changelog entries

* make some values scriptable, rewrite print layout logic

* fix "referencing nonexistant file" internal error

the error would happen when an image or set symbol file was changed or deleted, then the set was saved, then the change or deletion was undone

* add add_card_to_set script function

am I crazy or was there no way to do this from the CLI?

* fix symbol font bug

* add global_script statistics dimension property

this script is ran once at the start, and its result is stored in the 'global_value' variable, which is accessible to the regular script.

with this we can get rid of the set.global_variable_average_opening_hand field, and make sure its script is ran only once, when the user clicks on the relevant statistics dimension

* Add to_json and from_json script functions

* Update changelog.txt

* bump wxWidgets to 3.3.1

* Update changelog.txt

typos and today's prs

---------

Co-authored-by: cajun <kajunkittyavenger@gmail.com>
Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2025-09-23 14:53:19 -05:00
cajun
64fc3828d6 3.0.7
Bug fix for Card Symbol on DFCs
Bug fix for Amass rt
Bug fixes for "this type" capitalization
Bug fixes for CARDNAME on planes
Adds THIS atom that gets the opposite value as CARDNAME
Adds Custom Border automization
2025-01-18 15:01:42 -06:00
cajun
34e42b7c19 fix flavor bars 2025-01-11 15:12:01 -06:00
cajun
5a95c927e5 3.0.4 (#92)
Custom Symbol links will now detect if they are smaller than 512px wide, and add padding if they are not. This will do the padding for any old custom symbols without needing to update them. If you need to disable the autopadding, replace the "+" MSE inserts into the link to a "-".
    Fixed a bug where generic mana symbols were misaligned on HD frames.
    Fixed spree +s indenting like modals when they should not.
    Fix layering conflicts with the Lesson symbol and the Alchemy symbol.
    Fix layering conflict with Kaldheim Showcase watermark.
    Fix Mainframe Planeswalker watermark dependency warning.
    Fix Clear Tops looking in the wrong folder.
    Fix blending error on clear cards with colored mana costs.
    Fixed the alignment of the red Star nyx replacement.
    Improved the text on VOW Showcase.
2024-10-03 13:11:24 -05:00
GenevensiS
6960d85314 3.0.0 final touches (#84)
---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-10-01 08:42:16 -05:00
cajun
8abb9df8ea improve script caching (#77)
* cache card number
* optimize pull_comma_array
* decouple type from card number

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-26 15:44:41 -05:00
GenevensiS
fb3e5092a6 Update to 2.5.3 (#78)
* Update to 2.5.3

- add `exists_in_package` script function, which take a string argument of the form
"/package-name.package-extension/file-name.file-extension" and return true if the file can be loaded by MSE.
- add 175% export zoom option

* update watermark handling
* collapse card_watermark_1 etc into custom_watermark_link(#)
* added verify_watermark_image, a script that runs in custom watermark fields
* if the field is a potentially valid link, it will run exists_in_package, width_of, and length_of and caches their info in the field
* if the image is too big, it displays it normally instead of erroring

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-26 15:37:23 -05:00
cajun
28dc1c3383 Update set_fields 2024-09-24 11:31:30 -05:00
Brendan Hagan
bbcdacf589 MSE 2.1.2+ Package Localization (#4)
* add translations to magic.mse-game
---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-24 11:22:11 -05:00
GenevensiS
206de32133 MSE 2.5.2 and Showcase Catchup (#18)
* Updated to MSE 2.5.2
* Added Assassin's Creed Memory Corridor
* Added Bloomburrow Borderless Anime
* Added Bloomburrow Woodland
* Added Compleated Planeswalkers
* Added Duskmourn Paranormal
* Added Kamigawa Neon
* Added Kamigawa Ninja
* Added Kamigawa Samurai
* Added Innistrad Fang
* Added Theros Constellation
* Added Capenna Art Deco
* Added Capenna Golden Age
* Added Capenna Skyscraper
* Added Doctor Who TARDIS
* Added Dominaria Stained Glass
* Added Eldraine Enchanting Tales
* Added Fallout PipBoy
* Added Ikoria Crystal
* Added Innistrad Double Feature
* Added Innistrad Equinox
* Added Ixalan Treasures
* Added Ixalan Legends
* Added Ixalan Caverns
* Added Lord of the Rings Ring
* Added Lord of the Rings Scroll
* Added Ravnica City Mural
* Added Ravnica Dossier
* Added Tarkir Dragon Wing
* Added Thunder Junction Breaking News
* Added Thunder Junction Vault
* Added Thunder Junction Wanted Poster
* Added Unfinity Of Tomorrow
* Added Unfinity Attractions
* Added Secret Lair Baseball
* Added revamped option to Amonkhet Invocations
* Added UB stamp compatibility to old showcase frames
* Added foils and popouts modules
* Add foil_mask blending system
* Fixes #57
2024-09-23 14:11:14 -05:00
GenevensiS
7833d5ad8f Add extra stamps options (#60)
* add classicshifted stamps
* improve custom stamp handling and add realm acorn examples
* add split_custom_directory function so we don't have to keep copy pasting filename injection scripts
* improve to_number_lax

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-17 11:53:00 -05:00
cajun
6d617985ce [274/274] magic-modules rollout (#51)
Add Magic-Modules support to all frames
2024-09-10 22:21:23 -05:00
GenevensiS
fd4b8e4c89 card_fields rewrite and magic-modules.mse-include (#21)
Overhauls the card_fields file to allow for template designers more freedom in manipulating data.

Adds magic-modules.mse-include, a large scale include file for building templates in a standardized way. Applying this to existing frames will be coming in future updates.
2024-05-24 17:57:47 -05:00
cajun
e43fb95077 Adventure Overhaul +custom border +paritions (#47)
ADVENTURE OVERHAUL
* Adventures can now customize both halves of the card, allowing for two pages.
* Each side can be an Adventure page, an Adventure page with only a name, a full text page, a flattened Adventure page, a flattened page with only the name, or blank.
* A decorations field has been set up, which allows adding additional flair around the pages to help set variants apart.
* Also we have better page images now.

PARTITIONS
* Partitions are finally live!
* Frames can add the card field "partition select" to access partition code, no additional scripting is needed.
* MSE handles partitions 0-9 and A-Z. Assign cards partitions 0-9 to sort before the default count at A, B-M to sort after it, and N-Z to sort after it and not be counted in the main set count, for card numbers like 301/300.
* The Set field "last main partition" allows the user to change the behavior by putting a replacement for M in the option.
* Card numbers default to the March of the Machine numbering of "0001" now
* But 001/099, 001, 1/99, 1, and 1000/0099 are now supported, with a second option to set overcounted cards to display with or without the main set count.
* Currently this is supported on M15 Mainframe and M15 Adventures. The rest are coming soon.

EXTRA THING
* Added Custom Border support to M15 Mainframe and M15 Adventures, which let you use magic-mainframe-extras to set up an additional border frame akin to Nyx and Vehicle. This is the finalized version used for Revolution's Ruin and Colorless frames.

BACKEND STUFF
* Adventures is trying out some new backend stuff that will get expanded upon in the coming patches:
* retooled the Landless array to be less jank
* retooled the template script a little to make it easier to hook out images with complicated links, most notably user-submitted ones like custom crowns and custom borders
* blend masks are now in their own folder
* discovered that 'styling.name or else ""' is legal code in script, which means we can make adding style options to frames *way* easier. the entire custom font code is now offloaded to scripts, and templates can access it without needing to copy paste anything beyond the styling field.

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-05-11 03:08:50 -05:00
GenevensiS
1adaf70609 Localization Update (#23)
Improved localization support across MSE. Unless otherwise noted, updates apply to Chinese, French, German, Italian, Japanese, Korean, Portuguese, Russian, and Spanish

Locales have been updated, including the Dutch and Polish locales. These may still want to be improved by native speakers but are no longer full of untranslated English strings.

Type line word lists are now localized, and will change with the Set tab language option rather than needing files to be edited. Chinese types are sorted by Unicode, Japanese types are sorted by gojūon, the rest are alphabetized in their own language. Card type and super types have also been reordered accordingly.

Added spellcheck dictionaries for most languages. Chinese and Japanese have instead had their spellchecking disabled so they don't have their entire cards underlined.
Updated the Beleren, MPlantin, and Relay fonts to support Cyrillic characters.

Number maps have been added to assist with localized keywords.
Localized keyword files have been added up to Lost Caverns of Ixalan. To use these, rename the magic.mse-game/keywords file to "keywords_en", then rename the keyword file of your choice to "keywords".
Craft has a simplified reminder text for most languages. The craft_code function in magic.mse-game/scripts provides a template for using the more comprehensive version English uses, with German having access to it as well so far.

Localized auto-frames for M15 Adventures, M15 Sagas, Mainframe Tokens, M15 Mainframe, Mainframe DFC, and GenevensiS frames

Added Totem armor -> Umbra armor to auto errata script, and updated it to allow for localized replacements

Did about as much stats page localization as we can get away with. French has been completed, other languages will need the stats names and help trace done by someone who actually knows the language.
---------

Co-authored-by: cajun <kajunkittyavenger@gmail.com>
2024-01-05 03:02:40 -06:00
GenevensiS
8c617b5936 Statistics Update (#12)
* Adding GenevensiS's stats page overhaul
* Update card_fields: automated stats are now disabled
* Update set_fields: added customization fields for stats
* Stats have new icons
* Updated position hint and card shape for several frames
* Added preliminary localization updates
* Added detect_custom_subtypes_statistic

---------

Co-authored-by: cajun <kajunkittyavenger@gmail.com>
2023-11-10 07:21:14 -06:00
cajun
94b8383b32 Scripts for card numbers
Add partition support
Add MOM card number support
Add Stamp support
No templates utilize these just yet
2023-11-04 20:53:05 -05:00
cajun
df7fbdef1b LCI Keyword/Type Update
Fixes #17
2023-11-04 19:25:12 -05:00
CajunAvenger
2ee67a67f2 dungeon fix, update stamp support 2023-02-14 00:00:26 -06:00
CajunAvenger
c9178918e5 fixing issue with alternate card languages 2022-05-20 18:56:37 -05:00
CajunAvenger
3c0b4a4d86 October update 2021-10-07 00:35:28 -05:00
CajunAvenger
eda330eee8 Initial commit 2021-07-09 02:07:58 -05:00