aws / amazon-gamelift-plugin-unity

The Amazon GameLift Plugin for Unity contains libraries and native UI that makes it easier to access GameLift resources and integrate GameLift into your Unity game. You can use the GameLift Unity Plugin to access GameLift APIs and deploy AWS CloudFormation templates for common gaming scenarios.
https://aws.amazon.com/gamelift/getting-started/
Apache License 2.0
81 stars 16 forks source link

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

Closed firdiar-mita closed 9 months ago

firdiar-mita commented 10 months ago
[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 commented 10 months ago

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 commented 10 months ago

@AWSJackson just ping someone who might be related

firdiar-mita commented 10 months ago

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