darklinkpower / PlayniteExtensionsCollection

Collection of extensions made for Playnite.
MIT License
331 stars 29 forks source link

[Nexus Mods checker] Extension not loading #374

Closed aherreracies closed 1 year ago

aherreracies commented 1 year ago

Extension name

Nexus Mods checker

Bug Description

Everytime that I open Playnite, a message is displayed saying that the extension "Nexus Mods checker" failed to load properly. I checked for incompatibilities and there's none.

To Reproduce

No response

Logs

playnite.log extensions.log

Screenshots

image

darklinkpower commented 1 year ago

This and #373 are not issues specific to the scripts, they are caused due to your system not being able to load the script files because it doesn't allow scripts that are not signed:

System.Management.Automation.CmdletInvocationException: No se puede cargar el archivo C:\Playnite\Extensions\Extra_Metadata_tools_2e0349ed-6da2-4095-9457-4c9fb544551e\ExtraMetadataTools.psm1. El archivo C:\Playnite\Extensions\Extra_Metadata_tools_2e0349ed-6da2-4095-9457-4c9fb544551e\ExtraMetadataTools.psm1 no está firmado digitalmente. No se puede ejecutar este script en el sistema actual. Para obtener más información acerca de la ejecución de scripts y la configuración de la directiva de ejecución, consulta about_Execution_Policies en https:/go.microsoft.com/fwlink/?LinkID=135170. ---> System.Management.Automation.PSSecurityException: No se puede cargar el archivo C:\Playnite\Extensions\Extra_Metadata_tools_2e0349ed-6da2-4095-9457-4c9fb544551e\ExtraMetadataTools.psm1. El archivo C:\Playnite\Extensions\Extra_Metadata_tools_2e0349ed-6da2-4095-9457-4c9fb544551e\ExtraMetadataTools.psm1 no está firmado digitalmente. No se puede ejecutar este script en el sistema actual. Para obtener más información acerca de la ejecución de scripts y la configuración de la directiva de ejecución, consulta about_Execution_Policies en https:/go.microsoft.com/fwlink/?LinkID=135170. ---> System.UnauthorizedAccessException: No se puede cargar el archivo C:\Playnite\Extensions\Extra_Metadata_tools_2e0349ed-6da2-4095-9457-4c9fb544551e\ExtraMetadataTools.psm1. El archivo C:\Playnite\Extensions\Extra_Metadata_tools_2e0349ed-6da2-4095-9457-4c9fb544551e\ExtraMetadataTools.psm1 no está firmado digitalmente. No se puede ejecutar este script en el sistema actual. Para obtener más información acerca de la ejecución de scripts y la configuración de la directiva de ejecución, consulta about_Execution_Policies en https:/go.microsoft.com/fwlink/?LinkID=135170.

Have you modified any configuration related to that? From https:/go.microsoft.com/fwlink/?LinkID=135170 , what do see if you use Get-ExecutionPolicy -List in Powershell? For example, this is what it says for me:

image

darklinkpower commented 1 year ago

Also open the Interactive SDK Powershell

image

And use Get-ExecutionPolicy

image

darklinkpower commented 1 year ago

After sharing what I indicate in the comments above, install this version and see if the issue is fixed for the Extra Metadata extension

Extra_Metadata_tools_2e0349ed-6da2-4095-9457-4c9fb544551e_2_12.zip

aherreracies commented 1 year ago

No, I haven't modified anything related to that. When I do what you said in Powershell it outputs this. Also, I installed the version that you shared and it didn't fix it image

aherreracies commented 1 year ago

No, I haven't modified anything related to that. When I do what you said in Powershell it outputs this. Also, I installed the version that you shared and it didn't fix it image

Nevermind, looks like I fixed it by changing the execution policies in Powershell (following a tutorial). Thanks a lot for your help pointing me at the problem.

darklinkpower commented 1 year ago

Yeah the issue was your MachinePolicy. AllSigned is not the default and caused this issue.