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.

bots time

Old posts that have not been replied to for several years.
Locked
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

bots time

Post by Doom »

How can i set bots time to "GMT+1"?
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

See in the .conf file the coments about "timezone" and "offset".
Once the game is over, the king and the pawn go back in the same box.
f
fr0stbyte

Just wondering

Post by fr0stbyte »

I was just wondering, can you have ANY time zone and offset in that feild?
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

ok

Post by Doom »

yeah i know it's in .conf file but what to add in there so it will be european time?
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

Please help me

Post by Doom »

Can someone answer?
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Change the "offset" to your GMT thing.. +/- something or 0.
Once the game is over, the king and the pawn go back in the same box.
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

Post by Doom »

# This setting defines the timezone is your bot in. It's used for internal
# routines as well as for logfile timestamping and scripting purposes.
# The timezone string specifies the name of the timezone and must be three
# or more alphabetic characters. For example, Central European Time(UTC+1)
# should be "CET".
set timezone "GMT"

# The offset setting specifies the time value to be added to the local
# time to get Coordinated Universal Time (UTC aka GMT). The offset is
# positive if the local timezone is west of the Prime Meridian and
# negative if it is east. The value (in hours) must be between -23 and
# 23. For example, if the timezone is UTC+1, the offset is -1.
set offset "+1"


and then i .rehash the bot but he still displays wrong time.. ?
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

Code: Select all

# This setting defines the timezone is your bot in. It's used for internal
# routines as well as for logfile timestamping and scripting purposes.
# The timezone string specifies the name of the timezone and must be three
# or more alphabetic characters. For example, Central European Time(UTC+1)
# should be "CET".
set timezone [clock format [clock seconds] -format %Z]

# The offset setting specifies the time value to be added to the local
# time to get Coordinated Universal Time (UTC aka GMT). The offset is
# positive if the local timezone is west of the Prime Meridian and
# negative if it is east. The value (in hours) must be between -23 and
# 23. For example, if the timezone is UTC+1, the offset is -1.
set offset [expr ([clock scan "0" -gmt 0] - [clock scan "0" -gmt 1]) / 3600]
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

Post by Doom »

can you exlpain that b34r?
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

Nope, sorry :D

I used some sort of config script.

edit : might have been http://www.egghelp.org/files/dopa.tar.gz
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

Post by Doom »

# This setting defines the timezone is your bot in. It's used for internal
# routines as well as for logfile timestamping and scripting purposes.
# The timezone string specifies the name of the timezone and must be three
# or more alphabetic characters. For example, Central European Time(UTC+1)
# should be "CET".
set timezone [clock format [clock seconds] -format %Z]

# The offset setting specifies the time value to be added to the local
# time to get Coordinated Universal Time (UTC aka GMT). The offset is
# positive if the local timezone is west of the Prime Meridian and
# negative if it is east. The value (in hours) must be between -23 and
# 23. For example, if the timezone is UTC+1, the offset is -1.
set offset [expr ([clock scan "0" -gmt 0] - [clock scan "0" -gmt 1]) / 3600]
Do you have this in your config file?
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

Code: Select all

Do you have this in your config file?
Yes.
Try it and see what happens, can't get more than an error. :)
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

Post by Doom »

hm, now i´'ve that in my conf file but the bot still shows the same time like before :(
Locked