IRC logs of Libera.Chat #BZFlag for Friday, 2021-06-25

*** Gollum <Gollum!~Gollum@131.93.56.40> has joined #bzflag00:10
*** BulletCatcher <BulletCatcher!~bc@user/bulletcatcher> has joined #bzflag00:18
*** Gollum <Gollum!~Gollum@131.93.56.40> has quit IRC (Quit: Client closed)00:50
*** Gollum <Gollum!~Gollum@131.93.56.40> has joined #bzflag01:02
*** Gollum <Gollum!~Gollum@131.93.56.40> has quit IRC (Client Quit)01:02
*** User <User!~quassel@69-154-138-57.lightspeed.rcsntx.sbcglobal.net> has quit IRC (Ping timeout: 258 seconds)01:44
*** User <User!~quassel@69-154-138-57.lightspeed.rcsntx.sbcglobal.net> has joined #bzflag02:38
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 268 seconds)04:45
*** sean[m] <sean[m]!~brlcadmat@2001:470:69fc:105::1ff> has joined #bzflag05:06
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has quit IRC (Read error: Connection reset by peer)08:07
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag08:50
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 246 seconds)08:59
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag09:31
*** Gollum <Gollum!~Gollum@131.93.56.40> has joined #bzflag10:17
*** Gollum <Gollum!~Gollum@131.93.56.40> has quit IRC (Client Quit)10:17
*** DTRemenak <DTRemenak!~DTRemenak@2603-8001-3700-003f-64d9-8055-2b7f-eba0.res6.spectrum.com> has quit IRC (Ping timeout: 250 seconds)10:20
*** DTRemenak <DTRemenak!~DTRemenak@2603-8001-3700-003f-a45c-f6f8-1d0f-98da.res6.spectrum.com> has joined #bzflag10:20
*** sean[m] <sean[m]!~brlcadmat@2001:470:69fc:105::1ff> has quit IRC (Quit: Bridge terminating on SIGTERM)10:28
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has joined #bzflag10:29
*** sean[m]1 <sean[m]1!~brlcadmat@2001:470:69fc:105::1ff> has joined #bzflag10:32
*** JeffM[m] <JeffM[m]!~generalpu@2001:470:69fc:105::7ef> has joined #bzflag10:32
*** spoopydango[m] <spoopydango[m]!~spoopydan@2001:470:69fc:105::7f0> has joined #bzflag10:32
Userquestion about the bzflag API. does the function "bz_sendPlayCustomLocalSound" actually work? I don't think I've even seen it used before. are the paths to the file relative or absolute?12:29
*** User is now known as SpringTank12:29
*** Gort[m] <Gort[m]!~M-gort-ma@2001:470:69fc:105::7ed> has joined #bzflag12:29
*** SpringTank <SpringTank!~quassel@69-154-138-57.lightspeed.rcsntx.sbcglobal.net> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)12:31
*** User <User!~quassel@69-154-138-57.lightspeed.rcsntx.sbcglobal.net> has joined #bzflag12:32
*** User <User!~quassel@69-154-138-57.lightspeed.rcsntx.sbcglobal.net> has quit IRC (Client Quit)12:32
*** SpringTank <SpringTank!~quassel@69-154-138-57.lightspeed.rcsntx.sbcglobal.net> has joined #bzflag12:32
SpringTankquestion about the bzflag API. does the function "bz_sendPlayCustomLocalSound" actually work? I don't think I've even seen it used before. are the paths to the file relative or absolute?12:33
blast007nope12:40
blast007it had caused client crashes for some players, so we had disabled it on the server-side12:40
SpringTank:(12:47
SpringTankwould be a really nice feature12:47
blast007I traced our existing logo to clean up the shapes.  https://static.bzexcess.com/bzflag_assets/icon_preview.html13:25
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has joined #bzflag13:28
*** disco <disco!~disco@81.187.95.100> has quit IRC (Quit: Lost terminal)13:38
*** disco <disco!~disco@81.187.95.100> has joined #bzflag13:52
SpringTankso wait, I could techniclly reenable the bz_sendPlayCustomLocalSoun function by modifying my server?14:07
SpringTankwithout modding any clients14:07
blast007looks like it14:09
SpringTankany idea why it was crashing clients?14:09
blast007but not that we never did any work on fixing the crash or figuring out why14:09
blast007note*14:09
SpringTanki might set up a test server later just to see14:09
SpringTankdo you know where it is disabled? Is it just code that is commented out?14:10
blast007run 'git grep MsgCustomSound'14:11
*** kierra <kierra!~quassel@user/kierra> has quit IRC (Ping timeout: 268 seconds)14:11
*** kierra <kierra!~quassel@104.243.40.186> has joined #bzflag14:12
SpringTankfound it, ill try uncommenting the code and running a test server.14:13
*** disco <disco!~disco@81.187.95.100> has quit IRC (Ping timeout: 258 seconds)14:28
blast007heh.. and the old logo with slighly janky shapes actually looks better on our website logo..14:45
*** disco <disco!~disco@81.187.95.100> has joined #bzflag14:55
the_mapthe logo looks like going from W7 to W1015:08
*** kierra is now known as moriah15:11
*** moriah is now known as kierra15:13
SpringTanki got the custom sounds working on a private test server. This is really cool!15:19
the_maprickroll time15:19
SpringTankirk?15:19
SpringTankikr15:19
SpringTankwell, not exactly private15:20
SpringTankyou can still go to stupidnet.duckdns.org:515015:20
SpringTankshould work. Use the command /squish15:20
SpringTankI'll leave it up for a while if anyone else wants to try it and try to reproduce the client crash.15:21
SpringTankbut I really think bzflag needs this feature for some games/servers15:21
blast007is it using a .wav hosted on a web server, or is it just playing a local file from the data directory?15:29
SpringTankLocal file. Didnt know it could be a file hosted on a web server.15:33
SpringTankIm using the spree sound effects. Those dont play at the right speed though.15:34
blast0072.4 supports http and ftp URLs for downloads (but not https sadly).15:37
blast0072.6 will support http and https15:37
SpringTankSo i would list the sounds just like i would list custom textures for downloading and then tell the plugin to play the file?15:38
blast007it has been a long time since I tried to play custom sounds, so I can't recall.  I don't think there's anything in the map you add.  Might just be that you pass the URL as the sound name to bz_sendPlayCustomLocalSound, or you may have to use bz_sentFetchResMessage to get the file downloaded (I also notice there's a typo in that API function name - sent vs send)15:41
SpringTankhmmm, for now I'll stick with local sounds and I'll leave the test server up.15:45
SpringTankI might make another test server for testing URL sounds15:45
blast007I threw one up (unlisted) at xs.bzexcess.com:5000 that has a /local and /remote command16:16
blast007I haven't looked through the code yet to see if it follows the same DownloadAccess.txt rules as textures or if it's supposed to save the file out to the cache directory (I'm not seeing the file in cache here)16:18
blast007I ran a bz_sentFetchResMessage in the player join even to tell the player's client to download the URL, and then bz_sendPlayCustomLocalSound with just the base filename to play the sound16:19
SpringTankIll check it out.16:20
allejothe sound API has been disabled for a while because of crash issues16:23
allejoi think bz_sendPlayCustomLocalSound just returns true or something like that16:23
blast007yeah, I'm testing to see if I can get it to crash :)16:23
SpringTanki tried the remote command and no sound plays16:24
blast007gonna run through a variety of hardware and operating systems16:24
blast007SpringTank: do you have Remote Sounds enabled in your options?16:24
SpringTankbut the local command plays the laser sound16:24
SpringTankremote sounds? in options?16:25
blast007client options menu16:25
SpringTankjust checked, yes I do16:25
blast007hmm, okay16:25
blast007the sound played for me here, on Linux16:25
SpringTankim on windows16:25
blast007ah, let me try Windows16:25
SpringTankwhere does it download the sound to?16:25
SpringTankwin7 to be exact16:25
blast007ooooh, that's... hmm.. silly16:28
blast007it downloads into the data directory...16:28
SpringTankyeah, not here on mine either which is expected16:31
SpringTanki wonder if this is one of the reasons for the crashes?16:32
blast007very well could be16:32
blast007also it played at the wrong speed on Windows16:32
SpringTanki had the same problem16:32
SpringTankwith the spree sounds16:32
SpringTankbut other sounds seem to play fine16:32
blast007I wonder if only fully custom sounds (as in, URL based ones) were the source of the crashes... I can't recall now16:39
SpringTankI'm going to try out local sounds on my main server. I have a count down timers for my rtd plugin that I want to make sounds.16:43
SpringTankit's up if anyone wants to try it. just seach my name17:02
SpringTankIt appears that sounds only work on some clients regardless of the remote sounds enable setting.21:21
AgathaI was one of those who didn't hear any special sounds. Win 10.21:29
SpringTankI haven't noticed anyone's clients crashing *yet*. But for all I know they could have crashed and I didn't know it.22:28
*** Gollum <Gollum!~Gollum@131.93.56.40> has joined #bzflag23:19
blast007which sound file(s) are you playing?23:30
SpringTank./data/message_private.wav23:39
SpringTank./data/flag_lost.wav23:39
SpringTank./data/flag_won.wav23:39
SpringTank./data/spree4.wav23:40
SpringTankspree4 is one of the ones that doesn't play at the right speed23:40
SpringTankin fact, the only sounds that seem to play at the right speed are the default used sounds in bzflag. the unused sounds don't play right23:40
SpringTankand I'm using relative paths.23:41
SpringTankbz_sendPlayCustomLocalSound (BZ_ALLUSERS, "./data/spree4.wav" );23:41
blast007you can actually just use the base filename (so, spree4.wav for instance)23:51
SpringTankill give it a shot23:51
blast007the spree files probably don't play right because they're 48000 Hz, whereas most of our files are 22050 Hz23:52
blast007our wave file reader is picky23:53
SpringTankthat sounds about right. 23:54
SpringTankbase filenames seem to work for me.23:55

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