Project

General

Profile

Feature #375 » 0044-Increase-max-number-of-unit-types-to-300.patch

Marko Lindqvist, 03/29/2024 06:34 PM

View differences:

common/fc_types.h
/* e.g. unit_types. Used in the network protocol. */
#define MAX_NUM_ITEMS 200
#define MAX_NUM_ADVANCES 400 /* Used in the network protocol. */
#define MAX_NUM_UNITS 250 /* Used in the network protocol. */
#define MAX_NUM_UNITS 300 /* Used in the network protocol. */
#define MAX_NUM_BUILDINGS 200 /* Used in the network protocol. */
#define MAX_NUM_TECH_LIST 10 /* Used in the network protocol. */
#define MAX_NUM_UNIT_LIST 10 /* Used in the network protocol. */
common/networking/packets.def
type TERRAIN = uint8(Terrain_type_id)
type TILE = SINT32
type UNIT = UINT32
type UNIT_TYPE = uint8(Unit_type_id)
type UNIT_TYPE = uint16(Unit_type_id)
type GOODS = uint8(Goods_type_id)
# other typedefs
data/alien/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/civ1/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/civ2/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/civ2civ3/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/classic/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/goldkeep/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/granularity/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/multiplayer/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/ruledit/comments-3.3.txt
;\n\
; Below: The individual unit types, one per section.\n\
;\n\
; The number can be variable, up to 200.\n\
; The number can be variable, up to 300.\n\
; However for the \"official\" rulesets, units should not be removed\n\
; because that would break backward compatibility with savegames.\n\
;\n\
data/sandbox/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/stub/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
data/webperimental/units.ruleset
;
; Below: The individual unit types, one per section.
;
; The number can be variable, up to 200.
; The number can be variable, up to 300.
; However for the "official" rulesets, units should not be removed
; because that would break backward compatibility with savegames.
;
(2-2/2)