Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneff committed Aug 16, 2018
2 parents cabb952 + 5533aac commit 7f1761b
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions YGOLOTDPatchDraft/Notes.txt
Original file line number Diff line number Diff line change
@@ -1,52 +1,11 @@
Scrape the yugioh database with e.g. python, create a .csv file which maps CardName to CardNumber, then I can go from YGOPRO number to CardName to CardNumber
Make command line tools so I can batch the packing automatically

TODO:
Tool to extract YGO: LOTD battle pack deck (ideally the one with most AI decks (bp1 > bp2 == bp2r2) OR with the most cards if expanding/shrinking doesn't work (bp2 > bp1 > bp2r2) to YGOPRO format.
Tool to assemble YGOPRO "decks" and put them as a battle pack inside the zib file. If we can't find the card in the .csv database -> store it in a list and query later or add manually.
Automate all that stuff. Ideally, I just want to have a program which can do all the assembling/patching in one go.
It should have at least a button for patching the battle pack with the data and automatically copying it into the YGO_DATA folder.
It should also accept JSONs?

Make a combined tool which:
- on startup, check if paths are set, if the paths contain required files (YGO_DATA.dat, .exe, .csv, ...)
- unlock buttons if the required files are there. (e.g. unlock extract YGO_DATA only after YGO: LOTD path is set.)
- extracts YGO_DATA and stores your YGO: LOTD path inside an ini or something
- asks for your save path and stores that
- has a button to extract the draft deck from savegame.dat and store it in deck_database as ygopro decks. (In order to easily add new decks)
- therefore we need a method to convert 3 lists (main / extra / side) of card-IDs to 3 lists of ygopro IDs. (which is what the .csv does)
- contains cards.cdb and doesn't ask for it
- has an output folder which will contain versions of the files created
- automatically extracts packs.zib
- automatically patches battlepack 1 with the decks in the draft_cards folder
- automatically packs packs.zib
- automatically extracts decks.zib
- automatically 'randomizes' draft battle opponent decks
- automatically rebuilds YGO_DATA
- asks for copying it to your YGO: LOTD directory
- to be save - ban every card ID later than late 2016 (CID > 12500?)

YEAH, IT FUCKING WORKS!

AI-DECKS:
CHECK if we can extend the number of AI decks in draft play -> just adding more decks doesn't crash, but doesn't add them either. Can't seem to expand that either.

I don't know what the first 8 bytes of the .ydc files is - seems to have a few fixed values (8C 64, 0A 61, ...)


PACKING:

Cyclone -> zib folder to zib
Copy zib to YGO_DATA folder
Vortex -> YGO_DATA to dat


NOTES:

Changing Deck in decks.zib with HxD works

Decks can be illegal (all Exodia pieces + only pot of greed left)

Fixed Padding/File sizes in Relinquished/Cyclone.

SAVE NOTES:
Expand All @@ -65,7 +24,6 @@ then:
then afterwards: some junk, and then: cards you drafted



PACK NOTES:
Apparently they do rarity by simply adding multiples of cards?.
Extracting the .ydc works the same as extracting the .bin files, so the fixed Cyclone/Relinquished works for both decks and packs.
Expand All @@ -85,4 +43,4 @@ PACK HEADER:
2 byte length -> number of cards in that block. (== numBytes / 2)
length x 2 byte cards -> card IDs (same as used on the official yugioh database)

You can extend those files past their initial size without issues.
You can extend those files past their initial size without issues.

1 comment on commit 7f1761b

@DrakanN89
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

11

Hello friend, I would like a great help, I want to extract the images of the letters, I believe they are in these two files shown in the image above.

Another thing, I want to translate the description of the cards in Pt-Br, do you know where the texture of the cards is located?
Thanks in advance and a great job you have done.

Please sign in to comment.