Jump to content

Some bugs in Debug Template Tool


while
  • 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.

image.thumb.png.b390685d7fa71e0e8530e5c1683a9c34.png

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

image.thumb.png.d329584f24b08d78481570d25fcf25c3.pngimage.thumb.png.7360aac63728ae307907661dde2717a0.png

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:

image.thumb.png.cbf78d0f507b5ddffcf964820c67d665.png

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

image.thumb.png.7536c7006614f50d3c120872b5562971.pngimage.thumb.png.e5bbd6de582d29c8d57c14e07dcfed38.png

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.

 

1673677317985.thumb.gif.eaeb6d05f750c877eedab6cea50677c3.gif

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

20230114144828.gif.a31ca33109845612d19bdc7dd21bc98e.gif


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...