Language…
13 users online: Anas, Batata Douce, Darolac, DasFueller, eltiolavara9, Foxy_9000_, Gamet2004, Hammerer, jump_run_repeat, Mythundare,  Nanako, pzyko103, Rykon-V73 - Guests: 279 - Bots: 392
Users: 64,795 (2,377 active)
Latest user: mathew

Lightning Generator + Minimalist Status Bar problem

Been here helping people out, but now it seems I need some help myself.

I'm trying to use the Lightning Generator, but it never flashes. It only plays the accompanying sound effects.
I know for sure that the problem is being caused by the Minimalist Status Bar, which is also applied to the rom.

I checked on a clean rom just to be sure, and sure enough, the Minimalist Status Bar is exactly what's preventing the generator's flashing. I just don't know why that is though.

Your help would be appreciated!
the lightning code writes directly to cgram (via buffer)

minim status bar uploads palette every frame (color 0 from $0703 and the rest of palette 0 from $0907), overwriting anything the buffer wrote


so just make it write to $0703 instead of the palette buffer. that lightning code is an ungodly mess so here it is simplified and untested:

Code
main:
	LDX $1FFB|!addr
	BNE +
	LDA $14
	LSR
	BCC .skip
	DEC $1FFC|!addr
	BNE .skip
	TAX
	LDA #$A9
	AND #$07
	TAX
	LDA .period,x
	STA $1FFC|!addr
	LDA .colindex,x
	STA $1FFB|!addr
	TAX
	LDA #$08
	STA $1FFD|!addr
	LDA #$18
	STA $1DFC|!addr
+
	DEC $1FFD|!addr
	BPL +
	DEC $1FFB|!addr
	LDA #$04
	STA $1FFD|!addr
+
	TXA
	ASL
	TAX
	REP #$20
	LDA.l $00B5DE|!bank,x
	STA $0703
	SEP #$20
.skip
	RTL
	
.period
	db $20,$58,$43,$CF,$18,$34,$A2,$5E

.colindex
	db $07,$05,$06,$07,$04,$06,$07,$05
Ah, thank you!
It works for the most part, with the only remaining problem being that the palette doesn't completely revert back to normal.

top gun

put STZ $0703 : STZ $0704 after that first BNE
Alright, it works perfectly fine now. Thank you so much! #smrpg{<3}