egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need help on a trivia script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
BigBen
Voice


Joined: 07 Oct 2006
Posts: 21

PostPosted: Sat Nov 04, 2006 12:03 pm    Post subject: need help on a trivia script Reply with quote

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.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Nov 04, 2006 4:19 pm    Post subject: Reply with quote

try \\

Although presumably windrop does know what / means and translates it to the proper \ for doze?
Back to top
View user's profile Send private message
BigBen
Voice


Joined: 07 Oct 2006
Posts: 21

PostPosted: Sat Nov 04, 2006 4:48 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Nov 04, 2006 5:50 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
BigBen
Voice


Joined: 07 Oct 2006
Posts: 21

PostPosted: Sat Nov 04, 2006 7:28 pm    Post subject: Reply with quote

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" ?
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Nov 04, 2006 7:59 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sun Nov 05, 2006 2:07 pm    Post subject: Reply with quote

Code:
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
Back to top
View user's profile Send private message
BigBen
Voice


Joined: 07 Oct 2006
Posts: 21

PostPosted: Mon Nov 06, 2006 8:39 pm    Post subject: Reply with quote

it still says: [19:38] trivia.tcl failed to load: C:\Trivia-Questions\trivia.questions does not exist.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Mon Nov 06, 2006 8:45 pm    Post subject: Reply with quote

Stop using C:\

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

set path "scripts/Questions.txt"
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Nov 06, 2006 10:16 pm    Post subject: Reply with quote

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:
source scripts/trivia.tcl

Edit trivia.tcl settings for location of question files where indicated:
Code:
"./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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber