Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error adding package: file:../com.amazonaws.gameliftserver.sdk-5.1.0.tgz #242

Closed
firdiar-mita opened this issue Nov 20, 2023 · 3 comments
Closed

Comments

@firdiar-mita
Copy link

firdiar-mita commented Nov 20, 2023

[Package Manager Window] Error adding package: file:../ExternalSDK/com.amazonaws.gameliftserver.sdk-5.1.0.tgz.
Unable to add package [file:../ExternalSDK/com.amazonaws.gameliftserver.sdk-5.1.0.tgz]:
  One or more dependencies could not be added to the local file system:
    org.nuget.log4net: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-7Ew6mOPLSFgI\tarball\package.tgz
    Expected: 130876945c3108a3737a3673535dca07ac84a067
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
    org.nuget.polly: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-819qO1c1Sup6\tarball\package.tgz
    Expected: d88b08b054f71066e0620bfa39b28c96868ec581
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
    org.nuget.system.configuration.configurationmanager: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-nG8rodZjJLiU\tarball\package.tgz
    Expected: 36a73ad928337dd6389666559922e70212b6347f
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
    org.nuget.system.security.accesscontrol: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-oKLn4mKVourr\tarball\package.tgz
    Expected: 25c7f40c18fd6f7947c9df2aa9ba434dbcaf68ce
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
    org.nuget.system.security.cryptography.protecteddata: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-FYyzEM0VCic5\tarball\package.tgz
    Expected: 150812eaa25b897a2d5b280b6ee334b6b7a9212c
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
    org.nuget.system.security.permissions: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-1dYMdAkhM0da\tarball\package.tgz
    Expected: 0632e59e2a68f862983ab382ee9d38216745bb2b
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
    org.nuget.system.security.principal.windows: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-CjTMi5CN8Hi3\tarball\package.tgz
    Expected: 67ea822e61423deef4b30f3b0520f1d95bf09e78
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
    org.nuget.websocketsharp.core: shasum check failed for C:\Users\Firdi\AppData\Local\Unity\cache\npm\unitynuget-registry.azurewebsites.net\.tmp-8160-QEd4k2WPsE9i\tarball\package.tgz
    Expected: ba56b8fcedddb521309c79a4626ff0e0d37a5ff1
    Actual:   daa459deae45e8fa1c53dab652c13be6e9b9a729
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

tbh i don't understand. im following the instruction but got this error

@firdiar-mita firdiar-mita changed the title Error adding package: file:../ExternalSDK/com.amazonaws.gameliftserver.sdk-5.1.0.tgz Error adding package: file:../com.amazonaws.gameliftserver.sdk-5.1.0.tgz Nov 20, 2023
@firdiar-mita
Copy link
Author

firdiar-mita commented Nov 20, 2023

and i don't seems to find .tmp-8160-QEd4k2WPsE9i folder. and everytime i add, the tmp folder is different.

atleast where can i find the previous version? for gameliftserver.sdk

@firdiar-mita
Copy link
Author

@AWSJackson just ping someone who might be related

@firdiar-mita
Copy link
Author

firdiar-mita commented Nov 20, 2023

Quick Work Around Solution

  1. extract com.amazonaws.gameliftserver.sdk-5.1.0.tgz
  2. remove dependencies on package.json from extracted package
  3. compress again to .tgz > https://askubuntu.com/questions/83868/compress-in-tgz
  4. add log4net.dll , Polly.dll and websocket-sharp-core.dll inside plugins, downloaded from https://www.nuget.org/ (and extract to get .dll)
  5. add tgz files to unity project

hope this help someone with similar issue

@wenxiul wenxiul closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants