collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: GlaraAPF for 0.4  (Read 8160 times)

0 Members and 1 Guest are viewing this topic.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
GlaraAPF for 0.4
« on: July 26, 2007, 05:17:09 am »
Is anyone working on a 0.4 compatible version of a apf timers/guesstimator?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: GlaraAPF for 0.4
« Reply #1 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!/
« Last Edit: April 06, 2008, 05:12:13 am by Temar »

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #2 on: July 26, 2007, 04:45:55 pm »
Of course I am.  ;D

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #3 on: July 26, 2007, 06:53:36 pm »
Very cool  :)
* Dracutza patciently waiting

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #4 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

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #5 on: July 30, 2007, 05:56:44 pm »
Nothing major appeared over the weekend, so here it is!.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #6 on: July 31, 2007, 03:50:58 am »
<3

works like a charm

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #7 on: July 31, 2007, 08:41:37 am »
mmmmmm, APF hawtness....

Thanks Glara!!

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #8 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?

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: GlaraAPF for 0.4
« Reply #9 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.
BeBot Founder and Fixer Kingpin

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #10 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.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #11 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

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #12 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?


Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #13 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.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: GlaraAPF for 0.4
« Reply #14 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

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 89
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal