Keen:Planet Modding/Indestructible Buildings: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{SEO|image_url=http://www.medievalengineerswiki.com/images/b/b7/KeenLogoBig.png|description=There is a way how to make some buildings in your save indestructible. We are using this feature for starting area buildings.}}
{{Keen:OCH}}
{{Version <!-- Do not change the version until the entire page is up-to-date -->
{{Version <!-- Do not change the version until the entire page is up-to-date -->
|release=0|major=3|minor=X|suppress=true}}
|release=0|major=4|minor=X|suppress=true}}
==Indestructible buildings introduction==
[[Category:Keen Modding Guides]]</noinclude>
==[[Keen:Planet Modding/Indestructible Buildings|Indestructible buildings introduction]]==
There is a way how to make some buildings in your save indestructible. We are using this feature for starting area buildings. Some you guys might make a good use of this feature in your pre-made worlds.
There is a way how to make some buildings in your save indestructible. We are using this feature for starting area buildings. Some you guys might make a good use of this feature in your pre-made worlds.


Currently, only way how to do this is to make edits to an existing save file. So you can only use it for world modding.
Currently, only way how to do this is to make edits to an existing save file. So you can only use it for world modding.


==Making indestructible cubegrids in existing save==
 
Goal is to open world’s save file in a text editor, find your cubegrid in it and add this tag to it:
===Making indestructible cubegrids in existing save===
<source lang="xml"><DestructibleBlocks>true</DestructibleBlocks></source>
Goal is to open world’s save file in a text editor, find your cubegrid in it and add this tag to it: <code><DestructibleBlocks>false</DestructibleBlocks></code>


#Find your save file. By default save files are stored in C:\Users\YOURUSERNAME\AppData\Roaming\MedievalEngineers\Saves
#Find your save file. By default save files are stored in C:\Users\YOURUSERNAME\AppData\Roaming\MedievalEngineers\Saves
Line 14: Line 19:
#In the SANDBOX_0_0_0_.sbs search for the cubegrid name of the building you want to make indestructible. (use find/search function in your text editor, or you will grow old before you find it)
#In the SANDBOX_0_0_0_.sbs search for the cubegrid name of the building you want to make indestructible. (use find/search function in your text editor, or you will grow old before you find it)
#Tip: To find out name of a cubegrid, create blueprint of the building. The name that the building saves as in your blueprint screen is the name of the cubegrid.
#Tip: To find out name of a cubegrid, create blueprint of the building. The name that the building saves as in your blueprint screen is the name of the cubegrid.
#You should find the name in tags called: <source lang="xml" inline><DisplayName>YOURCUBEGRIDNAME</DisplayName> </source>
#You should find the name in tags called: <code><DisplayName>YOURCUBEGRIDNAME</DisplayName></code>
#Under the name, add following tag with setting set to false: <source lang="xml" inline><DestructibleBlocks>false</DestructibleBlocks></source>
#Under the name, add following tag with setting set to false: <code><DestructibleBlocks>false</DestructibleBlocks></code>
#If you followed instruction, the indestructibility tag is now in node called <MyObjectBuilder_EntityBase> and not in any of its child nodes.
#If you followed instruction, the indestructibility tag is now in node called <code><MyObjectBuilder_EntityBase></code> and not in any of its child nodes.
#Save the edited file.
#Save the edited file.
#Load the save and test destructibility
#Load the save and test destructibility
Line 22: Line 27:
#It is still destructible. Go to point 1.
#It is still destructible. Go to point 1.


[[Category:Keen_Modding_Guides]]
 
<noinclude>View the full [[Keen:Planet Modding - Full Guide|Planet Modding Guide]]</noinclude>

Latest revision as of 12:51, 7 July 2018



Version: 0.4

Indestructible buildings introduction

There is a way how to make some buildings in your save indestructible. We are using this feature for starting area buildings. Some you guys might make a good use of this feature in your pre-made worlds.

Currently, only way how to do this is to make edits to an existing save file. So you can only use it for world modding.


Making indestructible cubegrids in existing save

Goal is to open world’s save file in a text editor, find your cubegrid in it and add this tag to it: <DestructibleBlocks>false</DestructibleBlocks>

  1. Find your save file. By default save files are stored in C:\Users\YOURUSERNAME\AppData\Roaming\MedievalEngineers\Saves
  2. Open folder with your save and find file called SANDBOX_0_0_0_.sbs. This file can be opened with any text editor you prefer.
  3. In the SANDBOX_0_0_0_.sbs search for the cubegrid name of the building you want to make indestructible. (use find/search function in your text editor, or you will grow old before you find it)
  4. Tip: To find out name of a cubegrid, create blueprint of the building. The name that the building saves as in your blueprint screen is the name of the cubegrid.
  5. You should find the name in tags called: <DisplayName>YOURCUBEGRIDNAME</DisplayName>
  6. Under the name, add following tag with setting set to false: <DestructibleBlocks>false</DestructibleBlocks>
  7. If you followed instruction, the indestructibility tag is now in node called <MyObjectBuilder_EntityBase> and not in any of its child nodes.
  8. Save the edited file.
  9. Load the save and test destructibility
  10. It worked! Enjoy
  11. It is still destructible. Go to point 1.


View the full Planet Modding Guide