kanealpha Posted April 22, 2023 Share Posted April 22, 2023 SO A21 will introduce new Assets and blocks if i am not mistaken. Will the block Limit be increased too, to allow the use of mods like DF, Admin_blocks and UBBI? With just a few mods the block limit is reached already Link to comment Share on other sites More sharing options...
meganoth Posted April 23, 2023 Share Posted April 23, 2023 This is just guessing on my part, but since this isn't a new problem in 7D2D I would assume the block limit is a rather hard limit, not easy to circumvent. It isn't just an arbitrary number someone put in the code just for kicks but very likely a number that can't get higher because block ids are stored somewhere in a specific number of bytes. It may even be that TFP can't change that at all if Unity for example is dictating the number of bytes to use. Or simply because TFP used up all the bits and bytes in their block data already so there simply is no way for the block id to grow. That may be a dilemma for TFP as they don't want to constrain their own designers or the feature list of their vanilla game, but they still want to make the game mod-friendly. IMHO they have to reserve some space for mods, but that space might be less than the biggest mods might want. Link to comment Share on other sites More sharing options...
Maxley Posted April 23, 2023 Share Posted April 23, 2023 What is a block limit? I never heard about this? Forgive my ignorance Link to comment Share on other sites More sharing options...
zztong Posted April 23, 2023 Share Posted April 23, 2023 I'd be curious to know more about what the block limit is. I've started to add custom (XML-only) blocks to my modlet and if I hurtling toward some limit that would affect my customers I'd like to design/engineer with that in mind. Link to comment Share on other sites More sharing options...
meganoth Posted April 24, 2023 Share Posted April 24, 2023 3 hours ago, Maxley said: What is a block limit? I never heard about this? Forgive my ignorance it is the number of different blocks that can be defined in the game. Link to comment Share on other sites More sharing options...
zztong Posted April 24, 2023 Share Posted April 24, 2023 10 hours ago, meganoth said: it is the number of different blocks that can be defined in the game. Do you have any idea what it is numerically speaking? A value of 16,384? 32,768? 65,536? Perhaps? Link to comment Share on other sites More sharing options...
meganoth Posted April 24, 2023 Share Posted April 24, 2023 Just now, zztong said: Do you have any idea what it is numerically speaking? A value of 16,384? 32,768? 65,536? Perhaps? No. I think one of the modders who reached the limit would know best. I can only guess that with over 1000 shapes in the building menu the value likely is 2048, 4096 or 8192. 1 Link to comment Share on other sites More sharing options...
BFT2020 Posted April 24, 2023 Share Posted April 24, 2023 From the blocks.xml file <!-- Block limit: There can be 32k blocks in the game. 0-255 are reserved for air/terrain blocks. IDs are generated internally on loading the game/blocks/items (1 byte for terrain, 2 for the rest). Note that CreativeMode=Test means that they only show in the creative menu in Unity and with the "Dev Blocks" button on. --> Link to comment Share on other sites More sharing options...
meganoth Posted April 24, 2023 Share Posted April 24, 2023 I checked the logfiles, vanilla says "INF Block IDs total 13640, terr 44, last 13848", so it uses up 42% of the available block id space. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now