Download

Cooking failed please help!

Hello :slight_smile:

since some time I cannot cook my content, and I am stuck with the in editor testing. I have this report:



MainFrameActions: Cooking (Windows): UE4Editor-Cmd: Script Stack:
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: ShipPawn_C.MakeShipselsFromTexture
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: ShipPawn_C.UserConstructionScript
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2014.12.22-16.50.54:273]  0]LogWindows:Error: Windows GetLastError: L
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: begin: stack for UAT
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: KERNELBASE.dll!UnknownFunction (0x00007ffd75a2606c) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Core.dll!UnknownFunction (0x00007ffd54bc2f6d) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Core.dll!UnknownFunction (0x00007ffd54a560e8) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Core.dll!UnknownFunction (0x00007ffd54a39182) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-SinkingSimulator2-1696-Win64-DebugGame.dll!UTextureUtil::GetTextureSize() (0x00007ffd49072d41) + 163 bytes [c:\users\frederic\documents\unreal projects\sinkingsimulator2\source\sinkingsimulator2	extureutil.cpp:43]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-SinkingSimulator2-1696-Win64-DebugGame.dll!UTextureUtil::execGetTextureSize() (0x00007ffd49070ac2) + 210 bytes [c:\users\frederic\documents\unreal projects\sinkingsimulator2\source\sinkingsimulator2	extureutil.h:96]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd55f49af4) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd5600943f) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd560273bd) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd56028a5e) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd5600999a) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd5604bd74) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd56028a5e) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd55f49af4) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd560281c6) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd4fe10851) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd4fde0285) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd4fe1e6bd) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd5013eb1a) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd505fb313) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd56032bfb) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd52f72c69) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd53498d3e) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd534541da) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd5347c9f8) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd48c04) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd407ac) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd4090a) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd4e3d9) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd4eec1) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: KERNEL32.DLL!UnknownFunction (0x00007ffd75e116ad) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: ntdll.dll!UnknownFunction (0x00007ffd785e4409) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: ntdll.dll!UnknownFunction (0x00007ffd785e4409) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: end: stack for UAT
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2014.12.22-16.50.54:757]  0]LogWindows: === Critical error: ===
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:C:\Program Files\Unreal Engine\4.6\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 679] 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: Array index out of bounds: 0 from an array of size 0
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: KERNELBASE.dll!UnknownFunction (0x00007ffd75a2606c) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Core.dll!UnknownFunction (0x00007ffd54bc2f6d) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Core.dll!UnknownFunction (0x00007ffd54a560e8) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Core.dll!UnknownFunction (0x00007ffd54a39182) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-SinkingSimulator2-1696-Win64-DebugGame.dll!UTextureUtil::GetTextureSize() (0x00007ffd49072d41) + 163 bytes [c:\users\frederic\documents\unreal projects\sinkingsimulator2\source\sinkingsimulator2	extureutil.cpp:43]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-SinkingSimulator2-1696-Win64-DebugGame.dll!UTextureUtil::execGetTextureSize() (0x00007ffd49070ac2) + 210 bytes [c:\users\frederic\documents\unreal projects\sinkingsimulator2\source\sinkingsimulator2	extureutil.h:96]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd55f49af4) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd5600943f) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd560273bd) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd56028a5e) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd5600999a) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd5604bd74) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd56028a5e) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd55f49af4) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd560281c6) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd4fe10851) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd4fde0285) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd4fe1e6bd) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd5013eb1a) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Engine.dll!UnknownFunction (0x00007ffd505fb313) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-CoreUObject.dll!UnknownFunction (0x00007ffd56032bfb) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd52f72c69) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd53498d3e) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd534541da) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-UnrealEd.dll!UnknownFunction (0x00007ffd5347c9f8) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd48c04) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd407ac) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd4090a) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd4e3d9) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: UE4Editor-Cmd.exe!UnknownFunction (0x00007ff7edd4eec1) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: KERNEL32.DLL!UnknownFunction (0x00007ffd75e116ad) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: ntdll.dll!UnknownFunction (0x00007ffd785e4409) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: ntdll.dll!UnknownFunction (0x00007ffd785e4409) + 0 bytes [UnknownFile:0]
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: 
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2014.12.22-16.50.54:768]  0]LogExit: Executing StaticShutdownAfterError
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2014.12.22-16.50.54:774]  0]LogWindows: FPlatformMisc::RequestExit(1)
MainFrameActions: Cooking (Windows): CommandUtils.Run: Run: Took 60,7490336s to run UE4Editor-Cmd.exe, ExitCode=3
MainFrameActions: Cooking (Windows): Project.Cook: Cook failed. Deleting cooked data.
MainFrameActions: Cooking (Windows): ErrorReporter.Error: ERROR: AutomationTool error: Cook failed.
MainFrameActions: Cooking (Windows): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Cooking (Windows): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Cooking (Windows): Program.Main: ERROR: Exception in AutomationScripts.Automation: BUILD FAILED: Failed while running Cook for C:\Users\Frederic\Documents\Unreal Projects\SinkingSimulator2\SinkingSimulator2.uproject; see log C:\Users\Frederic\AppData\Roaming\Unreal Engine\Au
MainFrameActions: Cooking (Windows): tomationTool\Logs\C+Program+Files+Unreal+Engine+4.6\Cook.txt
MainFrameActions: Cooking (Windows): Stacktrace:    ? Project.Cook(ProjectParams Params)
MainFrameActions: Cooking (Windows):    ? BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Cooking (Windows):    ? BuildCommand.Execute()
MainFrameActions: Cooking (Windows):    ? AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Cooking (Windows):    ? AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Cooking (Windows):    ? AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Cooking (Windows):    ? AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Cooking (Windows):    ? AutomationTool.Program.Main()
MainFrameActions: Cooking (Windows): Program.Main: ERROR: BUILD FAILED: Failed while running Cook for C:\Users\Frederic\Documents\Unreal Projects\SinkingSimulator2\SinkingSimulator2.uproject; see log C:\Users\Frederic\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Unreal+En
MainFrameActions: Cooking (Windows): gine+4.6\Cook.txt
MainFrameActions: Cooking (Windows): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Cooking (Windows): Program.Main: AutomationTool exiting with ExitCode=25
MainFrameActions: Cooking (Windows): Domain_ProcessExit
MainFrameActions: Cooking (Windows): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Cooking (Windows): copying UAT log files...
MainFrameActions: Cooking (Windows): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Cooking (Windows): BUILD FAILED

the function it talks about are these ones:
.h


UFUNCTION(BlueprintCallable, Category = "Custom|Textures")
		static F2DParam GetTextureSize(UTexture2D* texture);

	UFUNCTION(BlueprintCallable, Category = "Custom|Textures")
		static FColor GetTexturePixel(UTexture2D* texture, int32 PixelX, int32 PixelY);

.cpp


F2DParam UTextureUtil::GetTextureSize(UTexture2D* texture){
	F2DParam f;
	if (texture == NULL || sizeof(&texture->PlatformData->Mips)<=0){
		f.X = 0;
		f.Y = 0;
		return f;
	}
	FTexture2DMipMap* MyMipMap = &texture->PlatformData->Mips[0];
	f.X = MyMipMap->SizeX;
	f.Y = MyMipMap->SizeY;
	return f;
}

FColor UTextureUtil::GetTexturePixel(UTexture2D* texture, int32 PixelX, int32 PixelY){
	FTexture2DMipMap* MyMipMap = &texture->PlatformData->Mips[0];
	FColor* FormatedImageData = static_cast<FColor*>(texture->PlatformData->Mips[0].BulkData.Lock(LOCK_READ_ONLY));
	FColor PixelColor;
	if (texture == NULL){
		PixelColor = FColor::Black;
		PixelColor.A = 0;
		return PixelColor;
	}
	if (PixelX >= 0 && PixelX < MyMipMap->SizeX && PixelY >= 0 && PixelY < MyMipMap->SizeY)
	{
		PixelColor = FormatedImageData[PixelY * MyMipMap->SizeX + PixelX];
	}
	texture->PlatformData->Mips[0].BulkData.Unlock();
	return PixelColor;
}

is there a way to fix that error?
is there a way to load the color data of an image in an other way (I plan loading it only from a file location on the client PC)?

if I forgot some documents please tell me, I’ll add them.
thanks for your help :slight_smile:

Modify your GameEditor.Target.cs file to default format(create a new demo project, you can move the Target file but do not forget to modify it to your project), then recompile your project it may be helpful! If helpness, please recompile your game project at development editor and development solution configuration both, then cook and package!

Or, since it’s obviously compiling just fine since you can cook… Try debugging the cooking process.

Here’s a hint as to what the problem most likely is: The Platform in PlatformData stands for the OS/console you’re running for. Unlike in an editor build, where this is known to be Win64 (or maybe OS X/Linux), cooking makes no such assumption, since its job is to fill in this platform data.

I’m not sure if this struct will be available at runtime in a cooked build (I think so, or it would be enclosed in #if WITH_EDITORONLY_DATA), but you might want to try adding proper checks and see what happens.



if( texture->PlatformData == nullptr || texture->PlatformData->Mips.Num() == 0 ) // sizeof(TArray) will never be 0, use Num
{
	return FColor::Magenta;
}


Using a big flashy colour like magenta is a good way to tell at runtime when something is wrong and/or uninitialized.

-Camille