Jump to content

Some bugs in Debug Template Tool

  • Branch: Live Branch Version: Windows Fixed

1.When I paste the template using Debug Tool , some wires and pipes will separate.Only Radiant Pipe and Heavi-Watt Conductive Wire do that.


this can be solved by modifying some codes at TemplateLoader.cs  public static void PlaceUtilityConnection(GameObject spawned, Prefab bc, int root_cell)


2.When I paste the template,some building will be pasted in  a wrong position.Specifically, those buildings with a width greater than 4 do that:


It can be fixed by modifying codes at TemplateLoader.cs  public static GameObject PlaceBuilding(Prefab prefab, int root_cell)


3.The third bug will cause the game to crash.An error occurs when I preview the template,Exactly when the preview area(that have tile or pipe/wire) and the copy area (that dont have building)overlap.



here is the message:

NullReferenceException: Object reference not set to an instance of an object

TemplateSelectionInfoPanel.GetCellEntityEnergy (System.Int32 cell, System.Collections.Generic.List`1[UnityEngine.GameObject]& ignoreObjects) (at <1726ad14e928409087f7fe566b21e0ff>:0)
TemplateSelectionInfoPanel.TotalJoules (System.Collections.Generic.List`1[T] cells) (at <1726ad14e928409087f7fe566b21e0ff>:0)
TemplateSelectionInfoPanel.RefreshDetails () (at <1726ad14e928409087f7fe566b21e0ff>:0)
TemplateSelectionInfoPanel.Render1000ms (System.Single dt) (at <1726ad14e928409087f7fe566b21e0ff>:0)
SimAndRenderScheduler+Render1000msUpdater.Update (IRender1000ms updater, System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
StateMachineUpdater+BucketGroup.InternalAdvance (System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
StateMachineUpdater+BucketGroup.Advance (System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
StateMachineUpdater.Render (System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
Game.LateUpdate () (at <1726ad14e928409087f7fe566b21e0ff>:0)

Build: U44-537329-VD


4.when I replace building that have  solid blocks(like tiles ,closed Airlock,closed Bunker Door)by template(that is filled with natural tiles),the solid area will be replaced with vacuum


Steps to Reproduce

In dlc or vanilla when using debug template tool.

  • Like 1

User Feedback

A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Changed Status to Fixed

1 & 3 have been fixed in a previous update. 2 will be fixed in the next update.

  • Thanks 2
  • Health 1

Share this comment

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...