LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Using backgrounds from the Map tool?

Root / Programming Questions / [.]

SmileLRMCreated:
Does anyone know how to do it?

I don't even know how to edit the tiles to use in the map editor, just shows a blank screen to me. I also want to know if there's a way to edit the map size. If there isn't, then I probably won't be using it at all.

If you notice the 0,1,2,3 those are the layers. The one on the bottom picks which one you draw on. So picking 0 draws on layer 0. The ones on the top show you another layer. So if you draw on layer 2, you can pick layer 1 on top and see what you drew on layer 1 and give you an idea where you are placing things on layer 2.

How are you supposed to load the bg tiles though?

Load BG tiles? Are you talking about customs ones? Or just putting anything on the screen? Look at the bottom right and pick them there.

Huh, now I see it. Somehow it didn't load right last time I used it. Alright I got it. In the map tool you have to select SCSAVE at the top. I saved it as "TEST". To load it make sure you're in the same directory as the dat files and do
ACLS
DIM L0[0]
DIM L1[0]
DIM L2[0]
DIM L3[0]
LOAD "DAT:SC_TEST_L0",L0,0
LOAD "DAT:SC_TEST_L1",L1,0
LOAD "DAT:SC_TEST_L2",L2,0
LOAD "DAT:SC_TEST_L3",L3,0
BGLOAD 0,0,0,64,64,L0
BGLOAD 0,0,0,64,64,L1
BGLOAD 0,0,0,64,64,L2
BGLOAD 0,0,0,64,64,L3

That worked. Thanks.

The problem with that map tool is the fixed 64x64 size. Not adequate for a super mario bros clone, for example.

The problem with that map tool is the fixed 64x64 size. Not adequate for a super mario bros clone, for example.
That's stupid, because you can save and load maps with dimensions larger than 64*64. Maybe the tool can be fixed by editing some code. Really, really strange. Edit actually I'm not so sure about that, I'm not actually sure how bg works at all in the new SB so completely ignore what I just said. Now that I think about it it really doesn't load maps just draws bg tiles to the bg screen, which probably is limited by 64*64. If you want a bigger screen you're going to have to make your own program to handle it.

Yeah. According to the manual, the limit is 127x128 tiles and that probably means the sum of all 4 bg layers. If you want to make a larger or taller map then you need to store it as DATA then RESTORE and READ into arrays, so you can finally make the bg with BGPUT.

The size of each BG layer can be dynamically changed with BGSCREEN.
BGSCREEN layerID,layerWidth,layerHeight
The limitation is that layerWidth * layerHeight cannot be greater than 16383. Each layer is independent in this regard from what I can tell.

Martinbfg10k commented on one of my YouTube videos about how you can increase the size of the map in the editor. "Just found a way to resize the maps in the editor! In the SBMAP program, remove the comment in line 56: GOSUB @FRESIZE. When you run the program, it will ask for sizes"

@PetitProfessor Thanks for the info. I thought that I could only create small stages because of the default configuration of the map editor. But with that and BGSCALE the problem is solved.

Martinbfg10k commented on one of my YouTube videos about how you can increase the size of the map in the editor. "Just found a way to resize the maps in the editor! In the SBMAP program, remove the comment in line 56: GOSUB @FRESIZE. When you run the program, it will ask for sizes"
I'm not sure why they would comment this out. You can't edit the SYS files so this would require making a copy of the program. Perhaps they removed it because of the BGSCREEN crash bug?

Martinbfg10k commented on one of my YouTube videos about how you can increase the size of the map in the editor. "Just found a way to resize the maps in the editor! In the SBMAP program, remove the comment in line 56: GOSUB @FRESIZE. When you run the program, it will ask for sizes"
I'm not sure why they would comment this out. You can't edit the SYS files so this would require making a copy of the program. Perhaps they removed it because of the BGSCREEN crash bug?
We can't edit the SYS folder simply because it is more like a "virtual" folder. It's not saved in the SD card's extra data like the other ones.

A heads up from the developers that this was even an option would have been nice. I'm not sure what to make of these adjustments for the size. (8-32/32)? Is 32 the max amount or 24 or does it range from 8 to 32?

A heads up from the developers that this was even an option would have been nice. I'm not sure what to make of these adjustments for the size. (8-32/32)? Is 32 the max amount or 24 or does it range from 8 to 32?
I guess the "HI" and "LO" values refer to the size in tiles of the top and bottom screens. I know BASEX and BASEY define a section size (possibly screen size?) in tiles and MAPX and MAPY define how big the will map be, in sections. I have no idea of waht the number after the slash means though. By the way I think the developers didn't mention it becuase it's kinda broken. We get "out of range" errors very often. They're probably implementing this map resize function in a future update.

Thanks pirate I get an error everytime I scroll too far to the right. Thats about the only problem I've run into so far.

Thanks pirate I get an error everytime I scroll too far to the right. Thats about the only problem I've run into so far.
Yeah, that error pops up if you pick any layer other than 4

A heads up from the developers that this was even an option would have been nice. I'm not sure what to make of these adjustments for the size. (8-32/32)? Is 32 the max amount or 24 or does it range from 8 to 32?
I guess the "HI" and "LO" values refer to the size in tiles of the top and bottom screens. I know BASEX and BASEY define a section size (possibly screen size?) in tiles and MAPX and MAPY define how big the will map be, in sections. I have no idea of waht the number after the slash means though. By the way I think the developers didn't mention it becuase it's kinda broken. We get "out of range" errors very often. They're probably implementing this map resize function in a future update.
In v.3.3 they plan to allow the BG layer to use 8x8 and 32x32 tile modes as well as the current 16x16 mode. This possibly came as a result of the Japan-only Namco DLC using 8x8 tile graphics.