| View previous topic :: View next topic |
| Author |
Message |
BigBen Voice
Joined: 07 Oct 2006 Posts: 21
|
Posted: Sat Nov 04, 2006 12:03 pm Post subject: need help on a trivia script |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Nov 04, 2006 4:19 pm Post subject: |
|
|
try \\
Although presumably windrop does know what / means and translates it to the proper \ for doze? |
|
| Back to top |
|
 |
BigBen Voice
Joined: 07 Oct 2006 Posts: 21
|
Posted: Sat Nov 04, 2006 4:48 pm Post subject: |
|
|
| 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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Nov 04, 2006 5:50 pm Post subject: |
|
|
| 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 |
|
 |
BigBen Voice
Joined: 07 Oct 2006 Posts: 21
|
Posted: Sat Nov 04, 2006 7:28 pm Post subject: |
|
|
| 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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Nov 04, 2006 7:59 pm Post subject: |
|
|
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 |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Sun Nov 05, 2006 2:07 pm Post subject: |
|
|
| 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 |
|
 |
BigBen Voice
Joined: 07 Oct 2006 Posts: 21
|
Posted: Mon Nov 06, 2006 8:39 pm Post subject: |
|
|
| it still says: [19:38] trivia.tcl failed to load: C:\Trivia-Questions\trivia.questions does not exist. |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Mon Nov 06, 2006 8:45 pm Post subject: |
|
|
Stop using C:\
Put the Questions.txt in 'scripts' folder and simply set:
set path "scripts/Questions.txt" |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Nov 06, 2006 10:16 pm Post subject: |
|
|
| 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 |
|
 |
|