Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Random Modding Info

MoonlitDeath edited this page May 17, 2021 · 6 revisions

While none of these really deserve their own page, I will write some various things here you can do in your game to customize it a bit more.

Most of these require either hex editing the exe (make a backup of your original!) or editing memory values while the game is running using Cheat Engine. For hex editing, I use HxD which you can find here . While there are more advanced editors out there, this one works fine for what we need to do and you can use any other hex editor if you want to as well.

1.) Getting rid of the pause screen when the game is not focused.
If you’re using an exe that I uploaded in my mod or other places, then this is already done, but if you want to try it yourself, then open the exe in hex and look for and change these numbers-

8B 05 02 BC AE 02 A8 02 74 09 83 E0 FD

change that to-

8B 05 02 BC AE 02 A8 02 EB 09 83 E0 FD

2nd edit, search again for this-

8B 05 32 B6 AE 02 A8 02 75 09 83 C8 02

and change it to-

8B 05 32 B6 AE 02 A8 02 EB 09 83 C8 02

That should change and get rid of the pause menu only when the game is not focused, and you can still pause normally.


2.) Changing the starting LP-
Once again open the exe in hex and go to offset 768AE8 or search for C7 05 84 3C 52 00 40 1F 00 00 48 89 05 6D, there should only be one result. That 40 1F is equal to 8000 in hex, that is the starting LP for both players. So you can change that number to something else to give yourself a different starting LP. Say I wanted to change that to 10,000? It would go from-

C7 05 84 3C 52 00 40 1F 00 00 48 89 05 6D
to
C7 05 84 3C 52 00 10 27 00 00 48 89 05 6D


3.) Adding in new monster animations-
This is actually pretty easy, what you need to do is create or find a video for a monster you want to use (can’t use them on spell or trap cards I don’t think, even though that would be amusing), then download Rad Video Tools that you can find here

Once you install that, you can convert videos to the .bik format the game uses. I did have to use the 64 bit version to get all the options to appear, but you can just select your video there, select the “Bink it” option at the bottom and it brings up a new converter menu. You can set some different stuff here or just use the Bink button on the right side and it will convert your video. It’s possible to select multiple videos and have it run them in a batch to convert all of them for you as well.

After you are done with the edits you want and created the new videos, you need to name them by the ID number of the monster (you can find a list of ID’s on another page here), then look in the toc file so the repacker knows how to read it, and you will see the other videos there, just copy an existing entry, and put it in a new line, replace the copied number with the new one, save it and repack and it should show up now when you summon that monster.


4.) Changing the cards you start the game with-
If you look in the decks.zib, you will see 5 ‘Initial’ decks, starting with initialdeck_1classic.ydc. Those 5 decks are the cards you start with automatically in your trunk, and as a result are always in your trunk, even though the game doesn’t consider you to have actually earned or bought them as you can still get 3 copies of each regardless of how many it says you have at the start. You can customize these 5 decks how you want, so you can either start a new game with those cards in your trunk so you can start the game with your own personal deck, or can do same thing with an existing save file as those cards that are in those decks will always be available in your trunk. Also it’s possible to make the decks empty (can hex edit them so they are just 00 00 00 00 00, or all FF) and you will start with literally 0 cards and be stuck to whatever you win in duels or can buy from the shop with no starter cards. That is how I play through my own games since I like the challenge.

Alternately you can search for 2E 62 69 6E 00 00 00 00 7C 01 00 00 7D 01 00 00 7F 01 00 00 7E 01 00 00 80 01 00 00 00 00 00 00 in the exe. These are the ID’s of decks you start the game with and are ‘always available’. By checking the ID’s with the deck editor tool, we can see the ID’s match-
7C 01 =380
7D 01 =381
7E 01 =382
7F 01 =383
80 01 =384

These are all the ‘initialdeck’ files I listed above, if you look in the editor for another deck you want to find the ID of the deck, you can replace these numbers to match the deck ID you want, and the game will now have those in your trunk instead for you to use (this may only work on a new game, but I think it will work on existing save files too and stick those cards directly into your trunk to use, along with the recipe for each deck you put the ID of in there).


5.) Changing the starting avatars-
When you just start the game, you will have 5 of the main characters unlocked as avatars already in every save. If you’d like to change that, look in the exe for 69 00 00 00 77 00 00 00 23 00 00 00 AE 00 00 00 48 00 00 00 00 00 00 00 or offset A6BC78 (in hxd, Search/Go To/paste offset value in the box in the window that appears to jump directly to this section.)
By checking the character ID’s on the other wiki page, you can see that these are the avatars-
69- Yugi Muto
77- Jaden Yuki
23- Yusei Fudo
AE- Yuma Tsukumo
48- Yuya Sakaki

If for some reason I want to start the game and Chazz it up, I would see that Chazz has an ID of 75, so I would just replace one of those numbers above with 75, (such as changing the 77 value to 75 instead) and I would start the game with him as an avatar instead of Jaden. Note that this will only work on new save files, as the avatars you unlocked are saved to your save file soon as you start, so editing the values later after you begin a save won’t matter. Also note that the character limit is 235 for characters you can add, but it is possible to add custom avatars into spaces 236, 237 and be able to use custom avatars without having them take up a character slot. I didn’t test this too much, or with higher numbers, but it seems to work.


6.) Removing the white screen of the avatar box-
If you are using the pirated/non-steam version of the game, depending on what version you are using, you may have an ugly white box covering the avatar box on the main menu/card shop screen. You can get rid of this by searching for the text ‘avatarbox’ in the exe, search for C2 00 00 00 42 12 00 00 00 00 00 00 00 D0 40 A5 40 01 in the exe, or jump directly to offset A813AB. Slightly above avatarbox, or directly at that offset, that C2 number is a position for that white box/avatar. Try changing that to C9 and it will get rid of that box (it actually is just coordinates for the display and we are putting a higher number there to move it farther over to the right, so if you have a bigger screen and it still shows, you can put a higher number there to move it over more). You will be left with the normal blue square of the avatar which you can find and edit directly in the pdui/doshared image (it’s the little blue box over on the right side in the middle. This might also work for people on the Steam version if you’d like to have a different avatar in your game than you use on Steam. All you need to do is put an image inside the blue square in the doshared image, and that will be your new avatar in game, after you save and repack your files of course.


7.) Adding a new arena-
There’s a free space in the exe for only one new arena, but if you’d like to add one, look at offset A51770 or search the value of 12 00 00 00 00 00 00 00 78 22 A5 40 01 00 00 00 you will see this-

That part I have highlighted is what we want to edit. Those 16 bytes are normally all 00 00, but I will paste in 13 00 00 00 00 00 00 00 84 22 A5 40 01 00 00 00 so it looks like this-

This is the new data for the new arena. Right after the Vrains 2019 text in my image, you can see that I wrote in ‘13’, this is the ID I am going to use for the new arena, to match the new arena ID. If you check the Arena ID page here, you will see that these values in my picture (the very first number in each row above the blue highlight) all correspond to the same ID’s. Here we will be adding a new arena with the ID of ‘13’, the 2nd part of the code I wrote, and the last 8 numbers of the 16 byte data for each arena entry, are memory addresses of where it is reading the arena data in memory when the game is running, so I pointed it directly to offset 0140A52284, wrote it backwards in hex so the exe can read it (84 22 A5 40 01) and now it is pointing to our new ID.

Next we would need to edit the arena.bin, but I did that already and you can use my file here

Now all you need to do is go to the arenas folder, create a new image named ‘13’ (you should keep the name as 13 to match the ID but you can name it something else but make sure it matches the number/letters you wrote in the exe where I wrote 13) of what you want the new arena to look like, then add a new line into the YGO_2020.toc file so the repacker knows how to repack it. I can search for arena in my toc and it looks like-
97134 e arenas\5ds.jpg
7e567 f arenas\arc5.jpg
62c49 11 arenas\barian.jpg
ca382 10 arenas\blimp.jpg
f9b4d 17 arenas\blimp\Ground.png
499c7 16 arenas\blimp\cloud.png
c18f5 19 arenas\blimp\platform.png
96ac2 d arenas\gx.jpg

I will add in the new arena so it looks like-
97134 e arenas\5ds.jpg
7e567 f arenas\arc5.jpg
62c49 11 arenas\barian.jpg
ca382 10 arenas\blimp.jpg
f9b4d 17 arenas\blimp\Ground.png
499c7 16 arenas\blimp\cloud.png
c18f5 19 arenas\blimp\platform.png
96ac2 d arenas\gx.jpg
96ac2 d arenas\13.jpg

I just copied the line above it, replaced the ID name and we are set. Make sure to also edit either the dueldata.bin or character.bin to mark the ID as playable in a duel/challenge duel so we can actually see the arena in game for the duels it is supposed to be in.


9.) Changing the number of cards you start the duel with and max number of cards you can hold-
Another exe address here, B8 05 00 00 00 BA 40, or offset 5F19D, that 05 number is the 5 cards you start the duel with. If you want to start with more, simply change that to another number in hex (note this changes it for both you and the opponent).
At offset 5C5A2 or searching 5A FF FF 44 8B F0 85 F6 B8 06 00 00 00 BF FF FF, the 06 there in the middle is the max limit of cards a person can hold during the duel, can change that to another number. If you change it to 00 for instance, you will be forced to discard all cards at the end of the turn because you set the max hand limit to zero lol.
-—————————————————————————————————————————————————————————————————————-

Clone this wiki locally