Add new vehicules and others graphics - newbie questions

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

NCarlson
Traffic Manager
Traffic Manager
Posts: 200
Joined: 18 Dec 2002 17:49

Post by NCarlson »

Would it be possible to move in the direction of not having id's at all, thus giving us a theoretically unlimited number of vehicles?
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

maybe but then that would probably break all the ttdp grfs which isnt what we want.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Then there's the minor detail of the fact that vehicles can, and do, rely on their numeric ID for certain behaviours (the AI-control callbacks especially). If the ID changes, then the dependent behaviours also change. This will, at best, cause the grf file to do nothing, and, at worst, break whatever AI (new, old, or otherwise) that tries to use the AI-control callbacks.

A similar issue arrives when asking a train engine if the wagon you just attempted to attach is allowed to be attached. If the ID of the wagon isn't what the train expects it to be, then the train's answer is unlikely to be correct.
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 “Graphics Development”

Who is online

Users browsing this forum: No registered users and 41 guests