*** OkinaMatara <OkinaMatara!~Yukari@user/yukari> has joined #bzflag | 00:28 | |
*** Flash_ is now known as Flash | 00:34 | |
allejo | is the mic on? anyone understand what the purpose of bz_eServerAddPlayer is? :( | 00:40 |
---|---|---|
OkinaMatara | Is it a function or event? | 00:43 |
OkinaMatara | Looking 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 |
OkinaMatara | if I understand this correctly, it seems to allow a form of delay on a player which is joining a server. | 00:53 |
OkinaMatara | wait, nvm... | 00:54 |
OkinaMatara | Seems to be this: "void AddPlayer(int playerIndex, GameKeeper::Player *playerData)" | 00:56 |
OkinaMatara | BZF_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 |
OkinaMatara | goes to: if (eventData.allow) and triggers AddPlayer(p, &playerData); | 01:00 |
blast007 | bz_eServerAddPlayer is called before bz_eAllowPlayer | 01:02 |
OkinaMatara | void AddPlayer(int playerIndex, GameKeeper::Player *playerData) is where things get interesting and slightly before as well. (In the conditional logic.) | 01:02 |
blast007 | immediately after global auth has completed/failed | 01:03 |
blast007 | I'm not 100% sure for the reason it exists | 01:05 |
BulletCatcher | bz_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 |
BulletCatcher | It isn't clear what the real requirement was for it. | 01:06 |
OkinaMatara | By any chance was this meant for some form of adding/changing auth status? | 01:07 |
allejo | doubt it, I don't think there's an API way of changing auth status | 01:13 |
allejo | I could see that event being useful for something like my VPN blocker, where it needs to check if an IP is blacklisted | 01:13 |
allejo | sorta-ish | 01:14 |
allejo | though, 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 server | 01:15 |
allejo | oh no wait... it does have player data attached to it! | 01:16 |
allejo | I wonder if I could use it | 01:16 |
allejo | thanks for the info everyone <3 | 01: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 Agatha | 07: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 #bzflag | 08:49 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag | 12: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 #bzflag | 13:26 | |
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has joined #bzflag | 13: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 #bzflag | 20:11 | |
*** Zehra <Zehra!~Yukari@user/yukari> has joined #bzflag | 23:53 |
Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!