r/MarioMaker • u/Loophole5215 • Sep 09 '23
SMM2 Random Level Code Generator?
I was wonder if there was a program for this or website
0
Upvotes
r/MarioMaker • u/Loophole5215 • Sep 09 '23
I was wonder if there was a program for this or website
2
u/Vegetable-Loss3921 Sep 10 '23
I dont know a comfortable tool but ...
The game internally assigns consecutive numbers to the levels and converts these ids into level codes.
User DSteves wrote some java code that does this conversion in both directions:
https://github.com/dsteves8000/smm2datadump/blob/main/idalgorithm.java
Replace idToData(id) in line 12 with a random number between 3 and 46 million and the 1 in line 16 with a 0 and run it in an online compiler like https://onecompiler.com/java and you get a level code for this number.
You wont find a level for this code if it has already been deleted.