Nogg-aholic / ContentLib

3 stars 3 forks source link

Display a direct error message when resolving icon files fails #5

Open budak7273 opened 5 months ago

budak7273 commented 5 months ago

https://discord.com/channels/771801486828896258/864639223599726612/1255218780913532948

Current output is:

[2024.06.25-17.46.46:069][  0]LogContentLib: Display: [/ContentLib/BP/BPFL_ContentLib]: Loading String from File : ../../../FactoryGame/Mods/ChouKpopModifierRecipes/ContentLib/Items/Desc_Wire_Iron.json Relative: ../../../FactoryGame/Mods/ChouKpopModifierRecipes/ContentLib/Items/Desc_Wire_Iron.json
[2024.06.25-17.46.46:069][  0]LogContentLib: Display: [/ContentLib/BP/BPFL_ContentLib]: /ContentLib/.Desc_Wire_Iron_C < Created !
[2024.06.25-17.46.46:069][  0]LogPackageName: Error: GetLocalBaseFilenameWithPath: Failed converting package name "/Iron/Icon_Wire_Iron" to file name
[2024.06.25-17.46.46:069][  0]LogStreaming: Error: Couldn't find file for package /Iron/Icon_Wire_Iron requested by async loading code. NameToLoad: /Iron/Icon_Wire_Iron
[2024.06.25-17.46.46:069][  0]LogStreaming: Error: This will hitch streaming because it ends up searching the disk instead of finding the file in the pak file.
[2024.06.25-17.46.46:069][  0]LogStreaming: Error: Found 0 dependent packages...
[2024.06.25-17.46.46:069][  0]LogPackageName: Error: GetLocalBaseFilenameWithPath: Failed converting package name "/Iron/Icon_Wire_Iron" to file name
[2024.06.25-17.46.46:070][  0]LogUObjectGlobals: Warning: Failed to find object 'Texture2D None./Iron/Icon_Wire_Iron'
[2024.06.25-17.46.46:070][  0]LogPackageName: Error: GetLocalBaseFilenameWithPath: Failed converting package name "/Iron/Icon_Wire_Iron" to file name
[2024.06.25-17.46.46:070][  0]LogPackageName: Error: GetLocalBaseFilenameWithPath: Failed converting package name "/Iron/Icon_Wire_Iron" to file name
[2024.06.25-17.46.46:070][  0]LogUObjectGlobals: Warning: Failed to find object 'Texture2D None./Iron/Icon_Wire_Iron'
[2024.06.25-17.46.46:070][  0]LogContentLib: Display: [/ContentLib/Items/CL_Items_Module]: [CL] Created Item: {
(...)