handzlikchris / Unity.MissingUnityEvents

Editor extension to generate events that are executed before property set, eg. Transform-position, Transform-rotation, Transform-parent which allows to write more event driven code or debug property changes that are not simple to track down. Easily customisable to allow adding events to different property setters / types.
MIT License
186 stars 16 forks source link

Can't Modify CoreModule DLL #6

Closed jrstrecker7852 closed 3 years ago

jrstrecker7852 commented 3 years ago

When clicking on the Weave Events to DLL i get an error that the file (DLL) can not be changed because an application has it open or need admin rights. I tried opening Unity as Admin but that did not work. Not sure how unless it my Unity session that the DLL would be being used.

CoreModuleDllError Any Ideas?

jrstrecker7852@gmail.com

handzlikchris commented 3 years ago

Hi, are you sure all Editor instances are closed when you click 'y'?

The tool specifies runas admin when it launches command-prompt so it should not matter that you're Unity is not run as admin.

If that doesn't work for any reason you can put a breakpoint in EventILWeaverCommandLineArgsGenerator.GenerateAddEventsCommandLineArgs - that'll give you an actual command that is run in the prompt. From there you can run cmd as admin and paste the command.

Hope that helps, Chris

jrstrecker7852 commented 3 years ago

Chris,

Thanks for getting back to me on this. I will try your suggestions and let you know what if one of those works.

Thanks again Jim

Sent from my iPhone

On May 3, 2021, at 2:21 AM, Chris Handzlik @.***> wrote:

 Hi, are you sure all Editor instances are closed when you click 'y'?

The tool specifies runas admin when it launches command-prompt so it should not matter that you're Unity is not run as admin.

If that doesn't work for any reason you can put a breakpoint in EventILWeaverCommandLineArgsGenerator.GenerateAddEventsCommandLineArgs - that'll give you an actual command that is run in the prompt. From there you can run cmd as admin and paste the command.

Hope that helps, Chris

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jrstrecker7852 commented 3 years ago

I tried again making sure not Unity Instances were open and still received the error. I was able to capture the command arguments and ran this application in a cmd file. This seems to work (created the new DLL, but I did get the below error;

[image: image.png]

On Mon, May 3, 2021 at 4:00 PM James Strecker @.***> wrote:

Chris,

Thanks for getting back to me on this. I will try your suggestions and let you know what if one of those works.

Thanks again Jim

Sent from my iPhone

On May 3, 2021, at 2:21 AM, Chris Handzlik @.***> wrote:



Hi, are you sure all Editor instances are closed when you click 'y'?

The tool specifies runas admin when it launches command-prompt so it should not matter that you're Unity is not run as admin.

If that doesn't work for any reason you can put a breakpoint in EventILWeaverCommandLineArgsGenerator.GenerateAddEventsCommandLineArgs - that'll give you an actual command that is run in the prompt. From there you can run cmd as admin and paste the command.

Hope that helps, Chris

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/handzlikchris/Unity.MissingUnityEvents/issues/6#issuecomment-831074586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQPLW2QGDGLQ2ALUKGY7L43TLZFIPANCNFSM436PT34Q .

handzlikchris commented 3 years ago

That image wasn't attached. What are you getting?

handzlikchris commented 3 years ago

btw long path issue should be resolved now with latest push

jrstrecker7852 commented 3 years ago

Chris,

The error was an 'InvalidOperationException: Sequence contains no matching element.

On Tue, May 4, 2021 at 2:54 AM Chris Handzlik @.***> wrote:

btw long path issue should be resolved now with latest push

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/handzlikchris/Unity.MissingUnityEvents/issues/6#issuecomment-831751251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQPLW2WG44Y3USTILXNP33LTL6R2PANCNFSM436PT34Q .

handzlikchris commented 3 years ago

Could be that the field you're tring to add was not found. Not sure - probably you're best bet is to pull https://github.com/handzlikchris/AddingEventsToCompiled3rdPartyLibrary And run that command with debugger attached. That'll give you some more info

jrstrecker7852 commented 3 years ago

I wasn’t adding anything at this time, but I’ll look into your suggestion.

Thanks

Sent from my iPhone

On May 5, 2021, at 3:47 AM, Chris Handzlik @.***> wrote:

 Could be that the field you're tring to add was not found. Not sure - probably you're best bet is to pull https://github.com/handzlikchris/AddingEventsToCompiled3rdPartyLibrary And run that command with debugger attached. That'll give you some more info

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

handzlikchris commented 3 years ago

ahh that could be why you're getting this error - maybe it's not handing empty well

handzlikchris commented 3 years ago

I'll get this one closed, please get in touch if you need more help. thanks