Modify level files to warp to World 9 and World 0?

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
Superjustinbros
Posts: 2119
Joined: 29 Mar 2012, 20:39
Contact:

Post » 08 May 2012, 02:48

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.

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 08 May 2012, 09:38

I have no idea if this would work, but the tile format is "tile-entity-parameters", so you'll have to check which entity is the warppipe, and then change the parameter.

User avatar
Sky
Posts: 1283
Joined: 08 Mar 2012, 04:35
Contact:

Post » 09 May 2012, 05:26

It does work, but only 9 and 0. Characters and negative numbers break things, and Maurice's code only reads one digit.

User avatar
Superjustinbros
Posts: 2119
Joined: 29 Mar 2012, 20:39
Contact:

Post » 09 May 2012, 12:29

WillWare wrote:It does work, but only 9 and 0. Characters and negative numbers break things, and Maurice's code only reads one digit.
Would you care to explain how one can edit the game to show/play those worlds?

User avatar
Sky
Posts: 1283
Joined: 08 Mar 2012, 04:35
Contact:

Post » 09 May 2012, 18:05

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.

User avatar
Superjustinbros
Posts: 2119
Joined: 29 Mar 2012, 20:39
Contact:

Post » 10 May 2012, 03:29

Your strategy worked.

Image

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 10 May 2012, 04:06

Superjustinbros wrote:Your strategy worked.

Image
I thought Maurice's code only read one character which must be a number so how'd you get the other worlds?

User avatar
LightningFire
Posts: 1828
Joined: 10 Mar 2012, 17:24
Contact:

Post » 10 May 2012, 04:38

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.

User avatar
Sky
Posts: 1283
Joined: 08 Mar 2012, 04:35
Contact:

Post » 10 May 2012, 05:04

Superjustinbros wrote:Image
Huh.
I tried ten, but it brought me to world one. Guess I was wrong?

User avatar
idiot9.0
Posts: 1707
Joined: 09 Mar 2012, 10:28
Contact:

Post » 10 May 2012, 05:10

Superjustinbros wrote:Image
If all those worlds actually work, that would bring so much potential to make lengthy mappacks.
I'm hoping it works exactly like how this picture shows it.

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 10 May 2012, 09:38

does that mean I have to update my smb2j mappack to include the bonus worlds :(

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 10 May 2012, 10:57

Superjustinbros wrote:Your strategy worked.

Image
Won't work with unmodded mari0.

User avatar
popcan12
Posts: 592
Joined: 10 Feb 2012, 02:30

Post » 20 May 2012, 23:57

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:




Image


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.

User avatar
Sky
Posts: 1283
Joined: 08 Mar 2012, 04:35
Contact:

Post » 21 May 2012, 05:59

^ Be more specific?

User avatar
popcan12
Posts: 592
Joined: 10 Feb 2012, 02:30

Post » 21 May 2012, 06:04

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?

User avatar
Sky
Posts: 1283
Joined: 08 Mar 2012, 04:35
Contact:

Post » 21 May 2012, 06:07

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?
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.

User avatar
popcan12
Posts: 592
Joined: 10 Feb 2012, 02:30

Post » 21 May 2012, 06:23

I guess you're right. On topic, there's 3 variables in the editor that say I, J, K. "i" I think stands for the level, so if you played with the code, you could probbally find out how to add worlds, but it's super duper hard...

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 21 May 2012, 09:38

I don't think the guy who made that is coming back any time soon.

Post Reply