https://hanghaeplus-coyukdae.oopy.io/

 

 

일을 그만두고 스파르타 코딩클럽에서 게임개발 종합반에서 unity로 게임을 만들면서 정말 재밌었다

다만 앱을 배포해서 다른사람들에게도 보여주고 싶었는데 플레이스토어나 애플스토어에 배포하려면 돈이 들어서 아쉬웠다.

유니티는 용량도 되게 커서 깃허브에 올리기도 힘들었는데 겨우 올리는 방법을 찾았나 싶었더니

https://sunalog.tistory.com/5

 

유니티 2일차

프로젝트 생성 & 깃 커밋 유니티 프로젝트를 깃에 커밋하고싶은데 에러가 났다 Pushing to https://github.com/kim-sunah/unity.git Enumerating objects: 21211, done. Delta compression using up to 12 threads POST git-receive-pack (chu

sunalog.tistory.com

git-lfs를 사용할 경우 일정용량 이상 올리면 돈을 내야한다해서 중간부터는 안올리고있었다;;

이번에 코육대 자유종목을 진행하면서 안됐던 부분 마저 보충하고 그래도 기껏 만들었는데 봐줬음 싶어서 올려봤다ㅎㅎ

화면 기록 2023-10-03 오전 6.53.58.mov
0.56MB

<설명>

카드찾기 게임

30초 안에 12개의 카드중에 같은 카드 2장씩을 맞춰서 모든 카드가 사라지게 하면 이기는 게임

 

 

프로젝트 생성 & 깃 커밋

 

유니티 프로젝트를 깃에 커밋하고싶은데 에러가 났다

Pushing to https://github.com/kim-sunah/unity.git
Enumerating objects: 21211, done.
Delta compression using up to 12 threads
POST git-receive-pack (chunked)
error: RPC failed; curl 55 Failed sending data to the peer
send-pack: unexpected disconnect while reading sideband packet
Total 21210 (delta 12414), reused 21208 (delta 12414), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

git config 에서 설정한 http.postBuffer값보다 크기가 큰 파일이 포함되어있어서 그렇다고 한다.

 

해결방법

1. git-lfs 설치

m2

brew install git-lfs

2. git 전송시 단일파일 최대 허용크기 늘리기

500MB로 늘렸음

git config --global http.postBuffer 524288000

그럼에도!

또다른 에러가 뜬다

Pushing to https://github.com/kim-sunah/unity.git
Enumerating objects: 21211, done.
Delta compression using up to 12 threads
Total 21210 (delta 12414), reused 21208 (delta 12414), pack-reused 0
POST git-receive-pack (514137034 bytes)
remote: warning: File rainRtan/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/burst-llvm-15.dll is 51.86 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB        
remote: warning: File rainRtan/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/hostmac/dsymutil is 71.79 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB        
remote: warning: File rainRtan/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/libburst-llvm-10.dylib is 74.65 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB        
remote: warning: File rainRtan/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/libburst-llvm-15.so is 65.31 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB        
remote: error: Trace: dfcbe3c53584b63b3579896070c116c47e540bb13498190b86f9b98abfdac6cd        
remote: error: See https://gh.io/lfs for more information.        
remote: error: File rainRtan/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/libburst-llvm-15.dylib is 119.37 MB; this exceeds GitHub's file size limit of 100.00 MB        
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.        
To https://github.com/kim-sunah/unity.git
 ! [remote rejected]   main → main (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/kim-sunah/unity.git'

최대 전송용량을 늘려고 그냥 git hub에서는 100MB이상의 파일은 올릴수 없댄다

 

블로그만 20개는 넘게본듯 

 

해결방법2!

리포지토리 생성시 개발언어를 unity로 꼭 설정할것!

 

1. 해당 디렉토리로 이동

2. git lfs install

3. git reset HEAD^

    매우 중요! 실패한 대용량 파일 commit 내용의 초기화

4. git lfs track '대용량 파일 이름'

     매우중요!

    나의 경우 대용량 파일의 경로가 "My project/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/libburst-llvm-15.dylib" 였는데 

   git lfs track "./My project/Library/PackageCache/com.unity.burst@1.8.7/.Runtime/libburst-llvm-15.dylib"로 했을때 트래킹이 안돼서 확장자를 사용했다.

# 특정 파일을 lfs로 관리
	git lfs track "./images/img.psd"
# 특정 확장자를 가진 파일을 lfs로 관리
	git lfs track "*.확장자"    
# 특정 폴더 이하의 파일을 lfs로 관리
	git lfs track "/myfolder/**"

5. git add .gitattributes

6. git add 대용량 파일의 이름

    매우 중요!

    지금은 유니티 신규프로젝트를 커밋하고싶은것이므로 

    git add *

    를 사용

7. git commit -m "커밋메세지"

8. git push

   -오류나면 push뒤에 스페이스하고 --force 추가후 다시 실행해보기

 

가끔 블로그보면 "" 대신 '' 를 쓰는곳도 있던데 나는 ""를 썼다

 

 

    

오늘의 목표 : 개발환경 셋팅

오....그래도 플로터보다 친절해

맥 다운로드 허브 링크도 줬어...(감동...)

 

https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe?_ga=2.197600431.1066071928.1631537679-831002153.1627910894

 

https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.dmg

 

근데 내 컴퓨터 m2프로인데 다운로드 시간 1시간 실화냐...

점점 늘어나더니 시작을 1시에 했는데 끝나는건 4시였다...ㄷㄷ

라이센스

무료로 받으면 간단하긴 하지만 1달 짜리라서 나는 1년짜리 학생 라이센스를 발급받았다

졸업했지만 방통대 메일은 개발자에게 항상 유용하다!

unity 설치

맥이라서 그런진 모르겠지만 나는 따로 설정하지 않아도 왼쪽 하단에 알아서 깔려지더라

괜히 이것저것 만지지말고 얌전히 기다리면 된다

 

끝!

 

와!

게임을 5개나 만든대!

두큰두큰

1. 친환경 빗물받는 르탄이

2. 풍선을 구해라

3. 고양이 밥주기

4. 르탄이 카드 뒤집기

5. 주변 기능 학습

기깔나게 만들어서 돈을 벌어주마 (머니머니)

유니티 강의를 수강신청했다

수강 이유

  1.  부수입을 얻고싶었다
    간단한 게임을 만들고 광고 붙여서 1000원 2000원이라도 벌어보고싶었다.운영 방식은 모르겠지만 서버비만 내면되지 않을까?하는 가벼운 마음으로 시작!
  2. 공짜!
    정확히 말하면 아예 공짜는 아니고 내일배움 카드에 들어있는 적립금(?) 에서 차감되고 자기부담금 49,000원이 들긴 한다.
    하지만 자기부담금도 수료후에는 돌려주니 열심히만 하면 공짜가 아닐까?

  3. 강의스타일이 맘에 들었다
    대표님 강의밖에 듣지 않았지만 다른 강의들에 비해 졸립지도 않고 재밌었다.

목표

포트폴리오에 내가 개발한 게임 넣고 매달 부수입 얻기!

+ Recent posts