FS#5117 - Raise max loaded NewGRF limit

Attached to Project: OpenTTD
Opened by Supercheese (Supercheese) - Wednesday, 21 March 2012, 20:04 GMT
Last edited by andythenorth (andythenorth) - Friday, 18 August 2017, 22:42 GMT
Type Feature Request
Category NewGRF
Status Closed
Assigned To andythenorth (andythenorth)
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
  • Supercheese (Supercheese) (2012-03-27)
  • PaulC (PaulC) (2012-03-23)
Private No


Currently (as of r24054), there is be a limit of 63 NewGRFs that can be loaded at once. If you try and load more than this, OTTD throws a Fatal Error.

I, for one, see no reason why it should be at such a low level, and I would very much like to see it raised. I do hope there aren't any hidden reasons why raising this limit would cause problems...
This task depends upon

Closed by  andythenorth (andythenorth)
Friday, 18 August 2017, 22:42 GMT
Reason for closing:  Won't implement
Additional comments about closing:  [11:41pm] Supercheese: yeah, There's a Patch for Thatâ„¢
[11:41pm] Supercheese: and that's good enough for me
Comment by Supercheese (Supercheese) - Wednesday, 21 March 2012, 20:08 GMT
Please pardon the typo; I was going back and forth between "there seems to be" and "there is", resulting in "there is be"...
Comment by PaulC (PaulC) - Friday, 23 March 2012, 10:23 GMT
Hmm, the limit actually seems to 59 (at least, it is for me). One could argue that 59 (or 63) is more than sufficient for anyone, but (and bearing in mind that not all grfs are equal) why do we need a limit at all?
Comment by frosch (frosch) - Friday, 23 March 2012, 17:02 GMT
For the multiplayer lobby all used NewGRFs must be put into a single UDP packet.
A UDP packet is very limited in size.
Comment by PaulC (PaulC) - Friday, 23 March 2012, 23:51 GMT
Well I don't know about that, but as I said not all grfs are equal (in size) so I don't necessarily see how a limit on the number of grfs is useful. I'm really thinking about offline single player, which I assume is the majority of users?
Comment by Nathanael Rebsch (dihedral) - Wednesday, 28 March 2012, 07:21 GMT
The UDP Packets contain the grfid and the md5sum of the grf - not the grf itself. Hence the actual size of the grf is not of interest at this point ;-)
Comment by andythenorth (andythenorth) - Tuesday, 27 December 2016, 14:06 GMT
Anyone who wants that many grfs should implement it for themselves. Issue should be closed. :)