Plexius Posted November 7, 2023 Share Posted November 7, 2023 ERR XML loader: Loading and parsing 'blocks.xml' failed EXC Index was outside the bounds of the array. i keep getting this error i am making more upgradeable blocks and have a few that work fine the codes on everything seem to match.. is there a limit or certain stats for blocks or why would this even pop up in the first place? Link to comment Share on other sites More sharing options...
zztong Posted November 7, 2023 Share Posted November 7, 2023 Are you creating a lot of blocks? I mean, one way to get an index outside the bounds of an array of all blocks would be to try to define more blocks than the array was declared to be able to hold. That is, if the game were prepared to track up to 32 blocks, and you defined the 33rd block, the index for the 33rd block to be added would be outside the bounds of the 32 cell array. That said, I've been told the index is something like a 16-bit unsigned integer, which (if true) allows for a very large index. I've no idea how the array is defined. Link to comment Share on other sites More sharing options...
BFT2020 Posted November 7, 2023 Share Posted November 7, 2023 FYI There is a limit of 32k blocks in the game. I think vanilla has just under 6k blocks by itself. Link to comment Share on other sites More sharing options...
bdubyah Posted November 9, 2023 Share Posted November 9, 2023 The thing is shapes count towards this as well. If you add one new block that can use all shapes, it's counts the same as adding around 2000 blocks. So I think vanilla is sitting around 22k from what I've seen. Which doesn't leave very much room for mods to add, especially if you are trying to do full tiers of blocks in all shapes. Link to comment Share on other sites More sharing options...
BFT2020 Posted November 9, 2023 Share Posted November 9, 2023 11 hours ago, bdubyah said: The thing is shapes count towards this as well. If you add one new block that can use all shapes, it's counts the same as adding around 2000 blocks. So I think vanilla is sitting around 22k from what I've seen. Which doesn't leave very much room for mods to add, especially if you are trying to do full tiers of blocks in all shapes. Ah, I wasn't sure about that. Thanks. Originally the shapes were all just blocks, but now they are specified in the shape menu. That seems better as when I counted the blocks I got such a low number, and I could have sworn that vanilla used up considerable more of the allowed blocks ids than 6k Link to comment Share on other sites More sharing options...
Plexius Posted November 10, 2023 Author Share Posted November 10, 2023 Sorry for the late response but im glad to come back to this and see these responses i was making 6 new upgradeable blocks but it stops working after the 4th one. im fine with just cutting out the last two and doing them a bit different thanks! 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