Implemented Block Consolidation

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    AFAIK and Sources, Id is just for the end user, the coding is all done without the id#.

    EG: There is no block id number for 3/4 slab.
    That's not true. There is and for every block shape and color.

    I'm actually making a renderer in unity that renders starmade entities. Slabs are another block I'd for every one.
     

    kupu

    Colouring in guy.
    Joined
    Jul 4, 2013
    Messages
    1,405
    Reaction score
    1,560
    • Schine
    • Likeable Gold
    • Arrrty Gold
    AFAIK and Sources, Id is just for the end user, the coding is all done without the id#.

    EG: There is no block id number for 3/4 slab.
    ID.jpg

    3/4 brown hull slab, ID 805. ^^
    All shapes require an ID. Whether it be a 3D model, sprite, slab, wedge or standard cube.
     
    Joined
    Sep 1, 2013
    Messages
    144
    Reaction score
    70
    • Legacy Citizen 2
    • Legacy Citizen
    • Purchased!
    Ok, thanks kupu!

    Now, how is the block id# saved in the db file for each entity? how can we simplify this down from 999 parts.

    Or is this better for optimizing load times? If chunks load faster with more block Id numbers, this would be just for end user enjoyment.
     

    kiddan

    Cobalt-Blooded Bullet Mirror
    Joined
    May 12, 2014
    Messages
    1,131
    Reaction score
    358
    • Top Forum Contributor
    • Legacy Citizen 4
    • Purchased!
    One question, if I have one grey hull block in my inventory and I placed a 1/4 grey hull slab. Would this system leave me with .25 grey hull blocks or just one?
     

    jayman38

    Precentor-Primus, pro-tempore
    Joined
    Jul 13, 2014
    Messages
    2,518
    Reaction score
    787
    • Purchased!
    • Thinking Positive
    • Legacy Citizen 4
    One question, if I have one grey hull block in my inventory and I placed a 1/4 grey hull slab. Would this system leave me with .25 grey hull blocks or just one?
    With this system of consolidated blocks, if you had one grey hull and placed a grey hull slab, you would be left with zero (0) grey hull.
     
    Joined
    Nov 1, 2014
    Messages
    317
    Reaction score
    98
    • Legacy Citizen
    • Purchased!
    Will this get rid of the paint system, or only the manufacture of multiple sizes of hull? I'd love if a plain hull block could be placed as cubes, tetras, heptas, etc, but I kind of think that completely getting rid of paint might be an oversimplification.
     

    Winterhome

    Way gayer than originally thought.
    Joined
    Jun 29, 2013
    Messages
    1,929
    Reaction score
    636
    AFAIK and Sources, Id is just for the end user, the coding is all done without the id#.

    EG: There is no block id number for 3/4 slab.
    Yeah there is. Numeric block IDs are how blocks are loaded by blueprints.

    There's a reason why, in the Blocks screen when checking what a blueprint uses, slabs are considered separate from normal blocks (though they take from the regular full cube stockpile).
     

    Ithirahad

    Arana'Aethi
    Joined
    Nov 14, 2013
    Messages
    4,150
    Reaction score
    1,330
    • Purchased!
    • Top Forum Contributor
    • Legacy Citizen 8
    Yay, this is coming with next release :D

    And yeah, for anyone who still thinks otherwise, go into your game file and find blocktypes.properties (I think it's in /StarMade/data/config/) and open it up in Notepad. You'll see a list of literally ALL the IDs of EVERYTHING, including blocks that don't work any more and aren't enabled ingame. You will notice all the slabs are in there.
     
    • Like
    Reactions: kiddan

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    Not duke, but done :P