Sunday, November 8, 2009

Tat's Trivia Bot v. 3.58

Tat's Trivia Bot 3.7


Update: Latest Tat's Trivia Bot 3.69

See latest blog and version 3.61
See latest blog link: 3.6



So Geocities shut down and my long dead drifting set of links to the files has likewise died out.

I have a semi-permanent site setup

http://tatarize.nfshost.com/


It should always have links to such my old scripts and various bits of information as to the on goings. It will presently link to MediaFire folder where I have the latest version of the trivia bot 3.58 as well as the question files and all of the old versions.

Again, if you find any bugs with the script I am still correcting those (though due to the lack of urgent reports I doubt there are many large ones). The bot is still free and open to edit and change in any way you see fit. Thanks to everybody who supported it over the years.

88 comments:

Anonymous said...

my tat bot does color when i do !help but not when it runs the questions.

how come?

Tatarize said...

Are the !help messages sent to the person directly? It could be that it's stripping the colors because the channel is set +C which strips colors and then the between person messages doesn't need to strip the colors. But, it should use the same general color routine for everything regardless. The only difference is sometimes it acts differently to comply with the color settings channel wise.

duluth967 said...
This comment has been removed by the author.
duluth967 said...

how do I disable !help ? it is not on the list of commands to disable and it conflicts with an existing bot command. Thanks.

Unknown said...

Hey, you forgot to change the url for your trivia bot link (it still links to geocities)

Tatarize said...

Where? From my view the geocities links are gone.

PD.Phoenix said...

Hey, I love the trivia script. Thing is, when I type !trivia theme for a theme I've set up, it doesn't work.

Like, I added the Family Guy questions and set the theme name to Family but when I type !trivia family it doesn't work.

Any help?

Tatarize said...

Make sure the themes aren't "Disabled" next to the button to bring up the themes dialog. Try typing !themes in channel and make sure the given them is listed there.

PD.Phoenix said...

I did check those things before I asked for help. When I do !themes it shows default and family (family guy)

But when I do !trivia family it still just does the default questions.

Tatarize said...

Don't use a space. A space makes the theme unreachable. The themes setup was always pretty screwy. But, It's likely either a space or hitting an error somewhere. But, yeah, a space makes themes impossible to call. That or it can be disabled in options, if that fails, try deleting it and setting it up again but without much in the way of other features.

Also spaces in directory names can cause problems too, so if it's in like program files or something try putting the requested file in a root directory or some such thing. So the path to it doesn't throw any issues.

Unknown said...

I have a couple of quick questions. The first is that when i am adding questions to the question file then saving, the question total isnt updated when a new game is started. does that mean the new questions aren't loaded in correctly or that the total number of questions counter lags behind somehow?

I am using about 10 different question files with catergories defined like this #mass effect series.

And thanks for the awesome script, been using it on and off over a long time!

PD.Phoenix said...

I've deleted and readded the themes, tried !themes and it shows up, !help says to put !trivia theme but when I put !trivia familyguy it doesn't work.

I've tried everything you said but everything still starts regular trivia.

Alice said...

Hey Tat, glad to see you're still answering questions here- I have a little problem with the trivia bot.

I set it up and it works just fine - except for one thing: when I answer the question, it takes the bot 2-4 seconds to accept the answer. My friend's bot works just fine and doesn't have that issue, our settings seem to be set identically. How can I fix this?

thanks!

Tatarize said...

@Alice

I've seen that issue before the lag is typically there but often quite reduced. I worked on it for a bit and speed it up significantly over previous versions. Make sure you're using the later versions after I made those fixes. Outside of that there's little I can suggest other than getting a faster computer.

It seems to be some difference with the speed you write to disk vs. other things. You could try defragmenting but basically it's an issue with the way the computer runs and so long as my computer doesn't take insanely long to process the response, I'm hard pressed to figure out such things

Though I'm sure getting a fancy ramdrive program and running mIRC from the ramdrive would make it go away.

Really, different computers react different ways. I'm not sure what the bottleneck is.

Tatarize said...

As for the issue with themes, I tried starting up a fresh bot, hit themes change the file name to "scribble.txt" and the theme name "scribble" and went to a room and started it up. It worked fine.

My suggestion is to try a fresh copy of mIRC or rename the trivia.ini file and try a fresh setup with just one theme and see if it works. My guess is absolutely default it should work then you can try it from there. Not sure what else could cause such things other than turning off one of the !trivia commands needed to do it. Try a default copy and make sure that works, then build up from there.

PD.Phoenix said...

I've tried everything you said and it didn't work :(

I don't know why, but the themes are still not working.. D:

Tatarize said...

Did you try a fresh copy of mIRC and a fresh trivia script and setting up just the themes and trying it from there?

PD.Phoenix said...

Yes, I did. I uninstalled and reinstalled both and it still doesn't work.

Tatarize said...

Not uninstall and reinstall, just install into a different (not the directory currently used) so that none of the settings port over and the .ini files do not transfer. Like install into c:\mIRC2 or what not. Then copy over the triviascript.mrc file and load it up and join a channel and make it start.

Some of the various ini files will remain such as trivia.ini and mirc.ini et al by uninstalling and reinstalling. I'm saying try an absolutely unrelated install and see if that works.

It works on mine and on fresh installs of mine, so it's gotta be the same and work on yours in a fresh install. Which, if true, tracks down nicely to either hunting down the issue or avoiding it altogether.

Unknown said...

Sorry if this has been covered, i read the Trivia posts and all their comments, and didn't see it anywhere! Have you accrued any more questions, or has anyone? I've gone through all these questions multiple times now, people hate playing with me, lol!

Tatarize said...

Are you using the qbig.txt question file? It's like 3 megs of questions with few repeats. In general I ended up with a good collection of questions but the way of making is pretty straight forward.

http://www.mediafire.com/?sharekey=76fde0084745c2f9d8f14848abf485ddbabe7d579194beb864328c9cace34742

Qbig should be next to the 3.58 version to be downloaded.

Unknown said...

Directed at tatarize, I was wondering if you could get in touch as I (IRC-Wiki.org) would like to offer you a permanent location for your trivia bot and files as we are a service that aims to document and provide infomation about everything IRC, including bots/scripts.

We already have a page for tats trivia and if you would like to speak to me about this my email is Bertrum@IRC-Wiki.org

http://www.irc-wiki.org/Tats_Trivia

Anonymous said...

Hey tatarize first I just wanted to say...awesome bot. The bot runs perfectly and havn't had any problems with it. I love how customizable it is.

I use the bot on justin.tv and now their rooms have added a new function that keeps users from flooding. This is also blocking the trivia bot.

For example, when someone answers a question correctly. If the bot tries to tell them they win, and post an award its says that the messages are being sent too quickly. Is there a way to customize the length of time that the bot tries posting messages?

Tatarize said...

You might have to minimize the amount information displayed by the bot. Disabling the awards and such will stop it from spamming. Turning the messages off will likely stop it from getting booted.

Also, it's possibly to load share the spam. If you have two connections to the same server in the same room or whatnot you could, on the non-bot connection, type "/here" (hidden command) and it will relay some of the messages through that connection. Which could help a bit. (it sets a %scid.force variable that the bot picks up and uses). I think it does the awards on the /here connection which is likely what you'd want.

In short your best bet is to tell the bot not to spam. It's pretty easy to turn off the other messages.

If it is actually freaking out at like three lines of text, people are going to complain and you might want to too. The Sysadmins might be able to give you a slightly longer leash.

* Don't spam.
* Share your spam around several connections.
* Ask to be allowed to spam.

Anonymous said...

Thanks. Yeah it's not that I'm spamming, or being complained about spamming. It's just that the messages are being sent too closely together, causing them to be blocked. I was hoping there was something that I could do to put a 1 second gap between each response, or something like that. Thanks anyways, I'll just work around it.

Tatarize said...

Hm. That's totally possible to do.

$iif($scid(%cid.force),scid %cid.force) $iif($nick == $me, .timer -m 1 $calc($timer(0) * 100)) %respond $check.auto.strip($rdc($1-))

Is a line in the communications sections. If you remove the -m and change the 100 ms into a second or so, it should work.

$iif($scid(%cid.force),scid %cid.force) $iif($nick == $me, .timer 1 $calc($timer(0) * 1)) %respond $check.auto.strip($rdc($1-))

The same change would be needed in the tsay section.

alias -l tsay { if (($1) && ($server) && ($me ison $iden)) { $iif($nick == $me, .timer -m 1 $calc($timer(0) * 100)) msg $iden $check.auto.strip($rdc($1-)) } }

into

alias -l tsay { if (($1) && ($server) && ($me ison $iden)) { $iif($nick == $me, .timer 1 $calc($timer(0) * 1)) msg $iden $check.auto.strip($rdc($1-)) } }

That would make it queue them up with 1 second timings between them. So if it ends up putting out 4 lines of text they will appear at 0, 1, 2, 3 seconds of delay from the initial command. Due to some ordering issues all the display text commands are already buffered by they are buffered in only 100ms increments as to not be noticeable. If you up that to a second or so it will serve the function you want.

Anonymous said...

That got it. Thanks, and again, great trivia script!

Unknown said...

Is it me or did the recent update to mirc break the script? (v 7.1)

people are typing the correct answer but the bot isnt picking it up.

Yet the triggers to start/stop all work fine.

Any ideas?

Tatarize said...

I tried with 7.1 and couldn't get it to fail. It seemed to accept the answers perfectly fine. Any special settings? I guess I'll read through the change log and see if anything I use changed much.

Tatarize said...

I tried a fresh scratch install, and with the new directories *especially those with spaces in them* it goes a bit wonky. Looks like it's broken enough to troubleshoot.

Tatarize said...

At a fresh from scratch install, I find that yes, indeed. It's currently somewhat dead in 7.1. It does reject correct answers. And for some reason the trivia.init command isn't called 'on start' properly, this causes the count on the number of questions to be wrong because the delimiter claims to be non existent.

As the only thing I tend towards doing is making sure it still works. I'll try to get around making it properly compliant within the next few days and have 3.6 out. Though, if you're reading this message several months from now and nothing's happened... don't be too surprised.

Tatarize said...

I think the main issue is that the functionality of $read has changed. Now rather than $read(nonexistentfile) returning a null, it errors and causes the script to stop. Which means the native lack of TriviaScores.fil and backburner.txt cause it to throw a hissyfit and fail.

/write TriviaScores.fil
/write backburner.txt

And suddenly it will work again. At least in theory. I'll fix em soon.

Unknown said...

For some reason, anyone who gets a correct answer, is being added to the banned list. That's why it's not responding... What's with that? lol

Tatarize said...

I don't know particularly why but apparently they are seeming like they are answering the questions in way too quick of a time. They are being autobanned by way of speed or wpm. Which is setup so that scripts get banned if they answer in superhuman time. Just go to awards and delete the autoban awards.

Alice said...

Heeey, here's hoping you still read this once in a full moon ;)

This is Alice again, from earlier. I have a little problem with my bot. I updated my question file extensively, but... the bot refuses to update itself. I honestly just don't know what to do at this point heh. I tried unloading and reloading the bot etc, with no luck. I don't really understand what other question file could it possibly use, seeing as there's only one, but erm... yeah. No update to the total number of questions, and no update to the questions themselves. Sadness.

I saw that someone asked before already but you didn't answer, sooo.

Thanks in advance. :)

Alice said...

So I kinda sorta ishly solved it, heh. I re-downloaded the bot, deleted all of the existing files (minus my qset, obviously), and just...reinstalled it completely. So far so good. I'd still like to know how to avoid this, and if there's any other way (hopefully a simpler one, lol) to solve this. ty!

Tatarize said...

Yeah, it temporarily stores the value for the number of questions in the bot. It caches that value so it doesn't have to rescan the entire set of question files each time it needs that number. Sometimes it gets stuck. It's suppose to set that variable such that it unsets within ten minutes. But if it quits out or something it looses the system timer to unset it.

Tools -> Script Editor -> TAB: Variables -> %qnum

And whereever it says that you can delete that value and it'll fix it. Also typing "/unset %qnum*" will uncache the value and unstick it.

Since this is specific to the variables, without trashing most everything including specifically your vars.ini file it won't snap out of it. You don't need a completely new install, you need to type "/unset %qnum*" but the why behind it is a bit odd. Really I should store those in the hashtable which has the good sense to actually die with mIRC properly, and never get stuck.

Alice said...

Thank you, thank you! It happened again, so I came back to see if you answered after all. You're obviously an awesome dude. (:

So uhm. Another problem (I'msorryreally). The bot fails to recognize 2 of my questions. There are two variables that are relevant to the qset: numq (I didnt have qnum, so I figured you just got it confused in your head or summat) and nonq. numq displays the total questions I'm SUPPOSED to have - 9109. nonq displays the number 2, which is apparently the number of invalid questions- therefore the bot, when started, says I have 9107 qs.

Do you have any idea why would the bot mark 2 of the questions invalid? The only reason I could come up with is that they aren't formatted correctly maybe or something like that.. could there be another reason I'm not aware of?

Thank you a lot, again.

Tatarize said...

Almost undoubtedly the formatting is wrong. It runs a regular expression check for lines in the question file that do not conform to the standard:
Question*Answer*Answer2*Answer3

With Answer two, three, four, etc, optional.

All of the questions lines should have a delimit character. So two of them are missing the * somewhere in them (assuming that your delimit character). It might be something like an empty line or just a number in the file or something. But if it detects there's nothing that looks like an answer, it just skips that.

To know which lines those are, you can write a script. And since mIRC is pretty much an awesome scripting engine, here's what to type:

/window -e @hi

//filter -fwgx $$sfile($mircdir) @hi /\*/

The window command tells mIRC to open a window called @hi (-e with a text entry part).

The filter command says, -f filter file ($sfile,to be chosen) into window @hi by regular expression and only those that do not match the regular expression /\*/ Which is just any *. // contain any regular expressions and \ is the escape character (since * is a token in regular expression it needs to be escaped.

(Not that you care about any of that).

Those two commands and selecting your file will find which ever ones don't match.

Alice said...

I worship you pretty much. Thanks a bunch! I expect that I'll come visit with yet another question in a few, but uh... hopefully not. XD

Keep up the great work, and thanks for answering so quickly. (:

Anonymous said...

Hey Tat, 1st and foremost, thank you on the awesome work. works well for me.

I do, have one issue, I can not fix, how can I get the score board to update onto my website? My host is Justhost.com, I have alot of features, but I am having issues getting the bot to relay the trivia scores to my website. thanks

Anonymous said...

hey hey! i reread your work, i forgot I needed my ftp and did a face palm. thanks mate! it works now

http://ghostwarrior.org/TriviaScore/triv.htm

Tatarize said...

Such an advance feature for really just writing the scores in an html format, generating a batch file, and running the batch file on the ftp.exe that comes with windows.

There's a somewhat less documented feature of /xmlbuild on the bizarre offchance that somebody want's an rss of the top scores. Heh. And /xmlbuildon and /xmlbuildoff to toggle. Though it needs manual editing of the ftpbatch.txt file to upload em I think.

There's a lot of bizarre features people asked for that I didn't care enough about to properly add, but bothered to write.

Unknown said...

Hey! Great trivia bot! I am still using an old version of mirc as well as the old trivia script I downloaded a year and a half ago. Is it possible to set names for teams? I tried setting a number for each team, but nothing happened when people joined. How does the team option work?

Tatarize said...

Yeah, you might be running an overly old version of the bot if you can't set team names. It's in options, then in teams, they have names. And you change them and hit okay.

Unknown said...

I didn't state that quite right. I can name the teams, but not list the names of the people on each team. I should have been much more clear. Is it possible to add who I want on each team and keep the team roster saved so that each member is already assigned when that team plays?

Tatarize said...

No. That's not possible within the confines of the current setup.

At present it stores the team-member names temporarily in a hash table, during the duration of the round. When it goes off, all the teams are cleared out and lost. Also, there is no way for an operator or admin of the trivia bot to force add a person to a team. In fact, the command is private so you can't even call it directly. There is a !showteams command that works during a team game though.

To add such a feature, I'd need to:
* add an op command to force a person to join a team.
* add !join into the command options to allow it to be disabled.
* add a modification to the save file to maintain team identity.
* Add a little code to patch it the additions into the current code (it can't autoload everybody from the player list to the team, but rather needs to add them on the fly to the running hash-table).

You know, I haven't added a new feature in something like five to seven years. It's been all bug fixes and mIRC version compatibility updates. But, this is really tempting. Necessarily your expectation of how team games should work, really is the way they should work. And for all the work I put into the team game feature, it's a bit silly not to have it work the way, or to be configured to work that way. Because as it is currently, the feature is overly frictive (having fiction, being too hard to use).

That and Duluth967 is right that !help is missing, from the commands list too.

Of all the odd things. After more than half a decade. A feature request I can't just offer a quick hack, secret command, or award set up to implement, or claim is too bloaty to bother with.

I'll try to add it within the next week or so.

Unknown said...

That's great! I know a couple of Math and Science teachers that will be much appreciative. We use your trivia script to help kids practice for Math and Science tests in a public school. Right now, students compete with each other individually. However, we want them to be able to compete in teams as well. There's nothing like a little peer pressure from team mates to encourage kids to study...lol.

I guess this means I am going to have to update my version of Mirc? I have had a few people tell me they didn't like the newer version so I never really considered updating. But, I will update it if it is necessary to use the team player feature you are working on. I am currently running v6.35, with your trivia bot v3.5 Thank you!

Tatarize said...

No need to upgrade. The scripting language is typically compatible between different versions of the script. The difference is that sometimes there are newer really cool features added, that if you use, you set the version to be at least that advance. The last time I used a newer feature was 6.15 and that bit of code actually checks the mIRC version and uses slower alternative code for building the HTML setup of the scores, if the version is too old.

As I haven't been adding things to to the code and certainly nothing that required new mIRC features, and Khalid doesn't tend to throw compatibility out the window. The new version like all the old versions should run with pretty much any mIRC made in the last decade (actually 9 years 9 months, since mIRC 5.91 when filter -a (sort by alias was added)).

Tatarize said...

Update in.
http://godsnotwheregodsnot.blogspot.com/2011/03/tats-trivia-bot-361.html

Tatarize said...

Or check the link in the now edited post here.

deshan said...

im using the but i added my own 315 questions but it only repeat a select few. how do i get the bot to ask all the question? (maybe in order if possible) thanks

deshan said...

im using the bot*

Tatarize said...

It should run through every question and then start to repeat. If it's not repeating them all then it's just sort of odd. More likely some of the questions themselves are repeated and it hasn't asked all 300 questions or so.

deshan said...

at the moment the bot is just randomly picking questions out of 318 question i have i say it repeating just about 25 of them over and over.

is their a way to set the bot to ask the question in order?

Tatarize said...

Try !state and make sure it has your questions all working. You can also use the /ask # command to force it to ask the question.

My guess is somehow you've got the qnum vars permanently set.

---

Tools -> Script Editor -> TAB: Variables -> %qnum

And whereever it says that you can delete that value and it'll fix it. Also typing "/unset %qnum*" will uncache the value and unstick it.

---

Which should be obvious if !state says you only have like 30 questions or something. Which for all I know might be the case if many of the questions are invalid (if they lack the proper formatting they are automatically skipped).

Alice said...

Hey Tat :) Long time no see, heh

deshan asked this in his last post, but you didn't answer - is there a way to make the bot ask the questions in the same order they're listed in the question set? Thanks!

Tatarize said...

Deshan's question does clearly have a few answers. However, the observation he made as to why he'd want that is simply a bias.

The program does not ask the same questions several times over (unless the bot it stopped). It's just with something like 300 questions you'll end up seeing them a lot, especially if the rounds are short. The best bet is to maintain the asked questions list between rounds. The bot makes sure to ask every question before clearing the list and letting any question be asked again. It typically loses this list between rounds and so if rounds are short, and the questions are few, you can see the same questions crop up repeatedly.

Mostly I didn't answer his question because if you've ever seen an ordered list it's insanely silly, and not something he should actually want. People can predict the questions trivially. You wouldn't think they could memorize them, but they do rather subconsciously. In any event, if you'd like to see it at around line 550 in the trivia.getq alias you can comment out the %ask (or don't it'll just overwrite it with the value made by the following two lines).

;var %ask = $rand(1, $numq)
var %askcount = $calc((%askcount + 1) % $numq)
var %ask = %askcount

This will add in an %askcount variable which will increment and mod by the number of questions and be used for the %ask count. This is also doable in the awards (as to not modify the script) by making it use "/ask" every time it asks a question. Calling some other alias:


alias askrotate {
var %askcount = $calc((%askcount + 1) % $numq)
ask %askcount
}

Then add an award to always trigger on question that does special and "/askrotate" or whatever. And that'll give you an ordered list. And maintain the count between rounds and return to 0 when finished ext.

The award is the route is likely best policy.

Alice said...

Well, the award thing didn't work, so I went with inserting it straight into the script. Still one teeny problem though.

I'll explain why I'm asking for this in the first place, since I do understand that making the bot ask questions in a specific order each time is silly. My friends and I want to have a marathon of all the questions the set has to offer, without stopping the bot until we're done (pausing it if no one's around, then resuming etc).

The thing is, that while my connection is generally stable, it can get weird and I ping out sometimes. In that case, it'd mean we'll have to start over and we might get repeats of questions we already had before. With questions being tossed out in a specific order that we can control, it makes life easier.

So here's the problem - if, say, the bot reached q3000 and then I pinged out, is there a way to make it start asking questions from 3000 onwards? I tried to ask it for q3000, but after the bot asked it, it goes back to asking questions from the start (1,3000,2,3).

Thanks! :)

Tatarize said...

Rather than "var" use the command "set" that'll set a typically unchanging global variable.

Alice said...

Sorry, I'm not much of a scripting person, so I don't really get where/how/what should I do. :x I tried replacing var with set in the thing I inserter into the code, but er. It made the questions stop working. Instead of a question I'd just get a question mark. "1. ?"

Tatarize said...

;var %ask = $rand(1, $numq)
set %askcount $calc((%askcount + 1) % $numq)
var %ask = %askcount

That should work, at least in theory. Directly changing var to set in %askcount ignores the differing treatment for the "=" Doing it with just replacing set for var will cause it to have "= 4" and bizarre things like that.

Alice said...

That doesn't work. When I start the bot mirc freezes and dies.

Tatarize said...

alias askrotate {
set %askcount $calc((%askcount + 1) % $numq)
ask %askcount
}

and an award that consists of:

6 0 6 0 0 /askrotate

Which is every question, special, calls askrotate. And ask rotate just needs to be anywhere. And that seems to work fine for me.

AnnoymousUsernamee said...

hey man. how do I make it so instead of typing !trivia to have 10 questions per round, it does the trivia unlimited for !trivia? So I want it to be !trivia -> unlimited questions instead of 10.
Thanks!

Tatarize said...

Go to Trivia Options, Defaults, Under Questions, Select Unlimited.

jetzu said...

Hi Tat! First, this Bot is awesome..I have been using it for a while now.

Just recently MIRC has started to crash randomly when going thru a Trivia round.

Any ideas why this could be?

Thanks

Tatarize said...

If you could isolate a repeatable test I could perhaps avoid doing what crashes. But, crashes of the program shouldn't typically be possible within the script. It's an interpreted language. It's possible that something is causing mIRC to crash but that's Khalid's problem not something I'm in a position to fix.

That said, unless you changed your mIRC version the problem is likely your computer's problem. And I'd figure that your processor is overheating because the fan is full of lint (this is very often what's at fault depending on the regularity of the crashing) or a configuration issue within the program. The program from time to time will use enough CPU to make overheating issues pressing. But, I haven't done any major work on the script for like 9 years. And I've not heard of any crashes. And crashes of the interpreter of an interpreted language are not the fault of the script being run.

You could try another version of mIRC, or try a barebones fresh install of mIRC with or without my script. But, odds are reasonable that my script has nothing to do with it, and if it does, it's really not my fault. An interpreter shouldn't crash regardless what the script says to do.

jetzu said...

Thanks for the reply Tat. I dont know why I never considered CPU usage a factor. I have the bot running in a data center, so over heating was not the issue, but I think the processor was getting taxed.

I had this running on an old machine for about 5 months and I guess the addition of a few other MIRC scripts caused the box to run out of resources.

I installed it on a faster machine and poof!!! the problem went away.

Thank You.

ZuroDev said...

im using your trivia on Justin tv and want to make it so the questions and answers are read in /me format.. so they are colored.. if i change the color options it just puts numbers beside the words in justin.tv.. any suggestions? Thanks alot

Tatarize said...

@ZuroDev, what's happening is that in some non-IRC settings the color codes aren't being interpreted. Typically colors are transmitted as a $chr(3) followed by a two digit number. If this format is not usable such as on MSN Chat and some other non-IRC protocols the correct procedure is to turn them off. Should be a button at the colors section.


If there is some method of turning colors on which isn't standard to IRC you could also edit the quick set variables in mIRC.

%a1 05
%a1o
%a2 03
%a2o

They are the %a1 (primary color on), %a1o primary color off, %a2 (secondary color), %a2o secondary color off. They are there to be quickly recalled and perhaps manually edited. My guess is you're better to just turn them off. It's likely stripping out the $chr(3) and leaving the color codes without treating them as colors. So it's better to just turn colors off. Which is clicking "color" in the defaults so the whole thing is disabled.

ZuroDev said...

yeah it is stripping the color code.. The awards work but not color codes for questions. I know the command is /describe to do in color in the chat.. any way for me to edit it to do that? Thanks!

Tatarize said...

If its simply a matter of needing to use describe, you can go to the Command Tab (the last one) and change the default method to "Describe Channel".

ZuroDev said...

its weird.. I tried what you said and the questions and answers still are not displaying in color.. If I use the !repeat it does show in color.. I'm using on Justin.tv if that helps.. I just want the questions hints and answers to be in color so you can see them from other peoples typing better.. Its either /describe or /me to display text in color on chat.. Thanks in advance tatarize its really appreciated.. And thanks for sharing your hard work bro!

ZuroDev said...

?? anyone able to help with getting the bot to post questions in Color on justin.tv?? i have tried the describe option and that doesnt work.. It has to be possible because the !hint !repeat !rank and all the other commands post in the describe (or color) fashion on there but not when the bot is asking the questions.. Any help would be greatly appreciated!

Tatarize said...

You can't have colors. That server automatically dumps any colored text. Just because you can see it locally doesn't mean other people can. Turn off your colors in the trivia bot.

ZuroDev said...

Thanks for response... The !hint or !vowels or !repeat or other commands like that DO show up in color on Justin.tv.. Ive seen on a seperate computer not in mIRC.. The code is too complex for me to mess with.. I usually can just change the msg # to describe # and it becomes color.. I thought it had something to do with %responselevel but i haven't been successful with changing that to fix it...

Tatarize said...

Assuming you didn't change the default method those commands would be sent through a NOTICE rather than through a describe. They might look the same but they aren't. They only show up to the one person who requested them.

The describes are channel wide messages and they are generally stripped, just as msg are stripped. Notice is a person to person communique and it likely isn't stripped and if you have two mIRC clients and the character 3 remains intact, it would show up as colored for the other mIRC client.

Changing these methods can be done in Trivia Options, they don't need any actual manual changes to the bot. But, it's far better and easier to just turn off all the colors. Then it won't strip things and should work fine.

ZuroDev said...
This comment has been removed by the author.
ZuroDev said...
This comment has been removed by the author.
Tatarize said...

Sometimes the game will drag a bit. But, that's often the call to /sort if anything. Which takes a bit of processor power. You can reduce the size of your scores file by typing:

/tpurge 10

Which will set everybody with fewer than 10 points into a backburner file. They will instantly revive if they ever get another point. But, since the timecomplexity of the sort is N*Log(N) changing the size helps a bit.

Other than that there's not really much else to suggest.

There's also /tdpurge which copies off the entries based on date.

/tdpurge 10

Would in theory remove anybody that didn't get a point in the last ten days.

ZuroDev said...

ok one other question if you have time Tat.. Is there a way i could remotely add channels to be enable trivia? like a !triviaon or !triviaoff command? or just have it work in all channels? or be enabled when theres a certain number of people in the chat? any of those will work.. the on/off would be the best tho

Tatarize said...

A couple ways to do that. If you type "/chan.add #channel" it will add that channel. This is there for all the scripts. So you can write any old script to code that.

Next, there's actually a bunch of iswm checks on the channel etc. So really rather than actually just take a channel it checks if it's a wildcard match for the channel. Adding #* will add every channel as usable.

Some folks have scripted rather elaborate bot delivery systems in the past and I helped by making it as easy as I could. So you can add channels dynamically or allow any channels etc.

You can write a couple quick lines to allow people to invite you to a channel and join that channel and add it as a trivia channel, etc.

ZuroDev said...

wow thanks bro.. that has been bugging me.. One last question if you have time.. Would it be a pain for you to show me if possible.. How to have a check so trivia only works with a certain number of people in the chat.. For example ive been having people bring bot to their channel by themselves or with one other person and playing to get their score up.. would like it so trivia only worked if there were 20+ people in the chat when !trivia is started.. Thanks again

N84Jrnation said...

Hi thank you for making the strivia bot it is awesome, can get a list of commands for 3.66 bot. Like i dont know how to set locations for weather and other. Thanks For time

N84Jrnation said...

Hi thank you for making the strivia bot it is awesome, can get a list of commands for 3.66 bot. Like i dont know how to set locations for weather and other. Thanks For time

Tatarize said...

My script does not provide the weather or any of that functionality. There are other scripts which do.

Type !help will generally give you a list. Also the commands tab has a pretty extensive list of the commands given.

Muara Fatan said...

Learning the way I`am, Just let me read all the comments.