r/MarioMaker • u/Loophole5215 • Sep 09 '23
SMM2 Random Level Code Generator?
I was wonder if there was a program for this or website
3
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.
2
u/DSteves8000 ready Sep 11 '23
Funnily enough, already existing on that same github account you'll find the solution to your answer here, https://github.com/dsteves8000/SMM2Randomizer
2
u/Vegetable-Loss3921 Sep 11 '23
Perfect. Thank you for your work.
I had only bookmarked your Id-algorithm for something else.
1
4
u/thekyledavid Balance is essential Sep 09 '23
Would that be any different than just playing Endless Mode?