HolographicWings / LethalSDK-Unity-Project

Unity Project using Lethal Company SDK
MIT License
42 stars 4 forks source link

Error when using AssetBundle Builder #3

Closed sfDesat closed 7 months ago

sfDesat commented 7 months ago

I followed your writen tutorial as close as I could but I keep getting this error when I try to use the AssetBundle Builder. After this error pops up Unity crashes. When I open the project again and try to use the AssetBundle Builder it doesn't work. I hope you make a video tutorial soon. Or at least a visual tutorial.

[Worker0] Could not allocate memory: System out of memory! Trying to allocate: 292057776131B with 16 alignment. MemoryLabel: String Allocation happened at: Line:530 in C:\build\output\unity\unity\Runtime\Core\Containers\StringStorageDefault.h Memory overview

[ ALLOC_TEMP_TLS ] used: 17307B | peak: 0B | reserved: 56950784B [ ALLOC_MEMORYPROFILER ] used: 660664B | peak: 1099152B | reserved: 2097152B [ ALLOC_DEFAULT ] used: 182111912B | peak: 0B | reserved: 218116096B [ ALLOC_TEMP_JOB_1_FRAME ] used: 0B | peak: 0B | reserved: 0B [ ALLOC_TEMP_JOB_2_FRAMES ] used: 0B | peak: 0B | reserved: 0B [ ALLOC_TEMP_JOB_4_FRAMES (JobTemp) ] used: 216302B | peak: 0B | reserved: 4194304B [ ALLOC_TEMP_JOB_ASYNC (Background) ] used: 0B | peak: 0B | reserved: 6291456B [ ALLOC_GFX ] used: 24613872B | peak: 0B | reserved: 50331648B [ ALLOC_CACHEOBJECTS ] used: 17188504B | peak: 0B | reserved: 117444608B [ ALLOC_TYPETREE ] used: 1640080B | peak: 0B | reserved: 8388608B [ ALLOC_PROFILER ] used: 629344B | peak: 630384B | reserved: 16777216B [ ALLOC_PROFILER_EDITOR ] used: 0B | peak: 0B | reserved: 0B

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

HolographicWings commented 7 months ago

I followed your writen tutorial as close as I could but I keep getting this error when I try to use the AssetBundle Builder. After this error pops up Unity crashes. When I open the project again and try to use the AssetBundle Builder it doesn't work. I hope you make a video tutorial soon. Or at least a visual tutorial.

[Worker0] Could not allocate memory: System out of memory! Trying to allocate: 292057776131B with 16 alignment. MemoryLabel: String Allocation happened at: Line:530 in C:\build\output\unity\unity\Runtime\Core\Containers\StringStorageDefault.h Memory overview

[ ALLOC_TEMP_TLS ] used: 17307B | peak: 0B | reserved: 56950784B [ ALLOC_MEMORYPROFILER ] used: 660664B | peak: 1099152B | reserved: 2097152B [ ALLOC_DEFAULT ] used: 182111912B | peak: 0B | reserved: 218116096B [ ALLOC_TEMP_JOB_1_FRAME ] used: 0B | peak: 0B | reserved: 0B [ ALLOC_TEMP_JOB_2_FRAMES ] used: 0B | peak: 0B | reserved: 0B [ ALLOC_TEMP_JOB_4_FRAMES (JobTemp) ] used: 216302B | peak: 0B | reserved: 4194304B [ ALLOC_TEMP_JOB_ASYNC (Background) ] used: 0B | peak: 0B | reserved: 6291456B [ ALLOC_GFX ] used: 24613872B | peak: 0B | reserved: 50331648B [ ALLOC_CACHEOBJECTS ] used: 17188504B | peak: 0B | reserved: 117444608B [ ALLOC_TYPETREE ] used: 1640080B | peak: 0B | reserved: 8388608B [ ALLOC_PROFILER ] used: 629344B | peak: 630384B | reserved: 16777216B [ ALLOC_PROFILER_EDITOR ] used: 0B | peak: 0B | reserved: 0B

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Hello, it was made with which version of the SDK ? And can you give me more informations ?

It's late so i will investigate on the issue tomorrow

sfDesat commented 7 months ago

Unity v2022.3.9 SDK v1.1.3 Ram 16Gb

I messed it up myself I tried again and it didnt crash, but it still didn't create an AssetBundle. I don't know if I am doing something wrong but I attached an error message I got.

Screenshot 2023-12-10 092122

I changed the name of the copied TemplateMod folder to Test. I also change the Mod Name in the Mod Manifest to Test. Then I Build the AssenBundle using the Builder but nothing happened. It created the folder but it is empty.

Screenshot 2023-12-10 092400

I am very new to all of this.

HolographicWings commented 7 months ago

Unity v2022.3.9 SDK v1.1.3 Ram 16Gb

I messed it up myself I tried again and it didnt crash, but it still didn't create an AssetBundle. I don't know if I am doing something wrong but I attached an error message I got.

Screenshot 2023-12-10 092122

I changed the name of the copied TemplateMod folder to Test. I also change the Mod Name in the Mod Manifest to Test. Then I Build the AssenBundle using the Builder but nothing happened. It created the folder but it is empty.

Screenshot 2023-12-10 092400

I am very new to all of this.

yes i see the issue, you have to remove the Assets/Mods/LethalExpansion/Prefabs/Prefab.zip file and change the assetbundle of the scene at Assets/Mods/LethalExpansion/Scenes/ItemPlaceTest.unity to none image image

it was supposed to be fixed in 1.1.3 🤔

sfDesat commented 7 months ago

I removed the .zip file. But the ItemPlaceTest.unity is already set to None and if I change the ItemPlaceTest folder to AssetBundle None, it changes it right back to lethalexpansion.

image image image

epicduck64 commented 7 months ago

I removed the .zip file. But the ItemPlaceTest.unity is already set to None and if I change the ItemPlaceTest folder to AssetBundle None, it changes it right back to lethalexpansion.

image image image

Found success in deleting my project, loading up a fresh copy of the project, NOT building assetbundles yet, following the steps recommended by creator (removing scene from AB and deleting Prefabs.zip), then building assetbundle fixed my problem. I just deleted the entire scenes folder from LethalExpansion since it didn't have anything important anyways, even though the scene wasn't included with the AB anyways. image

Essentially, building the AB at all when there is Prefabs.zip for some reason completely bricks your project, making you have to start over.

HolographicWings commented 7 months ago

I removed the .zip file. But the ItemPlaceTest.unity is already set to None and if I change the ItemPlaceTest folder to AssetBundle None, it changes it right back to lethalexpansion. image image image

Found success in deleting my project, loading up a fresh copy of the project, NOT building assetbundles yet, following the steps recommended by creator (removing scene from AB and deleting Prefabs.zip), then building assetbundle fixed my problem. I just deleted the entire scenes folder from LethalExpansion since it didn't have anything important anyways, even though the scene wasn't included with the AB anyways. image

Essentially, building the AB at all when there is Prefabs.zip for some reason completely bricks your project, making you have to start over.

Yes, remove the Scenes folder if it continues then I fixed the issue for the next update Thanks for reporting