Custom Blocks. what can they now do?

    Joined
    Aug 3, 2013
    Messages
    383
    Reaction score
    114
    • Legacy Citizen
    • Community Content - Bronze 2
    • Community Content - Bronze 1
    OK then the latest update was a rather big one. It boasts so many good changes. So naturally many people are just trying to wrap their heads around what just happened. It's allot to take in on such seemingly small amount of changes.

    custom blocks have been greatly improved now. below is a snip from the update that shows exactly just what got done.
    An admin can place the texture sheet and their normals (if needed) into ./StarMade/customBlockTextures/64, 128 and 256 as custom.png and custom_NRM.png. The game will create a the default structure when starting it once with the update. These textures are packed into pack.zip when starting the game and sent to the clients. The clients can accept or decline the download. Server admins are responsible for their content.

    The adaptive BlockConfig works in a similar matter. Copy the BlockConfigImportTemplate.xml in ./StarMade/customBlockConfig/ to ConfigImportTemplate.xml. This file is a stub with two examples. The file will merge with the current block config, only replacing fields that changed, or adding a new block if it didn't exist before. In the blocks.properties there have meen made 256 values to use which won't get overwritten by something else in the game.

    Clients ask for a hashcode before downloading so they can verify if they already have the textured cached for that server, so each client only needs to download the textures once, or when they changed.

    OK now then, many are probably scratching their heads about now and asking, "What does this all mean and how does it improve the custom blocks?"

    well let me answer this as simply as I can to explain why this is so huge.

    what the above spoiler is going on about, is that now we can create custom configured (which now includes things with scripted effects, like doors and other specific mechanic) blocks, which do not change/reset in future updates, unless something is actually changed for the specific block. Also, here is the most important part. All of that can be made with its own unique textures.

    So in as stupid friendly words as I can manage, what that all means now, is that in theory, we can make new blocks from already added blocks in the game. this means that if I wanted to, I could make a set of block that could be used to build objects from blocks that actually look like what they are trying to emulate. a chair for example, or sofa would just need to be made from a hull block and re-textured to look like upholstery items and pasted to the desired hull shapes.

    and all of that I can keep in a file which can also in theory, open up and share with everyone else simply by letting them download or connect to my server. So think about that, the mod section of the community content page may be just about to get a whole lot bigger.

    The possibilities alone for making custom decorative items. Is just so huge! There is just no way scheema could ever go back and devote time to make all these things for us. So this is just a clue as to what he wants to make the game do, hes provided the modding TOOLS to now make custom decorative blocks. so now its our turn to help him out, lets start making those new blocks. Now we can make new blocks, so its time to get to it and mod.
     
    Last edited:
    Joined
    Jun 19, 2014
    Messages
    1,756
    Reaction score
    162
    • Purchased!
    • Top Forum Contributor
    • Legacy Citizen
    This always could already be done, the custom configs just made it easier (which you already knew). There are, however, a few problems with it, and some things still need to be added and improved. I made a thread about it: http://starmadedock.net/threads/custom-config-and-block-editor-improvements.3797/

    I'm personally more interested in custom factories, as that will add a whole new range of possibilities, but as it currently is, doing so is going to be a bit hard.

    Combining block configs with behaviour configs can even make custom effects and weapons possible.
     
    Joined
    Oct 4, 2014
    Messages
    94
    Reaction score
    43
    • Legacy Citizen
    • Purchased!
    • Community Content - Bronze 1
    That's pretty cool I was wondering what all that custom texture stuff was about. I made a lounge in one of my ships and I really wished I had some cool aesthetic blocks to make the place look cool. I really need a neon beer sign block and my ship can't leave spacedock without it :) I'll have to be on the lookout for some custom block packs (or whatever they're called) if anyone puts them on here (hint hint).
     
    Joined
    Aug 3, 2013
    Messages
    383
    Reaction score
    114
    • Legacy Citizen
    • Community Content - Bronze 2
    • Community Content - Bronze 1
    I made a lounge in one of my ships and I really wished I had some cool aesthetic blocks to make the place look cool. I really need a neon beer sign block and my ship can't leave spacedock without it :)
    I should also point out that what is plausible with this new system, is slightly limited. the block editor itself is in a slightly slow to catch up state right now, so until it gets a more user friendly interface what can be done may be limited.

    things like the miller light neon beer sign, might be pushing it. but you could always try a display block with colored formatted text instead.
     
    Last edited:
    Joined
    Jun 19, 2014
    Messages
    1,756
    Reaction score
    162
    • Purchased!
    • Top Forum Contributor
    • Legacy Citizen
    Currently we can just use xml editors to edit the custom config.

    The block editor does need improving.
    There also are certain things that aren't customisable using the custom config.

    This and more is in the suggestion thread linked in my previous post, if anyone wants to know what we're talking about.
     
    Joined
    Jun 13, 2014
    Messages
    30
    Reaction score
    23
    I would love it if some one would do a tutorial to make custom blocks. First would be a static block. Then a moving block like the power blocks. Thank you.
     
    Joined
    Jun 19, 2014
    Messages
    1,756
    Reaction score
    162
    • Purchased!
    • Top Forum Contributor
    • Legacy Citizen
    Explaining it takes a while, and experience learns that it is best to discover things yourself. That's why I'll just be giving you advice on how to start.

    In the second launch window, the one with all the game settings, there is a tab called "modding". If you click on it, you'll see an option to open the block editor. Once opened, you'll see a tab "edit" and in that tab is an option to create a new block (look for something with "new" in it). If you press the button to create a new block, you should get a small screen in which you can select and ID, texture, etc. Make aure you fill everything in. Don't worry about the texture to much, you can change that later. Always make sure you are using a build icon ID that is the same as your ID number (custom_000 has an ID of 1972 I believe). Once you created it, you can edit all sorts of values in the block editor.

    Always press the save button! (located under "edit") You don't need to save it under a different name, because you can't make anything crash.

    For editing the config files I'd recommend using notepad++ . It's free and very easy to use.