Morgan LeFlay Posted October 6, 2011 Report Share Posted October 6, 2011 Step 1: Go to [url="http://www.xerocreative.com/yvd9.0/lists/advanced.html"]http://www.xerocreat...s/advanced.html[/url] and right click - view source. You can use this source to create your own HTML file, just follow the template it uses and use that template to make your own ban list. Step 2: Find a no-ad place where you can get web hosting. I used to use x10hosting.com it's free but requires that you log into a forum once per month. Step 3: Download a free hex editor. I use XVI32 which can be downloaded at [url="http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm#download"]http://www.chmaas.ha...32.htm#download[/url] Step 4: In Windows Explorer, right click your YVD executable file and select copy. Then right click, and paste. Rename it to something that you want your custom executable to be called. (For example Yugioh Virtual Dueling - CCG Mode) Step 5: Now open your custom YVD using your hex editor. Here are the things I'm going to show you how to change: You will be able to give a custom URL that YVD uses to read the ban list off of. You will be able to have it read a different file other than yvd.set (ccg.set, for example) You will be able to change the location that the updater reads when updating set file, so you can distribute it to your CCG's users more efficiently. [spoiler=How to change a value using the hex editor] So I better first show you the basics: In XVI32, address / goto and type in 213DC You should see what I see: [url="http://imageshack.us/photo/my-images/853/tutorial1m.png/"]http://imageshack.us...tutorial1m.png/[/url] the current value highlighted is http:// www.xerocreative.com/yvd9.0/lists/ this is the folder in which the ban lists are stored. Keep in mind you can not have a URL with more characters than this. It has to be equal or shorter because you cannot add extra data using a hex editor, you can only modify it. my web site's folder is http:// ccgcentral.com/xcgfiles/setslists/ so I am going to click on the right side of the screen and use my keyboard to type the values for that site, every other character. I will use the arrow keys to skip the character, I can't use spaces in between. (Note the corresponding ASCII values you see on the left side of the screen - if it is blank space, it should say '00'. Likewise if you shorten the URL you need to replace the rest of it with '00 values by clicking on the LEFT side of the screen and typing 00 on the values that need to be taken out. the changed version looks like this: [url="http://imageshack.us/photo/my-images/64/tutorial2j.png/"]http://imageshack.us...tutorial2j.png/[/url] Anyway, there's just one more thing you need to know. Go back to the first picture and look at the number in PINK. That number corresponds to the number of characters in the group of characters in the string you just changed. Now this number is listed in hexadecimal so you'll need to do some calculating. My URL is the same length YVD uses and I did it on purpose, but here's how you calculate that number should go there. If you're using windows, open Calculator and there should be a Programmer mode or a mode that lets you shift between decimal and hexadecimal. Enter Decimal mode and count the number of characters in your string (41 for me). Put it in here. Then multiply that number by 2, since it's counting the extra whitespace so, 82. And then click Hexadecimal to convert that number to hexadecimal (or use an online converter) So my 41-character URL here would 52 in hexadecimal. Which it already is since I made my URLs the same length. [/spoiler] So yes, the instructions might be a little complicated if you don't know much about computers. But you just use those same instructions to change what needs to be changed. I will do the searching myself and here are the values that need to be changed depending on your needs: Don't forget to change the value exactly 4 characters before the value I gave, to tell it how long the text is you're adding. Read the earlier part on how to do that as well To change the the description for No List (you can use it for News or anything else): 212EC To change the URL for the website No List uses: 2135C To change the URL (Folder only) for the website Advanced and Traditional use: 213DC To change what YVD calls Advanced format: 22084 (This value also defines what your ban list must be named. If you call it Advanced, your list must be saved as "advanced.html" in the folder you specified.) To change what YVD calls Traditional format: 2209C (This value also defines what your ban list must be named. If you call it Traditional, your list must be saved as "traditional.html" in the folder you specified.) To change yvd.set to something else: at 23DF0 you need to change "/yvd.set" to "/ccg.set" or whatever else you want. At 24970 you need to change "yvd" to that same value ("ccg" or whatever else.) To change where the built-in card updater gets its cards from: go to value 23F10 and replace that LONG url with a URL on your site. The one on your site needs to be a .txt file and NOT a .set file. so on the side you can call it yvd.txt or something similar, just put the URL here. Then you just store your custom YVD in the same folder as your regular YVD. All you need to distribute is your custom .exe and your custom .set file and have them put them in their main YVD folder, should be good to go then. If anyone needs help feel free to ask questions. Link to comment
seattleite Posted October 6, 2011 Report Share Posted October 6, 2011 A great tutorial Conan But my HTML file messed up - can you tell me what i did wrong? It shows the raw code form and not the output: http://lccgcentral.x10.mx/ccg.html Link to comment
Morgan LeFlay Posted October 6, 2011 Author Report Share Posted October 6, 2011 [quote name='seattleite' timestamp='1317942333' post='5564840'] A great tutorial Conan But my HTML file messed up - can you tell me what i did wrong? It shows the raw code form and not the output: [url="http://lccgcentral.x10.mx/ccg.html"]http://lccgcentral.x10.mx/ccg.html[/url] [/quote] You probably didn't do it in notepad, and you used word or some other editor that didn't save it as raw code, but took it as you wanted to display the text instead. Copy the source in notepad and save (using quotes) "ccg.html" Link to comment
seattleite Posted October 6, 2011 Report Share Posted October 6, 2011 Works perfectly now. Thanks! Link to comment
Hippocampus Posted October 28, 2011 Report Share Posted October 28, 2011 If you don't have web hosting, could you put your files on an ftp? Link to comment
seattleite Posted October 28, 2011 Report Share Posted October 28, 2011 [quote name='cfc1993' timestamp='1319815679' post='5604609'] If you don't have web hosting, could you put your files on an ftp? [/quote] The web hosting site I used supports FTP. You should check it out: http://x10hosting.com/ Link to comment
Hippocampus Posted October 28, 2011 Report Share Posted October 28, 2011 Thanks for the link, but that's not exactly what I was asking. My friend has his own website and his own password-protected FTP, and I was wondering, if I uploaded a custom YVD ban list in it, would I be able to simply change the custom URL to the URL of the FTP so it could be read from there, or would I need to do something else in addition? Link to comment
seattleite Posted October 28, 2011 Report Share Posted October 28, 2011 [quote name='cfc1993' timestamp='1319833856' post='5604885'] Thanks for the link, but that's not exactly what I was asking. My friend has his own website and his own password-protected FTP, and I was wondering, if I uploaded a custom YVD ban list in it, would I be able to simply change the custom URL to the URL of the FTP so it could be read from there, or would I need to do something else in addition? [/quote] Yes, if you upload the file, then change the URL, there is nothing else you need to do. Link to comment
Hippocampus Posted October 28, 2011 Report Share Posted October 28, 2011 This works beautifully! Thank you so much Conan and seattleite! Link to comment
seattleite Posted October 28, 2011 Report Share Posted October 28, 2011 oh, well he did all the work Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.