Bug #8130

NFORenum: Extended sprite format for action 1 (OTTD r22925)

Added by Snail over 3 years ago. Updated over 1 year ago.

Status:NewStart date:2016-03-20
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

I'm using the "extended sprite format" for action 1, introduced in OTTD r22925.
When I parse my NFO with NFORenum (I'm using version 6.0.5), it looks like this feature is not recognized. Moreover, if I browse the "changelog" of NFORenum, there is no mention for this feature to be added.

In my code, I'm constructing a spriteblock with one sprite, specifying it's number $0A.
NFORenum returns three warnings and three error messages, but I think my NFO code is fine:

---
//!!Warning (41): All action 1s are 4 or 6 bytes long.
//!!Warning (89): Action 1 declaring no sets.
//!!Warning (118): Sprite set contains more sprites than given feature can use.
13 * 6 01 00 00 0a 01 01
//!!Error (51): Unexpected real sprite found.
14 sprites/copy2011.pcx 1 0 09 1 52 -14 -7

//!!Error (56): Offset 5: Sprite set 0A does not appear in the preceding Action 1 (sprite 13).
//!!Error (56): Offset 7: Sprite set 0A does not appear in the preceding Action 1 (sprite 13).
15 * 9 02 00 00 01 01 0a 00 0a 00
---

Could we have NFORenum support this feature?

grfcodec-extendedact1.patch Magnifier (15.8 KB) kiwitree, 2018-03-11 04:43

History

#1 Updated by kiwitree over 1 year ago

Patch for this bug.

Also available in: Atom PDF