-
Notifications
You must be signed in to change notification settings - Fork 104
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
CraftingFilter: Breaks F5 console (multiple mods actually do this) #110
Comments
This is the console error that I get when typing devcommands (looks like the same issue, but I'm using Movable Inventory Windows, Custom Toolbars Hotkeys, and Extended Player Inventory): [Error : Unity Log] TypeLoadException: Failure has occurred while loading a type. [Info : Unity Log] TMP_Input can't handle null eventData in curren package. Can be ignored atm though. Exception: Failure has occurred while loading a type. |
i am getting same issue with custom audio and custom load screens. both mods seems to work, but they both break the command/console. has anyone figured out a work around? |
Guys, I was having the same problem while using DiscardInventoryItems. I managed to fix it by recompiling the mod with up to date dependencies. Didn't change a single line of code: https://github.com/jairovsky/mods-valheim/tree/master/valheim-discard-inventory-item |
Interesting. I cloned this repo, tried compiling
Would it make sense to clone your repo, copy |
Hello!
I haven't touched on this in while, but what I remember is that I couldn't
manage to make the build process work on my machine either. I'll give it
another try later today.
...
Yep it makes sense. In fact it's exactly what I did with
DiscardInventoryItems: copied the C# code into my repo to be able to
compile it using my project structure.
|
Nice, I'll give that a go this weekend, see what happens, thanks! |
Hello again! I managed to compile DiscardInventoryItem from this repo. Below is the git diff of what I needed to change. You can save it to a file and do git diffdiff --git a/DiscardInventoryItem/DiscardInventoryItem.csproj b/DiscardInventoryItem/DiscardInventoryItem.csproj
index 250eb8c..b194bf0 100644
--- a/DiscardInventoryItem/DiscardInventoryItem.csproj
+++ b/DiscardInventoryItem/DiscardInventoryItem.csproj
@@ -2,5 +2,5 @@
<PropertyGroup>
<Version>1.0.0</Version>
</PropertyGroup>
- <Import Project="$(SolutionDir)\valheim.targets" />
+ <Import Project="..\valheim.targets" />
</Project>
\ No newline at end of file
diff --git a/valheim.targets b/valheim.targets
index be591b3..3e61245 100644
--- a/valheim.targets
+++ b/valheim.targets
@@ -6,7 +6,7 @@
<TargetFramework>net480</TargetFramework>
<Platforms>AnyCPU</Platforms>
<PlatformTarget>AnyCPU</PlatformTarget>
- <GamePath><!-- Set GamePath manually --></GamePath>
+ <GamePath>D:\Games\SteamLibrary\steamapps\common\Valheim</GamePath>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</PropertyGroup>
@@ -52,7 +52,7 @@
<PropertyGroup>
<BepInExPath>$(GamePath)\BepInEx</BepInExPath>
<ManagedDataPath>$(GamePath)\valheim_Data\Managed</ManagedDataPath>
- <UnityPath>$(GamePath)\unstripped_corlib</UnityPath>
+ <UnityPath>$(ManagedDataPath)</UnityPath>
</PropertyGroup>
<!-- Set start action -->
@@ -77,6 +77,14 @@
</Reference>
</ItemGroup>
+ <ItemGroup Label="extra_deps">
+ <Reference Include="gui_framework">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>$(ManagedDataPath)\gui_framework.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ </ItemGroup>
+
<!-- Add valheim_data references -->
<ItemGroup Label="Valheim_Data">
<Reference Include="assembly_valheim"> So what do these changes mean:
|
Also seeing this with MoveableInventoryWindows. |
When the mod is active any command in the console errors. All mods you have that touch the console will break it. For example i also had to remove craft from containers and Container Lists. Most people have been blaming Server DevCommands but it works fine.
The text was updated successfully, but these errors were encountered: