• Welcome to AtomicTorch Studio Forums.
 

Error while trying to load mod

Started by MightyMonte88, November 15, 2022, 06:23:14 PM

MightyMonte88

Hey AI, i finally got my old mod to compile with no errors after carefully going through and updating it using VS22. However when loading the mod up in mpk format, i get an error.... any idea where i could have went wrong here?

15.11.22 20:17:05.406 [WRN] Error loading mod from D:\SteamLibrary\steamapps\common\CryoFall\Mods\Tech_Expansion.mpk: Sequence contains no matching element
15.11.22 20:17:05.439 [IMP] Warning: Mod with identifier Tech_Expansion_5.0.1 is unavailable
15.11.22 20:17:05.439 [IMP] Mods Config contains errors. Trying to recreate Mods Config...
15.11.22 20:17:05.442 [WRN] Mod was not found and will be removed from Mods Config: Tech_Expansion_5.0.1

ai_enabled

Hi MightyMonte88,
it was reported a few times, related to how you pack the mod. Please ensure that:
1. You're using 7-Zip tool in Zip archive format without compression ("Store" compression level).
2. You've compressed the contents of the mod folder instead of the mod folder itself (so when you open the MPK file in 7-Zip you see Header.xml right in its root, not in some nested folder).

Regards!

MightyMonte88

Ah ok, i could almost remember that from before haha.
So after packaging the mod correctly, i sadly get errors resulting in the mod being unable to load, here's the compiler log..






15.11.22 20:37:56.485 [IMP] Log file opened. Time UTC offset is: -05:00:00
15.11.22 20:37:56.489 [IMP] CryoFall compiler service started
15.11.22 20:37:56.492 [IMP] CryoFall compiler location: D:\SteamLibrary\steamapps\common\CryoFall\Binaries\Shared\Compiler\CryoFall_Compiler.dll
15.11.22 20:37:56.492 [IMP] Cache root path: C:\Users\adank\AppData\Local\Temp\AtomicTorchStudio\CryoFall_v1.33.1
15.11.22 20:37:56.565 [IMP] IPCServer: Named pipe server listening on "COMPILER_073351FD43D4FD54C156110A02D56B5B_1"
15.11.22 20:37:56.565 [IMP] CryoFall compiler service ready - listening for compilation requests. IPC pipe name: COMPILER_073351FD43D4FD54C156110A02D56B5B_1
15.11.22 20:37:56.566 [IMP] GC info: latencyMode=Batch isServer=True
15.11.22 20:37:56.566 [IMP] Starting scripts compiler listener
15.11.22 20:37:56.568 [IMP] IPCServer: ++ Opened connection. Total connections: 1
15.11.22 20:37:56.579 [IMP] IPCServer: Named pipe server listening on "COMPILER_073351FD43D4FD54C156110A02D56B5B_1"
15.11.22 20:37:56.788 [IMP] Virtual file system initialized successfully:
Core mod: Core (D:\SteamLibrary\steamapps\common\CryoFall\Core\Core.cpk)
Mods list:
   * Tech_Expansion (C:\Users\adank\Documents\AtomicTorchStudio\CryoFall\Mods\Tech_Expansion.mpk)
Total files count: 12116
15.11.22 20:37:56.864 [IMP] [Stopwatch] Initializing virtual file system for build request: 253ms
15.11.22 20:37:57.104 [IMP] Build started: C:\Users\adank\AppData\Local\Temp\AtomicTorchStudio\CryoFall_v1.33.1\Assemblies\Scripts_en-us_release_IMP_17953478409089460070 (isWarmUp=False)
15.11.22 20:37:58.101 [IMP] [Stopwatch] Preparing files for compilation (parsing, preprocessing) build: 915ms
15.11.22 20:37:58.118 [ERR] Building errors:
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 19)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 18)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 17)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 16)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 15)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 14)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 13)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 11)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug_LibsAsProjects/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs (line 2)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 19)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 18)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 17)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 16)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 15)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 14)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 13)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/Tech_Expansion.AssemblyInfo.cs (line 11)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 56)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 48)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 48)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 47)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 40)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 39)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 33)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 32)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 26)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 26)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 25)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs (line 25)
   Error: Namespace System.Reflection.BindingFlags is forbidden
* .temp/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs (line 2)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 21)
   Error: Namespace System.Runtime.Versioning is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 20)
   Error: Namespace System.Runtime.Versioning is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 19)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 18)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 17)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 16)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 15)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 14)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 13)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/Tech_Expansion.AssemblyInfo.cs (line 11)
   Error: Namespace System.Reflection is forbidden
* .temp/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs (line 2)
   Error: Namespace System.Reflection is forbidden

15.11.22 20:37:58.119 [IMP] [Stopwatch] Total compilation duration: 1011ms
15.11.22 20:37:58.119 [WRN] Build failed: C:\Users\adank\AppData\Local\Temp\AtomicTorchStudio\CryoFall_v1.33.1\Assemblies\Scripts_en-us_release_IMP_17953478409089460070 (isWarmup=False)
15.11.22 20:37:58.144 [IMP] IPCServer: IPC server received 0 bytes of data
15.11.22 20:37:58.144 [IMP] IPCServer: -- Closed connection. Total connections: 0
15.11.22 20:37:58.156 [IMP] The last client disconnected - shutdown the compiler
15.11.2215.11.22 20:37:58.728 [IMP] Log file opened. Time UTC offset is: -05:00:00
15.11.22 20:37:58.733 [IMP] CryoFall compiler service started
15.11.22 20:37:58.734 [IMP] CryoFall compiler location: D:\SteamLibrary\steamapps\common\CryoFall\Binaries\Shared\Compiler\CryoFall_Compiler.dll
15.11.22 20:37:58.735 [IMP] Cache root path: C:\Users\adank\AppData\Local\Temp\AtomicTorchStudio\CryoFall_v1.33.1
15.11.22 20:37:58.798 [IMP] IPCServer: Named pipe server listening on "COMPILER_073351FD43D4FD54C156110A02D56B5B_1"
15.11.22 20:37:58.798 [IMP] CryoFall compiler service ready - listening for compilation requests. IPC pipe name: COMPILER_073351FD43D4FD54C156110A02D56B5B_1
15.11.22 20:37:58.798 [IMP] GC info: latencyMode=Batch isServer=True
15.11.22 20:37:58.798 [IMP] Starting scripts compiler listener
15.11.22 20:37:58.801 [IMP] IPCServer: ++ Opened connection. Total connections: 1
15.11.22 20:37:58.819 [IMP] IPCServer: Named pipe server listening on "COMPILER_073351FD43D4FD54C156110A02D56B5B_1"
15.11.22 20:37:58.968 [IMP] Virtual file system initialized successfully:
Core mod: Core (D:\SteamLibrary\steamapps\common\CryoFall\Core\Core.cpk)
Mods list:
   --no mods--
Total files count: 10193
15.11.22 20:37:58.975 [IMP] [Stopwatch] Initializing virtual file system for build request: 130ms
15.11.22 20:37:59.160 [IMP] Build started: C:\Users\adank\AppData\Local\Temp\AtomicTorchStudio\CryoFall_v1.33.1\Assemblies\Scripts_en-us_release_IMP_1440708511879553716 (isWarmUp=False)
15.11.22 20:37:59.197 [IMP] Deleted cached file: C:\Users\adank\AppData\Local\Temp\AtomicTorchStudio\CryoFall_v1.33.1\Assemblies\Scripts_en-us_release_IMP_1440708511879553716.dll

I cut off the log to fit this post, hopefully i didnt remove anything you need to help determine where i went wrong.

ai_enabled

There is a .temp folder (with the binaries produced by VS Build) which was included in the mod.

MightyMonte88

I didnt realize that would cause issues, thank you so much!  :P