Structure Activation Causes Crashing?

Hey guys, I have a structure like a forge set up but when I try to activate it causes the game to crash saying “Array index out of bounds”. I can add the items to the inventory. Does anybody know why this is happening?

Anybody have any idea?

Do you have it mapped under the structure remap correctly under your PrimalGameDataBP?

I have it under Additional Structures to Place. The only remap options I see are NPC, Supply Crates, Resource Components, NPCSpawn, Engrams and Items.

Hmmm, out of curiosity can you try adding it to the master item list and then trying again? Another moderator and myself have a little theory we want to see is valid

No problem I will see what happens and let you know.

It still crashes. Here’s the error message.



Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:G:\UE4\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 571] 
Array index out of bounds: 0 from an array of size 0


KERNELBASE.dll!UnknownFunction (0x00007ffed428a1c8) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb375b934) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb36789a8) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb3644942) + 0 bytes [UnknownFile:0]
UE4Editor-ShooterGame.dll!APrimalStructureItemContainer::ConsumeFuel() (0x00007ffea31d181b) + 68 bytes [g:\ue4\unrealengine\projects\shootergame\source\shootergame\private\primalstructureitemcontainer.cpp:522]
UE4Editor-ShooterGame.dll!APrimalStructureItemContainer::SetContainerActive() (0x00007ffea31d669f) + 0 bytes [g:\ue4\unrealengine\projects\shootergame\source\shootergame\private\primalstructureitemcontainer.cpp:333]
UE4Editor-ShooterGame.dll!APrimalStructureItemContainer::TryMultiUse() (0x00007ffea31d745e) + 0 bytes [g:\ue4\unrealengine\projects\shootergame\source\shootergame\private\primalstructureitemcontainer.cpp:117]
UE4Editor-ShooterGame.dll!AShooterPlayerController::ServerMultiUse_Implementation() (0x00007ffea32cbf1b) + 0 bytes [g:\ue4\unrealengine\projects\shootergame\source\shootergame\private\shooterplayercontroller.cpp:3353]
UE4Editor-ShooterGame.dll!AShooterPlayerController::execServerMultiUse() (0x00007ffea35e8a56) + 182 bytes [g:\ue4\unrealengine\projects\shootergame\source\shootergame\classes\shooterplayercontroller.h:42]
UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffeb31efc04) + 0 bytes [UnknownFile:0]
UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffeb328df72) + 0 bytes [UnknownFile:0]
UE4Editor-Engine.dll!UnknownFunction (0x00007ffeb00e51d1) + 0 bytes [UnknownFile:0]
UE4Editor-ShooterGame.dll!AShooterPlayerController::ServerMultiUse() (0x00007ffea341209e) + 0 bytes [g:\ue4\unrealengine\projects\shootergame\intermediate\build\win64\inc\shootergame\shootergame.generated.cpp:1787]
UE4Editor-ShooterGame.dll!UUI_Inventory::ClickedButton() (0x00007ffea335efcc) + 238 bytes [g:\ue4\unrealengine\projects\shootergame\source\shootergame\private\ui_inventory.cpp:520]
UE4Editor-ShooterGame.dll!UPrimalUI::execClickedButton() (0x00007ffea30619f6) + 118 bytes [g:\ue4\unrealengine\projects\shootergame\source\shootergame\classes\primalui.h:15]
UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffeb31efc04) + 0 bytes [UnknownFile:0]
UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffeb328df72) + 0 bytes [UnknownFile:0]
UE4Editor-UMG.dll!UnknownFunction (0x00007ffea536bc68) + 0 bytes [UnknownFile:0]
UE4Editor-UMG.dll!UnknownFunction (0x00007ffea541de3c) + 0 bytes [UnknownFile:0]
UE4Editor-UMG.dll!UnknownFunction (0x00007ffea53cb009) + 0 bytes [UnknownFile:0]
UE4Editor-Slate.dll!UnknownFunction (0x00007ffeb2eb42fa) + 0 bytes [UnknownFile:0]
UE4Editor-Slate.dll!UnknownFunction (0x00007ffeb2ee71f2) + 0 bytes [UnknownFile:0]
UE4Editor-Slate.dll!UnknownFunction (0x00007ffeb2e0d46c) + 0 bytes [UnknownFile:0]
UE4Editor-Slate.dll!UnknownFunction (0x00007ffeb2df9376) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb36df409) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb36c7bfb) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb36e0589) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb36c31d2) + 0 bytes [UnknownFile:0]
USER32.dll!UnknownFunction (0x00007ffed45c00dc) + 0 bytes [UnknownFile:0]
USER32.dll!UnknownFunction (0x00007ffed45bfc07) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!UnknownFunction (0x00007ffeb36e0a46) + 0 bytes [UnknownFile:0]
UE4Editor.exe!UnknownFunction (0x00007ff79ba89242) + 0 bytes [UnknownFile:0]
UE4Editor.exe!UnknownFunction (0x00007ff79ba7ed0f) + 0 bytes [UnknownFile:0]
UE4Editor.exe!UnknownFunction (0x00007ff79ba7ed7a) + 0 bytes [UnknownFile:0]
UE4Editor.exe!UnknownFunction (0x00007ff79ba8aa60) + 0 bytes [UnknownFile:0]
UE4Editor.exe!UnknownFunction (0x00007ff79ba8b999) + 0 bytes [UnknownFile:0]
KERNEL32.DLL!UnknownFunction (0x00007ffed6252d92) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffed6e39f64) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffed6e39f64) + 0 bytes [UnknownFile:0]


Thank you for the error! Well that ruled out our theory since it still crashed. Go ahead and remove it from the master item list since that didn’t make a difference.

I’m putting this on the dev’s radar as I’m fairly clueless at this point :confused:

I’ll be you 5 buck he got a null referance in one of his “forge” blueprint(s)

Be sure to fill out entries for “FuelItemsConsumeInterval” to match the length of “ActiveRequiresFuelItems” – those arrays need to be the same length

Thanks for all the replies guys! I figured out what was causing it. I had the “ActiveRequiresFuelItems” and “FuelItemsConsumeInterval” set up correctly. What I did not have though was an array for the “FuelItemsConsumedGiveItems” because I didn’t want it to give anything so I thought I could leave it with nothing but I’m assuming it needs something set up so I have it giving “None” and that works.