rubidium
d9393035ea
(svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset
14 years ago
rubidium
e469a94a2d
(svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset
14 years ago
rubidium
6c22efc840
(svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) palette for NewGRFs
14 years ago
rubidium
f7794e313f
(svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) palette for NewGRFs
14 years ago
yexo
eacf65598f
(svn r20251) -Add: [NewGRF] allow grfs to specify the number of valid parameters
14 years ago
yexo
75c4a2d2fb
(svn r20251) -Add: [NewGRF] allow grfs to specify the number of valid parameters
14 years ago
yexo
6117b0abc7
(svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible
14 years ago
yexo
d3c1be9abd
(svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible
14 years ago
yexo
cb5cfd7f8c
(svn r20248) -Codechange: use a copy-constructor instead of a separate function co clone GRFConfig/GRFError
14 years ago
yexo
1ca16aa979
(svn r20248) -Codechange: use a copy-constructor instead of a separate function co clone GRFConfig/GRFError
14 years ago
frosch
52c4af211a
(svn r19972) -Change: Use the md5sum from the previous save of the game for BaNaNaS instead of the initial (when the grf was added) md5sum from the gamelog. Neither method is 'better', but this way it is independent from the gamelog.
15 years ago
frosch
56fbbdeafd
(svn r19972) -Change: Use the md5sum from the previous save of the game for BaNaNaS instead of the initial (when the grf was added) md5sum from the gamelog. Neither method is 'better', but this way it is independent from the gamelog.
15 years ago
frosch
54a7c3243e
(svn r19971) -Codechange: Make IsGoodGRFConfigList() operate on any given GRFConfig and move the GameLog operations directly to AfterLoad().
15 years ago
frosch
641fc68aa8
(svn r19971) -Codechange: Make IsGoodGRFConfigList() operate on any given GRFConfig and move the GameLog operations directly to AfterLoad().
15 years ago
alberth
88fe11aae3
(svn r19835) -Codechange: Extract grfident equality check to its own method.
15 years ago
alberth
3271362413
(svn r19835) -Codechange: Extract grfident equality check to its own method.
15 years ago
yexo
23af928ce9
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
15 years ago
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
15 years ago
yexo
daf89297fe
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
15 years ago
yexo
7ff55502f0
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
15 years ago
yexo
b21278659c
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
15 years ago
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
15 years ago
yexo
e876e21abf
(svn r19251) -Codechange: add a contructor to GRFError and use it to allocating errors more uniform.
...
-Fix: some grf error messages didn't free the previous error messages, creating a memory leak
15 years ago
yexo
2c1b7410f3
(svn r19251) -Codechange: add a contructor to GRFError and use it to allocating errors more uniform.
...
-Fix: some grf error messages didn't free the previous error messages, creating a memory leak
15 years ago
yexo
e7fbbdc81d
(svn r18813) -Codechange: deduplicate copying a newgrf config
15 years ago
yexo
bd102b78ee
(svn r18813) -Codechange: deduplicate copying a newgrf config
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
frosch
80e896fa53
(svn r16223) -Fix (r8881): ActionB should use the online parameters from GRFFile instead of the initial user-specified values from GRFConfig. Also use the values as they were set when the ActionB was executed, not as they are set when the message is shown.
16 years ago
frosch
ddd47a056d
(svn r16223) -Fix (r8881): ActionB should use the online parameters from GRFFile instead of the initial user-specified values from GRFConfig. Also use the values as they were set when the ActionB was executed, not as they are set when the message is shown.
16 years ago
frosch
d86e821f53
(svn r15701) -Fix [FS#2595]: Blame NewGRFs returning inconsistent information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
16 years ago
frosch
4129b418cc
(svn r15701) -Fix [FS#2595]: Blame NewGRFs returning inconsistent information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
16 years ago
peter1138
8ab3e4b7b6
(svn r15114) -Codechange: Add support for 8 byte action7/9 data, used as a mask for GRFID checks.
16 years ago
peter1138
f8d65b4865
(svn r15114) -Codechange: Add support for 8 byte action7/9 data, used as a mask for GRFID checks.
16 years ago
rubidium
882d39a081
(svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs.
16 years ago
rubidium
a4cd12274c
(svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs.
16 years ago
smatz
f1c0555d2e
(svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that
16 years ago
smatz
aae2aa64c4
(svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that
16 years ago
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
smatz
976d08bcdf
(svn r12537) -Cleanup: comment newgrf_config.h a bit
17 years ago
smatz
b0ee311780
(svn r12537) -Cleanup: comment newgrf_config.h a bit
17 years ago
rubidium
7f037d15d7
(svn r11704) -Codechange: remove another bunch of useless includes.
17 years ago
rubidium
0b1d3e43e5
(svn r11704) -Codechange: remove another bunch of useless includes.
17 years ago
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
f546de602b
(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
glx
74ee13aba8
(svn r11381) -Fix [FS#1227]: redo the fix in a less breaking way
17 years ago
glx
3517ee6d54
(svn r11381) -Fix [FS#1227]: redo the fix in a less breaking way
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.
18 years ago
rubidium
6402d00190
(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.
18 years ago
glx
623a848cca
(svn r10211) -Feature: [NewGRF] Add support for action 0F
18 years ago
glx
23af871615
(svn r10211) -Feature: [NewGRF] Add support for action 0F
18 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.
18 years ago
maedhros
109dd33c4a
(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.
18 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.
18 years ago
rubidium
db91588845
(svn r9560) -Codechange: add support for multiple 'base' directories for newgrf searching.
...
-Codechange: do not add duplicate files to the newgrf list.
18 years ago
belugas
8952924c64
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
18 years ago
belugas
dcd510c81f
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
18 years ago
rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
24c4d5b06d
(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
rubidium
36bb92ae24
(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
maedhros
1c7df202c6
(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
maedhros
4f98bec89b
(svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly.
18 years ago
maedhros
8b6350d3a3
(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
Darkvater
31be3c6fac
(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
maedhros
f2d63dcecf
(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
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
Darkvater
6d4d072023
(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
rubidium
cf83a9f065
(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused.
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
66c5cde981
(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
3f168daee1
(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
rubidium
013df98f79
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago
rubidium
66bbf336c6
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago