Commit Graph

45 Commits (7a4d96f629a9bd447846f8569fad78cf8e5196c5)

Author SHA1 Message Date
rubidium af0616729a (svn r11433) -Fix: starting OpenTTD with DOS files made it look weird out of 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.
17 years ago
rubidium 3722b834ef (svn r11355) -Fix [FS#1377]: loading too many GRFs was not handled gracefully causing crashes and such. 17 years ago
rubidium 5d17b29a17 (svn r11180) -Fix (r11175): crash on load when you don't have any NewGRFs. More interesting is: who plays without them ;) 17 years ago
glx ab886349ab (svn r11179) -Fix [FS#1262] (r11175): compilation with MSVC was broken 17 years ago
rubidium 1dbc6bd4c5 (svn r11175) -Codechange: sort the NewGRFs by name, making searching a specific NewGRF a lot easier. 17 years ago
truelight 4a621fec63 (svn r11119) -Codechange: analyze .tar files upon loading, remembering their 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
17 years ago
glx 045c996364 (svn r11111) -Fix (r11106): missing const broke compilation with MSVC 17 years ago
truelight 9e14778057 (svn r11106) -Add: added .tar support; you can pack all files in your data/ 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)
17 years ago
truelight b84bd3cd1c (svn r11099) -Codechange: allow on opening of a file via FioFOpenFile to request the size of the file, so we can keep that in mind 17 years ago
truelight 45a1ad524a (svn r11098) -Fix r11096: forgot spaces before comments 17 years ago
truelight f9a4d4e1a4 (svn r11097) -Codechange: for easy future extension of NewGRF Scanning, split up the functions a bit 17 years ago
truelight 122cc9e1a4 (svn r11096) -Fix: when 2 different GRF-files had the same name (e.g.: ""), the double-entry checker didn't always work correctly, resulting in multiple entries of the same grf in the list 17 years ago
rubidium 627aa240ba (svn r10298) -Fix [FS#903]: show the subdirectory below the default data 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. 17 years ago
glx 554639ce92 (svn r10223) -Fix r10211: GCF_INIT_ONLY flag was never cleared 17 years ago
glx 623a848cca (svn r10211) -Feature: [NewGRF] Add support for action 0F 17 years ago
rubidium 3c7a85fe94 (svn r10182) -Codechange: rewrite most part of the file loading/searching to 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.
17 years ago
maedhros 94d390eac4 (svn r10114) -Fix: Only load newgrf error messages if the language matches 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.
17 years ago
rubidium 9a57a1912d (svn r10073) -Codechange: make the NewGRF paths in the config file without any full paths (again). 17 years ago
belugas 097b3b3c7b (svn r9662) -Documentation: Doxygen corrections and @file omissions 17 years ago
rubidium b430c03cdd (svn r9561) -Fix (r9561): loading the newgrfs in openttd.cfg was broken.
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).
17 years ago
rubidium 1c1a4bc872 (svn r9560) -Codechange: add support for multiple 'base' directories for newgrf searching.
-Codechange: do not add duplicate files to the newgrf list.
17 years ago
belugas 0e33549b7f (svn r9545) -Documentation: Some corrections to previous doxygen work 17 years ago
belugas 8952924c64 (svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N. 17 years ago
rubidium 979ccd45ba (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 18 years ago
rubidium 4169bfba06 (svn r9050) -Codechange: Foo(void) -> Foo() 18 years ago
maedhros b838a90657 (svn r9031) -Codechange: Introduce grfconfig->status, and use it for states 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.
18 years ago
rubidium c7f9ee6914 (svn r8955) -Fix: crash on loading savegames with GRFs that do not have their GRF info/name set. 18 years ago
maedhros 4f98bec89b (svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly. 18 years ago
Darkvater 9cf01ff432 (svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to add the allocated GRFConfig to its list and not copy it. 18 years ago
maedhros 8b6d07cb85 (svn r8838) -Feature: Show newgrf error messages loaded in Action B in the newgrf gui
window. GRFs with an error have a warning symbol shown before the name.
18 years ago
Darkvater fa16e74d01 (svn r8823) -Fix (r8821): wrapping opendir to ottd-specific function failed on non-windows because this wrapper was only active for win32 (thx Rubidium) 18 years ago
Darkvater 7eab669a88 (svn r8821) -Regression: Unable to browse directories on *nix if the 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. 18 years ago
Darkvater 37f14d4444 (svn r8820) -Codechange (r8807, r8806): Remove the unneeded calloc/free allocation of GRFConfig and turn it into a simple variable (it's supposed to be data-only). Thanks Tron. 18 years ago
Darkvater 33667effcc (svn r8806) -Codechange (r7582): Remove a duplicate append of static GRF's when loading the game and hide the intrinsics of adding elements to the GRFConfig list by using an AppendToGRFConfigList function. 18 years ago
rubidium a93eb4b8d8 (svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused. 18 years ago
Darkvater 7479eab247 (svn r8165) -Revert r8107 and show the MD5SUM of the *REPLACEMENT* grf file, NOT the original one. Reason for this is that this md5sum is saved, and otherwise a wrong md5sum would be stored in a savegame. 18 years ago
Darkvater 6133bd1b31 (svn r8135) -Fix (r7582): Don't assert on duplicate non-static grfs when removing duplicates as the PEBKAC effect can result in the user adding the same grf's in the config file. 18 years ago
glx 378194d6fe (svn r8111) -Fix r8106: silence warnings 18 years ago
Darkvater 556cb52a3b (svn r8107) -Codechange (r8106): Show the MD5SUM of the original GRF (saved in savegame) instead of that of the replacement so a user can still go hunt for the original GRF if needed. 18 years ago
Darkvater 4f413d1ff4 (svn r8106) -Feature/Fix: Add the ability to load savegames when you don't 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.
18 years ago
Darkvater c8a0d59132 (svn r8105) -Codechange: Change FindGRFConfig so that if md5sum parameter is 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
18 years ago
Darkvater 95024bb21c (svn r8093) -Codechange: Add a function to get a string representation of an MD5SUM and use it. 18 years ago
KUDr 28e969924b (svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter 18 years ago
rubidium a7d0cdf95f (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 18 years ago
KUDr 07c30785ab (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 18 years ago