Language…
22 users online: Alex No,  BeeKaay, ben15420,  Blaagon, DanMario24YT, gcrackaaa, GiraffeKiller, Gmario37, Golden Yoshi, Gorry, Green, Hidincuzimsmokin, Maw, Metal-Yoshi94, MorrieTheMagpie, OrangeBronzeDaisy, PuffleDreemurr, rafaelfutbal, Ray Hamilton, ShoopDaWhoop, Sniwott, wayht - Guests: 289 - Bots: 457
Users: 64,795 (2,371 active)
Latest user: mathew

Smalls' xkas patches

Yeah, I'm too lazy to submit these to the Patches section.

Feel free to request things, assuming that I'm equally free to completely ignore every single request.

Oh, also:

REMEMBER TO CHANGE THE "freeSpace" ADDRESS BEFORE INSERTING!



(Due to HTML crap, I had to submit them anyway)

Invincible Mario palette changer
Sets Mario's palette to F (or whatever you want) when invincible.

Mario knockback
Makes Mario get knocked backwards when hit by an enemy (instead of playing shrinking animation)

LR Hook
Disables L/R scrolling. The code also contains sections where you can add new functions for L/R.
Hmm...okay. In my hack, I've replaced the score counter with a coin counter, using Ringodoggie's patch. I need a patch that doesn't allow more than 20000 coins (points) to be collected.

Note: The coin counter is still using the Score Counter address.

Most of the time, you can collect one coin at a time. However, there are cases when you might receive a few hundred coins. So say I currently have 19000 coins, and I hit a custom block that gives 300 coins, my coins should only go to 20000.

Thanks. ;)
I would like to request a patch that does make Mario Star Mario for an amount of time, dependind on the amount of stars in the star counter, the more the stars, more time Mario stays invincible. Oh yes, press R for this function to work.
I would like to request a patch which disables pressing down to slide down hills.
Not disabling sliding itself, but disabling pressing down to slide.
Your layout has been removed.
Version 1.1 of LR Hook released. Please redownload.

The old version didn't work on levels where L/R were originally disabled. Therefore, I used my backup plan and hijacked the status bar routine instead.
Trying the knockback patch now...
Edit: When useing the health bar, Mario wont lose a heart when dameged useing this patch, but it works fine useing a rom without the health bar.
Thanks Smalls. I finally got the Invincible Mario palette changer patch to work, and I finally learned how to use xkas as well.
Wow. This is actually the first thing I've done to my hack in three weeks. Been so busy lately. Thanks for the code!

Originally posted by YamiMario
When useing the health bar, Mario wont lose a heart when dameged useing this patch, but it works fine useing a rom without the health bar.


Open up the health patch asm.

First, be sure to put this at the top somewhere

org $F5FC
JSL MarioFlash

and under :defines put these

!knockSpeed1 = $40
!knockSpeed2 = $C0

Then find "Hit" in the main code, and do this:

Code
Hit:

	LDA !Health
	DEC
	BEQ Death
	STA !Health
	CMP #$01
	BEQ Losebig ; Make you small if you are on your last hit
	LDA !Powerup
	CMP #$01
	BMI Endhit
	LDA #$01 ; Get rid of flower or cape if you have them
	STA !Powerup
	BRA Endhit
	Losebig:
		STZ !Powerup 
	Endhit:
   LDA #!knockSpeed2
    STA $7D
    
    LDA $76
    BNE Other
    
    LDA #!knockSpeed1
    STA $7B
    BRA Next
    
Other:
    LDA #!knockSpeed2
    STA $7B
Next:
		JML $00F5F3
Death:
	STZ !Health	
	LDA #$09
	STA $1DFB
	JML $00F60F
MarioFlash:
	LDA #$7F
	STA $1497
	RTL


ok, I'm going to get some sleep.
I've removed my NoFades patch until I can find the brightness code for Star Road warps.
Originally posted by InvisibleCoinBlock
Wow. This is actually the first thing I've done to my hack in three weeks. Been so busy lately. Thanks for the code!

Originally posted by YamiMario
When useing the health bar, Mario wont lose a heart when dameged useing this patch, but it works fine useing a rom without the health bar.


Open up the health patch asm.

First, be sure to put this at the top somewhere

org $F5FC
JSL MarioFlash

and under :defines put these

!knockSpeed1 = $40
!knockSpeed2 = $C0

Then find "Hit" in the main code, and do this:

Code
Hit:

	LDA !Health
	DEC
	BEQ Death
	STA !Health
	CMP #$01
	BEQ Losebig ; Make you small if you are on your last hit
	LDA !Powerup
	CMP #$01
	BMI Endhit
	LDA #$01 ; Get rid of flower or cape if you have them
	STA !Powerup
	BRA Endhit
	Losebig:
		STZ !Powerup 
	Endhit:
   LDA #!knockSpeed2
    STA $7D
    
    LDA $76
    BNE Other
    
    LDA #!knockSpeed1
    STA $7B
    BRA Next
    
Other:
    LDA #!knockSpeed2
    STA $7B
Next:
		JML $00F5F3
Death:
	STZ !Health	
	LDA #$09
	STA $1DFB
	JML $00F60F
MarioFlash:
	LDA #$7F
	STA $1497
	RTL


ok, I'm going to get some sleep.

Im screwed then. I applyed the IPS version of the helth patch, and i bet it will screw up if i aply the Xkas version. D:
That's because you need to set the free space.
<TLMB> I use YY-CHR to edit DNA
Smalls when are you going to release an .asm version of your separate Mario and Luigi graphics patch.
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/cK8ZDrM2LzE&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/cK8ZDrM2LzE&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

I was bored, so I made a video of knockback in action.
Too lazy to upload:

Code
lorom
header

org $009C82
LDA #$00
NOP


Disables the title screen demo playback as well as disabling the "restart title screen after a while" feature. Perfect for static title screens.

NOTE:


This will MOST LIKELY NOT WORK if you have changed the title screen demo through Lunar Magic.
The knockback seems glitchy in Vertical Layer 2 levels. Freezes when Mario gets hurt, but works in all other levels.
Now I leave my IPS patches of my hacks for everyone play and edit as you want to.

Bramble Invasion & Surreliatus


Hey, Smalls.

Could you please make a patch that allows coins to go to 999 (and stops there. No 1up). I know I could use the 6 digit coin thing, but it's an IPS, and I'm using the score counter anyways.

Thanks!
I've removed my NoFades patch until I can find the brightness code for Star Road warps.