Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure project, add Doorstop 4 support, use CoreCLR for Il2Cpp #391

Merged
merged 88 commits into from
Aug 14, 2022

Conversation

ghorsington
Copy link
Contributor

@ghorsington ghorsington commented Mar 24, 2022

Migrated from #385 so that the branch now resides in this repo.

Add Doorstop 4 support, replacing older UnityDoorstop 3. This includes also upgrading Il2Cpp to use self-hosted CoreCLR runtime as that's what Doorstop 4 uses.

Motivation and Context

Debuggers are handy to have.

How Has This Been Tested?

I've tested it with two games so far, StuntMANIA Reloaded, which is crashing with BepInEx 6 for other reasons (as far as I can tell), and Thomas Was Alone. @bbepis has tested this successfully with Risk of Rain 2.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • Bootstrap BepInEx.Unity with Doorstop 4
    • Update CakeBuild script to download and bundle Doorstop 4
    • Fix ThreadingHelper to not bootstrap on Unity 4
    • Use mono's native API for intercepting assembly loading events instead of AppDomain.AssemblyLoad Instead use mono API to load assembly into memory with filename
  • Bootstrap BepInEx.Il2Cpp with Doorstop 4
    • Update Doorstop config
    • Update CakeBuild script to bundle CoreCLR instead of mono BCL
    • Upgrade TFM to net6.0
    • Update Cpp2IL to latest version, remove AppDomain implementation
    • Use dotnet's managed console encoder instead of custom WinAPI-based encoder used in UnityMono
    • Integrate Il2CppInterop
    • Integrate [Il2Cpp] Native Detour Providers & FastNativeDetour removal #409 and latest master
    • UnityDataMiner: start collecting mono corlibs for Unhollower use not really needed due to how unhollower works
    • Investigate crashes on Wine (added a temporary workaround for Il2CppInterop)

Other:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@ghorsington ghorsington mentioned this pull request Mar 24, 2022
6 tasks
@ghorsington ghorsington changed the title [WIP] Doorstop 4 support Draft: Doorstop 4 support Mar 24, 2022
@ghorsington ghorsington marked this pull request as draft March 24, 2022 20:49
@github-actions
Copy link

github-actions bot commented Mar 24, 2022

Download the artifacts for this pull request:

@bb010g bb010g force-pushed the feature-doorstop-4 branch 2 times, most recently from f8232e0 to a701ffb Compare March 26, 2022 07:41
@AevumTacet
Copy link

Can I get the latest artifact of this branch for testing purposes? I'd like to try it on an ARM64 architecture, running the BOX64 emulator.

@ghorsington
Copy link
Contributor Author

Can I get the latest artifact of this branch for testing purposes? I'd like to try it on an ARM64 architecture, running the BOX64 emulator.

Build artifacts are automatically generated and updated in the first comment of this PR.

@AevumTacet
Copy link

Thank you very much <3

@ghorsington ghorsington marked this pull request as ready for review May 20, 2022 22:03
@ghorsington ghorsington marked this pull request as draft May 20, 2022 22:04
@ghorsington ghorsington force-pushed the feature-doorstop-4 branch from 999ca36 to b26971f Compare May 20, 2022 22:16
@dimentox
Copy link

dimentox commented May 26, 2022

image
This happens without any plugins on v rising and configs etc straight fresh install

Even compiled myself still same error

@ghorsington ghorsington force-pushed the feature-doorstop-4 branch 2 times, most recently from 445934f to 2eff34f Compare July 9, 2022 08:05
@ghorsington ghorsington marked this pull request as ready for review July 10, 2022 21:41
@AevumTacet
Copy link

This still happens with the latest version avaible here. Using Box64 emulator on ARM architecture.

/home/ubuntu/valheim_server/valheim_server.x86_64
ERROR: ld.so: object 'libdoorstop.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096
Box64 with Dynarec v0.1.9 0931f95 built on Jul 20 2022 21:27:23
BOX64_LD_LIBRARY_PATH: ./linux64/
Using default BOX64_PATH: ./:bin/
Counted 44 Env var
BOX64 try to Preload libdoorstop.so
Looking for /home/ubuntu/valheim_server/valheim_server.x86_64
Rename process to "valheim_server.x86_64"
Using emulated libdoorstop.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated UnityPlayer.so
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Warning, partially unimplemented call to dladdr1 with RTLD_DL_LINKMAP flags
Using emulated /home/ubuntu/valheim_server/valheim_server_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so
MonoBleedingEdge detected, disable Dynarec BigBlock and enable Dynarec StrongMem
1732|SIGSEGV @0x8ab4c5bc (???(0x8ab4c5bc)) (x64pc=0xffff8eb05d15/libdoorstop.so:"libdoorstop.so/get_module_path + 49", rsp=0xffff8e088850, stack=0xffff8d88b000:0xffff8e08b000 own=(nil) fp=(nil)), for accessing (nil) (code=1/prot=0), db=0x8af9c270(0x8ab4c598:0x8ab4c66c/0xffff8eb05d07:0xffff8eb05d32/libdoorstop.so/get_module_path + 49:clean, hash:7bcf5f7e/7bcf5f7e) handler=(nil)
RAX:0x0000000000000000 RCX:0xffffffffffffffff RDX:0x0000000000000000 RBX:0x0000ffff8e0888b0
RSP:0x0000ffff8e088850 RBP:0x0000000000000000 RSI:0x0000ffff8e088858 RDI:0x0000000000000000
R8:0x0000000000000000 R9:0x0000ffff8bb01a2e R10:0x0000ffff001f02b0 R11:0x00000000fff39f07
R12:0x0000000000000000 R13:0x0000000000000000 R14:0x0000ffff8e089d38 R15:0x0000ffff8bae54c8
RSP-0x20:0x000000000000005c RSP-0x18:0x000000007f6b5d30 RSP-0x10:0x0000000000000016 RSP-0x08:0x0000ffff8eb05d07
RSP+0x00:0x0000ffff8d5e7f90 RSP+0x08:0x0000000000000000 RSP+0x10:0x0000ffff8d6a4430 RSP+0x18:0x0000000000000000
Segmentation fault (core dumped) <

Does this make sense? What does it mean?. thx.

@AevumTacet
Copy link

I tried again using the latest "BepInEx-UnityMono-linux-x64-6.0.0" version. I noticed that it kind of worked, since it loaded the doorstop library without issuing a segfault and it did actually created a config folder, with the BepInEx.cfg file in it, and that's is as far as I ever got with BepInex on ARM64. However, the whole loading process stopped after a few seconds. I checked the logs and realized that the three times I ran the tests, it always stopped at loading libz.so.1. Is this a bug? Is there any work around?
I pasted full log under spoilers down here.

Latest try log

/home/ubuntu/valheim_server/valheim_server.x86_64
ERROR: ld.so: object 'libdoorstop.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096
Box64 with Dynarec v0.1.9 0931f95 built on Jul 20 2022 21:27:23
BOX64_LD_LIBRARY_PATH: ./linux64/
Using default BOX64_PATH: ./:bin/
Counted 44 Env var
BOX64 try to Preload libdoorstop.so
Looking for /home/ubuntu/valheim_server/valheim_server.x86_64
Rename process to "valheim_server.x86_64"
Using emulated libdoorstop.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated UnityPlayer.so
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Warning, partially unimplemented call to dladdr1 with RTLD_DL_LINKMAP flags
Using emulated /home/ubuntu/valheim_server/valheim_server_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so
MonoBleedingEdge detected, disable Dynarec BigBlock and enable Dynarec StrongMem
Mono path[0] = '/home/ubuntu/valheim_server/valheim_server_Data/Managed'
Mono config path = '/home/ubuntu/valheim_server/valheim_server_Data/MonoBleedingEdge/etc'
Error loading needed lib ntdll
Warning: Cannot dlopen("ntdll"/0xffff8def8500, 2)
Error loading needed lib libntdll.dll
Warning: Cannot dlopen("libntdll.dll"/0x7b4b4450, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll
Error loading needed lib libntdll.dll.so
Warning: Cannot dlopen("libntdll.dll.so"/0x7b4b50b0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll.so
Error loading needed lib ntdll.dll
Warning: Cannot dlopen("ntdll.dll"/0x7b4b27e0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/ntdll.dll
Error loading needed lib libntdll
Warning: Cannot dlopen("libntdll"/0x7b4b5aa0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll
Error loading needed lib libntdll.so
Warning: Cannot dlopen("libntdll.so"/0x7b4b5aa0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.so
Error loading needed lib ntdll
Warning: Cannot dlopen("ntdll"/0x7b4b5560, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/ntdll
Error loading needed lib libntdll.dll
Warning: Cannot dlopen("libntdll.dll"/0x7b4b6260, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll
Error loading needed lib libntdll.dll.so
Warning: Cannot dlopen("libntdll.dll.so"/0x7b4b6260, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll.so
Error loading needed lib libntdll.dll
Warning: Cannot dlopen("libntdll.dll"/0x7b4b5560, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bd344b0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x7bd344b0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib kernel32
Warning: Cannot dlopen("kernel32"/0x7bd32bf0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/kernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bd34710, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x7bd34710, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bd34470, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bd348b0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x7bd348b0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib kernel32
Warning: Cannot dlopen("kernel32"/0x7bd347e0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/kernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bdc2f10, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x7bdc2f10, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bd34870, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bdc2900, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x7bdc2900, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib kernel32
Warning: Cannot dlopen("kernel32"/0x7bdc1fc0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/kernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bdc2bd0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x7bdc2bd0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x7bdc28c0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib data-0x7d264390.so
Warning: Cannot dlopen("data-0x7d264390.so"/0x7d278560, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/data-0x7d264390.so
Error loading needed lib libmonosgen-2.0.so
Warning: Cannot dlopen("libmonosgen-2.0.so"/0x7d582090, 102)
Using emulated /home/ubuntu/valheim_server/valheim_server_Data/MonoBleedingEdge/x86_64/libMonoPosixHelper.so
Using native(wrapped) libz.so.1

As you can see, doorstop libraries now do load! but it just freezes at libz.so.1 every time. Any help will be appreciated. Thank you guys!

@AevumTacet
Copy link

Well, I made it pass the libz.so.1 library and finally loaded the entire BepinEx patcher. I all needed to do was to turn the ApplyRuntimePatches to false, in the [Preloader] section of the BepInEx.cfg and voìla. After it fully loaded the first time, I turned it to true again and it just loaded fine. So, for the first time, I just got BepInEx fully loading on an ARM 64 Ubuntu setup. The thing now is that it doesn't seem to find any plugin in the plugins folder. I tried with a variety of diffent plugins, from simple "hello world" loggers to anticheat systems for Valheim and got nothing. So, again, I will appreciate if you guys can take a look to it. I'm really excited on how close we are to get this running fully functional on ARM.

I'll paste the full log of my server down here and my current BepInEx.cfg settings. Any other info you need to work on this, just ask. Thank you <3

Latest Log

ubuntu@server:~/valheim_server$ ./run_bepinex.sh

/home/ubuntu/valheim_server/valheim_server.x86_64
ERROR: ld.so: object 'libdoorstop.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096
Box64 with Dynarec v0.1.9 bf77789 built on Jul 27 2022 21:04:42
BOX64_LD_LIBRARY_PATH: ./linux64/
Using default BOX64_PATH: ./:bin/
Counted 44 Env var
BOX64 try to Preload libdoorstop.so
Looking for /home/ubuntu/valheim_server/valheim_server.x86_64
Rename process to "valheim_server.x86_64"
Using emulated libdoorstop.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated UnityPlayer.so
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Warning, partially unimplemented call to dladdr1 with RTLD_DL_LINKMAP flags
Using emulated /home/ubuntu/valheim_server/valheim_server_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so
MonoBleedingEdge detected, disable Dynarec BigBlock and enable Dynarec StrongMem
Mono path[0] = '/home/ubuntu/valheim_server/valheim_server_Data/Managed'
Mono config path = '/home/ubuntu/valheim_server/valheim_server_Data/MonoBleedingEdge/etc'
Error loading needed lib ntdll
Warning: Cannot dlopen("ntdll"/0xffffbe50e470, 2)
Error loading needed lib libntdll.dll
Warning: Cannot dlopen("libntdll.dll"/0x95857ac0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll
Error loading needed lib libntdll.dll.so
Warning: Cannot dlopen("libntdll.dll.so"/0x95858720, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll.so
Error loading needed lib ntdll.dll
Warning: Cannot dlopen("ntdll.dll"/0x95855e50, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/ntdll.dll
Error loading needed lib libntdll
Warning: Cannot dlopen("libntdll"/0x95859110, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll
Error loading needed lib libntdll.so
Warning: Cannot dlopen("libntdll.so"/0x95859110, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.so
Error loading needed lib ntdll
Warning: Cannot dlopen("ntdll"/0x95858bd0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/ntdll
Error loading needed lib libntdll.dll
Warning: Cannot dlopen("libntdll.dll"/0x958598d0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll
Error loading needed lib libntdll.dll.so
Warning: Cannot dlopen("libntdll.dll.so"/0x958598d0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll.so
Error loading needed lib libntdll.dll
Warning: Cannot dlopen("libntdll.dll"/0x95858bd0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libntdll.dll
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d8000, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x960d8000, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib kernel32
Warning: Cannot dlopen("kernel32"/0x960cb8e0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/kernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d8160, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x960d8160, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d7fc0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d8300, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x960d8300, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib kernel32
Warning: Cannot dlopen("kernel32"/0x960cb730, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/kernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960cbbc0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x960cbbc0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d82c0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d7630, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x960d7630, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib kernel32
Warning: Cannot dlopen("kernel32"/0x960d0180, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/kernel32
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d78a0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib libkernel32.so
Warning: Cannot dlopen("libkernel32.so"/0x960d78a0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32.so
Error loading needed lib libkernel32
Warning: Cannot dlopen("libkernel32"/0x960d75f0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/libkernel32
Error loading needed lib data-0x975e6030.so
Warning: Cannot dlopen("data-0x975e6030.so"/0x975f0aa0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/data-0x975e6030.so
Error loading needed lib libmonosgen-2.0.so
Warning: Cannot dlopen("libmonosgen-2.0.so"/0x97b34840, 102)
Using emulated /home/ubuntu/valheim_server/valheim_server_Data/MonoBleedingEdge/x86_64/libMonoPosixHelper.so
Using native(wrapped) libz.so.1
Error loading needed lib data-0x98821420.so
Warning: Cannot dlopen("data-0x98821420.so"/0x98823940, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/data-0x98821420.so
Error loading needed lib data-0x98add360.so
Warning: Cannot dlopen("data-0x98add360.so"/0x98adf780, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/data-0x98add360.so
Error loading needed lib data-0x98ae6b30.so
Warning: Cannot dlopen("data-0x98ae6b30.so"/0x98ae8ef0, 101)
Fallback handler could not load library /home/ubuntu/valheim_server/valheim_server_Data/Mono/data-0x98ae6b30.so
�[37m[Message: Preloader] BepInEx 6.0.0 - valheim_server
�[37m�]2;BepInEx 6.0.0 - valheim_server��[30m[Info : BepInEx] System platform: Linux (kernel #17~20.04.1-Ubuntu SMP Mon Jul 4 05:29:46 UTC 2022) 64-bit
�[37m�[30m[Info : BepInEx] Process bitness: 64-bit (x64)
�[37m�[30m[Info : Preloader] Running under Unity 2020.3.33f1
�[37m�[30m[Info : Preloader] CLR runtime version: 4.0.30319.42000
�[37m�[30m[Info : Preloader] Supports SRE: True
�[37m�[30m[Debug : Preloader] Game executable path: /home/ubuntu/valheim_server/valheim_server.x86_64
�[37m�[30m[Debug : Preloader] Unity Managed directory: /home/ubuntu/valheim_server/valheim_server_Data/Managed
�[37m�[30m[Debug : Preloader] BepInEx root path: /home/ubuntu/valheim_server/BepInEx
�[37m�[37m[Message: Preloader] Preloader started
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/0Harmony.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/AssetRipper.VersionUtilities.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/BepInEx.Core.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/BepInEx.Preloader.Core.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/BepInEx.Preloader.UnityMono.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/BepInEx.Unity.Core.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/BepInEx.UnityMono.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/Mono.Cecil.Mdb.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/Mono.Cecil.Pdb.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/Mono.Cecil.Rocks.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/Mono.Cecil.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/MonoMod.RuntimeDetour.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/MonoMod.Utils.dll'
�[37m�[30m[Debug : BepInEx] Examining '/home/ubuntu/valheim_server/BepInEx/core/SemanticVersioning.dll'
�[37m�[30m[Debug :AssemblyPatcher] Discovered patch [BepInEx.Preloader.UnityMono.EntrypointPatcher/PatchEntrypoint -> _all]
�[37m�[30m[Info :AssemblyPatcher] Loaded 1 patcher type from [BepInEx.Preloader.UnityMono 6.0.0.0]
�[37m�[30m[Info : Preloader] 1 patcher plugin loaded
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Microsoft.CSharp.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Mono.Posix.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Mono.Security.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Configuration.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Core.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Data.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Net.Http.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Numerics.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Runtime.Serialization.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Security.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Xml.Linq.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: System.Xml.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.AIModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ARModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.AccessibilityModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.AndroidJNIModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.AnimationModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.AssetBundleModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.AudioModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ClothModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ClusterInputModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ClusterRendererModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.CoreModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.CrashReportingModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.DSPGraphModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.DirectorModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.GIModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.GameCenterModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.GridModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.HotReloadModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.IMGUIModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ImageConversionModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.InputLegacyModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.InputModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.JSONSerializeModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.LocalizationModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ParticleSystemModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.PerformanceReportingModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.Physics2DModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.PhysicsModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ProfilerModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.ScreenCaptureModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.SharedInternalsModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.SpriteMaskModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.SpriteShapeModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.StreamingModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.SubstanceModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.SubsystemsModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.TLSModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.TerrainModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.TerrainPhysicsModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.TextCoreModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.TextRenderingModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.TilemapModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UI.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UIElementsModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UIElementsNativeModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UIModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UNETModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UmbraModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityAnalyticsModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityConnectModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityCurlModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityTestProtocolModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestAssetBundleModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestAudioModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestTextureModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestWWWModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.VFXModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.VRModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.VehiclesModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.VideoModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.VirtualTexturingModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.WindModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.XRModule.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: UnityEngine.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: netstandard.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: 0Harmony.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: AssetRipper.VersionUtilities.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: BepInEx.Core.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: BepInEx.Preloader.Core.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: BepInEx.Preloader.UnityMono.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: BepInEx.Unity.Core.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: BepInEx.UnityMono.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Mono.Cecil.Mdb.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Mono.Cecil.Pdb.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Mono.Cecil.Rocks.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Mono.Cecil.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: MonoMod.RuntimeDetour.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: MonoMod.Utils.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: SemanticVersioning.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: Assembly-CSharp.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_googleanalytics.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_guiutils.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_lux.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_postprocessing.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_simplemeshcombine.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_steamworks.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_sunshafts.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_utils.dll
�[37m�[30m[Debug :AssemblyPatcher] Assembly loaded: assembly_valheim.dll
�[37m�[30m[Info : Preloader] 103 assemblies discovered
�[37m�[37m[Message:AssemblyPatcher] Executing 1 patch(es)
�[37m�[30m[Debug :BepInEx Entrypoint] Hooking chainloader into MonoBehaviour::.cctor
�[37m�[30m[Debug :AssemblyPatcher] Loaded 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' into memory
�[37m�[37m[Message: Preloader] Preloader finished
�[37mUsing emulated /home/ubuntu/valheim_server/valheim_server_Data/Plugins/libsteam_api.so
Preloaded 'libsteam_api.so'
Initialize engine version: 2020.3.33f1 (915a7af8b0d5)
[Subsystems] Discovering subsystems at path /home/ubuntu/valheim_server/valheim_server_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0
NullGfxDevice:
Version: NULL 1.0 [1.0]
Renderer: Null Device
Vendor: Unity Technologies
Begin MonoManager ReloadAssembly

  • Completed reload, in 0.205 seconds
    ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    �[30m[Debug : BepInEx] Entering chainloader StaticStart
    �[37m�[30m[Debug : BepInEx] Entering chainloader initialize
    �[37m�[30m[Debug : BepInEx] Initializing ThreadingHelper
    �[37m�[30m[Debug : BepInEx] Creating Manager object
    �[37m�[30m[Debug : BepInEx] Getting game product name
    �[37m�[30m[Debug : BepInEx] Falling back to BaseChainloader initializer
    �[37m�]2;BepInEx.Core 6.0.0.0 - Valheim�[Message: Preloader] BepInEx 6.0.0 - valheim_server
    [Info : BepInEx] System platform: Linux (kernel Merge unstable v3.1 #17~20.04.1-Ubuntu SMP Mon Jul 4 05:29:46 UTC 2022) 64-bit
    [Info : BepInEx] Process bitness: 64-bit (x64)
    [Info : Preloader] Running under Unity 2020.3.33f1
    [Info : Preloader] CLR runtime version: 4.0.30319.42000
    [Info : Preloader] Supports SRE: True
    [Message: Preloader] Preloader started
    [Info :AssemblyPatcher] Loaded 1 patcher type from [BepInEx.Preloader.UnityMono 6.0.0.0]
    [Info : Preloader] 1 patcher plugin loaded
    [Info : Preloader] 103 assemblies discovered
    [Message:AssemblyPatcher] Executing 1 patch(es)
    [Message: Preloader] Preloader finished
    [Message: BepInEx] Chainloader initialized
    �[37m[Message: BepInEx] Chainloader initialized
    �[37m�[30m[Debug : BepInEx] Exiting chainloader initialize
    �[37m[Info : BepInEx] 0 plugins to load
    �[30m[Info : BepInEx] 0 plugins to load
    �[37m[Message: BepInEx] Chainloader startup complete
    �[37m[Message: BepInEx] Chainloader startup complete
    �[37m�[30m[Debug : BepInEx] Exiting chainloader StaticStart
    �[37mERROR: Shader GUI/Text Shader shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    UnloadTime: 18.002200 ms
    �[30m[Info : Unity Log] 07/30/2022 01:05:15: Starting to load scene:start

�[37m07/30/2022 01:05:15: Starting to load scene:start
Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Standard (Specular setup) shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
WARNING: Shader Unsupported: 'Standard' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Standard' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Autodesk Interactive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Legacy Shaders/Particles/Additive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Legacy Shaders/Particles/Alpha Blended shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Legacy Shaders/Particles/Alpha Blended Premultiply shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Unlit/Color shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Lux Lit Particles/ Bumped shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
�[33m[Warning: Unity Log] HDR Render Texture not supported, disabling HDR on reflection probe.
�[37mHDR Render Texture not supported, disabling HDR on reflection probe.
�[33m[Warning: Unity Log] HDR Render Texture not supported, disabling HDR on reflection probe.
�[37mHDR Render Texture not supported, disabling HDR on reflection probe.
Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 32.159400 ms
�[33m[Warning: Unity Log] Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu).
�[37mOnly custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu).
�[33m[Warning: Unity Log] HDR Render Texture not supported, disabling HDR on reflection probe.
�[37mHDR Render Texture not supported, disabling HDR on reflection probe.
�[30m[Info : Unity Log] 07/30/2022 01:05:26: Setting -savedir to: /home/ubuntu/valheim_data

�[37m07/30/2022 01:05:26: Setting -savedir to: /home/ubuntu/valheim_data
�[30m[Info : Unity Log] 07/30/2022 01:05:26: Get create world Fallands

�[37m07/30/2022 01:05:26: Get create world Fallands
�[30m[Info : Unity Log] 07/30/2022 01:05:26: Using environment steamid 892970

�[37m07/30/2022 01:05:26: Using environment steamid 892970
�[30m[Info : Unity Log] 07/30/2022 01:05:26: Using steam APPID:892970

�[37m07/30/2022 01:05:26: Using steam APPID:892970
Using emulated ./linux64/steamclient.so
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 7 milliseconds to initialize
Error loading needed lib steamservice.so
Warning: Cannot dlopen("steamservice.so"/0xffff1a539b00, 2)
Setting breakpad minidump AppID = 892970
Error loading needed lib libsteam.so
Warning: Cannot dlopen("libsteam.so"/0xffffb012deb9, 2)
[S_API FAIL] Tried to access Steam interface SteamNetworkingUtils003 before SteamAPI_Init succeeded.
�[30m[Info : Unity Log] 07/30/2022 01:05:27: Server ID 90071992547409920

�[37m07/30/2022 01:05:27: Server ID 90071992547409920
�[30m[Info : Unity Log] 07/30/2022 01:05:27: Authentication:k_ESteamNetworkingAvailability_Waiting

�[37m07/30/2022 01:05:27: Authentication:k_ESteamNetworkingAvailability_Waiting
�[30m[Info : Unity Log] 07/30/2022 01:05:27: Steam game server initialized

�[37m07/30/2022 01:05:27: Steam game server initialized
�[30m[Info : Unity Log] 07/30/2022 01:05:27: Using default prefs

�[37m07/30/2022 01:05:27: Using default prefs
�[30m[Info : Unity Log] 07/30/2022 01:05:27: Valheim version:0.209.10

�[37m07/30/2022 01:05:27: Valheim version:0.209.10
�[30m[Info : Unity Log] 07/30/2022 01:05:27: Render threading mode:SingleThreaded

�[37m07/30/2022 01:05:27: Render threading mode:SingleThreaded
�[33m[Warning: Unity Log] 07/30/2022 01:05:27: Missing audio clip in music respawn

�[37m07/30/2022 01:05:27: Missing audio clip in music respawn
07/30/2022 01:05:28: Builder started
�[30m[Info : Unity Log] 07/30/2022 01:05:30: Loaded localization CSV:localization language:English

�[37m07/30/2022 01:05:30: Loaded localization CSV:localization language:English
�[30m[Info : Unity Log] 07/30/2022 01:05:30: Loaded localization CSV:localization_extra language:English

�[37m07/30/2022 01:05:30: Loaded localization CSV:localization_extra language:English
�[30m[Info : Unity Log] The shader Hidden/Dof/DepthOfFieldHdr (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.DepthOfField) is not supported on this platform!
�[37mThe shader Hidden/Dof/DepthOfFieldHdr (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.DepthOfField) is not supported on this platform!
�[33m[Warning: Unity Log] The image effect Main Camera (UnityStandardAssets.ImageEffects.DepthOfField) has been disabled as it's not supported on the current platform.
�[37mThe image effect Main Camera (UnityStandardAssets.ImageEffects.DepthOfField) has been disabled as it's not supported on the current platform.
�[30m[Info : Unity Log] The shader Hidden/SunShaftsComposite (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) is not supported on this platform!
�[37mThe shader Hidden/SunShaftsComposite (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) is not supported on this platform!
�[30m[Info : Unity Log] The shader Hidden/SimpleClear (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) is not supported on this platform!
�[37mThe shader Hidden/SimpleClear (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) is not supported on this platform!
�[33m[Warning: Unity Log] The image effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) has been disabled as it's not supported on the current platform.
�[37mThe image effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) has been disabled as it's not supported on the current platform.
�[30m[Info : Unity Log] 07/30/2022 01:05:30: Game server connected

�[37m07/30/2022 01:05:30: Game server connected
�[30m[Info : Unity Log] 07/30/2022 01:05:30: UI Group status changed Menu = True

�[37m07/30/2022 01:05:30: UI Group status changed Menu = True

Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 104622.
Total: 185.848600 ms (FindLiveObjects: 17.430600 ms CreateObjectMapping: 17.445400 ms MarkObjects: 148.072000 ms DeleteObjects: 2.823840 ms)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 59.420400 ms
�[33m[Warning: Unity Log] HDR Render Texture not supported, disabling HDR on reflection probe.
�[37mHDR Render Texture not supported, disabling HDR on reflection probe.
�[33m[Warning: Unity Log] HDR Render Texture not supported, disabling HDR on reflection probe.
�[37mHDR Render Texture not supported, disabling HDR on reflection probe.
�[30m[Info : Unity Log] 07/30/2022 01:05:32: Using default prefs

�[37m07/30/2022 01:05:32: Using default prefs
�[30m[Info : Unity Log] 07/30/2022 01:05:32: isModded: False

�[37m07/30/2022 01:05:32: isModded: False
�[30m[Info : Unity Log] 07/30/2022 01:05:32: Zonesystem Awake 271

�[37m07/30/2022 01:05:32: Zonesystem Awake 271
�[30m[Info : Unity Log] 07/30/2022 01:05:32: DungeonDB Awake 271

�[37m07/30/2022 01:05:32: DungeonDB Awake 271
�[30m[Info : Unity Log] 07/30/2022 01:05:32: Registering lobby

�[37m07/30/2022 01:05:32: Registering lobby
�[30m[Info : Unity Log] 07/30/2022 01:05:39: Audioman already exist, destroying self

�[37m07/30/2022 01:05:39: Audioman already exist, destroying self

Unloading 524 unused Assets to reduce memory usage. Loaded Objects now: 105495.
Total: 221.288120 ms (FindLiveObjects: 16.372600 ms CreateObjectMapping: 16.647800 ms MarkObjects: 179.024280 ms DeleteObjects: 9.242480 ms)

Using native(wrapped) libSDL2-2.0.so.0
�[30m[Info : Unity Log] 07/30/2022 01:05:51: Zonesystem Start 271

�[37m07/30/2022 01:05:51: Zonesystem Start 271
�[30m[Info : Unity Log] 07/30/2022 01:05:53: Added 3 locations, 0 vegetations, 0 environments, 0 biome env-setups from locations_cp1

�[37m07/30/2022 01:05:53: Added 3 locations, 0 vegetations, 0 environments, 0 biome env-setups from locations_cp1
�[30m[Info : Unity Log] 07/30/2022 01:05:53: Added 1 locations, 0 vegetations, 1 environments, 0 biome env-setups from locations_mountaincaves

�[37m07/30/2022 01:05:53: Added 1 locations, 0 vegetations, 1 environments, 0 biome env-setups from locations_mountaincaves
�[30m[Info : Unity Log] 07/30/2022 01:05:53: DungeonDB Start 271

�[37m07/30/2022 01:05:53: DungeonDB Start 271
�[30m[Info : Unity Log] 07/30/2022 01:05:54: Load world: Fallands (Fallands)

�[37m07/30/2022 01:05:54: Load world: Fallands (Fallands)
�[30m[Info : Unity Log] 07/30/2022 01:05:54: Loading 1171680 zdos , my id -480219097 data version:28

�[37m07/30/2022 01:05:54: Loading 1171680 zdos , my id -480219097 data version:28
�[30m[Info : Unity Log] 07/30/2022 01:06:18: Loaded 100000 dead zdos

�[37m07/30/2022 01:06:18: Loaded 100000 dead zdos
�[30m[Info : Unity Log] 07/30/2022 01:06:19: Removed 0 OLD generated ZDOS

�[37m07/30/2022 01:06:19: Removed 0 OLD generated ZDOS
�[30m[Info : Unity Log] 07/30/2022 01:06:19: Loaded 7440 locations

�[37m07/30/2022 01:06:19: Loaded 7440 locations

BepInEx.cfg

[Logging.Unity]

What log levels to log to Unity's output log.

Setting type: LogLevel

Default value: Fatal, Error, Warning, Message, Info

Acceptable values: None, Fatal, Error, Warning, Message, Info, Debug, All

Multiple values can be set at the same time by separating them with , (e.g. Debug, Warning)

LogLevels = Fatal, Error, Warning, Message, Info

[Preloader]

Enables or disables runtime patches.

This should always be true, unless you cannot start the game due to a Harmony related issue (such as running .NET Standard runtime) or you know what you're doing.

Setting type: Boolean

Default value: true

ApplyRuntimePatches = true

Specifies which MonoMod backend to use for Harmony patches. Auto uses the best available backend.

This setting should only be used for development purposes (e.g. debugging in dnSpy). Other code might override this setting.

Setting type: MonoModBackend

Default value: auto

Acceptable values: auto, dynamicmethod, methodbuilder, cecil

HarmonyBackend = auto

If enabled, BepInEx will save patched assemblies into BepInEx/DumpedAssemblies.

This can be used by developers to inspect and debug preloader patchers.

Setting type: Boolean

Default value: false

DumpAssemblies = false

If enabled, BepInEx will load patched assemblies from BepInEx/DumpedAssemblies instead of memory.

This can be used to be able to load patched assemblies into debuggers like dnSpy.

If set to true, will override DumpAssemblies.

Setting type: Boolean

Default value: false

LoadDumpedAssemblies = false

If enabled, BepInEx will call Debugger.Break() once before loading patched assemblies.

This can be used with debuggers like dnSpy to install breakpoints into patched assemblies before they are loaded.

Setting type: Boolean

Default value: false

BreakBeforeLoadAssemblies = false

[Preloader.Entrypoint]

The local filename of the assembly to target.

Setting type: String

Default value: UnityEngine.CoreModule.dll

Assembly = UnityEngine.CoreModule.dll

The name of the type in the entrypoint assembly to search for the entrypoint method.

Setting type: String

Default value: Application

Type = MonoBehaviour

The name of the method in the specified entrypoint assembly and type to hook and load Chainloader from.

Setting type: String

Default value: .cctor

Method = .cctor

@ghorsington
Copy link
Contributor Author

The thing now is that it doesn't seem to find any plugin in the plugins folder. I tried with a variety of diffent plugins, from simple "hello world" loggers to anticheat systems for Valheim and got nothing.

This PR is specifically for BepInEx 6 which currently does not load BepInEx 5 plugins (which I assume you've been testing since you mentioned Valheim). There will eventually be a support layer for BepInEx 5 plugins, but its priority is lower than the other API changes that are being done to BepInEx 6.

TL;DR: Current Valheim plugins will not load with this PR. Support is coming eventually, but it's not the target of this PR.

@ghorsington ghorsington changed the title Draft: Doorstop 4 support Restructure project, add Doorstop 4 support, use CoreCLR for Il2Cpp Aug 7, 2022
@ghorsington ghorsington force-pushed the feature-doorstop-4 branch 2 times, most recently from d32fe8b to b5d20cb Compare August 7, 2022 20:05
bb010g and others added 3 commits August 14, 2022 17:18
`git rebase -i` edit this and `git commit --amend --reset-author` once
you're happy with it
In older Unity (ones that embed UnityPlayer into the EXE), __Internal will map to the EXE which causes wrong DllImport resolving. Instead, use Doorstop's env var to resolve correct functions
The new resolver resides in BepInEx.Unity.Core
The resolver is based on multiple heuristics and integrates all workarounds we currently use so this shouldn't be a breaking change
ThreadingHelper seemed to cause crashes on Unity 4 because of too early default entrypoint. Using the new version resolver, this changes now selects MonoBehaviour as the new default entrypoint for older Unity versions
On Windows, emit BepInEx/ErrorLog.log that will contain the latest stderr
This allows to catch any errors CoreCLR writes before closing on a fatal crash

On Unix, same is already possible via normal piping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants