IRC logs of Libera.Chat #BZFlag for Tuesday, 2021-11-30

SpringTankI should have mentioned wings3D as well, I do use it but it's lacking in features.01:14
SpringTankWhat I would really like is something that not only does the default boxes and whatnot, but also meshes, teleporters (and handles them correctly), texturing, zones, and drawinfo all in one program.01:16
SpringTankbut I don't think anything like that exists right now01:16
OkinaMataraI recall something of a program like that existing at one point.01:17
OkinaMataraI remember iBZEdit supporting mesh viewing, but not editing.01:17
blast007closest thing might have been the BZWTools plugin for Blender01:17
OkinaMataraI'm not sure, but I know you could view meshes and textures in BZWorkbench, although for zones, I don't think so.01:18
blast007I have it archived here, but I doubt it will work in the recent versions of blender: https://static.bzexcess.com/downloads/BZWTools/01:18
OkinaMataraYou may want to look at pyBZEdit, although for zones it does lack, IIRC.01:18
OkinaMataraSame as the previous items I mentioned.01:19
OkinaMataraWhat may also be considered is to simply title boxes with a "zone" prefix, as they behave the exact same way, except in the circular form. (If it exists.)01:19
blast007pyBZEdit does look somewhat promising01:20
Optic_Delusion so does allejo's web-vzedit01:20
OkinaMataraThe windows version did work alright-ish, if I recall, but there was some issues with trying to get it to build with newer dependencies or something.01:20
OkinaMatara(Regarding pybzedit.)01:21
SpringTank-->What may also be considered is to simply title boxes with a "zone" prefix, as they behave the exact same way, except in the circular form. (If it exists.)01:21
SpringTankthat's what ive been doing.01:21
SpringTankand i tried  BZWTools, it doesn't work with modern blender and doesn't seem to even play nice with win7 :/01:22
OkinaMataraweb-bzedit has basically has a lot of the features from all major bz-map editors.01:22
OkinaMatara-->that's what ive been doing01:22
SpringTankfrom the wiki "With the update of wxPython, it seems that the map viewing section of pyBZEdit is not compatible with the new version and therefore is not working. "01:23
SpringTank:/01:23
OkinaMataraI know it isn't ideal, although its effects can be improved a bit by texturing those specific "zones".01:23
OkinaMataraWiki is dated and contains information with varying degrees of accuracy, some of it is questionable too.01:24
allejoa pull request is welcome for web-bzedit to support zones. it's not that hard, the logic will practically be the same as a box01:30
SpringTankill be honest, I don't know what a pull request is or how to do one...01:49
allejo:(02:02
allejoa pull request is how you contribute code to open source projects. basically, you write code in your own copy of the project (called a fork) and then submit it to the original project saying, "hey look. here's my code adding this new feature!"02:03
blast007basic workflow. 1) fork a project on GitHub 2) In your fork, create a branch off the upstream branch you want to contribute to 3) Make changes, commit the changes, and push them back to your fork's branch 4) Submit a pull request02:08
SpringTankahh, i get it03:12
SpringTankfigured it was something like that.03:12
SpringTankso if I fix a bug in bzflag I can subbmit a pull request for that?03:12
SpringTanki mean, i know its possible, but would it be allowed?03:13
OkinaMataraumm, yes.03:13
OkinaMataraMaybe if it breaks compatibility, no, but in that case it may be suggested to be merged to master branch.03:14
OkinaMataraa.k.a. future dev version of bzf.03:14
allejodepends on the bug and how you'd fix it. i only say that because if it's a significant bug, you'd probably want to chat with us on *how* it should be fixed before you put effort into any heavy workloads03:14
SpringTankright03:14
SpringTankright03:14
allejobut otherwise, bz welcomes pull requests :)03:14
SpringTankA while back, a couple of months maybe, I fixed an issue with 2.4.22 so that it also checks the cache for downloaded sounds. Code here: https://pastebin.com/scjY3mLR03:16
SpringTankall I did was add 3 lines and a comment to BzfMedia.cpp03:17
SpringTank    // try the cache...03:17
SpringTank    name = makePath(name, CACHEMGR.getLocalName(filename));03:17
SpringTank    sound = doReadSound(name, numFrames, rate);03:17
SpringTank    if (sound) return sound;03:17
SpringTankwould something like that be acceptable?03:18
SpringTankit was something i brought up to blast as well, he wanted to fix it for 2.6 though but I'm impatient. :D03:19
SpringTankwhich is understandable. the way blast wanted to fix it was way better than my idea03:21
SpringTanki don't know if he has worked on it though...03:32
SpringTankif not, I would be happy to work on it myself.03:33
*** OkinaMatara <OkinaMatara!~Yukari@user/yukari> has quit IRC (Quit: Quit.)04:36
SpringTankdid my first pull request on someone else's parser they wrote a long time ago. It was a bug that added an extra byte when it wasn't supposed to.05:20
SpringTankpretty cool05:20
allejohmm i have no qualms with a fix for that. however i don't know what concerns blast may have had, so we'll wait for him to chime in05:59
allejocongrats on your first pull request :D05:59
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 264 seconds)07:21
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag07:38
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has quit IRC (Read error: Connection reset by peer)08:20
*** sean[m]1 <sean[m]1!~brlcadmat@2001:470:69fc:105::1ff> has quit IRC (Quit: You have been kicked for being idle)09:00
blast007we're not adding the custom sound code "fix" to 2.409:54
blast007a more major refactoring of that code will be done for 2.609:54
BZNotifybzflag: blast007 commented on pull request #291 "GitHub action to ensure BZFlag builds" by The-Noah (https://git.io/JMzpK): Our codeql-analysis.yml file already triggers a build on ubuntu-lat...10:30
BZNotifybzflag: blast007 commented on issue #284 "Mouse cursor hidden when running fullscreen on Wayland" (https://git.io/JMged): There's a mention that this issue has been fixed:...10:49
BZNotifybzflag: blast007 commented on issue #282 "Dual Monitors" by bluecoat58 (https://git.io/JMgvq): Please provide the version of BZFlag that you are using and let us ...10:50
SpringTankwhat kind of features will it have and has work already been started on it?15:55
SpringTanknot 2.6 specificlly, the sound code is what I'm referencing.15:56
*** rodgort <rodgort!~rodgort@static.38.6.217.95.clients.your-server.de> has quit IRC (Ping timeout: 256 seconds)16:44
*** cods <cods!~fred@82-65-232-44.subs.proxad.net> has quit IRC (Ping timeout: 256 seconds)16:45
*** allejo <allejo!~allejo@user/allejo> has quit IRC (Ping timeout: 256 seconds)16:45
*** rodgort <rodgort!~rodgort@static.38.6.217.95.clients.your-server.de> has joined #bzflag16:45
*** allejo <allejo!~allejo@104.243.40.186> has joined #bzflag16:45
*** ChanServ sets mode: +v allejo16:45
*** cods <cods!~fred@82-65-232-44.subs.proxad.net> has joined #bzflag16:46
blast007SpringTank: it should work largely the same as how it was originally intended17:16
blast007it will use the cache system and enforce the download URL to be something allowed in DownloadAccess.txt17:17
blast007plugins would register a custom sound during the init method17:18
blast007(so then there would be a short name associated with which sound to play)17:18
SpringTankhas it been implemented in 2.6 yet? if not I'll give it a throw17:19
blast007nope17:19
SpringTankI'll see what I can come up with.17:20
blast007don't think I've pushed anything yet17:20
blast007but I have the start of the changes17:20
SpringTankwell based on current 2.4 code, it shouldn't take much if 2.6 works mostly the same way17:20
blast007it *works* mostly the same way but it isn't *implemented* the say way  :)17:21
SpringTankwhere is the 2.6 repo?17:21
blast007it's the master branch17:22
blast007it's technically the 2.5 version right now since it won't be 2.6 until we release17:22
blast007here's the early start of what I was doing: https://gist.github.com/blast007/54b1b9bb23ccef4f4820d859aa3c756e17:31
blast007MsgCustomSounds will tell the client what custom sounds are available, and it will download all of those.  Idea is to send that during the join so it downloads them before or after textures.17:33
blast007MsgPlaySound replaces the old MsgCustomSound, since it can play both standard and custom sounds17:33
blast007and it will be expanded to support both local (in your tank) and world sounds17:34
blast007allejo: SpringTank's fix for 2.4 just added the cache directory to the search path for sounds, and then you'd have to put sound files as textures to get them to download into the cache17:37
blast007the existing code for fetching sounds tries to download them into the data directory of the game, which... is stupid17:37
blast007(also doesn't respect DownloadAccess.txt)17:37
blast007need to also write up some upgrade code to add resources.bzflag.org into the DownloadAccess.txt for existing installs17:38
blast007or I could pull a Microsoft and just forcefully whitelist our subdomains in the code :P17:40
allejohahahaha of course it'd try to download sounds into our own data/ directory18:03
allejoi love it18:03
blast007it's probably part of why it was crashing some computers :)18:07
blast007crashing on some computers, that is18:07
allejowould explain a lot18:13
blast007must have been that nobody tried the original implementation on an installed copy of the game, cuz that would have given a clear indication it didn't work on Windows and Linux, and maybe Mac18:21
blast007would have worked fine from your home directory :)18:22
blast007I'm sure when I was trying to find the crashing issue I was running it from a directory that my user could write to18:22
blast007first audio related thing I want to finish is fixing the pop sound18:30
blast007that's for 2.418:30
* allejo makes a popping noise with his mouth18:30
allejothat noise?18:31
blast007at least on most of my systems, when sounds play there's a little pop noise near the start of the sound18:31
blast007specifically for world sounds (so, other tanks shooting/exploding/etc), not sounds that come from your own tank18:32
blast007https://youtu.be/L3iCenGGF18?t=76  this is an example18:34
blast007the pops are actually a big part of why the video on the front page of bzflag.org is silent ;)18:38
SpringTankive noticed the pops as well on win718:52
blast007yeah, I had probably done all my original recordings for the front page video on either Windows 7 or 8.119:01
blast007but I'm also getting them on my linux machine19:02
SpringTanklol20:34
SpringTankdon't know if it does it on linux though, i would have to check later20:34

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