[Resolved] - Game crashing when I open template

Describe the bug:
I made a template from folder, which had script pointing to locator, which was not included into the template. Now each time I try to go to that template I got crash.

How do you cause this bug?

  • go in the game Bullet-Hell ( this is my game in progress, not published, can share with dev if needed)
  • go to TemplateOfDoom template
  • jenkins is angry:

Assertion failed: false [File:C:/Jenkins/0/patch/Game/Source/ProjectZero/PZEntityRef.cpp] [Line: 87] Resolving a template entity from a different template. Context: ProjectileGun (da26642d-7d8a-4cff-9e02-d5acbc2271a8), TemplateSelf: Pistol (733706cf-6ff5-44c1-86aa-99e63009b595), ContextTemplateRoot: ProjectileGun (da26642d-7d8a-4cff-9e02-d5acbc2271a8)


Screenshots / video of bug:


Which platform: PC

Your Crayta username: str-read

Game seen in (including “Hub” or “Editor for XYZ”): Editor for Bullet-Hell

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): always

Version number (found in Help tab in Settings):

Hmm, can confirm your bug. It crashes immediately when opening the sub-template and crashes after a while when opening the main-template. Basically:

Template A:
>Folder/Entity A
  >Folder/Entity B - with a script+property that points on Folder/Entity A

Creating Template B based on Folder/Entity B will lead to that issue. Opening Template B leads to instant crash. Opening Template A and clicking on Folder/Entity B will lead to a delayed crash.

Hi @str and @Ya_shi_shi

Thanks for the report (and all of the detail!) I’ll get this logged with the team asap and see about any resolutions we can make to the template in your game so you can access it again.

I’ve fixed the cause of the crash, but this won’t be present in the game until the next build is released, so you’ll need to be careful about it happening again (it’ll happen if you create a new template from an entity in an existing template, if this entity has a property on it that points to an entity in the original template that will not be included in the new one).

I have fixed your TemplateOfDoom template now so you should be able to open that again without it crashing the game. To fix this I needed to clear the value of the ‘Output’ property on the script.

Thanks! This is great!

This bug has now been fixed as per the patch notes below


1 Like