Bug #6542

NFORenum: bogus error with sprite 65536

Added by Eddi about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:2013-11-11
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

in this code excerpt from CETS, nforenum doesn't find the definition for action2 ID B8 at sprite 65540, but this action2 is definitely there:

// Name: DR_243_0text_switch_classes
65536 * 123 02 00 B8 89
1A 20 \dx0000D09F
\2* 1A 20 \dx00010000
\2sto 1A 20 \dx00000080
\2r 1A 20 \dx0000D000
\2| 7D 80 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000100
\2r 1A 20 \dx0000D088
\2* 1A 20 \dx00010000
\2sto 1A 20 \dx00000081
\2r 1A 20 \dx0000D09A
\2| 7D 81 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000101
\2r 1A 20 \dx0000D09D
\2sto 1A 20 \dx00000102
\2r 1A 00 \dx00000000
\b1
\wx8000 \dx00000001 \dx00000000 // Bogus range to avoid nvar 0
\wx8089 // default: return string(STR_ENG_DESCRIPTION);

// Name: DR_243_0text_switch_speed
65537 * 123 02 00 BB 89
1A 20 \dx0000D09F
\2* 1A 20 \dx00010000
\2sto 1A 20 \dx00000080
\2r 1A 20 \dx0000D000
\2| 7D 80 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000100
\2r 1A 20 \dx0000D093
\2* 1A 20 \dx00010000
\2sto 1A 20 \dx00000081
\2r 1A 20 \dx0000D0A0
\2| 7D 81 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000101
\2r 1A 20 \dx0000D09D
\2sto 1A 20 \dx00000102
\2r 1A 00 \dx00000000
\b1
\wx8000 \dx00000001 \dx00000000 // Bogus range to avoid nvar 0
\wx8089 // default: return string(STR_ENG_DESCRIPTION);

// Name: DR_243_0text_switch_default
65538 * 109 02 00 B4 89
1A 20 \dx0000D09F
\2* 1A 20 \dx00010000
\2sto 1A 20 \dx00000080
\2r 1A 20 \dx0000D000
\2| 7D 80 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000100
\2r 1A 20 \dx0000D09D
\2* 1A 20 \dx00010000
\2sto 1A 20 \dx00000081
\2r 1A 20 \dx0000D08C
\2| 7D 81 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000101
\2r 1A 00 \dx00000000
\b1
\wx8000 \dx00000001 \dx00000000 // Bogus range to avoid nvar == 0
\wx8089 // default: return string(STR_ENG_DESCRIPTION);

65539 * 7 06
7F 04 FF \wx0006
FF

// Name: DR_243_0text_switch
//!!Error (62): Offset 11: ID B8 has not been defined.
65540 * 33 02 00 B4 89
1A 00 \dx00000000 // param127
\b2
\wx00B8 \dx00000001 \dx00000001 // 1 .. 1: DR_243_0text_switch_classes;
\wx00BB \dx00000002 \dx00000002 // 2 .. 2: DR_243_0text_switch_speed;
\wx00B4 // default: DR_243_0text_switch_default;

cets.nfo.xz (438 KB) Eddi, 2013-11-11 15:45

cets.nfo.xz (438 KB) Eddi, 2013-11-11 15:45

Associated revisions

Revision 971:6a65c15d28e0
Added by Rubidium about 4 years ago

Fix #6542: some checks for sprite numbers >= 65536 failed due to the sprite number being stored in a short

History

#1 Updated by Eddi about 4 years ago

#2 Updated by Rubidium about 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Applied in changeset 6a65c15d28e0.

Also available in: Atom PDF