BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Module Requests => Topic started by: Dracutza on July 26, 2007, 05:17:09 am

Title: GlaraAPF for 0.4
Post by: Dracutza on July 26, 2007, 05:17:09 am
Is anyone working on a 0.4 compatible version of a apf timers/guesstimator?
Title: Re: GlaraAPF for 0.4
Post by: Temar on July 26, 2007, 05:31:21 am
i have a working 1
this is mine altho it has room for improvement..
i just did a quickfix

Basicly All i have done is got the old version Told it to make its Own Table as the New setting table is alot different now and changed all the mysql queries to new table

Edit:
http://bebot.link/0-4-x-customunofficial-modules/apf-timer-for-bebot-0-4!/ (http://bebot.link/0-4-x-customunofficial-modules/apf-timer-for-bebot-0-4!/)
Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on July 26, 2007, 04:45:55 pm
Of course I am.  ;D
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on July 26, 2007, 06:53:36 pm
Very cool  :)
/me patciently waiting
Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on July 28, 2007, 01:12:48 am
Got it all updated for 0.4, using BeBot's settings module removed over 500 lines of code. (over 50% of the module!)

Still has a few bugs in output that I need to sort out before releasing it.

Also letting it run on a few test bots a bit to see if it crashes anything. ;)

And updating it located a bug in BeBot 0.4.0, so win win all around.  ;D
Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on July 30, 2007, 05:56:44 pm
Nothing major appeared over the weekend, so here it is! (http://bebot.link/index.php/board,18.0.html).
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on July 31, 2007, 03:50:58 am
<3

works like a charm
Title: Re: GlaraAPF for 0.4
Post by: Dabaron on July 31, 2007, 08:41:37 am
mmmmmm, APF hawtness....

Thanks Glara!!
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on August 01, 2007, 05:42:07 pm
Just a question though.  I had the same issue with the old apf mod on 0.3.x.

Everyonce in a while, the timer will double announce itself.  There doesn't appear to be any reason or pattern, other than it's the timed auto-announce, "The gates will be opening in 1 hour," thing.

The new code on the new bot did it once this morning at the 30 minute count.

Any idea why that may be?
Title: Re: GlaraAPF for 0.4
Post by: Khalem on August 01, 2007, 06:58:47 pm
If it occurs while the bot is very busy it might cause the cronjob to run a second time before the first cronjob call has finished.
I still don't quite understand how though as everything should happen in a serialized fashion, nothing parallel about BeBot.

This is only a suspicion though based on a similar issue with logon tells.
Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on August 01, 2007, 07:16:58 pm
Odd, the APF auto alert is a 1 minute cron job to keep cron spammage down, the auto alerts are just rounded off. The only thing I can think of is the bot was busy enough that the first cron didn't run exactly 60 seconds before the next cron job, thus the result from time() was a second or two off.
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on August 01, 2007, 10:31:03 pm
there is a 2 or 3 second delay when this does happen, which is only from time to time.

sounds like it's just me though
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on April 03, 2008, 05:00:28 pm
Basicly All i have done is got the old version Told it to make its Own Table as the New setting table is alot different now and changed all the mysql queries to new table

yours, Temar makes it's own table?  So i can feed several bots off of one entry?

Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on April 03, 2008, 05:12:13 pm
If you're on RK1 you can set the bot to auto update and the APF timer should just work. For RK1 the global timer is set by Campalot (Omni/Neut APF raid bot.) There are multiple people maintaining this, so it's usually on time.
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on April 03, 2008, 05:32:47 pm
yeah i know.

But I have people who are literally timer nazis in our org.  When the web update is off by... yes... seconds... i get people crying "bot is off!" and anyone with the ability doing !apf set now.

That in its self is not a problem, except that we have 3 bots that benefit from the APF mod, and when someone changes one and not the other... next thing I know I have 3 bots giving various times.

If I could get it it's own table, and have the ability to set one bot to write and the others to read-only(like the tower mod,) my little time keepers can have a !apf set now parade and at least all bots will be on the same time.

All is all not a big deal.  Just thinking of ways to simplify things.

BTW, this version works fine in 0.5 except for !help apf.  Instead of getting a link for the help file, i get the link and a tell with the whole help display
Quote
To [bot]: !help apf
bot: help on  ::::: HELP ON APF :::::
APF/Outzone timer module by Glarawyn.
 !apf - Displays when th Outzone gates will open.
 !apf set -HH:MMS - Remove HH:MMS from the current APF timer.
 !apf set +HH:MMS - Add HH:MMS to the current APF timer.
 !apf set HH:MMS - Set APF timer to HH:MMS remaining.
 !apf set now - Sets the timer. Use when Gatekeeper shouts "I'm opening the gates now!"
 !apf set web - Sets the timer from the data available at the source web site. (Usually zibby.isa-geek.net)
 !apf set gatetime|uptime HH:MMS - Sets the feed time.
 !apf writestamp - Writes out the timestamp information to a text file for feeding the web based timer.
NOTES:
All apf set commands except set web will disable automatic updates from the website.
 !apf set web sets the timer from the website and enables automatic web updates.">apf
Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on April 03, 2008, 06:24:14 pm
It's not a timer it's a guesstimator. Always has been, always will be. By design, drift in this module is acceptable.
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on April 06, 2008, 02:48:53 am
temar's version does not run on 0.5 at all, and GlaraAPF runs so long as you can depend on the web update.  As with several other 0.4 mods, anything past the initial command is not accepted in 0.5.

"!apf" gives you the timer countdown
"!apf set blah blah" gives you the timer countdown

just like quote and quote add.... command only displays.
Title: Re: GlaraAPF for 0.4
Post by: Temar on April 06, 2008, 05:10:48 am
my version is Old
Glara has updated Since

http://bebot.link/0-4-x-customunofficial-modules/apf-timer-for-bebot-0-4!/ (http://bebot.link/0-4-x-customunofficial-modules/apf-timer-for-bebot-0-4!/)
Title: Re: GlaraAPF for 0.4
Post by: Dracutza on April 06, 2008, 08:31:56 am
my version is Old
Glara has updated Since

http://bebot.link/0-4-x-customunofficial-modules/apf-timer-for-bebot-0-4!/ (http://bebot.link/0-4-x-customunofficial-modules/apf-timer-for-bebot-0-4!/)

posted in wrong thread i guess, sorry.

I am using 2.0.1.
Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on July 16, 2008, 07:49:30 pm
temar's version does not run on 0.5 at all, and GlaraAPF runs so long as you can depend on the web update.  As with several other 0.4 mods, anything past the initial command is not accepted in 0.5.

"!apf" gives you the timer countdown
"!apf set blah blah" gives you the timer countdown

just like quote and quote add.... command only displays.

As FunCom will be removing all need for this with the 17.10 patch (Outzone Instanced, Raid Interface) I won't be making any updates of Bebot 0.5/0.6. Version 2.0.1 (http://bebot.link/0-4-x-customunofficial-modules/apf-timer-for-bebot-0-4!/) for Bebot 0.4 will most likely be the last official version by me.
Title: Re: GlaraAPF for 0.4
Post by: Glarawyn on September 23, 2008, 09:58:49 am
This is officially retired now with the 17.10 patch. Removing the module from your bot is highly recommended.

Goodbye APF Timer Thing on Official Forums (http://forums.anarchy-online.com/showthread.php?t=400324&page=2).
SimplePortal 2.3.7 © 2008-2025, SimplePortal