Problems coding callback 19 for aircraft

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:

Problems coding callback 19 for aircraft

Post by DaleStan »

I'm trying to code the Chinook to be refittable to:
...
Goods (peice)
Goods (bulk)
Goods (liquid)
...
but instead I'm getting
...
Goods (liquid)
Goods (liquid)
Goods (liquid)
...

If I've coded what I think I coded, 00 (sprite 36) is the CargoID for pax, 01 (sprite 40) for peice, 02 (41) for liquid, and 03 (37) for bulk. The graphics aren't what I want yet, but I thought I'd get this done so that the new sprites could just be dropped in.

Patchman, I have a bit set that says you play DOS TTD, so here's the DOS grf.
Attachments
Chinook.zip
(6.46 KiB) Downloaded 39 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
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Stupid mistake in the docs. You should set misc grf texts using ID D0xx not D4xx. :oops: (The D4xx ID is used internally, which is why I made this mistake... basically, the text is set using D0xx but read using D4xx.)

I'm surprised it didn't blow up, actually...
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 18 guests