Darkvater
04628a1979
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
...
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
2006-12-26 17:36:18 +00:00
Darkvater
dbb36b67d8
(svn r7523) -Feature: Add the possibility to change the newgrf configuration of a running game.
...
This is only possible in SP (or in the intro menu). During game play you will
get a confirmation window when applying the changes as some actions can crash
OpenTTD and/or make your current game unplayable.
2006-12-21 10:29:16 +00:00
peter1138
08a494f184
(svn r7490) -Feature: Load a list of NewGRFs from the config (in the [newgrf-static] section) that should always be loaded. These will also be active during the intro screen, and in multiplayer games. Only "network-safe" NewGRFs are permitted, such as fonts and sprite replacement sets.
2006-12-12 19:38:41 +00:00
peter1138
301d392b2c
(svn r7354) -Codechange: Remove grffile->flags and use grfconfig->flags exclusively. Update action 7/9 now that we know if GRFs are disabled.
2006-12-04 13:45:20 +00:00
peter1138
3b6d2ed064
(svn r7348) -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames...
2006-12-04 08:30:04 +00:00
peter1138
a36232f69b
(svn r7345) -Codechange: enumification of NewGRF loading stage, and move enum definition to header for future use.
2006-12-03 23:46:54 +00:00
peter1138
71642d464b
(svn r7325) -Feature: Add support for action 5 type 0x0D, coast sprites.
2006-12-02 09:54:49 +00:00
peter1138
0815ce3cd9
(svn r6654) - Codechange: If no 2cc vehicles are available, hide the secondary colour choice.
2006-10-05 15:07:34 +00:00
peter1138
8b2e4e970a
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
2006-09-27 18:17:01 +00:00
peter1138
0194a3da1e
(svn r4901) - Codechange: change 'SpriteGroup *' to 'struct SpriteGroup *' within StationSpec and GRFFile struct declarations. Now only code which actually references those pointers needs to know about the SpriteGroup struct. Remove some unnecessary lingering header dependencies.
2006-05-17 21:26:12 +00:00
peter1138
9d6ddd364e
(svn r4767) - Newstations: fix loading / use of custom ground sprites
2006-05-07 10:58:53 +00:00
peter1138
9fd5f28934
(svn r4760) - Newstations: change the way custom stations are allocated when loading from GRF, as the current way was flawed (reallocing memory which is referenced elsewhere)
2006-05-06 22:20:16 +00:00
peter1138
8a4a39d38c
(svn r4650) - NewGRF: use the correct type for _cur_spriteid
2006-05-01 16:52:43 +00:00
peter1138
b342c6b223
(svn r4549) - NewGRF: store the grf version from Action 0x08.
2006-04-23 18:03:55 +00:00
peter1138
7e229e9728
(svn r4546) - NewGRF: add support for Action 0x05, type 0x04: replacement signal graphics. Thanks to Purno for supplying data to test
...
with.
2006-04-23 15:57:34 +00:00
Darkvater
fe61e68c8a
(svn r4527) - Feature [NewGRF]: Add support for specifying parameters to GRF files. Usage: "mygrf = 1". You can pass up to 128 parameters, each one seperated by a comma or a space-character. Big thanks to peter1138 for the inspiration and examples.
2006-04-22 13:17:13 +00:00
Darkvater
cd25cba992
(svn r4439) - NewGRF: Add support for Action 0x10. This also required an extra pre-stage (before initialize and activation) to scan the GRF file for GOTO labels. Big thanks for peter1138 for the guidance and answers, as well as parts of the code.
2006-04-15 21:27:59 +00:00
peter1138
432ef5cad9
(svn r4352) - NewGRF Codechange: dynamically allocate the memory used to store custom station data. This saves us approximately 40KB per GRF file, if there are no stations defined.
2006-04-11 10:05:52 +00:00
tron
7dc1e23845
(svn r3311) Remove the unnecessary global variable _grffile_count: It's just the scroll count of a list and furthermore only used in one file
2005-12-18 08:01:05 +00:00
peter1138
12009af1c5
(svn r3167) - NewGRF: Start moving custom station code to separate files.
...
Rewrite handling of station classes.
Allow for more than 8 station tile layouts.
Start of code to unload custom stations.
2005-11-12 00:19:34 +00:00
tron
0b936c3222
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
...
nothing spectacular, just some stuff, which piled up
2005-10-22 06:39:32 +00:00
peter1138
cab56117ca
(svn r2970) - Newgrf: Allocate spritegroups dynamically; this allows a cargo ID to reference the previous definition of the same cargo ID, instead of causing loops.
2005-09-22 20:35:20 +00:00
tron
976b8b90e8
(svn r2871) -Feature/Fix: Per GRF parameter lists
2005-08-15 21:19:28 +00:00
tron
69f250796f
(svn r2868) Change the way NewGRFs are loaded: The loading process i no longer bolted onto the normal graphics loading.
...
This has two major advantages:
- Removal of a maze of global variables and distinction of cases from the sprite loading routines, which weren't directly related to the loading process in the first place
- NewGRF actions no longer occupy sprite slots - for example when using DBSetXL this saves about 2000 slots! (you could regard this as a bug fix)
If i didn't make a major mistake this change should have no negative effect on NewGRF support, please test!
2005-08-15 11:39:13 +00:00
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
ca3ccff729
(svn r1981) Typedef some structs and enums
2005-03-10 07:01:43 +00:00
pasky
989fd10d06
(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
2004-11-19 22:53:18 +00:00
dominik
8d91459f37
(svn r665) code fixes for newgrf.c/newgrf.h
2004-11-17 20:08:13 +00:00
dominik
31184f974e
(svn r663) [newgrf] sorry, forgot newgrf.h
2004-11-17 18:53:49 +00:00