서버
전용서버를 만들어 봅시다.
스팀설치
일단 Steamcmd를 설치.
sudo apt-get install lib32gcc1
이제 http://board.pathea.net/index.php?topic=6639.0
설치 및 업데이트 명령은
steamcmd +login username password +force_install_dir /home/steam/apps +"app_update 237870" validate +quit
뜻은
- 스팀커맨드 실행
- 로그인
- 게임폴더 설정
- 앱업뎃
- 확인
- 종료
XVFB설치
유니티 게임을 서버형태로 돌리려면 Xvfb가 필요하다. 1)
sudo apt-get install libglu1 xvfb libxcursor1
실행은 24비트 혹은 32비트 컬러모드로 해야한다.
방화벽열기
게임에서 포트 UDP '9900'-'9915', TCP 8800 - 8815 , '8888'-'8903' 를 사용한다. 공유기를 사용중이라면 'TCP/UDP'로 포트포워딩을 해준다.
서버실행
실행은
screen -L -A -m -d -S PE_screen_label ./PE_Server.x86 -batchmode 32 "" your_personel_name your_name_in_lobby_list "your servername" patheaseed 260 0 9900 True 6789 1 1 3 1
에러! 64비트 서버의 경우 에러가 날 수 도 있는데
error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
./Server/PE_Server.x86: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory
sudo apt-get install libxcursor1:i386 libxrandr2:i386 libglu1-mesa:i386
PLANET EXPLORER 플래닛 익스플로러 행성탐험가 한글 위키 |
---|
아무나 고칠 수 있다 |