You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a custom prefab is created using the CloneTemplate "classIdToClone" overload, then attempts by the coordinated spawn system to spawn instances of that prefab fail with the following error:
Create a custom prefab, using the "classIdToClone" overload:
private const string PrefabClassId = "PetFabricatorFragment";
public static PrefabInfo Info { get; } = PrefabInfo
.WithTechType(PrefabClassId, null, null, unlockAtStart: false);
CustomPrefab fabricatorFragmentPrefab = new CustomPrefab(Info);
PrefabTemplate cloneTemplate = new CloneTemplate(fabricatorFragmentPrefab.Info, "8029a9ce-ab75-46d0-a8ab-63138f6f83e4");
fabricatorFragmentPrefab.SetGameObject(cloneTemplate);
fabricatorFragmentPrefab.SetSpawns(new SpawnLocation(new Vector3(-172.27f,-43.07f, -234.29f), new Vector3(346.22f, 345.14f, 8.72f)));
fabricatorFragmentPrefab.Register();
Run the game and open the BepInEx log, "LogOutput.log".
Observe the error text.
Back in the game, open the console and warp to the spawn location: warp -172.27 -43.07 -234.29
Observe that the prefab has not spawned in the location.
In the console, manually spawn the prefab instance: spawn PetFabricatorFragment 1
Note that the prefab instance spawns successfully.
Expected behavior
The prefab instance should be spawned in the given location automatically, without errors.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
This is because of the single-request prefabs we added recently and the fact that we didn't modify the logic to address yielding the same request instance more than once.
Describe the bug
If a custom prefab is created using the CloneTemplate "classIdToClone" overload, then attempts by the coordinated spawn system to spawn instances of that prefab fail with the following error:
To Reproduce
Steps to reproduce the behavior:
Create a custom prefab, using the "classIdToClone" overload:
Run the game and open the BepInEx log, "LogOutput.log".
Observe the error text.
Back in the game, open the console and warp to the spawn location: warp -172.27 -43.07 -234.29
Observe that the prefab has not spawned in the location.
In the console, manually spawn the prefab instance: spawn PetFabricatorFragment 1
Note that the prefab instance spawns successfully.
Expected behavior
The prefab instance should be spawned in the given location automatically, without errors.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: