saddboys / Softeng306Assignment2

A Unity Game about Climate Change
2 stars 1 forks source link

Asset import issue #146

Open dptiwari425 opened 1 year ago

dptiwari425 commented 1 year ago

I have downloaded your game code and trying to import but not getting success as it is giving asset import error . Please suggest solution image

dptiwari425 commented 1 year ago

How to connect you ?

ErnWong commented 1 year ago

Hey there @dptiwari425 ! Sorry for such a delayed response from me. We don't maintain this repository any more and unfortunately I can't guarantee I'd be able to continue helping you, but I'll try my best.

Regarding the asset import issue you are seeing, I suspect this is because those files are stored in git lfs and so it's possible that instead of the actual .wav files downloaded, it's possible that you've only got the file hash downloaded instead.

We can quickly check whether it's a git lfs problem by looking at the file size of those .wav files on your computer. For example, PowerPlant.wav should be 244KB. If that file on your computer is different to 244KB (e.g. if it was only 131 bytes), then it's most likely because of git lfs.

There are several ways to resolve this problem:

If you downloaded the code using git

You could try downloading and installing git lfs from their official website, and then run the following two commands while inside the Softeng306Assignment2 repository:

git lfs install
git lfs fetch

If you downloaded the code as a zip

Unfortunately, it seems like we did not configure this github repo to include lfs files in the zip, and as we're not maintaining this repo anymore, it is unlikely we will be enabling it. I suggest you download the game's code using git.

To download the code via git:

  1. Install git if you haven't already: https://git-scm.com
  2. Install git lfs: https://git-lfs.com/
  3. Initialize git lfs by running git lfs install
  4. Clone this repository by running git clone https://github.com/saddboys/Softeng306Assignment2

As an alternative to using git, you might be able to manually download the corresponding .wav files here on github, but I suspect there'd be a lot more other files that you'd need to manually download individually, which might be impractical.