Register - Login
Views: 99389822
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-24-22 08:26:22 AM
Jul - The Cutting Room Floor - Link's Awakening DX, fixing SRAM corrupted by the heart glitch New poll - New thread - New reply
Next newer thread | Next older thread
KingMike
Member
Level: 16


Posts: 16/50
EXP: 20222
For next: 34

Since: 05-09-13


Since last post: 37 days
Last activity: 4 days

Posted on 02-04-15 05:43:42 AM (last edited by KingMike at 02-04-15 05:45:05 AM) Link | Quote
In the non-DX version, you can fix the SRAM within the game as the menu still functions but is just unreadable.

On the DX versions, though, I think you can only repair the SRAM (such as on a cart) with Game Genie codes.
(overwrite current HP reading code with ld a,(4B00) to read default. That is replace offset+1 with 0 and offset+2 with 0x4B,
and overwrite heart count ASM instructions with ld a,(4B08) in the same way)
The easiest way seems to be to overwrite the lines of code that load the individual files HP and heart counts with the default.
I wonder if repair instructions is necessarily the sort of thing we should add (since it's caused by a glitch).
My guess is maybe post that on DataCrystal and then link to that, instead of cluttering the TCRF page?

Even then, this is only enough to stop the freezing on the file secret, to make accessing the game's Delete option possible. It'll still freeze if you try to load the bad game.

I did find the offsets at least, for the above.
I did a SRAM compare and it seems the only information it saves at minimum is the name and current health (actual value at 8 HP per heart) and number of heart containers. If number of heart containers is too high OR current HP is not a sane value, then it crashes, it seems.

Load current HP:
Slot 1 HP: ld,($A45F) hex FA 5F A4
German: $4579
French, English 1.0: $4585
Japanese 1.0: $458F
Japanese 1.1: $4592
English 1.1, 1.2: $4588

Slot 1 hearts: ld,($A460) hex FA 60 A4
German: $4582
French, English 1.0: $458E
Japanese 1.0: $4598
Japanese 1.1: $459B
English 1.1, 1.2: $4591

Slot 2 HP: ld,($A80C) hex FA 0C A8
German: $45CA
French, English 1.0: $45D6
Japanese 1.0: $45E0
Japanese 1.1: $45E3
English 1.1, 1.2: $45D9

Slot 2 hearts: ld,($A80D) hex FA 0D A8
German: $45D3
French, English 1.0: $45DF
Japanese 1.0: $45E9
Japanese 1.1: $45EC
English 1.1, 1.2: $45E2

Slot 3 HP: ld,($ABB9) hex FA B9 AB
German: $461B
French, English 1.0: $4627
Japanese 1.0: $4631
Japanese 1.1: $4634
English 1.1, 1.2: $462A

Slot 3 hearts: ld,($ABBA) hex FA BA AB
German: $4624
French, English 1.0: $4630
Japanese 1.0: $463A
Japanese 1.1: $463D
English 1.1, 1.2: $4633
Next newer thread | Next older thread
Jul - The Cutting Room Floor - Link's Awakening DX, fixing SRAM corrupted by the heart glitch New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

27 database queries.
Query execution time:  0.078112 seconds
Script execution time:  0.004348 seconds
Total render time:  0.082460 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 148 column 37 - Warning: unescaped & or unknown entity "&id"
line 147 column 233 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 91 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 177 column 102 - Warning: unescaped & or unknown entity "&postid"
line 237 column 17 - Warning: missing <tr>
line 237 column 17 - Warning: discarding unexpected <table>
line 240 column 35 - Warning: missing <tr>
line 240 column 50 - Warning: missing </font> before </td>
line 240 column 91 - Warning: missing </font> before </table>
line 242 column 35 - Warning: missing <tr>
line 242 column 50 - Warning: missing </font> before </td>
line 243 column 37 - Warning: unescaped & or unknown entity "&id"
line 242 column 233 - Warning: missing </font> before </table>
line 244 column 17 - Warning: discarding unexpected </textarea>
line 244 column 28 - Warning: discarding unexpected </form>
line 244 column 35 - Warning: discarding unexpected </embed>
line 244 column 43 - Warning: discarding unexpected </noembed>
line 244 column 53 - Warning: discarding unexpected </noscript>
line 244 column 64 - Warning: discarding unexpected </noembed>
line 244 column 74 - Warning: discarding unexpected </embed>
line 244 column 82 - Warning: discarding unexpected </table>
line 244 column 90 - Warning: discarding unexpected </table>
line 246 column 9 - Warning: missing </font> before <table>
line 258 column 25 - Warning: discarding unexpected </font>
line 267 column 37 - Warning: discarding unexpected </font>
line 245 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 148 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 161 column 22 - Warning: <img> lacks "alt" attribute
line 161 column 63 - Warning: <img> lacks "alt" attribute
line 161 column 112 - Warning: <img> lacks "alt" attribute
line 161 column 161 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 243 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 243 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 243 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 252 column 25 - Warning: <img> lacks "alt" attribute
line 257 column 267 - Warning: <img> lacks "alt" attribute
line 149 column 50 - Warning: trimming empty <font>
line 237 column 17 - Warning: trimming empty <tr>
line 240 column 50 - Warning: trimming empty <font>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 64 warnings and 0 errors!


The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md