Modify level files to warp to World 9 and World 0?
- Superjustinbros
- Posts: 2119
- Joined: 29 Mar 2012, 20:39
- Contact:
This isn't a real biggie, but I wanted to see if anyone tried modifying the level files with something like Notepad after laying down a warp to take the player to a world not accessible by Mari0's built-in editor. The reason is because I want to re-create a hack of SMW that modifies it into SMB, but adds eight original levels as part of two worlds: 9 and 0.
I thought this'd also be helpful for anyone who wants to re-create Worlds 9 and A through D and possibly insert them to the SMB2J DLC mappack.
I thought this'd also be helpful for anyone who wants to re-create Worlds 9 and A through D and possibly insert them to the SMB2J DLC mappack.
It does work, but only 9 and 0. Characters and negative numbers break things, and Maurice's code only reads one digit.
- Superjustinbros
- Posts: 2119
- Joined: 29 Mar 2012, 20:39
- Contact:
Would you care to explain how one can edit the game to show/play those worlds?WillWare wrote:It does work, but only 9 and 0. Characters and negative numbers break things, and Maurice's code only reads one digit.
How to go to World 9:
First, you need a World 9. Make any level, go into Appdata, and rename that level 9-1.
Now create another level, this one with the desired warping spot. Simply place the warp pipe as you would normally. To make it easier to find later, have it warp to world 8.
Go to Appdata again, and open the text file of the level with the warp in it. You should see a string of numbers and commas. Each number stands for a block type, with its placement being defined left to right, top to bottom (aka horizontally). ...That information is only useful if you somehow have your level memorized. Look, then, for numbers in the order of:
##-##-8
The eight is your warp. Change it to nine.
You're done! To go to World 9, play the level outside of the level editor.
EDIT: Worlds 10 and beyond are accessible by completing the world before it, but warping there is impossible.
First, you need a World 9. Make any level, go into Appdata, and rename that level 9-1.
Now create another level, this one with the desired warping spot. Simply place the warp pipe as you would normally. To make it easier to find later, have it warp to world 8.
Go to Appdata again, and open the text file of the level with the warp in it. You should see a string of numbers and commas. Each number stands for a block type, with its placement being defined left to right, top to bottom (aka horizontally). ...That information is only useful if you somehow have your level memorized. Look, then, for numbers in the order of:
##-##-8
The eight is your warp. Change it to nine.
You're done! To go to World 9, play the level outside of the level editor.
EDIT: Worlds 10 and beyond are accessible by completing the world before it, but warping there is impossible.
- Superjustinbros
- Posts: 2119
- Joined: 29 Mar 2012, 20:39
- Contact:
Your strategy worked.
I thought Maurice's code only read one character which must be a number so how'd you get the other worlds?Superjustinbros wrote:Your strategy worked.
- LightningFire
- Posts: 1828
- Joined: 10 Mar 2012, 17:24
- Contact:
He either hacked life or he made a mod OR maybe Maurice's code DOES read 2 digits....
But I'm still voting for hacking life.
But I'm still voting for hacking life.
Huh.Superjustinbros wrote:
I tried ten, but it brought me to world one. Guess I was wrong?
If all those worlds actually work, that would bring so much potential to make lengthy mappacks.Superjustinbros wrote:
I'm hoping it works exactly like how this picture shows it.
In your code, is there any way to actually modify Mari0 itself to accept 2 digit warp numbers. If so, where would it be, because I know it's not in the editor.lua...
Edit: I know how to edit the gui elements, but I think in order to create more worlds, you would first need to make a button that adds the world. D_o0_d already found out how to do that kind of thing, but he did it like this:
But what I want to find out how to do it horizontal, with an add world button just like his.
Edit: I know how to edit the gui elements, but I think in order to create more worlds, you would first need to make a button that adds the world. D_o0_d already found out how to do that kind of thing, but he did it like this:
But what I want to find out how to do it horizontal, with an add world button just like his.
Last edited by popcan12 on 21 May 2012, 06:17, edited 1 time in total.
Not sure how one would add more worlds to the editor itself, but adding worlds to a mappack only requires making a normal world and changing the name of the text file.popcan12 wrote:On the level editor, there's only 8 world, I'm basically asking how you would make it so you could add more worlds to the editor... need I be more specifc?