Skip to content

Conversation

@purerosefallen
Copy link
Member

@purerosefallen purerosefallen commented May 10, 2025

Usually the card texts are presented with new lines, while some YGOPro clients or card picture generators need new lines, and some others does not.

This script converts the database files into different format, while diverted/<locale>-nonewlines/cards.cdb are generated without new lines, and diverted/<locale>-newlines/cards.cdb are for common format.

This requires non-Chinese databases placing \t after forced new lines.

Example

In original database

1 Tuner + 1+ non-Tuner monsters\t
When a card or effect is activated that would destroy a card(s) on the field (Quick Effect): You can Tribute this card; negate the activation, and if you do, destroy it.
During the End Phase, if this effect was activated this turn (and was not negated): You can Special Summon this card from your GY.

nonewline version

1 Tuner + 1+ non-Tuner monsters
When a card or effect is activated that would destroy a card(s) on the field (Quick Effect): You can Tribute this card; negate the activation, and if you do, destroy it.During the End Phase, if this effect was activated this turn (and was not negated): You can Special Summon this card from your GY.

newline version

1 Tuner + 1+ non-Tuner monsters
When a card or effect is activated that would destroy a card(s) on the field (Quick Effect): You can Tribute this card; negate the activation, and if you do, destroy it.
During the End Phase, if this effect was activated this turn (and was not negated): You can Special Summon this card from your GY.

@purerosefallen purerosefallen changed the base branch from master to develop May 10, 2025 01:34
@mercury233
Copy link
Collaborator

If you make changes to CI, they should be made in GitHub from now on, instead of AppVeyor or GitLab.

@purerosefallen
Copy link
Member Author

This is not a CI change.

@purerosefallen
Copy link
Member Author

If any CI references the diverted cdbs, they should run divert.sh themselves.

@mercury233
Copy link
Collaborator

I don't agree to rely on GitLab

@purerosefallen
Copy link
Member Author

I mean this is not a CI change at all.

@mercury233
Copy link
Collaborator

Then you should delete the file .gitlab-ci.yml

@purerosefallen
Copy link
Member Author

Then you should delete the file .gitlab-ci.yml

This is not related to this PR

@purerosefallen purerosefallen mentioned this pull request May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants