BioWare Atari
BioWare Info BioWare Games Support Forums Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

Archives: Builders - NWN Scripting



       Go To Bottom

Author Millisecond accuracy
Marcabru
Game Owner
Profile: MarcabruNWN
NWN: SoU
NWN: HotU
NWN 2
Mass Effect PC


Joined: 27 Oct 2002
From: Guadalajara, MEXICO
Posted: Tuesday, 01 March 2005 06:34PM
Greetings to all dedicated builders. Does any one have an idea of how accurate is the Aurora millisecond timer?

Marcabru
  Profile: Marcabru   Send Message To: Marcabru
Odin_Tyralothe
Game Owner
Profile: Odin_TyralotheNWN
NWN: SoU
NWN: HotU
NWN 2


Joined: 03 Sep 2004
Posted: Tuesday, 01 March 2005 08:45PM
One would assume from the name "millisecond" that the accuracy is to the millisecond

10^-3 seconds or, 0.01 seconds
  Profile: Odin_Tyralothe   Send Message To: Odin_Tyralothe
Marcabru
Game Owner
Profile: MarcabruNWN
NWN: SoU
NWN: HotU
NWN 2
Mass Effect PC


Joined: 27 Oct 2002
From: Guadalajara, MEXICO
Posted: Tuesday, 01 March 2005 09:22PM
Ok... That kind of quip does not help. You're falling prey of the name fallacy, the assumption that the name makes the thing. By your logic, then, any person called "George Washington" must be the first president of the USA. You are confusing the representation with the represented thing. A representation of a pipe (as Magritte's famous painting shows) is not a pipe. Closer to my inquiry, in the default time configuration of NWN, what is called "one hour" does not correspond to one hour in REAL time, now, does it? By your logic, then, if it's called "one hour" then it must be one hour. My question was to what extent what is called "one millisecond" in the toolset actually corresponds to what in REAL time is one millisecond. So, please, spare me cheap wisdom.

Marcabru

Edited By Marcabru on 03/01/05 21:23

  Profile: Marcabru   Send Message To: Marcabru
Lilac Soul
Moderator
Game Owner
Profile: Lilac SoulNWN
NWN: SoU
NWN: HotU
SW: KotOR PC
Jade Empire:SE


Joined: 30 Nov 2002
From: Denmark
Posted: Tuesday, 01 March 2005 10:12PM
No reason to lash out at people trying to help you... If you wanted such a specific answer, you could have given a more specific question.

Anyways, back to the question at hand: Not a clue. I suspect it probably uses the system clock, but I have nothing to base that assumption on. What kind of system are you coming up with that requires this accuracy?

One thing I've heard, however, is that milliseconds aren't updated during the running of a script. So, several calls to GetMilliSecond within the same script should always have the same result. I haven't tested this, however, so I can't confirm it, it's just what I've heard.
_________________
LILAC SOUL'S SCRIPT GENERATOR 2.3
My other works
http://nwn1.nwn2lexicon.com
  Profile: Lilac Soul   Send Message To: Lilac Soul
Cereborn
Game Owner
Profile: CerebornNWN
NWN: SoU
NWN: HotU


Joined: 06 Jun 2002
Posted: Tuesday, 01 March 2005 10:17PM
BW probably uses the multmedia timer on windows, so it should theoretically be better than just the vanilla system clock, but that doesn't prove much - I would not want to depend on ms accuracy - it's not like your getting direct access to that timer...
_________________
The NESS User's Guild:
  Profile: Cereborn   Send Message To: Cereborn
Lilac Soul
Moderator
Game Owner
Profile: Lilac SoulNWN
NWN: SoU
NWN: HotU
SW: KotOR PC
Jade Empire:SE


Joined: 30 Nov 2002
From: Denmark
Posted: Tuesday, 01 March 2005 10:22PM
Quote: Posted 03/01/05 22:17:30 (GMT) by Cereborn

BW probably uses the multmedia timer on windows, so it should theoretically be better than just the vanilla system clock, but that doesn't prove much - I would not want to depend on ms accuracy - it's not like your getting direct access to that timer...

Pure speculation, but since NWN is available for both Linux and Mac, I doubt it's the Windows timer that's being used.
_________________
LILAC SOUL'S SCRIPT GENERATOR 2.3
My other works
http://nwn1.nwn2lexicon.com
  Profile: Lilac Soul   Send Message To: Lilac Soul
Cereborn
Game Owner
Profile: CerebornNWN
NWN: SoU
NWN: HotU


Joined: 06 Jun 2002
Posted: Tuesday, 01 March 2005 10:26PM
Absolute speculation (hence the use of the word *probably*). Don't know where you code, but where we code we have things called ifdefs that lets us use the features we need from different operating systems I shudder at the thought of having to write a game using the stock windows timer.
_________________
The NESS User's Guild:
  Profile: Cereborn   Send Message To: Cereborn
Gredgen of the Abyss
Game Owner
Profile: Gredgen of the AbyssNWN


Joined: 04 Jan 2003
Posted: Tuesday, 01 March 2005 11:53PM
I don't know the answer to this either.

I do know I use many triggers /w delay commands anywhere from 8 to .1 seconds. I didnt even know you could go out to .01

It seems pretty accurate as I use dozens of these at a time in single scripts to make events happen in my multiplayer mod.

Only time I ever had a problem was teleporting a pc who was knocked down hahahaha

Edited By Gredgen of the Abyss on 03/01/05 23:53

  Profile: Gredgen of the Abyss   Send Message To: Gredgen of the Abyss
EPOlson
Game Owner
Profile: EPOlsonNWN
NWN: SoU
NWN: HotU
NWN 2


Joined: 01 Dec 2002
Posted: Tuesday, 01 March 2005 11:54PM
I know the clock is not updated every millisecond. In a test I had several delayed scripts all start and finish in the same millisecond. Then, the time jumped ahead by seconds. When it is updated, it is probably very accurate. If you want fine grain timing, you will need to do something else.
  Profile: EPOlson   Send Message To: EPOlson
Marcabru
Game Owner
Profile: MarcabruNWN
NWN: SoU
NWN: HotU
NWN 2
Mass Effect PC


Joined: 27 Oct 2002
From: Guadalajara, MEXICO
Posted: Wednesday, 02 March 2005 02:05AM
Lilac, with all due respect, I saw absolutely nothing in the first reply that constituted a sincere attempt to help. Being treated sarcastically as a mentally-challenged person is not my idea of help. I believe my question was reasonably specific.

Otherwise, many thanks for all the *true* attempts to help. I believe it is an important issue, especially for the kind of use I shall give to the toolset, about which all will learn in due time.

Marcabru

Edited By Marcabru on 03/02/05 02:09

  Profile: Marcabru   Send Message To: Marcabru
Cereborn
Game Owner
Profile: CerebornNWN
NWN: SoU
NWN: HotU


Joined: 06 Jun 2002
Posted: Wednesday, 02 March 2005 03:35AM
Wow. You have a chip the size of the rock of gibraltar on your shoulder - it's not going to buy you much here.

If the resolution of the clock is going to be that important to whatever grand scheme it is that your planning, I suggest you re-plan. Good luck.
_________________
The NESS User's Guild:
  Profile: Cereborn   Send Message To: Cereborn
Marcabru
Game Owner
Profile: MarcabruNWN
NWN: SoU
NWN: HotU
NWN 2
Mass Effect PC


Joined: 27 Oct 2002
From: Guadalajara, MEXICO
Posted: Saturday, 05 March 2005 06:21PM
My apologies... Was kinda cranky that day... WOn't happen again...

Marcabru
  Profile: Marcabru   Send Message To: Marcabru


What do these icons mean?
Where can I learn how to use the forums?

Jump To:

Search Forums | Forums FAQ | Forum Archives

 

 

Mass Effect Galaxy
Neverwinter Nights 2 Forums
Hide/Show

English
Deutsch
Français
Español
Italiano

Hide/Show

View Latest Screenshots 

View Latest Screenshots
Hide/Show

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



Current time is: (set time)
Tue, 09 February 2010 08:15PM

Hide/Show

Buy Premium Modules

Top NWN: HotU Modules:
1. Good vs Evil III
2. More...

Top NWN: SoU Modules:
1. Good vs Evil III
2. More...

Top CEP Modules:
1. The Lord of Terror The Diablo Campa...
2. More...

Top Modules - NWVault:
1. Hall of Fame
2. More...

Total Modules: 4423

Hide/Show

5,993,955 BioWare Users:
  55 Logged In
  8 Hidden
  479 Guests

1333 Playing Online
  100% NWN
  100% NWN: SoU
  99% NWN: HotU

426 Registered Guilds

9,000,877 posts in forums

Newest Forum Topics:
1. M.O.W. Internet needed? (NWN2: General discussion forums for NWN2 (No Spoilers Allowed))

2. Script control of encounters? (O... (NWN2: Builders - NWN2 Scripting)

3. Do i need to play BG 1? (Baldur's Gate II: SoA and ToB General Discussion)

4. Memorized Spells ui modification (NWN2: Custom Content)

5. My Dm's Can't log in, DM Client ... (NWN 1: Server Admin)