Talk:Hex Editing - Guide: Difference between revisions
Jump to navigation
Jump to search
m (Phasma moved page Talk:Hex Edition - Guide to Talk:Hex Editing - Guide without leaving a redirect) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Possible mis-type? == | |||
For Heroes > Hero Data > PL: Looks like this should be a DWORD pointer, not a boolean? --[[User:Legate|Legate]] ([[User talk:Legate|talk]]) 13:09, 16 September 2024 (UTC) | |||
== 0x0 is decimal 1 == | == 0x0 is decimal 1 == | ||
"A common mistake is to assume that 0x00 is the same as our human 0. In most (but, surprisingly, not all) cases, the code uses zero-based numbering, i.e. 0x0 is decimal 1, 0x1 is decimal 2, etc. " | "A common mistake is to assume that 0x00 is the same as our human 0. In most (but, surprisingly, not all) cases, the code uses zero-based numbering, i.e. 0x0 is decimal 1, 0x1 is decimal 2, etc. " | ||
What do you mean by that? Just that list indices start at 0, and not at 1? If so, that's just confusing to write it that way. --[[User:Turnam|Turnam]] ([[User talk:Turnam|talk]]) 16:34, 15 September 2024 (UTC) | What do you mean by that? Just that list indices start at 0, and not at 1? If so, that's just confusing to write it that way. --[[User:Turnam|Turnam]] ([[User talk:Turnam|talk]]) 16:34, 15 September 2024 (UTC) | ||
:It's a zero-based numbering, so yes, list indices and all reference ids and numbers start with 0 as the first object and 0x00 codes into number 1. But not always. If it's confusing, how would you reword it to make it more understandable? | |||
::As I just did, by making it clear we're talking about indices of a list, and not about values. E.g. if you edit the number of Pikemen to have 0 of them, it will not give you 1 Pikeman! --[[User:Turnam|Turnam]] ([[User talk:Turnam|talk]]) 19:14, 15 September 2024 (UTC) |
Latest revision as of 13:09, 16 September 2024
Possible mis-type?[edit | hide | hide all]
For Heroes > Hero Data > PL: Looks like this should be a DWORD pointer, not a boolean? --Legate (talk) 13:09, 16 September 2024 (UTC)
0x0 is decimal 1[edit | hide]
"A common mistake is to assume that 0x00 is the same as our human 0. In most (but, surprisingly, not all) cases, the code uses zero-based numbering, i.e. 0x0 is decimal 1, 0x1 is decimal 2, etc. " What do you mean by that? Just that list indices start at 0, and not at 1? If so, that's just confusing to write it that way. --Turnam (talk) 16:34, 15 September 2024 (UTC)
- It's a zero-based numbering, so yes, list indices and all reference ids and numbers start with 0 as the first object and 0x00 codes into number 1. But not always. If it's confusing, how would you reword it to make it more understandable?