Skip to content

Instantly share code, notes, and snippets.

@BobbyWibowo
Last active November 2, 2023 03:11
Show Gist options
  • Save BobbyWibowo/666f45d386594df0c4f58edce367d67b to your computer and use it in GitHub Desktop.
Save BobbyWibowo/666f45d386594df0c4f58edce367d67b to your computer and use it in GitHub Desktop.

My Magane Custom Packs

UPGRADE NOTICE

Current recommended method of adding custom packs to Magane is via the Import tab (PR merged to upstream).

Importable JSON config files of my custom packs can be found here: https://magane.fiery.me/configs/. Please read SUBMISSION_REQUEST.txt if you want to request new packs.

If you have imported any packs in this page previously using the older method, please read Upgrading.


Older methods using the Console APIs

Notice

Using the console APIs, as described in this section, is an older method.

You can still use them after turning on window.magane development utility via the Misc tab, but they are now generally for advanced users only.

screenshot


Disclaimer

Adding the packs in this Gist requires using Magane's console API, namely magane.appendCustomPack() (doc).

All the stickers in here were intentionally shrunked down to ?x180 (height enforced to 180px maximum, while width could either be more or less than 180px depending on their aspect ratio) to match the resolution of Magane's built-in packs.

If there's anything else, find my contacts in my homepage https://fiery.me.

References

### GIFs
# FFMPEG: if required, convert APNG to GIF
for i in *.png; do ffmpeg -i "$i" "${i%.*}.gif"; done

# Gifsicle: resize as explained above
# Command below will work in-place, so original data will be lost. Backup if required.
gifsicle --batch --resize-fit _x180 *.gif

# Optional: "do not stack frames" (Discord may otherwise render them oddly)
gifsicle --batch --disposal bg --resize-fit _x180 *.gif

### PNGs
# ImageMagick (portable): resize as explained above
# Command below will work in-place, so original data will be lost. Backup if required.
magick mogrify -resize x180\> *.png

# OptiPNG: lossless compression for static PNG packs
optipng -o7 *.png

Additionally, some packs may also have thumbnails at ?x100 (height enforced to 100px maximum).

ID vs Alt. ID

When adding the custom packs into Magane, you can either use the normal ID or the Alt. ID, either one will work just as fine as the other.

If you then want to purge the pack from your Discord's storage, you need to refer to it by the ID you initially used when adding the pack.

You can also try to query the storage with magane.searchPacks() (doc) if you forget.

Navigation

Custom Packs

Azur Lane Stickers Vol.1 English.ver (v2)

Screenshot

32 stickers. These are the ones from the game. For instance, unlike the LINE version, Sandy's "Dummy" sticker instead says "Idiot". There are also a few other different stickers.

If you want to avoid duplicates in your stickers list, you can temporarily subscribe to both this pack and the LINE version (Magane has it built-in), then favorite the different ones. Afterwards, unsubscribe from either one of them.

DO NOT delete this pack with magane.deletePack() (or the X button in packs list), if you have have some if its stickers as favorites. Just unsubcribe from the subscription list, because otherwise Magane will automatically remove stickers of missing packs from your favorites.

ID: YzgP5Ijs8E
Alt. ID: fieryazurlanevol1 (?)

magane.appendCustomPack('Azur Lane Stickers Vol.1 English.ver (v2)', 'fieryazurlanevol1', 32, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Azur Lane Pixel Stickers

Screenshot

15 stickers. From the game.

ID: k9HCOlIRkV
Alt. ID: fieryazurlanepixel (?)

magane.appendCustomPack('Azur Lane Pixel Stickers', 'fieryazurlanepixel', 15, 1, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact Chat Stickers

Screenshot

16 stickers. From the game. Thanks to Modder4869 for the archive!

ID: LjKMZ4xawj
Alt. ID: fierygenshinlegacy (?)

magane.appendCustomPack('Genshin Impact Chat Stickers', 'fierygenshinlegacy', 16, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact 2.1 Chat Stickers A

Screenshot

16 stickers. From the game. Thanks to Modder4869 for the archive!

ID: 06ZDoBnACV
Alt. ID: fierygenshin21a (?)

magane.appendCustomPack('Genshin Impact 2.1 Chat Stickers A', 'fierygenshin21a', 16, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact 2.1 Chat Stickers B

Screenshot

16 stickers. From the game. Thanks to Modder4869 for the archive!

ID: lZUffCR5X0
Alt. ID: fierygenshin21b (?)

magane.appendCustomPack('Genshin Impact 2.1 Chat Stickers B', 'fierygenshin21b', 16, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact 2.1 Chat Stickers C

Screenshot

16 stickers. From the game. Thanks to Modder4869 for the archive!

ID: NHZiFbZhq7
Alt. ID: fierygenshin21c (?)

magane.appendCustomPack('Genshin Impact 2.1 Chat Stickers C', 'fierygenshin21c', 16, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact 2.1 Chat Stickers D

Screenshot

16 stickers. From the game. Thanks to Modder4869 for the archive!

ID: ROhWjouEhM
Alt. ID: fierygenshin21d (?)

magane.appendCustomPack('Genshin Impact 2.1 Chat Stickers D', 'fierygenshin21d', 16, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact 2.1 Chat Stickers E

Screenshot

16 stickers. From the game. Thanks to Modder4869 for the archive!

ID: ToY0CHx9UD
Alt. ID: fierygenshin21e (?)

magane.appendCustomPack('Genshin Impact 2.1 Chat Stickers E', 'fierygenshin21e', 16, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact Mix 1

Screenshot

51 stickers. Compiled by Modder4869.

ID: cwvjuPTfV2
Alt. ID: fierygenshinmix1 (?)

magane.appendCustomPack('Genshin Impact Mix 1', 'fierygenshinmix1', 51, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Genshin Impact Mix 2

Screenshot

12 stickers. Compiled by Modder4869.

ID: Q3evkiWwly Alt. ID: fierygenshinmix2 (?)

magane.appendCustomPack('Genshin Impact Mix 2', 'fierygenshinmix2', 12, 0, 'https://i.fiery.me/stickers/%pack%/%id%')

Upgrading

Please run the following in your console, line per line, to upgrade existing packs from this page into the new format (only run for the packs that you use):

magane.editPack('custom-fieryazurlanepixel', { updateUrl: 'https://magane.fiery.me/configs/azurlanepixel.json' });
magane.editPack('custom-fieryazurlanevol1', { updateUrl: 'https://magane.fiery.me/configs/azurlanevol1.json' });
magane.editPack('custom-fierygenshin21a', { updateUrl: 'https://magane.fiery.me/configs/genshin21a.json' });
magane.editPack('custom-fierygenshin21b', { updateUrl: 'https://magane.fiery.me/configs/genshin21b.json' });
magane.editPack('custom-fierygenshin21c', { updateUrl: 'https://magane.fiery.me/configs/genshin21c.json' });
magane.editPack('custom-fierygenshin21d', { updateUrl: 'https://magane.fiery.me/configs/genshin21d.json' });
magane.editPack('custom-fierygenshin21e', { updateUrl: 'https://magane.fiery.me/configs/genshin21e.json' });
magane.editPack('custom-fierygenshinlegacy', { updateUrl: 'https://magane.fiery.me/configs/genshinlegacy.json' });
magane.editPack('custom-fierygenshinmix1', { updateUrl: 'https://magane.fiery.me/configs/genshinmix1.json' });
magane.editPack('custom-fierygenshinmix2', { updateUrl: 'https://magane.fiery.me/configs/genshinmix2.json' });

Afterwards, you need to manually press the Up button, one by one, in the packs list (Installed or Packs tabs):

image

OR scroll down on Import tab and click the following button:

image

Alternatively, you can just unsubscribe from the old packs, then re-import them with the new JSON config files from here: https://magane.fiery.me/configs/.
However, doing so will unfavorite any associated stickers from the packs.
If you only have few favorites, or none at all, from the packs, then just re-import to save time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment