Extending blocktype.properties

    Joined
    Oct 11, 2013
    Messages
    8
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Is there anyway to extend the range of id beyond 2048 in the BlockTypes.properties file?
    simply extending the file to have numbers beyond that causes parser exceptions. Currently in my blocktypes all 2048 slots are in use via other blocks.

    If their is no way to extend the range beyond 2048 then is there a way to impliment subids? example of subid is this, grey hull block is number 5 and it comes in many shapes. 5 being the main block, well instead of giving each shape its own full id, we make wedge (normally 293) into or 5.2, corner into 5.3(instead of 302) tetra would be 5.4 instead of (348) penta would be 5.5 (instead of 357) just with that 1 selection of blocks we would save 4 id numbers. this would vastly increase the amount of blocks the game can have and might improve organization a little bit.
     

    Ithirahad

    Arana'Aethi
    Joined
    Nov 14, 2013
    Messages
    4,150
    Reaction score
    1,330
    • Purchased!
    • Top Forum Contributor
    • Legacy Citizen 8
    Block IDs are ints (so no 'subIDs'), and no, there is no way to extend the number of IDs without serious core code modification, that being assigning each block more data so it can hold larger numbers. This will most likely be done in the future anyway, but don't hold your breath for it.
     

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    The block ID's are limited to save on network usage. They can only be expanded by schine.
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    Currently in my blocktypes all 2048 slots are in use via other blocks.
    What? So that file has 2049 or more lines? (only 1 ID can be assigned per line)
    Be aware, that many IDs in the 800+ range are skipped, or reserved for modded blocks.