o3de-multiplayersample icon indicating copy to clipboard operation
o3de-multiplayersample copied to clipboard

MultiplayerPlayerSample (MPS) Doesn't Compile Because Bad Icon File in GitHub zip

Open AMZN-Gene opened this issue 2 years ago • 12 comments

Describe the bug MPS doesn't compile because a bad GameSDK.ico

Steps to reproduce Steps to reproduce the behavior:

  1. Download MPS development branch
  2. Use ProjectManager to compile.
  3. Notice build error...

Expected behavior Build success

Actual behavior Build error C:\o3de\projects\o3de-multiplayersample-development\build\windows\o3de\Code\LauncherUnified\MultiplayerSample.GameLauncher.rc(9): error RC2175: resource file C:/o3de/projects/o3de-multiplayersample-development/Gem/Resources/GameSDK.ico is not in 3.00 format [C:\o3de\projects\o3de-multiplayersample-development\build\windows\o3de\Code\LauncherUnified\MultiplayerSample.GameLauncher.vcxproj]

Found in Branch development

Desktop/Device (please complete the following information):

  • OS: Windows

AMZN-Gene avatar Apr 14 '22 17:04 AMZN-Gene

Need to identify if icon is wrong or has been updated in main

lmbr-pip avatar Apr 14 '22 17:04 lmbr-pip

This was also happening in development branch

AMZN-Gene avatar Apr 14 '22 17:04 AMZN-Gene

AutomatedTesting version has not been updated for 9 months, so it does not appear to be caused by an update https://github.com/o3de/o3de/blob/development/AutomatedTesting/Gem/Resources/GameSDK.ico

lmbr-pip avatar Apr 14 '22 17:04 lmbr-pip

Appears to be a bad download / install (related to LFS issues)

lmbr-pip avatar Apr 14 '22 17:04 lmbr-pip

@adamarjian1 how did you download the project? git clone? or download zip off github? this sounds like an LFS (large file system) issue. This would also explain issues you were seeing with asset processor failing to process assets. because you didn't install LFS so the large files are actually being downloaded. What happens when you run the commandline: git lfs version

AMZN-Gene avatar Apr 14 '22 17:04 AMZN-Gene

@AMZN-Gene I just downloaded the project I will clone the project and rebuild and see if the issue still exists.

adamarjian1 avatar Apr 14 '22 19:04 adamarjian1

when i use "download zip off github", l meet the same issue , use "git clone "will solve the problem. beause GameSDK.ico is not downloaded correctly by "download zip off github"

chenyihaha avatar Apr 15 '22 08:04 chenyihaha

@chenyihaha - That behaviour is expected, the project uses Git LFS to store these binary file types. The MPS file extensions stored in such format can be found in the .gitattributes file. When you download the zip file only pointer files representing the binary files are generated so the images (and indeed any file represented by LFS) will not be correct.

I can file a request to docs to mention that folks shouldn't use the zip file from GitHub.

lmbr-pip avatar Apr 18 '22 21:04 lmbr-pip

@chenyihaha - That behaviour is expected, the project uses Git LFS to store these binary file types. The file extensions stored in such format can be found in the .gitattributes file. When you download the zip file only pointer files representing the binary files are generated so the images (and indeed any file represented by LFS) will not be correct.

I can file a request to docs to mention that folks shouldn't use the zip file from GitHub.

Docs will help, I wouldn't mind just updating this issue and moving it into doc's triage.

Aside from docs, pressing that "zip download" button is too enticing, especially if you're just following a tutorial. The asset processor will show all the failed files, but I wish there was a way to remove this option or have the engine be more explicit if it detects assets that haven't been pulled down by LFS.

AMZN-Gene avatar Apr 18 '22 21:04 AMZN-Gene

We can convert this task into updating readme file for o3de-multiplayersample stating that downloading zip is not a supported option with git LFS content. It is advised to git clone instead.

SelfishOlex avatar Apr 28 '22 17:04 SelfishOlex

We can fix the zip to include the lfs artifacts: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-git-lfs-objects-in-archives-of-your-repository

But as our LFS files are externally sourced this would not help, plus its unsure if we would want to cover all the download costs.

lmbr-pip avatar Oct 11 '22 22:10 lmbr-pip

Added note in https://github.com/o3de/o3de-multiplayersample/pull/201

lmbr-pip avatar Oct 11 '22 22:10 lmbr-pip