# This script starts the UvA_Trilearn_2003 team. When player numbers are
# supplied before the (optional) host-name and team-name arguments only
# these players are started, otherwise all players are started.
# Usage: start.sh
#
# Example: start.sh all players default host and name
# Example: start.sh machine all players on host ‘machine’
# Example: start.sh localhost UvA all players on localhost and name ‘UvA’
# Example: start.sh 127.0.0.1 UvA all players on 127.0.0.1 and name ‘UvA’
# Example: start.sh 1 2 3 4 players 1-4 on default host and name
# Example: start.sh 1 2 remote players 1-2 on host ‘remote’
# Example: start.sh 9 10 remote UvA players 9-10 on host remote and name ‘UvA’
# Example: start.sh 0 start coach on default host
set wait = 0
set host = “localhost”
set team = “Crisis_Storm”
set dir = “src”
set prog = “${dir}/trilearn_player”
set coach = “${dir}/trilearn_coach”
set pconf = “${dir}/player.conf”
set fconf = “${dir}/formations.conf”
echo “*****************************************************************”
echo “* UvA_Trilearn 2003 – University of Amsterdam, The Netherlands *”
echo “* Base code version *”
echo “* Created by: Jelle Kok *”
echo “* Research Coordinator: Nikos Vlassis *”
echo “* Team Coordinator: Frans Groen *”
echo “* Copyright 2000-2001. Jelle Kok and Remco de Boer *”
echo “* Copyright 2001-2002. Jelle Kok *”
echo “* Copyright 2002-2003. Jelle Kok *”
echo “* Copyright 2007-2008. Jelle Kok and Mahdi Nami Damirchi *”
echo “* All rights reserved. *”
echo “*****************************************************************”
#first check if the last two supplied arguments are no numbers and represent
# or
if( $#argv > 0 && ($argv[$#argv] !~ [0123456789]* || $argv[$#argv] =~ *.* ) ) then
@ second_last = $#argv – 1
if( $#argv > 1 && ($argv[$second_last] !~ [0123456789]* || $argv[$second_last] =~ *.* ) ) then
set host = $argv[$second_last]
set team = $argv[$#argv]
else
set host = $argv[$#argv]
endif
endif
#then if first argument is a number, start only the players with the numbers
#as supplied on the prompt, otherwise start all players.
if( $1 =~ [0123456789]* && $1 !~ *.* ) then
echo “$argv[$#argv]”
echo “$1″
foreach arg ($argv)
if( $arg =~ [123456789]* && $arg !~ *.*) then
${prog} -num ${arg} -host ${host} -team ${team} -f ${fconf} -c ${pconf} &
sleep $wait
else if( $arg =~ [0]* ) then
sleep 2
${coach} -host ${host} -team ${team} -f ${fconf} &
endif
end
else
set i = 1
while ( ${i} <12 )
${prog} -number ${i} -host ${host} -team ${team} -f ${fconf} -c ${pconf} &
sleep $wait
@ i++
end
sleep 2
${coach} -host ${host} -team ${team} -f ${fconf} &
endif
哈哈~找到组织的博客了
[回复]
freetstar
回复:
四月 1st, 2011 at 9:44 上午
额,,,我只是组织的一员而已
[回复]
知道怎么修改默认(以前设置)的评论通知的邮箱吗
我以前的是126的,最近老是有问题,雷鸟上也经常连不上,我的博客如果有人留言也收不到通知,所以我想换一个邮箱,在设置—》常规里的是老早以前设置的gmail,所以搞不清楚接收通知的邮箱是在哪里可以设置??
[回复]
freetstar
回复:
三月 5th, 2011 at 9:30 下午
@jasonllinux, 设置好gmail之后好像还是要配置smtp服务的,有个config-smtp的wp插件,
[回复]
大哥,今天有没小喝几杯啊!
[回复]
freetstar
回复:
二月 11th, 2011 at 11:07 上午
@Mucid, 喝多了难受,也没人灌我
[回复]
Mucid
回复:
二月 11th, 2011 at 11:08 上午
@freetstar, 哟系,稍微几瓶也只够你漱口嘛,要姐姐陪你哈
[回复]
freetstar
回复:
二月 11th, 2011 at 11:09 上午
@Mucid, 要姐姐在了我连酒都不看一眼,姐姐比酒魅力大
[回复]
Mucid
回复:
二月 11th, 2011 at 11:11 上午
@freetstar, 嗦嘎,到底是怕姐姐还是姐姐不让你喝啊
[回复]
freetstar
回复:
二月 11th, 2011 at 11:14 上午
@Mucid, 是姐姐魅力大,酒的魅力远比不上姐姐阿
[回复]
Mucid
回复:
二月 11th, 2011 at 11:17 上午
@freetstar, 一看就醉了是吧
[回复]
freetstar
回复:
二月 11th, 2011 at 11:38 上午
@Mucid, 可以这么理解
[回复]
这个仿chrome看着不错喔
[回复]
freetstar
回复:
二月 11th, 2011 at 10:41 上午
@米波, 挺好的吧
[回复]
Happy new year 兔 u
[回复]
跑到你地盘上来,新年快乐!
[回复]
star兄,新年快乐哈,奶牛来送牛奶啦~~~~
[回复]
freetstar
回复:
二月 3rd, 2011 at 11:00 上午
@奶牛, 多来串门阿,新年快乐
[回复]
新年快乐!
[回复]
freetstar
回复:
二月 3rd, 2011 at 11:00 上午
@Heiher, 新年快乐
[回复]
PR更新咯,star兄滴是2,跟奶牛一样,哈哈,灵亦那个是3,更强势啊~~~
[回复]
freetstar
回复:
一月 21st, 2011 at 11:50 上午
@奶牛,
大早晨起来就收到好消息了,哈哈,tks.
恭喜咱3个都升了
[回复]
jiechic
回复:
一月 21st, 2011 at 10:36 下午
@奶牛, 灵亦那个更新的真快呢啊。每天坚持出一两篇的人。
[回复]
你的Blog又换主题了!发现你最近的技术长进好多啊!佩服!
[回复]
freetstar
回复:
一月 18th, 2011 at 10:47 下午
没有一个很舒服的阿~技术还是那些东西了..
[回复]
我凹凸了~怎么说你这主题我看了就想点标签~好生熟悉,原来是Chrome的主题!哈哈,不错不错!
[回复]
freetstar
回复:
一月 9th, 2011 at 8:02 下午
@Rabbit_52, 哈,吓你一跳吧
[回复]
做了一下你的博客的负载测试,http://loadimpact.com/result/www.freetstar.com-31856b8bddb2eb28e4a4c19bd293a3f3
[回复]
freetstar
回复:
一月 7th, 2011 at 11:19 下午
@Heiher, 多谢
去看看,估计结果很惨
[回复]
弱弱的问一下博主,Ubuntu中可以全局翻墙么?不会弄,求指教
[回复]
freetstar
回复:
十二月 27th, 2010 at 7:30 下午
@Rabbit_52, 弄VPN阿,全局翻墙…
[回复]
Rabbit_52
回复:
十二月 29th, 2010 at 9:40 上午
@freetstar, 我只有SSH,可以全局翻么?
[回复]
freetstar
回复:
十二月 29th, 2010 at 11:13 上午
@Rabbit_52, ssh加插件不做任何修改,应该是浏览器内全局翻
[回复]
Rabbit_52
回复:
十二月 29th, 2010 at 11:36 上午
@freetstar, 浏览器是可以全局翻,但是我想系统的所有应用都翻,成不成?
[回复]
freetstar
回复:
十二月 29th, 2010 at 12:06 下午
@Rabbit_52, 貌似只有vpn了。。。好像还有个gnome的全局代理设置,你看看吧,我没有整过
[回复]
前来踩点。
[回复]
我的Blog更新地址啦,请访问并加友链:
http://www.richardma.org
[回复]
freetstar
回复:
十二月 15th, 2010 at 12:06 下午
收到了~马上更新
[回复]
[回复]
freetstar
回复:
十二月 4th, 2010 at 9:41 上午
@beicheng, 不强大。。好的,马上添加
[回复]
beicheng
回复:
十二月 4th, 2010 at 12:15 下午
@freetstar,
[回复]
不知道为什么,你的首页,在我的chromium下,总是被拉宽了。下方都有个滚动条了。
[回复]
freetstar
回复:
十一月 28th, 2010 at 12:35 下午
@jiechic, 默认宽屏显示的啊
[回复]
jiechic
回复:
十一月 29th, 2010 at 12:11 上午
@freetstar, 不是正常的宽屏显示啦,说不清楚,在留言版这个板块,界面不会出现过宽,下方没有滚动条,然后就首页有滚动条,界面被拉宽的情况。
[回复]
freetstar
回复:
十一月 29th, 2010 at 8:55 上午
@jiechic,
我有点晕,待我整整看
[回复]
Dear freestar,刚才在浏览博客时发现一个小问题:点击分类目录中的“生活”之后,页面会变得很宽。换用了Chrome浏览器也还是这样。可否改一下呢?
[回复]
freetstar
回复:
十一月 19th, 2010 at 9:08 下午
@Tao Zhu, 我选择的是默认宽屏啊。。。右上角有窄屏显示
[回复]
路过一下,表示支持,在精神上(似乎有点错位…)
[回复]
我还以为你是在硕博楼住了呢!
好吧,给个qq:63722984
有ubuntu方面的问题还得向你请教啊!
[回复]
freetstar
回复:
十月 17th, 2010 at 7:19 下午
哦~我的269316596
一会加去
[回复]
哎呀,同是师大研究生的过来问好,俺是男生应该在一个楼住吧
哈哈~~
请问您文中提到的那些课件可否借我学习学习!
(重复发言了害怕看不到)
[回复]
freetstar
回复:
十月 16th, 2010 at 2:54 下午
额,我还没有上研究生呢。。文中的啥课件呢,学长也用ubuntu阿,留个联系方式阿
[回复]
订阅了
,顺便来留言
[回复]
freetstar
回复:
十月 5th, 2010 at 5:30 下午
欢迎欢迎^_^
[回复]
我也来拜访一下,你都给我留言几次了,我竟然忘了添加订阅。对了。你侧边栏的推特信息是什么插件显示的?
[回复]
freetstar
回复:
九月 28th, 2010 at 7:51 下午
[回复]
好熟悉的主题,很少碰到用这个的。。。
[回复]
freetstar
回复:
九月 27th, 2010 at 8:05 下午
这个相对比较简洁大方吧
[回复]
平台我已经搭建好了现在的问题就是代码无法调出来了,先用./start.sh后用sh ./start.sh分别试了下结果如下,总之还是有问题,希望大侠指点,急啊
han@shan-laptop:~/bin/code/storm1$ ./start.sh
bash: ./start.sh:/bin/tcsh:损坏的解释器: 没有那个文件或目录
shan@shan-laptop:~/bin/code/storm1$ sh ./start.sh
*****************************************************************
* UvA_Trilearn 2003 – University of Amsterdam, The Netherlands *
* Base code version *
* Created by: Jelle Kok *
* Research Coordinator: Nikos Vlassis *
* Team Coordinator: Frans Groen *
* Copyright 2000-2001. Jelle Kok and Remco de Boer *
* Copyright 2001-2002. Jelle Kok *
* Copyright 2002-2003. Jelle Kok *
* Copyright 2007-2008. Jelle Kok and Mahdi Nami Damirchi *
* All rights reserved. *
*****************************************************************
./start.sh: 56: Syntax error: “(” unexpected (expecting “fi”)
shan@shan-laptop:~/bin/code/storm1$
你说是脚本可是我实在不知道从何下手……
[回复]
freetstar
回复:
九月 25th, 2010 at 4:42 下午
给我发过来吧。。。发邮箱里就好
[回复]
Crisis_storm
回复:
四月 23rd, 2011 at 12:47 下午
@freetstar, 同求啊!你就不能帮忙把解决办法贴上来么?谢谢了
[回复]
Crisis_storm
回复:
四月 23rd, 2011 at 12:51 下午
@fly521520sky, 请问你是怎么成功解决这个问题的呀?我也遇到了相同的问题。。谢谢了
[回复]
freetstar
回复:
四月 23rd, 2011 at 1:39 下午
@Crisis_storm, tcsh是比较少用的shell解释器。。可以给我发到邮箱理我给你改改。
在关于界面有我的邮箱
[回复]
Crisis_storm
回复:
四月 23rd, 2011 at 2:03 下午
@freetstar, robocup2d的UVA球队代码:trilearn_base_sources-3.4-update,
网上很多的,用的都是start.sh,就在代码里面:
/trilearn_base_sources-3.4-update$ ls
aclocal.m4 config.log depcomp Makefile.am src
authors config.status install Makefile.in stamp-h1
ChangeLog config.sub install-sh missing startall.sh
config.guess configure libtool mkinstalldirs start.sh
config.h configure.ac ltmain.sh news windows
config.h.in copying Makefile readme
看到start.sh没?谢谢了
[回复]
freetstar
回复:
四月 23rd, 2011 at 2:17 下午
@Crisis_storm, 我是说start。sh文件的内容。有什么直接给我发邮件吧
[回复]
Crisis_storm
回复:
四月 23rd, 2011 at 2:32 下午
@freetstar, 全部内容如下:
#!/bin/tcsh
# This script starts the UvA_Trilearn_2003 team. When player numbers are
# supplied before the (optional) host-name and team-name arguments only
# these players are started, otherwise all players are started.
# Usage: start.sh
#
# Example: start.sh all players default host and name
# Example: start.sh machine all players on host ‘machine’
# Example: start.sh localhost UvA all players on localhost and name ‘UvA’
# Example: start.sh 127.0.0.1 UvA all players on 127.0.0.1 and name ‘UvA’
# Example: start.sh 1 2 3 4 players 1-4 on default host and name
# Example: start.sh 1 2 remote players 1-2 on host ‘remote’
# Example: start.sh 9 10 remote UvA players 9-10 on host remote and name ‘UvA’
# Example: start.sh 0 start coach on default host
set wait = 0
set host = “localhost”
set team = “Crisis_Storm”
set dir = “src”
set prog = “${dir}/trilearn_player”
set coach = “${dir}/trilearn_coach”
set pconf = “${dir}/player.conf”
set fconf = “${dir}/formations.conf”
echo “*****************************************************************”
echo “* UvA_Trilearn 2003 – University of Amsterdam, The Netherlands *”
echo “* Base code version *”
echo “* Created by: Jelle Kok *”
echo “* Research Coordinator: Nikos Vlassis *”
echo “* Team Coordinator: Frans Groen *”
echo “* Copyright 2000-2001. Jelle Kok and Remco de Boer *”
echo “* Copyright 2001-2002. Jelle Kok *”
echo “* Copyright 2002-2003. Jelle Kok *”
echo “* Copyright 2007-2008. Jelle Kok and Mahdi Nami Damirchi *”
echo “* All rights reserved. *”
echo “*****************************************************************”
#first check if the last two supplied arguments are no numbers and represent
# or
if( $#argv > 0 && ($argv[$#argv] !~ [0123456789]* || $argv[$#argv] =~ *.* ) ) then
@ second_last = $#argv – 1
if( $#argv > 1 && ($argv[$second_last] !~ [0123456789]* || $argv[$second_last] =~ *.* ) ) then
set host = $argv[$second_last]
set team = $argv[$#argv]
else
set host = $argv[$#argv]
endif
endif
#then if first argument is a number, start only the players with the numbers
#as supplied on the prompt, otherwise start all players.
if( $1 =~ [0123456789]* && $1 !~ *.* ) then
echo “$argv[$#argv]”
echo “$1″
foreach arg ($argv)
if( $arg =~ [123456789]* && $arg !~ *.*) then
${prog} -num ${arg} -host ${host} -team ${team} -f ${fconf} -c ${pconf} &
sleep $wait
else if( $arg =~ [0]* ) then
sleep 2
${coach} -host ${host} -team ${team} -f ${fconf} &
endif
end
else
set i = 1
while ( ${i} <12 )
${prog} -number ${i} -host ${host} -team ${team} -f ${fconf} -c ${pconf} &
sleep $wait
@ i++
end
sleep 2
${coach} -host ${host} -team ${team} -f ${fconf} &
endif
[回复]
Crisis_Storm
回复:
四月 24th, 2011 at 3:31 下午
@freetstar, 我都贴上来了,帮忙看下吧,谢谢了
[回复]
Crisis_Storm
回复:
四月 25th, 2011 at 11:57 下午
@freetstar, 话说我都贴上来好久了。。你就不能帮忙看看么?怎么没音信了?~~~~(>_<)~~~~ 谢谢了~~~
[回复]
freetstar
回复:
四月 26th, 2011 at 12:00 上午
@Crisis_Storm, 还是qq联系吧。。
[回复]
Crisis_Storm
回复:
四月 26th, 2011 at 12:16 上午
@freetstar, 木有你的QQ号呀,麻烦贴一下吧
[回复]
留下脚印再走 呵呵
[回复]
博主,你怎么联系啊.我想让你教我下怎么让wordpress自动发邮件.我建不上sendmail…
[回复]
freetstar
回复:
九月 6th, 2010 at 4:45 下午
加gtalk吧:lgxwqq@gmail.com
wp发邮件可以用插件阿,mail-to-commentor
[回复]
连长啊,添加可以订阅到QQ邮箱吧…- –
[回复]
freetstar
回复:
九月 6th, 2010 at 11:43 上午
http://feed.feedsky.com/FreeTstar
给你这个链接,直接点进去,在左侧栏有qq的订阅的
[回复]
VPS用起来怎么样的
[回复]
球球的足迹遍布角落呀
[回复]
freetstar
回复:
八月 9th, 2010 at 9:47 上午
那是,^_^
[回复]
都不知道啥时候换了主题了~
[回复]
freetstar
回复:
八月 7th, 2010 at 8:49 上午
?没有换啊?
[回复]
hesiway
回复:
八月 7th, 2010 at 3:42 下午
这个黑色的,之前是啥颜色?
[回复]
freetstar
回复:
八月 7th, 2010 at 6:32 下午
没注意- -…..
[回复]
纠结,刻录下来的乌班图光盘到现在都还没用~ 囧囧~
[回复]
freetstar
回复:
八月 2nd, 2010 at 7:35 下午
哈~可以先来个虚拟机
[回复]
看了博主的文章列表,就像发现了一座金矿,激动不已。希望能相互获得营养,共同进步。
[回复]
呼呼,第一次过来,欢迎回访哦~
[回复]
freetstar
回复:
七月 28th, 2010 at 7:44 下午
好的~
[回复]
不错耶~ 呵呵~
[回复]
freetstar
回复:
七月 28th, 2010 at 7:40 下午
O(∩_∩)O~O(∩_∩)O谢谢
[回复]
今天特来拜读阁下的博客
文章写得很好!
[回复]
freetstar
回复:
七月 24th, 2010 at 9:33 下午
谢谢了
[回复]
博主很帅,很有才。欢迎回访兔子宝贝博客。
[回复]
freetstar
回复:
七月 23rd, 2010 at 8:45 下午
好
[回复]
Rabbit_52
回复:
十二月 27th, 2010 at 4:19 下午
@tuzibaobei, 兔子宝贝,受降与我吧!我是超级兔子!哈哈哈
[回复]
能否交换个链接?
[回复]
freetstar
回复:
七月 18th, 2010 at 1:44 下午
非常可以
[回复]
Star我以前的“爱插件”挂了,懒得重新搞了,重新搞了个,你把链接的名字换换吧
[回复]
freetstar
回复:
七月 16th, 2010 at 8:21 下午
好的,我换1个
[回复]
专业linux博客?
[回复]
freetstar
回复:
七月 13th, 2010 at 4:44 下午
linux 爱好者的一个blog..哈哈
[回复]
多向你学习!
[回复]
freetstar
回复:
七月 12th, 2010 at 9:03 下午
应该是我多向你们学习,我接触linux的东西还不深
[回复]
能否交换一下链接啊?我的pr为2。已经做好你的链接了。
多谢
[回复]
freetstar
回复:
六月 19th, 2010 at 11:53 下午
好的,
[回复]
换个链接,你的我弄好了
[回复]
freetstar
回复:
六月 19th, 2010 at 6:55 下午
好的,^ ^
[回复]
BoKeam
回复:
六月 19th, 2010 at 7:54 下午
帮我改成BoKeam’s Blog吧,统一下
[回复]
freetstar
回复:
六月 19th, 2010 at 8:37 下午
好的
[回复]
轻轻的一声问候,不想惊忧您,在节日到来之际,祝您:端午节快乐!
[回复]
freetstar
回复:
六月 16th, 2010 at 3:44 下午
节日快了
[回复]
grepsu
回复:
六月 24th, 2010 at 10:04 上午
端午节是祭祀的日子,这一天和清明一样是不能互祝节日快乐的。
[回复]
freetstar
回复:
六月 24th, 2010 at 5:26 下午
额。。。
[回复]
有三个
[回复]
freetstar
回复:
六月 15th, 2010 at 6:18 下午
@灵亦rEd,
悲剧- -!你用的ff吧,
[回复]
灵亦rEd
回复:
六月 15th, 2010 at 6:20 下午
@freetstar, 用的是谷歌
刷新一下又变成一个了
[回复]
freetstar
回复:
六月 15th, 2010 at 6:22 下午
@灵亦rEd,
搞不懂阿,我是html笨鸟…
[回复]
貌似是插件坏了,IE下都没正常显示
[回复]
freetstar
回复:
六月 15th, 2010 at 12:43 下午
哪个没正常显示阿
[回复]
ff for ubuntu不能很好的显示你的标签云,谷歌浏览器则没问题
看这个http://i3.6.cn/cvbnm/39/2c/4a/52da1480bb1b3e72b8368f0ef0fafdb6.png
[回复]
freetstar
回复:
六月 14th, 2010 at 7:52 下午
确实是,ff都不行..
好的,我去看看
[回复]
我的邮件回复?
[回复]
freetstar
回复:
六月 14th, 2010 at 1:18 下午
@灵亦rEd(ubuntu),
恩,在你blog回复之后没收到邮件
[回复]
奶牛这几天要出去玩,上网可能不是很方便,这里预祝你端午节快乐哈
[回复]
freetstar
回复:
六月 13th, 2010 at 9:59 上午
好好玩哦,我就宅了
[回复]
呼呼,奶牛竟然是第一个啊,
[回复]
freetstar
回复:
六月 13th, 2010 at 9:58 上午
@奶牛,
沙发给你喽
[回复]