IRC logs of Libera.Chat #BZFlag for Friday, 2021-08-27

*** OkinaMatara <OkinaMatara!~Yukari@user/yukari> has joined #bzflag00:28
*** Flash_ is now known as Flash00:34
allejois the mic on? anyone understand what the purpose of bz_eServerAddPlayer is? :(00:40
OkinaMataraIs it a function or event?00:43
OkinaMataraLooking through bzfs/bzfs.cxx and include/bzfsAPI.h, what is a bit odd is seemingly the delay factor in 'bzfs.cxx' and boolean factor in 'bzfsAPI.h'...00:52
OkinaMataraif I understand this correctly, it seems to allow a form of delay on a player which is joining a server.00:53
OkinaMatarawait, nvm...00:54
OkinaMataraSeems to be this: "void AddPlayer(int playerIndex, GameKeeper::Player *playerData)"00:56
OkinaMataraBZF_API bz_ServerAddPlayerData_V1 in bzfsAPI.h, in bzfsAPI.cxx BZF_API bool bz_addPlayerToGame( int playerID ), in bzfs.cxx bz_ServerAddPlayerData_V1 eventData;00:59
OkinaMataragoes to: if (eventData.allow) and triggers AddPlayer(p, &playerData);01:00
blast007bz_eServerAddPlayer is called before bz_eAllowPlayer01:02
OkinaMataravoid AddPlayer(int playerIndex, GameKeeper::Player *playerData) is where things get interesting and slightly before as well. (In the conditional logic.)01:02
blast007immediately after global auth has completed/failed01:03
blast007I'm not 100% sure for the reason it exists01:05
BulletCatcherbz_eServerAddPlayer was added in commit 75000afc with this message: Add api event and functions that let a plugin delay the call to AddPlayer so it can look things up from a remote source. If the API delays the add but does not process it within _maxPlayerAddDelay seconds then the player will be automatically added (default limit is 30 seconds).01:06
BulletCatcherIt isn't clear what the real requirement was for it.01:06
OkinaMataraBy any chance was this meant for some form of adding/changing auth status?01:07
allejodoubt it, I don't think there's an API way of changing auth status01:13
allejoI could see that event being useful for something like my VPN blocker, where it needs to check if an IP is blacklisted01:13
allejosorta-ish01:14
allejothough, i don't think it'd work for me since I do need to check player permissions on whether or not to even check for a VPN. doubt player info exists before they're added to the server01:15
allejooh no wait... it does have player data attached to it!01:16
allejoI wonder if I could use it01:16
allejothanks for the info everyone <301:17
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 250 seconds)03:16
*** OkinaMatara <OkinaMatara!~Yukari@user/yukari> has quit IRC (Quit: Quit.)03:33
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has quit IRC (Read error: Connection reset by peer)06:46
*** Agatha_ is now known as Agatha07:18
*** yuitimothy <yuitimothy!~yuitimoth@user/yuitimothy> has quit IRC (Ping timeout: 245 seconds)08:49
*** yuitimothy <yuitimothy!~yuitimoth@vps-022df355.vps.ovh.ca> has joined #bzflag08:49
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag12:22
*** bboles <bboles!~bboles@64.94.212.195> has quit IRC (Read error: Connection reset by peer)13:26
*** bboles <bboles!~bboles@64.94.212.195> has joined #bzflag13:26
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has joined #bzflag13:33
*** dngor <dngor!abuse@104-136-128-018.biz.spectrum.com> has quit IRC (Ping timeout: 240 seconds)20:11
*** dngor <dngor!abuse@104-136-128-018.biz.spectrum.com> has joined #bzflag20:11
*** Zehra <Zehra!~Yukari@user/yukari> has joined #bzflag23:53

Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!