Tests that don't and fatals that aren't.

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Tests that don't and fatals that aren't.

Post by DaleStan »

Action 7/9 test 09 does not function as advertised, and, under certain circumstances, fatal action Bs do not turn the flag grey.

The attached archive contains a newgrf setup which displays both of these bugs.

PlaneSetAIAR.grf tests for the presence of PlaneSet[w].grf (GRFid "JS" 01 01):

Code: Select all

    5 * 9      07 88 04 09 "JS" 01 01 02
    6 * 20     0B 02 1F 02 "PlaneSet[w].grf" 00
    7 * 6      07 83 01 03 FF 00
Sprite 5 does not skip sprites 6 and 7. If I change the test to 06, it works (at least with the given newgrfw.cfg).

PlaneSetAIAR.grf also takes a parameter. The low two bits control which of its 2 parts (auto-replace and AI management) are activated (set bit to deactivate). I test it for equality with 3[0], and if so, fail with:

Code: Select all

   14 * 25     0B 03 1F FF 80 " has nothing to do." 00
When given a parameter with the low two bits set, the action B is apparently processed, but it does not turn the flag grey. The message appears, but the flag remains a red/green toggle.

[0] After ANDing with 3 and setting bit 1 if autoreplace off.
Attachments
stuff.rar
(115.18 KiB) Downloaded 32 times
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 13 guests