Talk:Save data structure (Generation I): Difference between revisions

Line 17: Line 17:
:I don't quite understand, since that page you linked says things like "enemymon", but if you know how to fill in some blanks, I'd say you should. [[User:Tiddlywinks|Tiddlywinks]] ([[User talk:Tiddlywinks|talk]]) 18:17, 5 April 2015 (UTC)
:I don't quite understand, since that page you linked says things like "enemymon", but if you know how to fill in some blanks, I'd say you should. [[User:Tiddlywinks|Tiddlywinks]] ([[User talk:Tiddlywinks|talk]]) 18:17, 5 April 2015 (UTC)
:Oh yeah, on a side note, did you just change the size for the player's name to 11 because there was a gap, or can you point to somewhere the game actually treats the whole 11 bytes as the name or something? [[User:Tiddlywinks|Tiddlywinks]] ([[User talk:Tiddlywinks|talk]]) 18:20, 5 April 2015 (UTC)
:Oh yeah, on a side note, did you just change the size for the player's name to 11 because there was a gap, or can you point to somewhere the game actually treats the whole 11 bytes as the name or something? [[User:Tiddlywinks|Tiddlywinks]] ([[User talk:Tiddlywinks|talk]]) 18:20, 5 April 2015 (UTC)
: While some bytes might be unlabelled or cryptic, a lot of them can be added. Yes I did change it to 11. While the UI lets you only type 7(+end byte), the save code explicitly copies 11 bytes: https://github.com/iimarckus/pokered/blob/master/engine/save.asm#L56-L58 [[User:Pepijndevos|Pepijndevos]] ([[User talk:Pepijndevos|talk]]) 07:35, 7 April 2015 (UTC)
:: While some bytes might be unlabelled or cryptic, a lot of them can be added. Yes I did change it to 11. While the UI lets you only type 7(+end byte), the save code explicitly copies 11 bytes: https://github.com/iimarckus/pokered/blob/master/engine/save.asm#L56-L58 [[User:Pepijndevos|Pepijndevos]] ([[User talk:Pepijndevos|talk]]) 07:35, 7 April 2015 (UTC)
: The 8-11 bytes might actually be of interest in performing the [[Old man glitch]] [[User:Pepijndevos|Pepijndevos]] ([[User talk:Pepijndevos|talk]]) 08:57, 7 April 2015 (UTC)
:: The 8-11 bytes might actually be of interest in performing the [[Old man glitch]] [[User:Pepijndevos|Pepijndevos]] ([[User talk:Pepijndevos|talk]]) 08:57, 7 April 2015 (UTC)
:::I later noticed that things like Pokemon names/nicknames have a max length of 10, so I could suppose that's the basis of all user-input names. I've just noticed in the first link you gave the code "ds 11" after "PlayerName" and "RivalName", and the rival name field has the same discrepancy player name did, so I'll change it to 11 as well. [[User:Tiddlywinks|Tiddlywinks]] ([[User talk:Tiddlywinks|talk]]) 12:30, 7 April 2015 (UTC)