Henry Wilson
c01a2e2a81
Codechange: Removed SmallVector completely
5 years ago
Patric Stout
e3c639a09f
Remove: ENABLE_NETWORK switch
...
This switch has been a pain for years. Often disabling broke
compilation, as no developer compiles OpenTTD without, neither do
any of our official binaries.
Additionaly, it has grown so hugely in our codebase, that it
clearly shows that the current solution was a poor one. 350+
instances of "#ifdef ENABLE_NETWORK" were in the code, of which
only ~30 in the networking code itself. The rest were all around
the code to do the right thing, from GUI to NewGRF.
A more proper solution would be to stub all the functions, and
make sure the rest of the code can simply assume network is
available. This was also partially done, and most variables were
correct if networking was disabled. Despite that, often the #ifdefs
were still used.
With the recent removal of DOS, there is also no platform anymore
which we support where networking isn't working out-of-the-box.
All in all, it is time to remove the ENABLE_NETWORK switch. No
replacement is planned, but if you feel we really need this option,
we welcome any Pull Request which implements this in a way that
doesn't crawl through the code like this diff shows we used to.
5 years ago
Jonathan G Rennison
06c458cb19
Merge branch 'newgrf-property-mapping' into jgrpp
...
# Conflicts:
# docs/newgrf-additions.html
# src/newgrf.cpp
6 years ago
Jonathan G Rennison
9a6a66a054
Add general NewGRF Action 0 property mapping scheme to Action 14
6 years ago
Jonathan G Rennison
90cd312428
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/fios.h
7 years ago
frosch
7b553d255e
(svn r27732) -Change: Turn the message about 'missing baseset sprites' from a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
7 years ago
frosch
050271ed2d
(svn r27732) -Change: Turn the message about 'missing baseset sprites' from a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
7 years ago
frosch
a3b356e057
(svn r27725) -Codechange: Remove IsOpenTTDBaseGRF and test for GCF_CONFIG instead, which does the same in all use-cases.
8 years ago
frosch
a76847f362
(svn r27725) -Codechange: Remove IsOpenTTDBaseGRF and test for GCF_CONFIG instead, which does the same in all use-cases.
8 years ago
Jonathan G Rennison
20a090b077
Show warning dialog if NewGRFs use too many string IDs.
...
Show when reloading/changing NewGRF config, or starting new game.
8 years ago
alberth
e333f0e9ef
(svn r26612) -Add: Method to copy newgrf parameters.
10 years ago
alberth
3c9d3f5ecd
(svn r26612) -Add: Method to copy newgrf parameters.
10 years ago
frosch
eb6974179d
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
10 years ago
frosch
41b7a04a68
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
10 years ago
planetmaker
f00d9976f9
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
frosch
69f836e57b
(svn r24318) -Feature: Add dropdowns to NewGRF configurations, if all values have labels.
12 years ago
frosch
c3ca57c42b
(svn r24318) -Feature: Add dropdowns to NewGRF configurations, if all values have labels.
12 years ago
rubidium
6256d64553
(svn r23932) -Codechange: split the NewGRF text window into its own source files
12 years ago
rubidium
e8dbcf9043
(svn r23932) -Codechange: split the NewGRF text window into its own source files
12 years ago
michi_cc
14094d00bf
(svn r23887) -Feature: [NewGRF] Support for container version 2.
13 years ago
michi_cc
6db39410a1
(svn r23887) -Feature: [NewGRF] Support for container version 2.
13 years ago
frosch
9eebe8b1ae
(svn r23807) -Codechange: GRFError::num_params is not needed, remove it.
13 years ago
frosch
92700c1262
(svn r23807) -Codechange: GRFError::num_params is not needed, remove it.
13 years ago
truebrain
aa1a0053b0
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
truebrain
1c9bec1999
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
rubidium
3d605f6488
(svn r23595) -Codechange: add comma after last enum to get a more uniform coding style
13 years ago
rubidium
df16ebd730
(svn r23595) -Codechange: add comma after last enum to get a more uniform coding style
13 years ago
rubidium
24263638bf
(svn r23526) -Codechange: unify cargos vs cargoes
13 years ago
rubidium
3d88c74389
(svn r23526) -Codechange: unify cargos vs cargoes
13 years ago
yexo
38102a96b9
(svn r23494) -Feature: [NewGRF] action14 node INFO->URL_ to add an url
13 years ago
yexo
7a7d9a7b6b
(svn r23494) -Feature: [NewGRF] action14 node INFO->URL_ to add an url
13 years ago
rubidium
b92c6ae0b7
(svn r23422) -Fix [FS#4863] (r22797): the default palette setting wasn't applied correctly anymore as the configuration file is loaded after the first NewGRF scan
13 years ago
rubidium
5891099f24
(svn r23422) -Fix [FS#4863] (r22797): the default palette setting wasn't applied correctly anymore as the configuration file is loaded after the first NewGRF scan
13 years ago
frosch
ba6d212079
(svn r23249) -Feature: Also allow viewing of the other two textfiles supplied by BaNaNaS tars, i.e. changelog and license.
13 years ago
frosch
0d901d599f
(svn r23249) -Feature: Also allow viewing of the other two textfiles supplied by BaNaNaS tars, i.e. changelog and license.
13 years ago
frosch
42ba77bd11
(svn r23248) -Codechange: Rename everything related to the NewGRF 'readme' to 'textfile', so it is more generic.
13 years ago
frosch
b725913f3b
(svn r23248) -Codechange: Rename everything related to the NewGRF 'readme' to 'textfile', so it is more generic.
13 years ago
rubidium
60c0abb883
(svn r23178) -Feature [FS#4780]: in-game readme.txt readmer (LordAro)
13 years ago
rubidium
514d887690
(svn r23178) -Feature [FS#4780]: in-game readme.txt readmer (LordAro)
13 years ago
frosch
1900d7fcb6
(svn r23140) -Add: ErrorUnknownCallbackResult()
13 years ago
frosch
56e5144f71
(svn r23140) -Add: ErrorUnknownCallbackResult()
13 years ago
michi_cc
e07c107eb1
(svn r23001) -Feature: [NewGRF] Automatically switch to a 32 bpp blitter on NewGRF indication.
13 years ago
michi_cc
71bd681d87
(svn r23001) -Feature: [NewGRF] Automatically switch to a 32 bpp blitter on NewGRF indication.
13 years ago
rubidium
af80e9106e
(svn r22826) -Codechange: pass sub directory to NewGRF loading functions
13 years ago
rubidium
8e5f433b22
(svn r22826) -Codechange: pass sub directory to NewGRF loading functions
13 years ago
rubidium
cc6e55a246
(svn r22797) -Add: progress bar for scanning NewGRFs
13 years ago
rubidium
dc5f44883b
(svn r22797) -Add: progress bar for scanning NewGRFs
13 years ago
rubidium
54f52a26a4
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
13 years ago
rubidium
6d51883a87
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
13 years ago
rubidium
5246ed53a8
(svn r22790) -Codechange: add callback for when NewGRF scanning is complete
13 years ago
rubidium
d7593d8815
(svn r22790) -Codechange: add callback for when NewGRF scanning is complete
13 years ago
rubidium
eb2197f4c8
(svn r22410) -Document: some more bits ;)
13 years ago
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
13 years ago
yexo
d1d3084a82
(svn r22162) -Fix [FS#4533]: No update of NewGRF window when unknown GRF name becomes available
13 years ago
yexo
93533b603a
(svn r22162) -Fix [FS#4533]: No update of NewGRF window when unknown GRF name becomes available
13 years ago
frosch
56d06b6ef8
(svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage of GRFs with versions above 7.
14 years ago
frosch
6e4dd56158
(svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage of GRFs with versions above 7.
14 years ago
frosch
3dbc1abf14
(svn r20959) -Codechange: Realign comments.
14 years ago
frosch
8a06854943
(svn r20959) -Codechange: Realign comments.
14 years ago
frosch
92dadb78ab
(svn r20958) -Add: the concept of min-loadable-version to NewGRFs when choosing compatbile NewGRFs. (planetmaker)
14 years ago
frosch
e805919fe9
(svn r20958) -Add: the concept of min-loadable-version to NewGRFs when choosing compatbile NewGRFs. (planetmaker)
14 years ago
frosch
a7e486360d
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
14 years ago
frosch
3972c790c2
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
14 years ago
yexo
8d451d3d72
(svn r20601) -Feature: [NewGRF] Add 'DEFA' field to set parameter defaults with action 14
14 years ago
yexo
a36159614a
(svn r20601) -Feature: [NewGRF] Add 'DEFA' field to set parameter defaults with action 14
14 years ago
rubidium
771b553333
(svn r20566) -Feature: happy smiles on the faces of Ammler and planetmaker
14 years ago
rubidium
552adca67f
(svn r20566) -Feature: happy smiles on the faces of Ammler and planetmaker
14 years ago
frosch
d08c3d9381
(svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing railtype.
14 years ago
frosch
236737b2f2
(svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing railtype.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
a777266426
(svn r20259) -Add: allow NewGRFs to specify their version and use that to hide old NewGRFs / to choose the newest when loading compatible NewGRFs
14 years ago
rubidium
ac280af8bc
(svn r20259) -Add: allow NewGRFs to specify their version and use that to hide old NewGRFs / to choose the newest when loading compatible NewGRFs
14 years ago
yexo
f4c46dd701
(svn r20258) -Feature: more user-friendly gui to change NewGRF parameters
14 years ago
yexo
5a2862814a
(svn r20258) -Feature: more user-friendly gui to change NewGRF parameters
14 years ago
yexo
0ef99605cc
(svn r20255) -Add: allow NewGRFs to specify static info about their user-changeable parameters
14 years ago
yexo
d6eab96a22
(svn r20255) -Add: allow NewGRFs to specify static info about their user-changeable parameters
14 years ago
rubidium
f03106db1c
(svn r20254) -Add: allow NewGRFs to specify their palette
14 years ago
rubidium
4a4f02dc81
(svn r20254) -Add: allow NewGRFs to specify their palette
14 years ago
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.
14 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.
14 years ago
frosch
54a7c3243e
(svn r19971) -Codechange: Make IsGoodGRFConfigList() operate on any given GRFConfig and move the GameLog operations directly to AfterLoad().
14 years ago
frosch
641fc68aa8
(svn r19971) -Codechange: Make IsGoodGRFConfigList() operate on any given GRFConfig and move the GameLog operations directly to AfterLoad().
14 years ago
alberth
88fe11aae3
(svn r19835) -Codechange: Extract grfident equality check to its own method.
14 years ago
alberth
3271362413
(svn r19835) -Codechange: Extract grfident equality check to its own method.
14 years ago
yexo
23af928ce9
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
14 years ago
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
14 years ago
yexo
daf89297fe
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
14 years ago
yexo
7ff55502f0
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
14 years ago