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.

I need help with bottalker.tcl!

Old posts that have not been replied to for several years.
Locked
g
göran

I need help with bottalker.tcl!

Post by göran »

Well... the problem isn't only with this script, it's in 2 other scripts too.
But this script makes a file named BotTalker_data.tcl, where it puts and keeps the sentences people have spoken to it, and it also takes the sentences from that file and says a random line back to user from that file. So when Bot goes down for some reason, and starts again, something clears the BotTalker_data.tcl file, and it will start again collecting sentences from start. Because of this, I always backupped this BotTalker_data.tcl file, so when the bot did go down, I replaced the new BotTalker_data.tcl with old one, I gave bot some command, don't remember what (maybe -rehash or -reload) and it worked fine. But now the bot won't read the replaced file, but starts again from beginning!

I don't know what's the problem, I've been fighting with this for over 2 hours now and because I didn't get it working I decided to write here.
I'd really appreciate if some of you (caesar :) could help me with this, all I need to know is; do I have to do something else besides replacing the new file with old, for example modify the bottalker.tcl or something... THANKS!

If you don't understand a word from the text above, write here and I'll try to explain this with some other way.
g
göran

Post by göran »

Please someone :l...
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Yes, there should be a file check thing or even to open it with append. Contact the author of the script and explain the problem or do it yourself, locate the place where he opens the file for "w" (writing only) and make it "a" for append. Consult the open manual or even use the Search function of the forum.
Once the game is over, the king and the pawn go back in the same box.
Locked