UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.17k stars 224 forks source link

Improper access to "dotnet" directory while using ImportGraphics #690

Closed Grossley closed 2 years ago

Grossley commented 2 years ago

unknown

VladiStep commented 2 years ago

I can't find the version of "ImportGraphics.csx" that has this particular line of code.

Kneesnap commented 2 years ago

It sounds to me like the problem is that the working directory is somewhere that can't be accessed without admin perms. It fails because it doesn't have access.

On Mon, Nov 15, 2021, 2:40 PM Grossley @.***> wrote:

[image: unknown] https://user-images.githubusercontent.com/42724744/141863994-8cfac429-bf03-41c3-bcbe-f4d0ff2db2b4.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/krzys-h/UndertaleModTool/issues/690, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSCIYPPZPSHRWYSOKA4BLLUMGD6NANCNFSM5ICZ7RMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Grossley commented 2 years ago

This is the improper working directory, the problem is that the working directory is wrong, it not having access is a consequence of this.

VladiStep commented 2 years ago

After 15 days, I found out that is actually "ImportGraphics_Full_Repack.csx", not "ImportGraphics.csx"...

Grossley commented 2 years ago

ImportGraphics_Full uses this directory C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.9\Packager\Textures which it should not be using. However "ImportGraphics_Full" is mostly obsolete anyways. Making it harder to use or removing it is an acceptable fix along with fixing the issue at hand with this script.