LUA’s date of GuildProfiler

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

LUA’s date of GuildProfiler

Postby Cylc » Tue Jan 23, 2007 9:38 am

We’re experiencing some troubles with the roster software. We’re two people updating the roster and the data sent by one are replaced by the data sent by the other :
A is upgrading the roster at 6.00 AM with a LUA executed at 5.55 AM
B is upgrading the roster at 8.00 AM with a LUA executed at 4.00 AM
This is resulting in outdated information: older information replacing the latest ones (Billy_The_hunter who was level 57 with A’s data is becoming level 56 with B’s data).

Is there any way to test LUA’s date of GuildProfiler in order not to replace roster’s data with older ones?
Cylc
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Wed Jan 17, 2007 8:21 am

LUA’s date of GuildProfiler

Postby PleegWat » Tue Jan 23, 2007 10:33 am

This is not currently supported. We may add this functionality in R2, but we're not promising anything.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: LUA’s date of GuildProfiler

Postby mrdummy » Wed Jan 24, 2007 3:17 am

Use local pc save time is not very good idea. We have timezones in the world, we have clocks in pcs who runs not exactly same.

Better use server time. When it sees the last guildupdate is just 5-15 minutes old, it can give you notice message, to decide to upgrade guild data or not.
If you're indeed not early enough, then don't update.
More than 15 minutes, just look at timestamp below guild list, to decide it yourself.

That is enough for most ways. Better use one clock as checkpoint (always webserver) than two different clocks from two users pcs....
mrdummy
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Wed Jan 17, 2007 7:14 pm

LUA’s date of GuildProfiler

Postby PleegWat » Wed Jan 24, 2007 5:27 am

The timestamp we'd be using is the one in the LUA file itself (not the file date, which we probably can't even get at anyway). I'm assuming, but not sure, the dating in the LUA file is server time.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: LUA’s date of GuildProfiler

Postby tuigii » Wed Jan 24, 2007 6:34 am

Cylc wrote:...
A is upgrading the roster at 6.00 AM with a LUA executed at 5.55 AM
B is upgrading the roster at 8.00 AM with a LUA executed at 4.00 AM
....

Ok, this is a nice 'worse case scenario'
Cylc, Guild wide updating is a important procedure.
I understand that in your case multipe 'Guild Chiefs' can update the main Guild profile/info on the Roster.
Just, because this only concerns a couple of people (mostly - just one !) when quiting WopW - update - don't spend ages on the phone.
Build a proper LUA from IG - and update right away -> you'll won't be having 'out of sync' hassle.

Time checking could be done, if the time zone is set prpoperly, winter/summer time is set - clock are all ok (for WoW, locally and on your roster server) etc etc.
Lot's of things to check and maintain - we will better of just 'thinking' - :mrgreen:
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

LUA’s date of GuildProfiler

Postby PleegWat » Wed Jan 24, 2007 8:04 am

The key we'd be using is myProfile[$realmname]["Guild"][$guildname]["timestamp"]
There are several time strings and timestamps inside that key. We'd probably be using the timestamps. Can someone who isn't in the same timezone as their server check and make sure the timestamps are servertime?
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

LUA’s date of GuildProfiler

Postby zanix » Wed Jan 24, 2007 12:35 pm

Most timestamps are server time in CP.lua
I was talking to calvin about this some time ago when CP 2.0 was being worked on

I would have to actually look at CP.lua to tell you which ones are not server time
Last edited by zanix on Wed Jan 24, 2007 12:36 pm, edited 1 time in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

LUA’s date of GuildProfiler

Postby PleegWat » Wed Jan 24, 2007 5:14 pm

This is the timestamp section for my guild profile:
Code: Select all
["timestamp"] = {
   ["Members"] = 1169666468,
   ["init"] = {
      ["datakey"] = "eu:2.0.6:6337",
      ["TimeStamp"] = 1169668740,
      ["Date"] = "2007-01-24 20:59:00",
      ["ServerTime"] = "20:59",
      ["DateUTC"] = "2007-01-24 19:59:00",
   },
},

I'd assume only the DateUTC key is not servertime, but I can't know cause I'm in servertime.

For comparison, my character timestamp block is
Code: Select all
["timestamp"] = {
   ["Inventory"] = 1169669537,
   ["init"] = {
      ["datakey"] = "eu:2.0.6:6337",
      ["TimeStamp"] = 1169669537,
      ["Date"] = "2007-01-24 21:12:17",
      ["ServerTime"] = "21:12",
      ["DateUTC"] = "2007-01-24 20:12:17",
   },
   ["Pets"] = {
      ["Tangtaz"] = 1169225757,
      ["Nokmat"] = 1169062284,
      ["Unknown"] = 1168453797,
      ["Ghaakun"] = 1168707990,
      ["Jhuuthun"] = 1169669537,
   },
   ["Attributes"] = 1169669537,
   ["Professions"] = {
      ["Tailoring"] = 1169665477,
      ["First Aid"] = 1169588756,
      ["Cooking"] = 1169588761,
   },
   ["SpellBook"] = 1169669548,
   ["MailBox"] = 1169664782,
   ["Equipment"] = 1169669524,
   ["Bank"] = 1169665497,
},

Which I'd assume everything but DateUTC to be servertime.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

LUA’s date of GuildProfiler

Postby zanix » Wed Jan 24, 2007 10:01 pm

DateUTC is server time converted to GMT, your timezone is probably +1 right?

Here is my CP.lua data
My timezone is -7
Code: Select all
["timestamp"] = {
   ["Members"] = 1169550076,
   ["init"] = {
      ["datakey"] = "us:2.0.5:6320",
      ["TimeStamp"] = 1169550076,
      ["Date"] = "2007-01-23 04:01:16",
      ["ServerTime"] = "04:01",
      ["DateUTC"] = "2007-01-23 11:01:16",
   },
},

Code: Select all
["timestamp"] = {
   ["Inventory"] = 1169550089,
   ["init"] = {
      ["datakey"] = "us:2.0.5:6320",
      ["TimeStamp"] = 1169550089,
      ["Date"] = "2007-01-23 04:01:29",
      ["ServerTime"] = "04:02",
      ["DateUTC"] = "2007-01-23 11:01:29",
   },
   ["Pets"] = {
      ["Nyctea"] = 1169371371,
      ["Waffles"] = 1169365053,
   },
   ["Attributes"] = 1169550089,
   ["SpellBook"] = 1169550089,
   ["Professions"] = {
      ["Cooking"] = 1168856572,
      ["Leatherworking"] = 1169371166,
      ["First Aid"] = 1169549456,
   },
   ["MailBox"] = 1169549507,
   ["Equipment"] = 1169550070,
   ["Bank"] = 1169549519,
},

I think calvin got rid of all the 'local time' in CP and GP
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

LUA’s date of GuildProfiler

Postby PleegWat » Thu Jan 25, 2007 5:19 am

Yeah, I'm in +1 (central europe). Looking at those numbers (ServerTime and DateUTC) your server is on +7 so if you're in +7 as well those numbers aren't too useful for determining this.

We could, like, ask Calvin?
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

LUA’s date of GuildProfiler

Postby zanix » Thu Jan 25, 2007 5:50 am

Yeah, the server is -7 as well

What we need is some one that is not in the same timezone as their server to check this
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron