Language…
18 users online: Anas, AnunnakiGirl, CourtlyHades296, CroNo, DaveStateGaming, Green, Mohamad20ZX, Natsuz2, NewPointless, Papangu, SAMYR DUTRA ARAUJO, Scags, signature_steve, SomeGuy712x, StarWolf3000, TheBubbster123, TrashCity, yoshisisland - Guests: 287 - Bots: 662
Users: 64,795 (2,369 active)
Latest user: mathew

Sprite Status Bar (fullscreen layer 3 BGs!)

  • Pages:
  • 1
  • 2
I've been working on this on and off for the past few weeks, and it's finally ready to be released.

Basically, this patch allows you to disable the default status bar and replace it with a sprite status bar, on a per-level basis, making room for a fullscreen layer 3 background and allowing all 16 colors in palettes 0 and 1 to be used without status bar issues.

For each level, it allows you to choose which palette to use and which sprite tiles to overwrite.

Much of this patch is hardcoded, so it will be more difficult to edit than SMW's default status bar.

Here's an example of this patch in action:

The snow is on layer 1, the FG is on layer 2, and the BG is on layer 3. The layer 3 BG and status bar overlap.

Here's another example:

The FG is on layer 1, the bramble BG is on layer 2, and the cloud BG is on layer 3. The layer 3 BG and status bar overlap.

and here's the download link: http://edit1754.co.cc/bin/download.php?file=SpriteSB.zip

Please don't submit this to the patches section yet, as I might have to do a few more bugfixes before I release it.

Remember, make a backup of your rom first!


Useful LevelASM+Init codes: (I haven't tested these yet in LevelASM, but they should work)

Resize layer 3 tilemap to 256x256: (Place in INIT)
Code
        LDA.b #$50
        STA.w $2109


Move layer 3 behind layer 2, when using layer2-BG level mode: (Place in INIT)
Code
        LDA.b #%00010001
        STA.w $212C
        STA.w $212E
        LDA.b #%00000110
        STA.w $212D
        STA.w $212F

If that doesn't work, use this instead:
Code
        LDA.b #%00010001
        STA.w $0D9D
        LDA.b #%00000110
        STA.w $0D9E


Layer 3 scrolling: (Place in MAIN, and JSR to MAIN within INIT)
Code
        REP #%00100000
        LDA.w $1462             ; horz:
        LSR #3                  ; the higher this number, the slower it will scroll. Remove for same speed as FG
        CLC : ADC.w #$XXXX      ; (offset, change this to whatever you want, or remove it if you don't need it)
        STA.b $22
        LDA.w $1464             ;vert:
        LSR #3                  ; the higher this number, the slower it will scroll. Remove for same speed as FG
        CLC : ADC.w #$XXXX      ; (offset, change this to whatever you want, or remove it if you don't need it)
        STA.b $24
        SEP #%00100000


to JSR to MAIN within INIT, use this code: (I'm assuming xkas lets you access labels in other incsrc'd ASM files)
Code
levelinit105:
        **INSERT YOUR INIT CODE HERE**
        JSR level105
        RTS

Alternatively, you can do this: (notice the JMP instead of JSR, and no RTS)
Code
levelinit105:
        **INSERT YOUR INIT CODE HERE**
        JMP level105
So with this patch I can get a FULL layer 3 BG + Statusbar? This is one of the patches is very interesting. He combined with Layer 3 EXGFX = A professional hack!

You are the one of the people that makes does more useful things for the public. Your Ultimate BG Ripper Tool, Dynamic Sprites, NSTL patch, ExExGFX patch and their custom sprites are great!

Good job edit1754!
This will be extreamly usefull.
Awesome work Edit, finally you don't have to worry about overwriting the status palettes. @_@
Also now we don't have to worry about cutoff snow lol. :P
Good job :D
meh
Views:
Time:
6 users online: o imamelia, o o FPzero, o bebn legg, o Nameless, o Major Flare, o o Scrydan - Guests: 69 - Bots: 160Users: 69,666 (9,999 active)
Latest: Year 2020
Tip:
Wow, what a neat patch, Edit. This is going to be very useful. No more worrying about the status palettes being overwritten.
It may be tricky to edit the status bar but it is worth it.
Great job.

Finally, someone made a sprite to fix this issue. This will be a common SMW patch, I can already tell.
:o

Oh...my...god.
That is absolutely incredible, Edit! I've wanted to make my own custom Layer 3 BGs without cutoffness, and you just made it possible! :D I personally won't be using it yet, though. It sounds like it would be much too hard to edit the status bar with this patch. I really appreciate this though, and I am sure many other people do as well. :)










EDIT: What's up with the loltablestretches? o_O
Great timing! I needed this for my hack!

Originally posted by Zildjian
Finally, someone made a sprite to fix this issue. This will be a common SMW patch, I can already tell.

lol.
Check out my Youtube channel! 獣耳 Brony for life.
Wow, that is incredible. From what it looks like this is a must have for anyone that want to put in snow or rain effects within their level. Now, with this, you don't have to choose between having to get rid of the background to put in layer two snow or having cut-off rain/rain snow tiles in layer one. With this everything stays intact and looks so much better. Incredible!
AnimeList | MangaList
When Smallhacker posted his concept test patch of this same thing, I mentioned that it would be situational; the old status bar takes up a ton of layer 3, and a sprite status bar takes up a ton of the OAM (not to mention sprite graphic tiles).


Excellent to see you made it work on a level basis :) I most definitely will use this.
aha!! This is the 'sprite' I was looking forward to! This is absolutely ingenious, and I'll be sure to use it!

If I recall, the sprites used for this overwrite seldom used sprite tables or something, so it won't really cause slowdown or tile limits.

One question though, is this incompatible with anything?

World Community Grid: Thread | Team
 
Does this also mean Layer 3 can now use 16 colors instead of 3 for images?

Also, how do I find freespace?
I assume its incompatible with anything that writes to the status bar.

Anyways, excellent job edit! Its a bit too late to use in my hack though :( , but still , great job!


Lio: in graphics mode 1, Layer 3 is always limited to 4 colors. I doubt that edit found a way around this (but if he did, moar applause for him :D)
Blaze's Booth Review: Edit's Booth

This is an really good idea with having a layer that is fully animated. This will make using rain and snow levels MUCH easier. I have no complaints against this release.

Rating: 10/10
Working on something!


Better than the cape!

Originally posted by Lio
Does this also mean Layer 3 can now use 16 colors instead of 3 for images?

Also, how do I find freespace?


No, that is impossible. Hardware limits do not allow Layer 3 to be 4bpp or higher.

To comment on this, that's a great thing you've done there, edit1754. I'm sure it will be very commonly used (I hope not overused) by us.
--------> Don't follow "Find Roy's Dignity", my hack. Because it's pretty outdated. <--------
I was planning on trying to fix my sprite status bar and post it tomorrow, but it seems like I don't have to.

Just out of curiosity: What portions of the OAM are you using?
I'm not sure if you forgot to include a fix for this or just don't have one, but the layer 3 status bar still floats around in the sky :O

My YouTube Channel
Omg edit, you always make the best things and they seem like there is a lot of work put into all og them. Great job :3
Your layout has been removed.
Cool sprite edit. However, would that limit the number of other sprites you can have on the screen? I would think so, but I'm not sure. And out of curiosity, what are the known bugs, if any?
Your layout has been removed.
  • Pages:
  • 1
  • 2