• 車種別
  • パーツ
  • 整備手帳
  • ブログ
  • みんカラ+

Sousuke(。・ω・)ゞのブログ一覧

2010年07月04日 イイね!

ACE2 Update Script

ACE2のアップデートスクリプト

主な変更場所は、以下のとおり、RSYNCのタイムアウトが長かったので、15秒にしました。

ARMA_DIR:ARMA2本体があるパスを指定します。
ARMA_SYNC_DIR:ACE2のパッチを落とす作業ディレクトリ。ARMA2DIRとは別のディレクトリを指定します。



#!/bin/bash
#
# ACE Update script for linux
#
# by Dr.Pulp - www.FAKKer.de
#
#
#
# READ FIRST!!!
#
# In order to use this script you need to have gunzip and rsync installed!
#
# You will also need two seperate folders to use the advantage of rsync,
# because otherwise "tolower" will alter the filenames and rsync will download
# them again everytime you use the script.
#
# After the script finish succsessfully, you will have new folders depending of the number
# of mods you like to synchronize. the folders a called like the mod with a leading @.
#
##################################
# Configuration start #
##################################

# Directory where the arma server is installed
ARMA_DIR=/home/arma

# Direcotry where rsync stores the data. DON'T use a subdirectory of your arma directory!
ARMA_SYNC_DIR=/home/arma_data

# List of available Mirrors. You can add new mirrors, or delete ones that are no longer functioning. Leave a blank between mirrors!
MIRRORLIST=(dev-heaven.net s01.6thsense.eu s02.6thsense.eu 64.34.164.115 arma2.armagoons.com 213.245.0.237 six.bssnet.dk zeus2.zeus-community.net)

# Mods you like to synchronize with this script. For a complete list of available mods look at http://updater.dev-heaven.net/main !
# You can use every mod listet there -> just use the modname without @. Leave a blank between mods!
MODS="ace acex cba acex_pla fran_quesh_kibrul gl4 isla_duala japahto jtd namalsk panthera sap_everon six"

##################################
# Advanced Configuration #
##################################
# Define some of the OS tool the script uses. If you encounter an error you can check is your pathnames may differ with the type command. example: type rm
# this will tell you your exact path to your rm. in case it differs, edit this part...otherwise leave it as it is.
RM="/bin/rm -r"
RSYNC="/usr/bin/rsync --times --timeout=15 -O --no-whole-file -r --delete --progress -h --exclude=.rsync rsync://"
CP="/bin/cp -r"
GUNZIP="/bin/gunzip -r"
##################################
# Configuration end #
##################################

# Function: random mirror selection
RANDOM_MIRROR() {
MIRRORCOUNT=${#MIRRORLIST[*]}
MIRRORCOUNT=`expr $MIRRORCOUNT - 1`
MIRRORCOUNT=`expr 32767 / $MIRRORCOUNT`
MIRROR=${MIRRORLIST[$(($RANDOM/$MIRRORCOUNT))]}
}

# Loop: deleting folder, rsync, decompress ad copy for each mod you selected
for MOD in $MODS
do
$RM $ARMA_DIR/@$MOD
INFOSYNC='Starting to synchronize '$MOD'!'
echo ' ----------------'
echo $INFOSYNC
OK=1
BAILOUT=0
until [ "$OK" -lt "1" ]
do
RANDOM_MIRROR
$RSYNC$MIRROR/rel/$MOD/./.pack/ ${ARMA_SYNC_DIR}/@$MOD
OK=$?
BAILOUT=`expr $BAILOUT + 1`
if [ "$BAILOUT" -gt 10 ]
then
ENDE='There is a problem with rsync of mod '$MOD'! Aborting Script to prevent a loop! Check your directorys, user-rights or maybe just all mirrors are full at the moment'
echo $ENDE
exit
fi
done
INFOCOPY='Copying '$MOD' Mod to the destination folder!'
echo $INFOCOPY
$CP ${ARMA_SYNC_DIR}/@$MOD ${ARMA_DIR}
INFOZIP='Decompressing '$MOD' Mod!'
echo $INFOZIP
$GUNZIP ${ARMA_DIR}/@$MOD/*
done

# Converting filenames to lower case letters
${ARMA_DIR}/tolower

# copying keys, mpmissions and userconfig to the right folders
for MOD in $MODS
do
if test -e ${ARMA_DIR}/@$MOD/keys
then $CP ${ARMA_DIR}/@$MOD/keys/* ${ARMA_DIR}/keys
fi
if test -e ${ARMA_DIR}/@$MOD/mpmissions
then $CP ${ARMA_DIR}/@ace/mpmissions/* ${ARMA_DIR}/mpmissions
fi
if test -e ${ARMA_DIR}/@$MOD/userconfig
then
if test -e ${ARMA_DIR}/userconfig/$MOD
then
$CP ${ARMA_DIR}/@$MOD/userconfig/* ${ARMA_DIR}/userconfig/$MOD/
else
/bin/mkdir -p ${ARMA_DIR}/userconfig/$MOD
$CP ${ARMA_DIR}/@$MOD/userconfig/* ${ARMA_DIR}/userconfig/$MOD/
fi
fi
if test -e ${ARMA_DIR}/@$MOD/store/userconfig
then
if test -e ${ARMA_DIR}/userconfig/$MOD
then
$CP ${ARMA_DIR}/@$MOD/store/userconfig/* ${ARMA_DIR}/userconfig/$MOD/
else
/bin/mkdir -p ${ARMA_DIR}/userconfig/$MOD
$CP ${ARMA_DIR}/@$MOD/store/userconfig/* ${ARMA_DIR}/userconfig/$MOD/
fi
fi
done
exit

Posted at 2010/07/04 15:32:09 | コメント(0) | トラックバック(0) | ARMA2 Server | パソコン/インターネット
2010年06月27日 イイね!

多人数でのボイスチャットに最適なMumble

多人数でのボイスチャットに最適なMumbleFPSなど多人数でのボイスチャットに最適なMumbleを紹介。

TeamSpeakやSkypeなどがありますが、それらよりもすばらしい機能を持っています。

以下の動画は、その特徴のひとつである遅延の少なさが分かる動画です。
一番最後が、Mumbleとなっています。




サーバを構築しない方はこちらの手順どおり、クライアント側だけをインストール
http://sourceforge.jp/magazine/10/03/11/093256/2

参考チュートリアル



WindowsでMumbleサーバを構築する場合、スーパーユーザのパスワードの設定する為に以下の
コマンドを実行します。


C:\Program Files\Mumble\murmur.exe -supw スーパーユーザのパスワード※1


※1:スーパーユーザのパスワードを記載します。

コマンドを実行すると以下のようなメッセージが表示されますが、気にせずに。

2008-03-03 0:00:00.000 Superuser password set on server1


パスワードが変わったら、ユーザー名にsuperuserを入力してログインします。

ポートは、デフォルトでTCPとUDP
64738 となっています。

Posted at 2010/06/27 14:02:07 | コメント(0) | トラックバック(0) | ARMA2 Server | パソコン/インターネット
2010年06月20日 イイね!

ARMA2 Linux Server 構築

作業用の備忘録です。

・Windowsにインストール済みのARMA2のフォルダ一式をDVD等にコピー
 (このときパッチを当てておくとよい)
 デフォルトだと C:\Program Files\Bohemia Interactive\ArmA 2 の配下全部

・Linux用のサーバを取得し、C:\Program Files\Bohemia Interactive\ArmA 2 直下に配置。
もちろん、中身を解凍して。

http://www.arma2.com/support/updates/file/226-arma2server-1-05-62021-tar.html?lang=en


./install

ファイル名とかが小文字になります。独自に作ったミッション、アドオンなども小文字化しておきます。

あとは、以下のコマンドでとりあえず起動します。

./server


例:

./server -mod=@aaa\;@bbb\;@ccc -port=2302 -cfg=arma2.cfg -config=server.cfg -netlog -cpuCount=6


http://www.kellys-heroes.eu/files/tutorials/dedicated/

http://seedit.sourceforge.net/doc/2.1/install_jp/install.html#SECTION00032000000000000000

Posted at 2010/06/20 21:45:26 | コメント(0) | トラックバック(0) | ARMA2 Server | パソコン/インターネット
2009年12月13日 イイね!

プロセス監視のバッチファイル

うちのサーバ用にプロセス監視のスクリプトを書きました。

今は、起動しているEXEがポートを利用しているかどうかで、生きているか否かを判断しています。
判断があまいようでしたら、こちらのツールで、ポート指定で外から監視も可能かと
http://www.microsoft.com/downloads/details.aspx?familyid=6EC50B78-8BE1-4E81-B3BE-4E7AC4F0912D&displaylang=en

好きな名前.BATのファイル名で以下のソースを作成し、EXEがある場所と同じところで
実行してください。


@echo off
setlocal
title ARMA2 Server auto restart
set EXENAME=<監視対象のEXE>
set RUNCMD=<起動させたいコマンド>


:LOOP

netstat -b | find /N "%EXENAME%" > NUL
if %ERRORLEVEL%==0 goto WAITSLEEP

:RUN
taskkill -IM %EXENAME%
echo Time: %time%, launching...
%RUNCMD% > NUL

:WAITSLEEP
ping localhost -n 60 > nul ←1分間のウエイト
goto LOOP

pause

Posted at 2009/12/13 22:01:51 | コメント(0) | トラックバック(0) | ARMA2 Server | パソコン/インターネット
2009年08月29日 イイね!

ARMA2サーバ不具合切り分け

今週半ば、急にサーバの調子が悪くなりました。

現在、原因きりわけ中。
ネットワークの設定ではなさそう。

ハード的障害なのかも。
ただし、微妙。

LANからは鯖が見えるのよね。


追記:
原因判明。
GameSpy側が悪さしてたようである。

reportingIP="arma2.master.gamespy.com";
から
reportingIP="arma2pc.master.gamespy.com";

もしくは、
//reportingIP="arma2.master.gamespy.com";
というようにコメントアウトで障害復旧しました。



Posted at 2009/08/29 10:45:07 | コメント(0) | トラックバック(0) | ARMA2 Server | 日記

プロフィール

「[整備] #サンバー 純正スローブローヒューズ交換 https://minkara.carview.co.jp/userid/137019/car/3502840/7710410/note.aspx
何シテル?   03/16 13:06
■ペット ネイチャーアクアリウムにハマって、熱帯魚買っています。 60cm水槽と30cm水槽あります。 ■ゲーム 「ARMA3」や「MikuMikuDa...

ハイタッチ!drive

みんカラ新規会員登録

ユーザー内検索

<< 2024/5 >>

   1234
567891011
12131415161718
19202122232425
262728293031 

ブログカテゴリー

リンク・クリップ

フロントブレーキダブルディスク化 
カテゴリ:その他(カテゴリ未設定)
2023/01/20 19:19:09
ボンネット内デッドニング!準備編 
カテゴリ:その他(カテゴリ未設定)
2013/09/08 21:24:21
ボンネット内デッドニング! 
カテゴリ:その他(カテゴリ未設定)
2013/09/08 21:23:17

愛車一覧

カワサキ Ninja ZX-25R SE KRT EDITION カワサキ Ninja ZX-25R SE KRT EDITION
Ninja ZX25R KRT に載ってます
ダイハツ タントエグゼカスタム ダイハツ タントエグゼカスタム
今日決めてきました。 燃費もよくなったので、楽しみです。 主に通勤用として使います
スバル サンバー スバル サンバー
トランポ専用車として2023.10.04購入。 購入時の走行距離13万8千キロ
その他 その他 その他 その他
Roland のV-Drum TD-12KX-Sです。 Girls Dead Monst ...

過去のブログ

2023年
01月02月03月04月05月06月
07月08月09月10月11月12月
2022年
01月02月03月04月05月06月
07月08月09月10月11月12月
2021年
01月02月03月04月05月06月
07月08月09月10月11月12月
2020年
01月02月03月04月05月06月
07月08月09月10月11月12月
2019年
01月02月03月04月05月06月
07月08月09月10月11月12月
2018年
01月02月03月04月05月06月
07月08月09月10月11月12月
2017年
01月02月03月04月05月06月
07月08月09月10月11月12月
2016年
01月02月03月04月05月06月
07月08月09月10月11月12月
2015年
01月02月03月04月05月06月
07月08月09月10月11月12月
2014年
01月02月03月04月05月06月
07月08月09月10月11月12月
2013年
01月02月03月04月05月06月
07月08月09月10月11月12月
2012年
01月02月03月04月05月06月
07月08月09月10月11月12月
2011年
01月02月03月04月05月06月
07月08月09月10月11月12月
2010年
01月02月03月04月05月06月
07月08月09月10月11月12月
2009年
01月02月03月04月05月06月
07月08月09月10月11月12月
2008年
01月02月03月04月05月06月
07月08月09月10月11月12月
2007年
01月02月03月04月05月06月
07月08月09月10月11月12月
2006年
01月02月03月04月05月06月
07月08月09月10月11月12月
2005年
01月02月03月04月05月06月
07月08月09月10月11月12月
ヘルプ利用規約サイトマップ
© LY Corporation