Mod crashes on startup in build, but not in editor

Discuss modding questions and implementation details.
Post Reply
User avatar
joshcamas
Posts: 48
Joined: Mon Sep 21, 2020 7:01 am

Mod crashes on startup in build, but not in editor

Post by joshcamas »

I'm having some issues with getting my mod working in builds. The moment it starts up, I get a crash. I have a debug log at the very beginning of my Init function, so it looks like it doesn't even get there - some sort of compilation issue?

Also, I have no other mods enabled.

Build version: 0.10.24
Git commit: v0.10.24-alpha tag
Editor version: 2018.2.21f1

Crash log:
Spoiler!

ModManager - started loading mod: Camera Shake

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

Crash!!!
SymInit: Symbol-SearchPath: '.;D:\Games\DaggerfallUnity .24;D:\Games\DaggerfallUnity .24;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 534, UserName: 'jsteinhauer'
OS-Version: 10.0.0
D:\Games\DaggerfallUnity .24\DaggerfallUnity.exe:DaggerfallUnity.exe (00007FF6E1560000), size: 671744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2018.2.21.8949
C:\Windows\SYSTEM32\ntdll.dll:ntdll.dll (00007FFD00980000), size: 2031616 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049
C:\Windows\System32\KERNEL32.DLL:KERNEL32.DLL (00007FFCFEA60000), size: 729088 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\KERNELBASE.dll:KERNELBASE.dll (00007FFCFDA90000), size: 2772992 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049
D:\Games\DaggerfallUnity .24\UnityPlayer.dll:UnityPlayer.dll (00007FFCC88D0000), size: 23760896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2018.2.21.8949
C:\Windows\System32\CRYPT32.dll:CRYPT32.dll (00007FFCFE8E0000), size: 1347584 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.592
C:\Windows\System32\ucrtbase.dll:ucrtbase.dll (00007FFCFD970000), size: 1024000 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.815
C:\Windows\SYSTEM32\HID.DLL:HID.DLL (00007FFCFC430000), size: 57344 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\WindowsCodecs.dll:WindowsCodecs.dll (00007FFCE77C0000), size: 1765376 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.959
C:\Windows\System32\msvcrt.dll:msvcrt.dll (00007FFCFF820000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.0.18362.1
C:\Windows\System32\MSASN1.dll:MSASN1.dll (00007FFCFD8F0000), size: 73728 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\RPCRT4.dll:RPCRT4.dll (00007FFCFF2E0000), size: 1179648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\USER32.dll:USER32.dll (00007FFCFFAD0000), size: 1658880 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.997
C:\Windows\System32\combase.dll:combase.dll (00007FFCFEB20000), size: 3362816 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\win32u.dll:win32u.dll (00007FFCFE010000), size: 135168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\GDI32.dll:GDI32.dll (00007FFCFEA30000), size: 155648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\bcryptPrimitives.dll:bcryptPrimitives.dll (00007FFCFDD40000), size: 524288 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.836
C:\Windows\System32\gdi32full.dll:gdi32full.dll (00007FFCFDE70000), size: 1662976 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\msvcp_win.dll:msvcp_win.dll (00007FFCFE840000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.815
C:\Windows\System32\ole32.dll:ole32.dll (00007FFCFFCD0000), size: 1404928 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\advapi32.dll:advapi32.dll (00007FFCFF770000), size: 667648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.752
C:\Windows\SYSTEM32\VERSION.dll:VERSION.dll (00007FFCF8D10000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\sechost.dll:sechost.dll (00007FFCFF680000), size: 618496 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.959
C:\Windows\System32\SHLWAPI.dll:SHLWAPI.dll (00007FFCFFA70000), size: 335872 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\SETUPAPI.dll:SETUPAPI.dll (00007FFCFEE60000), size: 4653056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\cfgmgr32.dll:cfgmgr32.dll (00007FFCFE7C0000), size: 303104 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\Windows\System32\bcrypt.dll:bcrypt.dll (00007FFCFE810000), size: 155648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.267
C:\Windows\System32\SHELL32.dll:SHELL32.dll (00007FFCFFFE0000), size: 7237632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049
C:\Windows\System32\shcore.dll:shcore.dll (00007FFD00890000), size: 692224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.959
C:\Windows\System32\windows.storage.dll:windows.storage.dll (00007FFCFE040000), size: 7864320 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\profapi.dll:profapi.dll (00007FFCFD8A0000), size: 143360 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.693
C:\Windows\System32\powrprof.dll:powrprof.dll (00007FFCFD850000), size: 303104 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\UMPDC.dll:UMPDC.dll (00007FFCFD840000), size: 65536 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\System32\kernel.appcore.dll:kernel.appcore.dll (00007FFCFD8D0000), size: 69632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\cryptsp.dll:cryptsp.dll (00007FFCFDA70000), size: 94208 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\WS2_32.dll:WS2_32.dll (00007FFD00820000), size: 454656 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\Windows\System32\OLEAUT32.dll:OLEAUT32.dll (00007FFD00730000), size: 806912 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.959
C:\Windows\SYSTEM32\OPENGL32.dll:OPENGL32.dll (00007FFCEC260000), size: 1400832 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\Windows\SYSTEM32\WINMM.dll:WINMM.dll (00007FFCF3570000), size: 147456 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\IMM32.dll:IMM32.dll (00007FFCFF730000), size: 188416 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\Windows\SYSTEM32\GLU32.dll:GLU32.dll (00007FFCF7200000), size: 180224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\Windows\SYSTEM32\WINMMBASE.dll:WINMMBASE.dll (00007FFCF3240000), size: 184320 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\WINHTTP.dll:WINHTTP.dll (00007FFCF6670000), size: 983040 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.778
C:\Windows\SYSTEM32\dxcore.dll:dxcore.dll (00007FFCFC490000), size: 131072 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\system32\uxtheme.dll:uxtheme.dll (00007FFCFBB90000), size: 626688 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.449
D:\Games\DaggerfallUnity .24\Mono\EmbedRuntime\mono.dll:mono.dll (00007FFCC8380000), size: 5545984 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.0.0.1
C:\Windows\System32\PSAPI.DLL:PSAPI.DLL (00007FFCFF2D0000), size: 32768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\MSWSOCK.dll:MSWSOCK.dll (00007FFCFD090000), size: 421888 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.815
C:\Windows\System32\MSCTF.dll:MSCTF.dll (00007FFCFFEA0000), size: 1265664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\SYSTEM32\d3d11.dll:d3d11.dll (00007FFCFAB90000), size: 2469888 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
D:\Games\DaggerfallUnity .24\dxgi.dll:dxgi.dll (00007FFCCB310000), size: 3518464 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 4.5.2.748
C:\Windows\SYSTEM32\WININET.dll:WININET.dll (00007FFCF25E0000), size: 5066752 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 11.0.18362.1082
C:\Windows\system32\dxgi.dll:dxgi.dll (00007FFCFC520000), size: 962560 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049
C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_90685a092bcf58c7\nvldumdx.dll:nvldumdx.dll (00007FFCE5F60000), size: 974848 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 26.21.14.3200
C:\Windows\System32\WINTRUST.DLL:WINTRUST.DLL (00007FFCFD910000), size: 376832 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049
C:\Windows\System32\imagehlp.dll:imagehlp.dll (00007FFD00800000), size: 118784 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\system32\rsaenh.dll:rsaenh.dll (00007FFCFCC00000), size: 208896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\CRYPTBASE.dll:CRYPTBASE.dll (00007FFCFD260000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_90685a092bcf58c7\nvwgf2umx.dll:nvwgf2umx.dll (00007FFCC3630000), size: 39546880 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 26.21.14.3200
C:\Windows\system32\nvspcap64.dll:nvspcap64.dll (00007FFCC6540000), size: 2846720 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 3.20.3.63
C:\Windows\SYSTEM32\ntmarta.dll:ntmarta.dll (00007FFCFC880000), size: 200704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\clbcatq.dll:clbcatq.dll (00007FFCFF5D0000), size: 663552 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2001.12.10941.16384
C:\Windows\system32\wbem\wbemprox.dll:wbemprox.dll (00007FFCF35A0000), size: 69632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\wbemcomn.dll:wbemcomn.dll (00007FFCF3710000), size: 540672 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\system32\wbem\wbemsvc.dll:wbemsvc.dll (00007FFCF0FE0000), size: 81920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\system32\wbem\fastprox.dll:fastprox.dll (00007FFCF13F0000), size: 1052672 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\amsi.dll:amsi.dll (00007FFCEFBD0000), size: 86016 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\USERENV.dll:USERENV.dll (00007FFCFD760000), size: 151552 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\ProgramData\Microsoft\Windows Defender\platform\4.18.2008.9-0\MpOav.dll:MpOav.dll (00007FFCEFB50000), size: 495616 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 4.18.2008.9
C:\Windows\SYSTEM32\mscms.dll:mscms.dll (00007FFCE6320000), size: 712704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.836
C:\Windows\SYSTEM32\ColorAdapterClient.dll:ColorAdapterClient.dll (00007FFCE6300000), size: 94208 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.836
C:\Windows\SYSTEM32\icm32.dll:icm32.dll (00007FFCD31B0000), size: 274432 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.836
C:\Windows\System32\MMDevApi.dll:MMDevApi.dll (00007FFCF8DC0000), size: 466944 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\Windows\System32\DEVOBJ.dll:DEVOBJ.dll (00007FFCFD630000), size: 172032 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.387
C:\Windows\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (00007FFCF8F20000), size: 1429504 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.815
C:\Windows\SYSTEM32\wintypes.dll:wintypes.dll (00007FFCF9F60000), size: 1388544 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\SYSTEM32\resourcepolicyclient.dll:resourcepolicyclient.dll (00007FFCFBED0000), size: 81920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.959
C:\Windows\SYSTEM32\xinput1_3.dll:xinput1_3.dll (0000000000400000), size: 122880 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 9.18.944.0
C:\Windows\SYSTEM32\iertutil.dll:iertutil.dll (00007FFCF19D0000), size: 2777088 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 11.0.18362.1049
C:\Windows\SYSTEM32\SspiCli.dll:SspiCli.dll (00007FFCFD720000), size: 225280 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049
C:\Windows\SYSTEM32\ondemandconnroutehelper.dll:ondemandconnroutehelper.dll (00007FFCE1FC0000), size: 90112 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\IPHLPAPI.DLL:IPHLPAPI.DLL (00007FFCFCDA0000), size: 237568 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\NSI.dll:NSI.dll (00007FFCFF760000), size: 32768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.449
C:\Windows\SYSTEM32\WINNSI.DLL:WINNSI.DLL (00007FFCF9110000), size: 45056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.449
C:\Windows\SYSTEM32\DPAPI.DLL:DPAPI.DLL (00007FFCFCC40000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\urlmon.dll:urlmon.dll (00007FFCF22D0000), size: 1925120 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 11.0.18362.815
C:\Windows\SYSTEM32\DNSAPI.dll:DNSAPI.dll (00007FFCFCDE0000), size: 831488 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\System32\rasadhlp.dll:rasadhlp.dll (00007FFCF5A00000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\fwpuclnt.dll:fwpuclnt.dll (00007FFCF8AF0000), size: 487424 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.207
C:\Windows\system32\schannel.DLL:schannel.DLL (00007FFCFCB30000), size: 557056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\SYSTEM32\mskeyprotect.dll:mskeyprotect.dll (00007FFCE4E40000), size: 86016 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\ncrypt.dll:ncrypt.dll (00007FFCFD360000), size: 155648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\NTASN1.dll:NTASN1.dll (00007FFCFD320000), size: 241664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\System32\cryptnet.dll:cryptnet.dll (00007FFCF24D0000), size: 192512 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\system32\ncryptsslp.dll:ncryptsslp.dll (00007FFCE2740000), size: 151552 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\TextInputFramework.dll:TextInputFramework.dll (00007FFCE7A90000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.693
C:\Windows\SYSTEM32\CoreUIComponents.dll:CoreUIComponents.dll (00007FFCE7C90000), size: 3317760 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.207
C:\Windows\SYSTEM32\CoreMessaging.dll:CoreMessaging.dll (00007FFCFB440000), size: 868352 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049
C:\Windows\SYSTEM32\dhcpcsvc6.DLL:dhcpcsvc6.DLL (00007FFCF8F00000), size: 90112 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\SYSTEM32\dhcpcsvc.DLL:dhcpcsvc.DLL (00007FFCF8EB0000), size: 114688 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1082
C:\Windows\SYSTEM32\dwmapi.dll:dwmapi.dll (00007FFCFBFC0000), size: 184320 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.267
C:\Windows\SYSTEM32\d3dcompiler_47.dll:d3dcompiler_47.dll (00007FFCFADF0000), size: 4530176 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1
C:\Windows\SYSTEM32\dbghelp.dll:dbghelp.dll (00007FFCF7450000), size: 2048000 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.18362.1049

========== OUTPUTTING STACK TRACE ==================

0x00007FFCC83A10FF (mono) mono_class_from_typeref
0x00007FFCC840E6CD (mono) mono_reflection_get_custom_attrs_blob
0x00007FFCC8413F47 (mono) mono_custom_attrs_get_attr
0x00000279986DCE64 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.Emit.TypeBuilder:create_runtime_class (System.Reflection.Emit.TypeBuilder)
0x00000279986DC56A (Mono JIT Code) System.Reflection.Emit.TypeBuilder:CreateType ()
0x00000279988EF828 (Mono JIT Code) Mono.CSharp.TypeDefinition:CloseContainer ()
0x00000279988EF677 (Mono JIT Code) Mono.CSharp.TypeContainer:CloseContainer ()
0x00000279988EF677 (Mono JIT Code) Mono.CSharp.TypeContainer:CloseContainer ()
0x00000279988EF677 (Mono JIT Code) Mono.CSharp.TypeContainer:CloseContainer ()
0x00000279988EF5D6 (Mono JIT Code) Mono.CSharp.ModuleContainer:CloseContainer ()
0x000002799868C369 (Mono JIT Code) CSharpCompiler.CustomDynamicDriver:Compile (System.Reflection.Emit.AssemblyBuilder&,System.AppDomain,bool)
0x0000027998687672 (Mono JIT Code) CSharpCompiler.CodeCompiler:CompileFromCompilerSettings (Mono.CSharp.CompilerSettings,bool)
0x000002799868666C (Mono JIT Code) CSharpCompiler.CodeCompiler:CompileAssemblyFromSourceBatch (System.CodeDom.Compiler.CompilerParameters,string[])
0x0000027998685467 (Mono JIT Code) DaggerfallWorkshop.Game.Utility.Compiler:CompileSource (string[],bool,bool)
0x0000027998684E8F (Mono JIT Code) DaggerfallWorkshop.Game.Utility.ModSupport.ModManager:CompileFromSourceAssets (string[])
0x0000027998684BC8 (Mono JIT Code) DaggerfallWorkshop.Game.Utility.ModSupport.Mod:CompileSourceToAssemblies ()
0x0000027998684544 (Mono JIT Code) DaggerfallWorkshop.Game.Utility.ModSupport.ModManager:Init ()
0x00000279986842A9 (Mono JIT Code) DaggerfallWorkshop.Game.Utility.ModSupport.ModManager:StateManager_OnStateChange (DaggerfallWorkshop.Game.StateManager/StateTypes)
0x000002799868425C (Mono JIT Code) DaggerfallWorkshop.Game.StateManager:TriggerStateChange (DaggerfallWorkshop.Game.StateManager/StateTypes)
0x00000279986841BC (Mono JIT Code) DaggerfallWorkshop.Game.StateManager:ChangeState (DaggerfallWorkshop.Game.StateManager/StateTypes)
0x00000279986839F9 (Mono JIT Code) DaggerfallWorkshop.Game.StateManager:.ctor (DaggerfallWorkshop.Game.StateManager/StateTypes)
0x000002799868394E (Mono JIT Code) DaggerfallWorkshop.Game.GameManager:get_StateManager ()
0x0000027998683662 (Mono JIT Code) DaggerfallWorkshop.Game.Automap:Update ()
0x00000279FDAF35AB (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFCC84A671B (mono) mono_set_defaults
0x00007FFCC83F8A71 (mono) mono_runtime_invoke
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8EC3CE4)
0x00007FFCC8EC3CE4 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8EC1260)
0x00007FFCC8EC1260 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8EA58A9)
0x00007FFCC8EA58A9 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8EA5A40)
0x00007FFCC8EA5A40 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8C72AD0)
0x00007FFCC8C72AD0 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8DAC887)
0x00007FFCC8DAC887 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8DAC912)
0x00007FFCC8DAC912 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC8DAE72F)
0x00007FFCC8DAE72F (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC9469215)
0x00007FFCC9469215 (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC946835A)
0x00007FFCC946835A (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFCC946AB0B)
0x00007FFCC946AB0B (UnityPlayer) (function-name not available)
0x00007FFCC946ACDB (UnityPlayer) UnityMain
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF6E1561207)
0x00007FF6E1561207 (DaggerfallUnity) (function-name not available)
0x00007FFCFEA77BD4 (KERNEL32) BaseThreadInitThunk
0x00007FFD009ECE51 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

User avatar
Ralzar
Posts: 1600
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: Mod crashes on startup in build, but not in editor

Post by Ralzar »

I've not got much help to give but I'd at least suggest moving to the new Unity version and 0.10.26 code. Making a new working mod for 0.10.24 at this point seems to be a lot of work for little gain.


Other than that: try building your mod, then sticking it in the StreamingAssets/Mod folder in the unity editor. That might give you a clearer indication of what's happening.
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."
-FuzzyBeanPlays

User avatar
joshcamas
Posts: 48
Joined: Mon Sep 21, 2020 7:01 am

Re: Mod crashes on startup in build, but not in editor

Post by joshcamas »

Well... after a bunch of testing, I think I figured it out. Looks like you cannot make enums in a mod. :^)

User avatar
Ralzar
Posts: 1600
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: Mod crashes on startup in build, but not in editor

Post by Ralzar »

You can in 0.10.26 if you use the new pre-compiler function.
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."
-FuzzyBeanPlays

User avatar
Hazelnut
Posts: 2501
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Mod crashes on startup in build, but not in editor

Post by Hazelnut »

Surprised you're doing a camera shake mod - if that's for combat when player gets hurt that's already in DFU, although it seems to not be as noticable as it once was so maybe it needs fixing. It's CameraRecoiler.cs if you want to take a look.

The enums are a known constraint with the mcs runtime compiler, but there's now an experimental pre-compilation option which will allow everything.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
joshcamas
Posts: 48
Joined: Mon Sep 21, 2020 7:01 am

Re: Mod crashes on startup in build, but not in editor

Post by joshcamas »

Ahh that sounds cool! Well, it was quite easy to remove the enum, so it works now :)

And yeah, the built in camera shake is basically non existent, so I figured adding a mod that could allow for tweaking of such a shake effect could work. In my case, I just made a custom shaker I already use in another project

Here it is! https://www.nexusmods.com/daggerfallunity/mods/123

User avatar
Hazelnut
Posts: 2501
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Mod crashes on startup in build, but not in editor

Post by Hazelnut »

Fair enough, but as a DFU developer I tend to prefer that we fix stuff. :D Unfortunately the dev who did that class left the project as he was busy in RL.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

Post Reply