Replace Blocks Console Command

Discussion in 'General Discussion' started by XLJedi, Jul 11, 2022.

  1. XLJedi

    XLJedi Lieutenant

    Joined:
    Sep 25, 2021
    Messages:
    99
    Likes Received:
    74
    I have a base that is using all Concrete blocks. I want to replace every concrete block with the same style block of Armored Concrete.

    What would be the correct syntax for the ReplaceBlocks console command?
     
    #1
  2. Kaeser

    Kaeser Rear Admiral

    Joined:
    Aug 17, 2015
    Messages:
    1,640
    Likes Received:
    2,422
    First type in console "DI" to get the build ID Number and details

    Then point to the type of blocks you want to replace and you will see its name at the bottom of the ID window

    Then type in e.g.

    replaceblocks (id number) ConcreteFull HullFullLarge

    This would replace Concrete Blocks for Steel Blocks, or

    replaceblocks (id number) ConcreteThin HullThinLarge

    This would replace Thin Concrete Blocks for its counterpart of Steel

    Hardened blocks have different names
     
    #2
    XLJedi likes this.
  3. XLJedi

    XLJedi Lieutenant

    Joined:
    Sep 25, 2021
    Messages:
    99
    Likes Received:
    74
    Got it... had to run through almost every normal concrete block type, but the "di" command (Debug Info) makes it all pretty easy.

    replaceblocks 1011 ConcreteFull ConcreteArmoredFull
    replaceblocks 1011 ConcreteThin ConcreteArmoredThin
    replaceblocks 1011 ConcreteExtended ConcreteArmoredExtended
    replaceblocks 1011 ConcreteExtended2 ConcreteArmoredExtended2
    replaceblocks 1011 ConcreteExtended3 ConcreteArmoredExtended3
    replaceblocks 1011 ConcreteExtended4 ConcreteArmoredExtended4
    replaceblocks 1011 ConcreteExtended5 ConcreteArmoredExtended5
    replaceblocks 1011 ConcreteExtended6 ConcreteArmoredExtended6

    Then was able to confirm I got all the blocks by looking at the "P" menu CPU info which now shows all armored concrete blocks contributing to CPU and no regular concrete blocks. Definitely better than trying to eyeball it!
     
    #3
    Kaeser likes this.
  4. XLJedi

    XLJedi Lieutenant

    Joined:
    Sep 25, 2021
    Messages:
    99
    Likes Received:
    74
    Strange that sometimes it converted the textures to the default armored concrete and sometimes it left my painted textures in place. Possibly related to if I used the entire block texture toggle or not?
     
    #4
  5. Kaeser

    Kaeser Rear Admiral

    Joined:
    Aug 17, 2015
    Messages:
    1,640
    Likes Received:
    2,422
    Yes, replaceblocks command still has a few issues but it's very usefull

    Some textures have problems and some shapes have problems and some block types also have issues, do not use it with truss blocks or windows
     
    #5
    XLJedi likes this.

Share This Page