![]() ![]() ![]() This way, the vehicle grf file doesn't need to know or care which cargo slot and cargo bit a certain cargo type uses, it can define its own ID for each cargo that it wishes to support, and thus be independent of both what cargo types are really available in the game and what slots/bits they use.īecause the refit mask contains only 32 bits, only the first 32 entries in the translation table can make use of the refit mask. In other words, if for example the fourth entry (number 03) in the list is "MAIL", then defining graphics for cargo 03 will define graphics for mail, and bit 3 in the refit mask will be for mail as well. Each entry means that the corresponding cargo is meant when using this ID in an action 3 or for a bit in the vehicle's refit mask. The cargo translation table is a list of cargo labels. To aid with coding vehicle grf files that wish to support more than the standard cargo types, the easiest way is to install a cargo translation table using this property. if the old base cost is positive round towards 1, if negative round towards -1. However, this error is unnoticable until many years of inflation have passed and should therefore be of little concern.ġ.0 In OpenTTD rounding happens towards 1 or -1 depending on the old base cost i.e. Modifying the base costs incurs a small rounding error every time the game is saved, because the costs have to be set back to the default in the savegame. Using math: NewBaseCost = OldBaseCost * 2^(n-8), where n is the value of property 08. Adding one to the property doubles the base cost, subtracting one halves it. The default value of the property is 08 which leaves the base cost unchanged. Setting this property allows changing these base costs by factors of two. ![]() Each cost is calculated from a (fixed) factor times the base cost, which is adjusted by inflation every month. TTD has 49 base costs (66 in OpenTTD currently) which govern how much everything costs. In addition to global variables, this action can also set some general grf-specific variables. Variables in arrays will usually be set using an action 0, whereas action D will most commonly set single variables. (This) action 0 using feature 8, or Action D. Global variables can be set in one of two ways. 3.11 Gender/case translation table (13,14). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |