ModTheGungeon / ETGMod.Installer

Mod the Gungeon Installer (based on FEZMod.Installer, using MonoMod)
https://modthegungeon.github.io/
MIT License
32 stars 11 forks source link

Installer Mono Error #3

Closed Zerenis closed 7 years ago

Zerenis commented 7 years ago

Whenever I load up terminal and type mono and then put a space and bring in the installer program I get an error.

Entering the holy realm of ETGMod. Asset 0: ETGMod.Installer.Assets.background.png Asset 1: ETGMod.Installer.Assets.icons.main.png Asset 2: ETGMod.Installer.Assets.icons.main-large.png Asset 3: ETGMod.Installer.Assets.icons.open.png Asset 4: ETGMod.Installer.Assets.icons.uninstall.png System.UnauthorizedAccessException: Access to the path "/Library/Application Support/ETGMod" is denied.

Followed by many lines of code. It attempts to open the installer program but only lasts for a fraction of a second before closing itself and doing nothing else. I am able to use older versions of the installer successfully, but once I try to install everything it prompts me to get the most recent installer.

Is there a folder I need to create? Or any kind of acceptions I might need to add? Any assistance that can be provided would be greatly appreciated. Thank you.

zatherz commented 7 years ago

Fixed https://github.com/ModTheGungeon/ETGMod.Installer/commit/3cc2841517a31c01d91584956e6141e5b76440c7

kozie commented 7 years ago

Doesn't seems to be fixed. I downloaded 17.01.30 pre-release and confirmed that the above commit has been merged into that version. The error, however, is still present. Running mono with sudo works tho but one does not simply want to do that ;)

zatherz commented 7 years ago

That makes no sense... the issue is fixed in that commit. Are you sure you weren't running an older installer version by accident? Is the error message exactly the same thing?

kozie commented 7 years ago

I downloaded the latest version twice to be sure.. but let me just try another time. I will include the log also. will post back later ;)

Zerenis commented 7 years ago

I attempted the install with the updated file and got what I believe is the same error. The same issues happened. I open terminal, enter mono then a space and then drag in the file. I am then given the following: Entering the holy realm of ETGMod. Asset 0: ETGMod.Installer.Assets.background.png Asset 1: ETGMod.Installer.Assets.icons.main.png Asset 2: ETGMod.Installer.Assets.icons.main-large.png Asset 3: ETGMod.Installer.Assets.icons.open.png Asset 4: ETGMod.Installer.Assets.icons.uninstall.png System.UnauthorizedAccessException: Access to the path "/Library/Application Support/ETGMod" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00070] in <8f2c484307284b51944a1a13a14c0266>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in <8f2c484307284b51944a1a13a14c0266>:0 at ETGModInstaller.ETGInstallerSettings.get_ConfigurationPath () [0x000be] in :0 at ETGModInstaller.ETGInstallerSettings.Load () [0x0000f] in :0 at ETGModInstaller.InstallerWindow.onHandleCreated (System.Object sender, System.EventArgs e) [0x0001d] in :0 at (wrapper delegate-invoke) :invoke_void_object_EventArgs (object,System.EventArgs) at System.Windows.Forms.Control.OnHandleCreated (System.EventArgs e) [0x0001c] in :0 at System.Windows.Forms.Form.OnHandleCreated (System.EventArgs e) [0x00016] in :0 at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in :0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001d7] in :0 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in :0 at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x0003c] in :0 at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x0015c] in :0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in :0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in :0 at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in :0

The installer attempts to open but only lasts for a brief moment before closing. I have tried it after creating a folder in Macintosh/Library/ApplicationSupport named ETGMod and without that folder and have received the same result each time.

kozie commented 7 years ago

I haven't been testing yet, tho i can say i most probably had the same error @Zerenis had.

Please check if the home variable has been set correctly. It seems empty seeing the log results.

Also, i don't wanna sound rude but it seems the issue is still present tho. I think you might wanna consider reopening it for your administration.

EDIT Just to be sure we have the same error, i'm downloading the latest build from the release pages (https://github.com/ModTheGungeon/ETGMod.Installer/releases/download/v17.01.30/ETGMod.Installer.exe).

Running it with mono ETGMod.Installer.exe from terminal gives me the following.

Entering the holy realm of ETGMod.
Asset 0: ETGMod.Installer.Assets.background.png
Asset 1: ETGMod.Installer.Assets.icons.main.png
Asset 2: ETGMod.Installer.Assets.icons.main-large.png
Asset 3: ETGMod.Installer.Assets.icons.open.png
Asset 4: ETGMod.Installer.Assets.icons.uninstall.png
System.UnauthorizedAccessException: Access to the path "/Library/Application Support/ETGMod/modthegungeon.conf" is denied.
  at System.IO.File.Delete (System.String path) [0x00082] in <8f2c484307284b51944a1a13a14c0266>:0 
  at ETGModInstaller.ETGInstallerSettings.Save () [0x0001d] in <b4eeb55e4d4c4c0ea5914b7bd1cbf973>:0 
  at ETGModInstaller.InstallerWindow.onHandleCreated (System.Object sender, System.EventArgs e) [0x00022] in <b4eeb55e4d4c4c0ea5914b7bd1cbf973>:0 
  at (wrapper delegate-invoke) <Module>:invoke_void_object_EventArgs (object,System.EventArgs)
  at System.Windows.Forms.Control.OnHandleCreated (System.EventArgs e) [0x0001c] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.Form.OnHandleCreated (System.EventArgs e) [0x00016] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001d7] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x0003c] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x0015c] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
[MonoMod] Reading input stream into module.
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null), (UnityEngine)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> mscorlib.dll ((mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) loaded
[MonoMod] [MapDependency] Assembly-CSharp.dll -> System.Core.dll ((System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System.Core)) loaded
[MonoMod] [MapDependency] System.Core.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] System.Core.dll -> System.dll ((System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System)) loaded
[MonoMod] [MapDependency] System.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] System.dll -> Mono.Security.dll ((Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756), (Mono.Security)) loaded
[MonoMod] [MapDependency] Mono.Security.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] Mono.Security.dll -> System.dll ((System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System)) from cache
[MonoMod] [MapDependency] System.dll -> System.Configuration.dll ((System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a), (System.Configuration)) loaded
[MonoMod] [MapDependency] System.Configuration.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] System.Configuration.dll -> System.dll ((System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System)) from cache
[MonoMod] [MapDependency] System.Configuration.dll -> System.Xml.dll ((System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System.Xml)) loaded
[MonoMod] [MapDependency] System.Xml.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] System.Xml.dll -> System.dll ((System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System)) from cache
[MonoMod] [MapDependency] System.Xml.dll -> System.Configuration.dll ((System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a), (System.Configuration)) from cache
[MonoMod] [MapDependency] System.Configuration.dll -> System.Security.dll ((System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a), (System.Security)) loaded
[MonoMod] [MapDependency] System.Security.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] System.Security.dll -> System.Xml.dll ((System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System.Xml)) from cache
[MonoMod] [MapDependency] System.Security.dll -> System.dll ((System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System)) from cache
[MonoMod] [MapDependency] System.Security.dll -> Mono.Security.dll ((Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756), (Mono.Security)) from cache
[MonoMod] [MapDependency] System.dll -> System.Xml.dll ((System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System.Xml)) from cache
[MonoMod] [MapDependency] System.Core.dll -> Mono.Posix.dll ((Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756), (Mono.Posix)) loaded
[MonoMod] [MapDependency] Mono.Posix.dll -> System.dll ((System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System)) from cache
[MonoMod] [MapDependency] Mono.Posix.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] Assembly-CSharp.dll -> System.dll ((System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (System)) from cache
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null), (PlayMaker)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((dfScriptLite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null), (dfScriptLite)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null), (Assembly-CSharp-firstpass)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null), (UnityEngine.UI)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((GalaxyCSharp, Version=3.133.7.0, Culture=neutral, PublicKeyToken=c78c4b7d4be3eaf9), (GalaxyCSharp)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> Mono.Security.dll ((Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756), (Mono.Security)) from cache
[MonoMod] [MapDependency] Assembly-CSharp.dll -> mscorlib.dll ((mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089), (mscorlib)) from cache
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c), (Ionic.Zip)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=null), (Newtonsoft.Json)) not found; ignoring...
[MonoMod] [MapDependency] Assembly-CSharp.dll -> ((Mono.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756), (Mono.Cecil)) not found; ignoring...
zatherz commented 7 years ago

Try the latest prerelease (17.02.07).

kozie commented 7 years ago

Works like a charm. Thanks @zatherz!