Skip to content

Troubleshooting crashing Siege Scene

I got a siege scene that was working on level 1 but crashing on level 2/3.

HINT: Before troubleshooting, I name the map in a way that it's always first because I will need to test a lot - this saves a lot of time avoiding clicking and searching for the map:

Butterlib shows:

Log suggests the same:

Ok, what is a deployment point? Google search leads to the official documentation:

All siege machines are placed under deployment points. These points later in the mission become the selectable positions, in which players can place their siege equipment, like ballistas, battering ram or the siege towers.

Attaching the dnSpy, shows:

dnSpy shows that this deployment point is looking for weapons but has no weapons assigned:

Ok, how weapons are assigned to the deployment point? Official documentation answers that:

The siege machines can be connected to these deployment points, by either placing them in their radius, or by tags.

dnSpy tells which entity is causing the problem:

Example with another entity

In the scene, there are 7 such entities with the same name:

It's possible to find out the problematic entity by it's coordinates:

Clicking through the entities together with the info on how weapons are assigned to the deployment point, I have noticed that its Radius value is quite different from the other entities:

I changed it to 15 and tested the scene again.

The scene stopped to crash. That means this was the cause of the problem.