This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

need help on a trivia script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
B
BigBen
Voice
Posts: 21
Joined: Sat Oct 07, 2006 6:49 pm

need help on a trivia script

Post by BigBen »

i got this one trivia script, and i put the files in the right place, and i put the trivia.questions file in C:Trivia-Questions\trivia.questions and i get
C:Trivia-Questionsrivia.questions does not exist. and i put a \ in there, cause the computer dosnt show a / in it.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

try \\

Although presumably windrop does know what / means and translates it to the proper \ for doze?
B
BigBen
Voice
Posts: 21
Joined: Sat Oct 07, 2006 6:49 pm

Post by BigBen »

i did what you said, and i still get: [15:42] trivia.tcl failed to load: C:/Trivia-Questions/trivia.questions does not exist. And now i put it in "C:/trivia.questions" then it says, [15:48] trivia.tcl failed to load: C:/trivia.questions does not exist.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Try it without the C:, like: "/whatever/directory/trivia.questions" or even just "trivia.questions" and the script should be looking for the data file in either the bot's home directory or in the script directory itself.
B
BigBen
Voice
Posts: 21
Joined: Sat Oct 07, 2006 6:49 pm

Post by BigBen »

rosc2112 wrote:Try it without the C:, like: "/whatever/directory/trivia.questions" or even just "trivia.questions" and the script should be looking for the data file in either the bot's home directory or in the script directory itself.
so if i take C: out and leave "/Trivia-Questions/trivia.questions" ?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

This is a Windrop?

If this question file sits in the "scripts" folder then simply try: "./trivia.questions"
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

C:\\Trivia-Questions\\trivia.questions
TCL uses \ as an escape character. I would imagine that the other people that responded could have figured out what the problem was and provide a correct answer :p
B
BigBen
Voice
Posts: 21
Joined: Sat Oct 07, 2006 6:49 pm

Post by BigBen »

it still says: [19:38] trivia.tcl failed to load: C:\Trivia-Questions\trivia.questions does not exist.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Stop using C:\

Put the Questions.txt in 'scripts' folder and simply set:

set path "scripts/Questions.txt"
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

BigBen wrote:it still says: [19:38] trivia.tcl failed to load: C:\Trivia-Questions\trivia.questions does not exist.
Place the question files in the scripts folder of your Windrop.

Load trivia.tcl as normal:

Code: Select all

source scripts/trivia.tcl
Edit trivia.tcl settings for location of question files where indicated:

Code: Select all

"./trivia.questions"
The above tells the script to look in the directory where it is to load its question file.

The question files cannot be loaded as per the Tcl scripts; locations of question files are set within the trivia script itself (apparently).
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply