Page 1 of 4

Level Code Documentation

PostPosted: July 29th, 2009, 10:20 pm
by Suyo
Clicky

This is a documentation how the level code of SM63 is built.
With this knowledge, you can make a level just using Notepad (using LD only for looking up block and sprite numbers and testing), like this:
Code: Select all
55x17~9U9W9U9W9U9W9U9W9U9W9U9W9U9W9S9S9^9^9S9S9S9S9S9S9S9S9S9S9S9S9S9S9S9^9^9S9S9S9S9S9S9S9S9S9S9S9S9S9S9R9^9^9S9S9S9S9S9S9S9S9S9S9S9S9S9R9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9R9N9N9^9^9S9S9P9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9N9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9N9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9Q9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9U9W9U9W9U9W9U9W9U9W9U9W9U9W9U9W9^0*85*9U9W9U9W9U9W9U9W9U9W9U9W9U9W9U9W9^9^9S9S9S9S9S9S9S9S9S9S9S9S9S9S9S9^9^9S9S9S9S9S9S9S9S9S9S9S9S9S9S9R9^9^9S9S9S9S9S9S9S9S9S9S9S9S9S9R9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9R9N9N9^9^9S9S9P9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9N9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9N9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9Q9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9P9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9^9S9S9S9S9S9S9S9S9S9S9S9S9N9N9N9^9U9W9U9W9U9W9U9W9U9W9U9W9U9W9U9W9^0u0*51*~1,16,464,0,0,Right|6,656,304|5,720,368|40,208,344,972,82|40,20,82,1160,344|35,32,128,1,0|5,48,104|5,336,56|73,16,480,Hello%21%0DThis%20is%20my%20old%20shack%2E%20I%20live%20now%20in%20a%20way%20better%20house%2E%20Come%20visit%20me%20at%20Rainbow%20Road%2014%21%0D%0D%2D%20Superyoshi|43,848,418|73,240,384,I%20tell%20you%20%2D%20this%20pipe%20does%20NOT%20bring%20you%20to%20the%20destination%20you%20think%2E%0D%0D%2D%20Superyoshi|6,1608,304|5,1672,368|40,1160,344,20,82|40,972,82,208,344|35,984,128,1,0|5,1000,104|5,1288,56|73,1192,384,See%3F%20You%20are%20now%20in%20the%20backside%20of%20my%20shack%2E~14~2~Superyoshi%27s%20old%20Shack

(Note I didn't use multipliers because I was lazy)
This was made by me, with my documentation, just with notepad (using LD only for blabla you know).

WARNING
THE DOCUMENTATION IS A BIT OUTDATED - THE LEVEL NAME USES NOW ASCII LIKE THE SIGN TEXTS (ALL CHARACTERS WHICH ARE NOT LETTERS OR NUMBERS GET ASCII'D)

Random thought:
Everyone should make a level once just with Notepad. It's a great experience to understand how everything works, thus making better levels. I found a glitch thanks to my level.

TO DO:
  • Making a PHP online app which calculates the Block IDs
  • List of the properties of all sprites will most likely never happen because I'm lazy
  • Ask Runouw when they started developing SM63

If you have any questions, just ask!

EDIT LOG (server time):
27th June 2009, 5:17 pm: Editing in to ask Runouw
30th June 2009, 7:20 am: Transferring to new forum

Re: Level Code Documentation

PostPosted: August 8th, 2009, 4:28 pm
by 3.14
Haven't you said this before? Ohh...right new forum. Well.it's pretty cool...and darn hard.

Re: Level Code Documentation

PostPosted: September 3rd, 2009, 7:27 pm
by level4
I was wondering,is there any way to place an image in the level code, and have it show up as a background or an item? I have tried it several different ways, but it doesn't seem to work.

Re: Level Code Documentation

PostPosted: September 4th, 2009, 12:33 am
by Suyo
No.

Re: Level Code Documentation

PostPosted: September 4th, 2009, 4:23 pm
by fourinone
level4 wrote:I was wondering,is there any way to place an image in the level code, and have it show up as a background or an item? I have tried it several different ways, but it doesn't seem to work.

As in an actual image from your files? That would require uploading said images to some server connected to the game, and since it is not already programmed in, it would require some major reprogramming of the game to make that possible...
You can, however, try to recreate an image using size 1 rotating blocks (which I know you are already proficient at using : D), however tedious that may be.

Re: Level Code Documentation

PostPosted: November 1st, 2009, 6:16 am
by that1guy
You instructed someone to come here for an answer as to how to have 2 lines in your level title...maybe I'm stupid but I don't see that info.

Re: Level Code Documentation

PostPosted: November 1st, 2009, 6:29 am
by Suyo
<br> is a great HTML tag which works in signs and level names.

Re: Level Code Documentation

PostPosted: November 1st, 2009, 11:02 am
by fourinone
that1guy wrote:how to have 2 lines in your level title

Superyoshi wrote:<br> is a great HTML tag which works in signs and level names.

The url encoding "%0D" works too.

Re: Level Code Documentation

PostPosted: November 1st, 2009, 6:48 pm
by Zunar
Thank you SOOOO much fourinone! That makes creating level titles much easier (I can't really explain). I also wanted to ask you...how do you make italics in the level code?

Re: Level Code Documentation

PostPosted: November 2nd, 2009, 1:13 am
by Suyo
<i>bla</i>
Directly in the code, it's %60i%62bla%60%47i%62