Welcome Guest! To enable all features please try to register or login.
Go to last post Go to first unread
#1 Posted : Tuesday, February 04, 2020 4:10:23 PM(UTC)

Rank: Member

Joined: 5/18/2015(UTC)
Posts: 53

Thanks: 19 times
Was thanked: 18 time(s) in 14 post(s)
YGOFabrica logo

Hey guys! I've come here to show one of the projects I've been working on: YGOFabrica. This is a command line program to help automating the creation and management of custom card packs!

You can access the public development repository, follow the installation instructions, and enjoy. I'll show here some of the features:


- Creation of YGOPro extension pack folder structure
With the command `ygofab new`, a new folder is created with all the folders needed: pics, script, expansions, and artwork. This last folder is used for another cool command.

- Global and local configurations, e.g. game folders
Inside the folder created by `ygofab new`, there is a file called `config.toml`. You can edit this file to create local configurations for your pack. And there is a file with that same name where the program is installed, this is where you edit global configurations, that apply to all of your projects. You can use these files to specify where your YGOPro game is located, for example.

- Synchronization of pack to game folders:
With the command `ygofab sync`, all files needed for your pack to be usable in the game are copied to your game folder(s). In case you have more than one game folder - for example, a game folder with Link monsters, but no AI mode, and another older game version that doesn't have Link mosnters but have AI mode -, you can specify a folder (previously configured) by using `ygofab sync -g links` or `ygofab sync -g test`, respectively.

- Export pack to .zip, ready for sharing
With the command `ygofab export`, a .zip file is created with all the necessary files for you to upload and publish your pack.

And now the two best features:

- Generation of card pics from .cdb and raw artwork
This is where the artwork folder is used. If you place the artwork of your card (just the art, not the entire card pic) in that folder, named after its ID (e.g. 98301564 for Guiding Ariadne), with the command `ygofab compose`, YGOFabrica will retrieve card data from the card database of your pack and automatically generate the complete card pic! You can even specify (in the config.toml file) how you want it to be generated: using proxy style or anime style, using a different size, etc. By the way, the proxy card pics are HD (or kinda, it's 694x1012), so if you want to print them, it's already done.


This command can be used with or without a proper pack. If you use `ygopic` insteadof `ygofab compose`, you can specify directly a folder with images and a .cdb file to generate arbitrary card pics, not only those in a pack. This is useful if you are renewing card pics of already existing cards.

Aaaaand, even though no cards like that exist (yet), you can use this to generate Ritual Pendulum monsters and even Link Pendulum monsters. YES.

- Making .cdb files out of descriptive .toml files
Inserting rows in a database manually and trying to figure out which combination of numbers gives you the correct type for a card is quite troublesome, right? This is no longer needed! You can describe your cards like this, in a .toml file:


id = 98301564
name = "Guiding Ariadne"
type = "monster effect pendulum"
atk = 1700
def = 800
level = 4
race = "fairy"
attribute = "light"
category = "search"
pendulum-scales = [3, 3]
pendulum-effect = '''
Apply these effects.
● You do not pay LP to activate Counter Trap Cards.
● You do not discard to activate Counter Trap Cards.'''
effect = '''
If this card is destroyed by battle or card effect: You can reveal 3 Counter Trap Cards from your Deck, your opponent chooses 1 for you to add to your hand, and you shuffle the rest back into your Deck.'''

And with the command `ygofab make`, this file is translated into a card database! You can describe multiple cards in a same file, or split them, it's totally up to you. You can even start describing a card and later complete it. For example, if you plan to provide translations for your pack, you can describe the type, atk, def, level, etc. of the card only once, and, in a different file, describe its text. If you guys want, I can show this and two other features (sets and macros) in details.

Note: .toml files are just text files meant to be written in the TOML language. It's very simple to use and human readable. Check that link for more details.

Edited by user Wednesday, February 12, 2020 5:02:54 PM(UTC)  | Reason: Release was published

thanks 1 user thanked PiFace for this useful post.
#2 Posted : Wednesday, February 12, 2020 4:30:32 PM(UTC)

Rank: Member

Joined: 5/18/2015(UTC)
Posts: 53

Thanks: 19 times
Was thanked: 18 time(s) in 14 post(s)
YGOFabrica has been released! You can follow the installation instructions to download and use it here.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.