MelonLoader

MelonLoader

242 Downloads

[Bug]: UnityEngine.Texture::GetDataWidth not resolved

CanYing0913 opened this issue ยท 5 comments

commented

All of the following criteria must be met

  • All Requirements must be installed.
  • Full Latest.log file included. If no file exists then leave this unchecked and state so.

All of the following are optional to answer

  • Tried reinstalling the Game.
  • Tried reinstalling MelonLoader.
  • Tried restarting PC.
  • Was able to see the Start Screen.

Describe the issue.

Latest.log
I am trying to play MellonLoader with a small game. However, I encountered the following error without any pointers to interpret. After the messages shown in the log, the game starts with a black screen and then quits immediately.

[18:16:33.674] [MelonStartScreen] Exception while init rendering: System.TypeInitializationException: The type initializer for 'MelonUnityEngine.Texture' threw an exception.
 ---> System.Exception: ICall UnityEngine.Texture::GetDataWidth not resolved
   at UnhollowerMini.UnityInternals.ResolveICall(String signature) in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UnhollowerMini\UnityInternals.cs:line 278
   at UnhollowerMini.UnityInternals.ResolveICall[T](String signature) in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UnhollowerMini\UnityInternals.cs:line 287
   at MelonUnityEngine.Texture..cctor() in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UnityEngine\CoreModule\Texture.cs:line 24
   --- End of inner exception stack trace ---
   at MelonUnityEngine.Texture..ctor(IntPtr ptr) in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UnityEngine\CoreModule\Texture.cs:line 35
   at MelonUnityEngine.Texture2D..ctor(Int32 width, Int32 height) in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UnityEngine\CoreModule\Texture2D.cs:line 56
   at MelonLoader.MelonStartScreen.UI.UI_Utils.CreateColorTexture(Color color) in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UI\UI_Utils.cs:line 11
   at MelonLoader.MelonStartScreen.UI.Objects.UI_Background..ctor(cBackground backgroundSettings) in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UI\Objects\UI_Background.cs:line 16
   at MelonLoader.MelonStartScreen.UI.UI_Style.Init() in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\UI\UI_Style.cs:line 16
   at MelonLoader.MelonStartScreen.ScreenRenderer.Init() in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\ScreenRenderer.cs:line 38

Did you attach your log file?

  • Yes, I attached my log file to the text box above.
  • No, I could not find a log file at {Game_Directory}\MelonLoader\Latest.log
commented

The start screen isn't required, can you launch with --melonloader.disablestartscreen?

Hi thank you for your help. May I know how can I launch it with arguments? Currently the way I launch it is simply launching the game via shortcut.

commented

The start screen isn't required, can you launch with --melonloader.disablestartscreen?

commented

The start screen isn't required, can you launch with --melonloader.disablestartscreen?

Hi thank you for your help. May I know how can I launch it with arguments? Currently the way I launch it is simply launching the game via shortcut.

if your game is on steam right click the game on steam and open "properties" and past "--melonloader.disablestartscreen" into the box with the label "Advanced users may choose to enter modifications to their launch options"

if your game is not on steam find the EXE for the game and create a shortcut. right click that shortcut and open "properties" under the shortcut tab add the launch argument to the end of the exe in the "target" field.

commented

Here is the log I run with --melonloader.disablestartscreen: Latest.log.

commented

same issue as #433 and #437