*** short_circuit <short_circuit!~spldart@bzflag/contributor/spldart> has quit IRC (Quit: Leaving) | 03:05 | |
*** spldart <spldart!~spldart@bzflag/contributor/spldart> has joined #bzflag | 03:09 | |
*** ChanServ sets mode: +v spldart | 03:09 | |
*** Zehra <Zehra!~Keiki_Han@unaffiliated/zehra> has quit IRC (Quit: Quit) | 03:28 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has quit IRC (Ping timeout: 244 seconds) | 03:40 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has joined #bzflag | 04:13 | |
*** Sgeo <Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net> has quit IRC (Read error: Connection reset by peer) | 07:32 | |
*** disco- <disco-!~disco@unaffiliated/disco-> has quit IRC (Read error: Connection reset by peer) | 11:21 | |
*** disco- <disco-!~disco@unaffiliated/disco-> has joined #bzflag | 11:24 | |
*** Agatha <Agatha!180a9d90@c-24-10-157-144.hsd1.ut.comcast.net> has joined #bzflag | 11:53 | |
Agatha | Quick question; sorry IDK what I'm doing! Looking at https://github.com/BZFlag-Dev/bzflag/blob/2.4/src/bzfs/bzfsAPI.cxx#L932 it seems to set the player's last update time to the last time the player sent a message? Is that on purpose? Where can I get the time that goes with lastKnownState instead? | 12:00 |
---|---|---|
blast007 | that's probably not exposed to the API | 13:12 |
blast007 | what are you wanting to use it for? | 13:12 |
blast007 | you could track that yourself by using the bz_ePlayerUpdateEvent event | 13:14 |
BZNotify | master @ bzflag: atupone pushed 1 commit (https://git.io/JUfp6): | 13:54 |
BZNotify | master @ bzflag: atupone f67916: Removing dithering from localization files (https://git.io/JUfpi) | 13:54 |
*** _I_Died_Once <_I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has joined #bzflag | 14:57 | |
*** bboles_ <bboles_!~quassel@2602:fe90:604:1b::52f2:f9b3> has joined #bzflag | 15:01 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has quit IRC (Ping timeout: 240 seconds) | 15:03 | |
*** bboles <bboles!~quassel@2602:fe90:604:1b::52f2:f9b3> has quit IRC (Ping timeout: 240 seconds) | 15:03 | |
*** nitroxis <nitroxis!n@nxs.re> has quit IRC (Read error: Connection reset by peer) | 15:03 | |
*** nitroxis <nitroxis!n@nxs.re> has joined #bzflag | 15:08 | |
*** DTRemenak <DTRemenak!~DTRemenak@about/essy/CrazyCoder/DTRemenak> has quit IRC (*.net *.split) | 15:22 | |
*** The_Noah <The_Noah!~The_Noah@47.185.206.30> has quit IRC (Read error: Connection reset by peer) | 15:24 | |
*** The_Noah <The_Noah!~The_Noah@47.185.206.30> has joined #bzflag | 15:26 | |
*** DTRemenak <DTRemenak!~DTRemenak@about/essy/CrazyCoder/DTRemenak> has joined #bzflag | 15:34 | |
*** egan.freenode.net sets mode: +v DTRemenak | 15:34 | |
*** Sgeo <Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net> has joined #bzflag | 16:20 | |
Agatha | blast007, I'm trying to use it to extrapolate the player's state to the current time. For example | 19:48 |
Agatha | player->lastKnownState.rotation+(now-player->lastUpdateTime)*player->lastKnownState.angVel; | 19:48 |
Agatha | The trouble is that player->lastUpdateTime seems to have nothing to do with the last update time, but instead the last *message* time. | 19:49 |
CaptainRoberts[m | without modifications to the API, you'd need to save the timestamp during the bz_ePlayerUpdateEvent in a map based on the player ID | 19:49 |
CaptainRoberts[m | then use that saved value as the starting time for your interpolation | 19:49 |
CaptainRoberts[m | bzfs has the number you need, it is just not exposed in the API | 19:50 |
Agatha | Okeeeey tracking it myself seems to work | 20:08 |
Agatha | thanks | 20:08 |
*** Okina <Okina!~Keiki_Han@unaffiliated/zehra> has joined #bzflag | 23:53 |
Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!