EnergyMech

Forum | Features | Download | Addons | Help | #emech | Links | About | Contact

Versions | News Archive | Installing | Linking | Configuration | Commands | FAQ


The time is now Thursday, April 7th, 2022, 12:23pm

Create account ]   User/Pass   


Forum Index :: Generic Discussion :: Trivia in 3.0.2 :: Reply to this topic

Author
 
eaonflux
Posted :: 7:40am, Thu, Aug 30, 2007     Subject :: Trivia in 3.0.2

(anonymous)
 
    Well it goes like this, only "SET QFILE ./questions" must be "SET QFILE questions"
Don't use the "./" in your mech.conf file.
i created a randfiles dir and added this to mine mech.conf;

SET QFILE randfiles/questions

but first do this below.
Agonizer
Posted :: 9:28pm, Thu, Feb 9, 2006 Subject :: Trivia:


Posts: 48
1) copy the questions file into the bots dir (i.e. as 'questions').

2) you need do build the 'mkindex' utility (trivia/mkindex.c):
$ gcc -O2 trivia/mkindex.c -o mkindex

This will create the mkindex binary in the bots dir.

3) Build the index over the question file (the generated file is
named '<file>.index', i.e. questions.index):
$ ./mkindex questions
49124 entries indexed

4) Start the bot and tell the location of the question file:
SET QFILE ./questions <== doesn't work in 3.0.2
SET QFILE questions <== this works in 3.0.2

you can also add this to your mech.conf file.

5) TRIVIA START
Trivia starting! Get ready...
In which county does the River Mersey rise


There you go.

 

Copyright © 2000-2005 Proton,  All rights reserved. Last edited August 16th, 2005.
HTML 4.01 CSS