Guest User

Getting Around SMM1 Uploading Errors

a guest
Jul 14th, 2024
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.71 KB | None | 0 0
  1. ~~~~~~~~~~ Getting Around SMM1 Uploading Errors ~~~~~~~~~~
  2.  
  3. Levels in Super Mario Maker can be marked with one of three flags that prevent them from being uploaded. These are:
  4. The flag for if the level is already uploaded.
  5. The flag for if the level was uploaded but has been deleted from course world.
  6. The flag for if the level was downloaded from course world.
  7.  
  8. If you try to upload a level from the Nintendo Network servers to the Pretendo servers, you will likely encounter an error caused by one of these three flags. This guide will explain how to edit level data to unmark these flags and allow any level to be uploaded.
  9.  
  10. You will need two things to follow this guide:
  11. 1. A way to directly access your Super Mario Maker save file directory. I will give instructions for how to do this on both CEMU and original hardware.
  12. 2. A hex editor. For Windows users, I recommend HxD. The rest of this guide will give direct instructions for HxD, but the process is fundamentally the same no matter what hex editor you use.
  13.  
  14.  
  15. ---Accessing your Mario Maker save file directory on CEMU---
  16. Open CEMU, and click on "File > Open MLC folder"
  17. From the directory that was just opened, go to ".\usr\save\00050000\1018dc00\user\<800000 number of user>"
  18. Note: <800000 number of user> will almost always be 80000001.
  19. This directory is your Mario Maker save file directory.
  20.  
  21.  
  22. ---Accessing your Mario Maker save file directory on original hardware---
  23. You will need a hacked Wii U for this process. If your Wii U is not already hacked, follow this guide: https://wiiu.hacks.guide/
  24. There are multiple ways to do this, but for this guide I will be using FTPiiU and assume your Wii U is hacked with Aroma.
  25. Open the Wii U Plugin System Config Menu (this is opened with a button combo. The default combo is L + Down + Select)
  26. You should see "FTPiiU" in your plugins list.
  27. If you do not see FTPiiU, download it from here: https://github.com/wiiu-env/ftpiiu_plugin/releases
  28. and follow the install instructions from here: https://github.com/wiiu-env/ftpiiu_plugin
  29. Select FTPiiU, and open "Settings." Make sure both "Enable FTPiiU" and "Allow access to system files" are both set to true.
  30. You will need an FTP client on a computer on the same LAN as your Wii U. For Windows users, I recommend WinSCP, but any will work.
  31. Open your FTP client and start a new Session. WinSCP will prompt you with a new session window automatically upon opening it.
  32. Set the file protocol to "FTP"
  33. On your Wii U, the FTPiiU menu should list the IP of your console and a port.
  34. In your FTP client, set the "host name" to the IP of your console and the port to whatever is displayed on the FTPiiU menu.
  35. Click "Login."
  36. The FTPiiU menu should say "You can connect with empty credentials"
  37. In this case, if you are prompted for credentials, click "Ok" with nothing entered and you will connect to your Wii U.
  38. Now that you are connected to your Wii U via FTPiiU, you can freely read and write files in your Wii U's storage by using the upload and download options in your FTP client.
  39. Your Super Mario Maker save file directory will be at "./storage_mlc/usr/save/00050000/1018dc00/user/<800000 number of user>"
  40. In "./storage_mlc/usr/save/00050000/1018dc00/user/" there will most likely be multiple 800000 files. There is one
  41. for each registered user that has Mario Maker save file data. If you see multiple, you most likely want to select the one with
  42. the largest number, as that will be the one that was most recently created. If you registered your Pretendo account after your
  43. Nintendo Network ID account, then the most recent one will be your Pretendo save file.
  44.  
  45.  
  46. Your Mario Maker save file directory should have a files called "notify.ntf" and "save.dat", along with folders titled "courseNNN" where NNN will be a number from 0 to 119.
  47.  
  48.  
  49. ---Finding the right level---
  50. You need to find the course folder that corresponds to the level you would like to upload. Intuitively, you may think that the course number will correspond to the slot the course occupies in Course Bot, so course000 would be World 1 level 1, course005 would be World 2 level 2, and so on. If you have never moved a level in Course Bot by dragging it to a different slot, then this is correct. However, if you have switched around your level slots, this will not work. When you move around levels in Course Bot, the game does not swap around level files. Rather, the "save.dat" file, among other things, keeps track of which file corresponds to which Course Bot slot. To see which file corresponds to which slot, you will need to open your save file in a hex editor.
  51.  
  52. Open HxD, (or your hex editor of choice) and view "save.dat" within the hex editor. You will need to download it and work with a copy if you are using real hardware, as you cannot directly open files from your Wii U in HxD without downloading them first.
  53. You can open files in HxD by simply dragging and dropping them into the hex editor window.
  54.  
  55. In your hex editor, go to offset 0x4340. You can do this in HxD by hitting ctrl+G, entering "4340" into the "Offset" bar, making sure "hex" and "begin" are the options selected, and selecting "Ok."
  56.  
  57. The values from offset 0x4340 to 0x43B7 should be either a hexadecimal number from 0 to 77, or it can be FF.
  58.  
  59. To find the files for the level you would like to upload, do the following:
  60. Take the world and level number of the level in Course Bot. Subtract 1 from the world number and multiply the difference by 4, and then add the level number. This will be the slot your level occupies in Course Bot. Then, subtract one from this number, and convert your number into hexadecimal (Google "<number> in hexadecimal" if you don't know how to do that conversion). Then, look for that hexadecimal number in HxD in the range from 0x4340 to 0x43B7. Once you find it, highlight the region from that number to the value at 0x4340. The bottom of the HxD window should says "Length(h): <some hexadecimal number>." Convert that number from hexadecimal to decimal, and subtract 1. The resulting number should be the number of the "courseNNN" directory for the specified level.
  61.  
  62. If you are working from CEMU, make a copy of "./courseNNN/course_data.cdt", and then open the original in HxD. If you are working from original hardware, download "./courseNNN/course_data.cdt", make a copy of the downloaded file, and open the original download in HxD. While making a copy is not completely necessary, you will be directly editing this file, so it is worth having a backup to restore from if you make a mistake and accidentally destroy the level file. You should be able to tell if you've found the right file based on the ASCII text on the right side of the hex editor. If you can make out the level title, then you've found the correct file. (Titles made of non ASCII characters, i.e. Japanese characters, will not display correctly.)
  63.  
  64. In case you found that confusing, I created a visual guide here: https://imgur.com/a/YJ6o49R
  65.  
  66.  
  67. ---Editing the level file---
  68. You will be directly editing the level file in this step, so as I mentioned in the previous section, make sure you have a safe copy of the .cdt file.
  69.  
  70. The bytes within course_data.cdt that are relevant to making a level uploadable are:
  71. Offset 0x20: Flag for if a level was download from Course World. A value of 00 means it was not downloaded, a value of 01 means it was.
  72. Offset 0x21: Flag for if a level was removed after having been uploaded. A value of 00 means it has not, a value of 01 means it has.
  73. Offset 0x6E: Flag for if a level is currently uploaded. A value of 00 means it is not, a value of 01 means it is.
  74. Offset 0x6F: Flag for if a level is clear checked. A value of 00 means it is not, a value of 01 means it is.
  75.  
  76. For a level to be uploadable, 0x20, 0x21, and 0x6E must all be 00. If you set 0x6F to 01, you can skip having to clear check your own level. Technically this lets you upload impossible levels, so I urge you to use this power responsibly. In HxD, editing bytes is as simple as selecting the offset you want to edit, and typing in the new value. Bytes you have edited since you last saved will be red.
  77.  
  78. After you have edited the flags needed to allow uploading, there is still one more step before your level will work in game. From offset 0x8 to 0xB is a four byte checksum of the file from offset 0x10 onward. In order for the game to recognize your edited level file, you will need to correct the four byte checksum with the following steps:
  79.  
  80. In HxD, highlight offset 0x10 and do not let go of the left mouse button. While you are still holding down the mouse, do ctrl+A, at which point you are free to let go of the mouse button. If you did this correctly, every byte in the file from 0x10 onward will be highlighted. Next click "Analysis > Checksums..." to open the "Generate checksums" menu. Select "CRC-32", and make sure "Selected Data" is marked as the option for "Scope". Click "Ok", and an 8 character checksum should appear. Go to offset 0x8 of the file, and type the checksum you see below. This will replace the old checksum at 0x8 through 0xB with the new checksum. Now, just save file and the level will be ready for uploading.
  81.  
  82. In case you found that confusing, I created a visual guide here: https://imgur.com/a/7nUdSb0
  83.  
  84. If you are working on original hardware, delete the original "course_data.cdt" via your FTP client and upload the new version in its place. If you are working in CEMU, so long as you were working on the original file, you shouldn't have to move anything. If you were working on a copy, remember to move your copy to the directory of the original. From here, all you need to do is reload Course Bot (go to any other menu, then reopen it) and you will be able to upload your level.
  85.  
  86.  
  87.  
  88.  
  89. If you have trouble at any point during the guide, feel free to DM me on Discord. My username is "just_add_a_3"
  90.  
Add Comment
Please, Sign In to add comment