Users browsing this thread: 1 Guest(s)
Looking for patch that fix item loss when dying before using said item

#1
Posts: 208
Threads: 3
Thanks Received: 0
Thanks Given: 8
Joined: May 2013
Reputation: 0
Status
None
Hello, there is a patch somewhere that fix the item loss bug when you select an item but die (or battle ends) before using it or use an item with Throw but die before using it (which result in the item being loss). 

Does anyone know where to find it? I've searched pretty much everywhere. The patch is supposed to make it so the item is only consumed when the command happen so if you die or if battle ends between selecting the item and using it, there is no item loss. this patch is pretty important and that would be great if someone know where to find it.

Thanks!



  Find
Quote  

#2
Posts: 2,548
Threads: 98
Thanks Received: 147
Thanks Given: 158
Joined: Aug 2009
Reputation: 52
Status
Nattak\'d
Pretty sure you just gotta NOP (EA) this:
C2/18DC: A9 04 LDA #$04
C2/18DE: 14 B3 TRB $B3 (prevents "Retarget if target invalid" at C2/31C5)

I don't remember a patch being made for this but I could be wrong. Also NOPing that might not do it for Throw, but it will work for those items you use on a person that dies before they get to receive it, it will simply use it on someone else.


We are born, live, die and then do the same thing over again.
Quote  

#3
Posts: 208
Threads: 3
Thanks Received: 0
Thanks Given: 8
Joined: May 2013
Reputation: 0
Status
None
It's a start but this won't work in many scenarios, nice tip tho!

Here's what's going on:

Vanilla:
1. Player use the Item command.
2. Player select an item, selected item is being stored somewhere, quantity is reduced by 1.
3. Caster is preparing to use the item (combat stance).
4. Caster dies or combat ends before item is being used.
5. Item is not being stored back and is lost forever.

Fixed:
1. Player use the Item command.
2. Player select an item, selected item is being stored somewhere, quantity is reduced by 1.
3. Caster is preparing to use the item (combat stance).
4. Caster dies or combat ends before item is being used.
5. Item is restored.

This goes the same for Throw command.
The worst scenario is when combat ends, no bandaids can prevent item loss in that case, an actual fix must be made.

It might not be a patch but I'm sure I saw something somewhere, maybe ASM or Hex in the forums.


I think I've found the patch, it's called Dead in the Air by Leet Sketcher. 

This patch include some side fixes including part of what I'm looking for, here's a quote from readme file:

Quote:There are also some ways a battle can end and items that were scheduled to be used are not replenished in the inventory; this patch has the additional fix for this neglect.

I'm not sure if the fix also replenish the item when the caster dies, I'll see when I test the patch later.
Edit: It doesn't, the For What Ails Ya patch should remedy exactly that.



  Find
Quote  

#4
Posts: 200
Threads: 1
Thanks Received: 10
Thanks Given: 0
Joined: Oct 2015
Reputation: 18
Status
None
https://www.romhacking.net/hacks/560/

i dunno how much of its functionality "Dead in the Air" replicates.
Quote  

#5
Posts: 208
Threads: 3
Thanks Received: 0
Thanks Given: 8
Joined: May 2013
Reputation: 0
Status
None
Yep that's the patch, thanks!



  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite