Age | Commit message (Collapse) | Author |
|
remaining to fit with the naming style
|
|
remaining to fit with the naming style
|
|
style
|
|
the box.
-Change: make extra sprites (the ones not in the TTD GRFs) replaceable using Action 5.
-Feature: make replacing contiguous subsets of sprites in for some types possible in Action 5.
Note to GRF authors: when you replaced OpenTTD sprites that are not from the TTD GRF files using Action A, your GRF will not have the intended result anymore as the sprite numbers have changed. You should replace the Action A with an Action 5 from now on.
|
|
gracefully causing crashes and such.
|
|
More interesting is: who plays without them ;)
|
|
|
|
specific NewGRF a lot easier.
|
|
files and offsets, which speeds up .tar handling with a big factor
-Fix: several win32 .tar support problems
-Fix: better checking of .tar versions and other minor things
-Codechange: don't call fclose() but FioFClose to close a file
|
|
|
|
dir in how ever many .tar files you like, keeping the dir-structure equal to the unpacked version, and OpenTTD can handle them just like the files were unpacked
-Note: useful for GRF-packs and 32bpp PNGs. Don't forget to keep the dir-structure alive for 32bpp PNGs!
-Note: file-loading-order: search-paths, .tar-files in the order found on disk (can be anything at all, don't depend on it.. use 'openttd -d1' to see which order they are added)
|
|
request the size of the file, so we can keep that in mind
|
|
|
|
split up the functions a bit
|
|
the double-entry checker didn't always work correctly, resulting in multiple entries of the same grf in the list
|
|
directory in this filename in the newgrf list. The directory was removed in r9560 because then it used to full path instead of the path relative to the data directory, but since the inclusion of "search paths" that is not necessary anymore.
|
|
|
|
|
|
be more flexible.
-Codechange: add support for personal directories on Windows.
-Fix [FS#153, FS#193, FS#502, FS#816, FS#854]: fix issues related to fixed names, fixed places of files/directories and application bundles.
|
|
the current
language. Since only one error can be loaded anyway, if the language didn't
match you'd get "Undefined string". Also since we're only loading one language
there's no need to use AddGRFString any more.
|
|
any full paths (again).
|
|
|
|
Note: as the 'full' path is stored of the newgrfs, the newgrfs in the old cfgs are not made default (you have to set them again).
|
|
newgrf searching.
-Codechange: do not add duplicate files to the newgrf list.
|
|
|
|
|
|
|
|
|
|
that are
mutually exclusive. At the same time, add an INITIALISED state which makes it
possible to check if a grf is not yet active but will be later on during the
GLS_ACTIVATION loading stage.
|
|
their GRF info/name set.
|
|
and load custom error messages properly.
|
|
add the allocated GRFConfig to its list and not copy it.
|
|
newgrf gui
window. GRFs with an error have a warning symbol shown before the name.
|
|
on non-windows because this wrapper was only active for win32 (thx Rubidium)
|
|
filesystem is not in UTF-8 charset and special characters are used. The string passed to opendir() which is UTF-8 was not parsed back to the filesystem format. Use a wrapper called ttd_opendir() instead of redefining opendir itself.
|
|
allocation of GRFConfig and turn it into a simple variable (it's supposed to be data-only). Thanks Tron.
|
|
when loading the game and hide the intrinsics of adding elements to the GRFConfig list by using an AppendToGRFConfigList function.
|
|
GRFIdentifier so it can be reused.
|
|
NOT the original one. Reason for this is that this md5sum is saved, and otherwise a wrong md5sum would be stored in a savegame.
|
|
removing duplicates as the PEBKAC effect can result in the user adding the same grf's in the config file.
|
|
|
|
in savegame) instead of that of the replacement so a user can still go hunt for the original GRF if needed.
|
|
have the exact GRF files in your list. GRF files that are found based on GRFID (but not on matching md5sum) are used instead of disabling them. This does not affect MP games, there you still need an exact match.
-GRF Window colour-codes changed a bit: Static is now grey, and compatible GRF (found locally only based on GRFID) are shown in orange. Compatible GRF's also have an orange status/warning text saying they're not the original the game was saved with.
-Loaded games with something amiss regarding GRF's will show an appropiate warning message.
|
|
omitted (or NULL)
only a check for GRFID is done and not on md5sum as well. Remove blanksum in the function as it's obsoleted
|
|
MD5SUM and use it.
|
|
pointer to allocated memory instead of modifying the pointer given as parameter
|
|
stillunknown and pv2b.
|
|
renamed to .cpp)
|