Difference between revisions of "Werewolf Tutorial"

From IRC Wiki
Jump to navigation Jump to search
(So shouldn't be under games)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Software|name=Werewolf
{{Software|name=[[Werewolf]]
|homepage=http://javatwg.sourceforge.net/
|homepage=http://javatwg.sourceforge.net/
}}
}}
Line 11: Line 11:
* [http://wiki.debian.org/Java Java run time enviroment]
* [http://wiki.debian.org/Java Java run time enviroment]


==Installation==
==Installation Part 1==
To run Werewolf, you need to install the java run time enviroment on the server that the bot will be placed on, you can do this on debian by:
To run Werewolf, you need to install the java run time enviroment on the server that the bot will be placed on, you can do this on debian by:
<pre>apt-get install openjdk-6-jre</pre>
<pre>apt-get install openjdk-6-jre</pre>
Line 22: Line 22:
*Place the files from the unzipped pircbot in it: org lib src pircbot-1.5.0
*Place the files from the unzipped pircbot in it: org lib src pircbot-1.5.0
*Place the files from the unzipped werewolf in it: werewolf.ini wolfgame.txt wolf.log werewolfgame.txt run.bat
*Place the files from the unzipped werewolf in it: werewolf.ini wolfgame.txt wolf.log werewolfgame.txt run.bat
----
Open the file from the Werewolf download named '''werewolf.ini'''. Edit the bot name, server, channel & [[NickServ]] command then save.
----
----
Once you have finished configuring your bot, cd into the Werewolf directory and enter the following command:
Once you have finished configuring your bot, cd into the Werewolf directory and enter the following command:
<pre>java -classpath .:lib/pircbot.jar org.jibble.pircbot.llama.werewolf.Werewolf [&]</pre>
<pre>nohup java -classpath .:lib/pircbot.jar org.jibble.pircbot.llama.werewolf.Werewolf &</pre>
----
----
[[Category:Games]][[Category:Tutorials]]
[[Category:Tutorials]]

Latest revision as of 22:44, 8 July 2011

Description

Werewolf is an IRC bot that moderates instances of The Werewolf Game, a detective/social game. Based on the PircBot found Here and uses a modified version of the rules found Here.

Requirements

Installation Part 1

To run Werewolf, you need to install the java run time enviroment on the server that the bot will be placed on, you can do this on debian by:

apt-get install openjdk-6-jre

Download and unzip the Werewolf game, and Pircbot.


  • Create a directory named Werewolf
  • Place the files from the unzipped pircbot in it: org lib src pircbot-1.5.0
  • Place the files from the unzipped werewolf in it: werewolf.ini wolfgame.txt wolf.log werewolfgame.txt run.bat

Open the file from the Werewolf download named werewolf.ini. Edit the bot name, server, channel & NickServ command then save.


Once you have finished configuring your bot, cd into the Werewolf directory and enter the following command:

nohup java -classpath .:lib/pircbot.jar org.jibble.pircbot.llama.werewolf.Werewolf &