IRC log for #bzflag on 20180606

00:11.09JeffMare you going to use a container?
00:12.55ZehraI'll have to read up on how to use them.
00:13.07JeffMthen what is your plan for the rewrite?
00:15.05ZehraI'm basically planning to clean out a lot of the hard coded stuff, so I'm having to check on arrays and stuff.
00:18.47*** join/#bzflag infobot (ibot@rikers.org)
00:18.47*** topic/#bzflag is https://BZFlag.org || http://ohloh.net/p/bzflag || https://bzflag.org/help || Channel Logs: http://infobot.rikers.org/%23bzflag/ || 2.4.14 released! https://forums.bzflag.org/viewtopic.php?f=62&t=19953
00:18.47*** mode/#bzflag [+v infobot] by ChanServ
00:19.07JeffMyou want to trigger the flag when the score is between the min and max
00:19.22JeffMso what does between mean in math?
00:20.24Zehraoops, made another mistake in the code.
00:20.57JeffMyou are thyinking of the test as backwards
00:21.04JeffMdon't htink about what to disallow, think about what to allow
00:21.12JeffMit's much easier that way
00:21.36Zehraoh, okay.
00:22.07Zehrathanks for the tip JeffM.
00:22.43JeffMtell me how you'd test if 'i' was between 'max' and 'min'
00:24.09Zehraif (i <= max && i >= min)
00:24.23JeffMgood
00:24.33JeffMthats the test I used
00:25.22JeffMdo you know that you can assign bools to the results of a test?
00:25.51JeffMflagData->allow = (i >= min && i <=max);
00:26.01Zehrawhoa
00:26.10JeffMc basics
00:26.59JeffMthis is why it's always best to do the most basic C tutorials first
00:27.10JeffMso you understand variables
00:28.47ZehraIt explains why the logic of most of my plug-ins end up failing. :p
00:29.11JeffMno, that's becausee your logic is wrongt
00:29.20JeffMif you used assignment, it'd still be wrong.
00:30.18Zehraah okay.
00:31.04JeffMYou are just making your tests way more complicated than they need to be
00:32.58ZehraI need to not overengineer them. :p
00:41.03JeffMYou also realize that you’re punishing people with higher scores right?
00:42.14ZehraYes, but it depends on how the settings are done.
00:42.36Zehracould set it to the max possible score
00:43.41JeffMNo I mean I general
00:44.03JeffMBy using the allow instead of grant you are forcing people to go find the flags
00:44.20JeffMThey don’t know where the flag they can have is
00:44.26JeffMSo they have to search
00:44.50ZehraZones exist and can be made for this specific purpose.
00:45.12JeffMAnd how do the players know what flags are in what zones?
00:45.42JeffMThat’s why grant was used in the real plugin, it rewards players
00:45.45blast007you draw the flag abbreviation with boxes
00:45.52JeffMIt doesn’t make them hunt
00:46.18JeffMSo camp the high score zone and win big ;)
00:46.51JeffMIt just doesn’t sound intuitive
00:46.53ZehraWait, like in what sense of rewarding players?
00:47.10ZehraI'm probably a bit slow too, like how does grant play into this?
00:47.11JeffMMy score his high, I got a better flag
00:47.16JeffMReward
00:47.47JeffMOr my score is low, I got a better flag, whatever way you want to do it
00:48.07JeffMBut you are not giving them a flag, you are giving them permission to find it
00:48.22JeffMYou are giving them a job to do
00:48.49ZehraFrom my understanding, giving players a flag doesn't really work well in high lag situations or when jitter is present. :/
00:49.04ZehraI'm probably wrong with this, but this is what I've read in the forums.
00:49.21JeffMThat’s a technical problem, you have a conceptual gameplay problem
00:49.39JeffMThe question is, is your method fun or not
00:50.02ZehraI'm actually not handling the game play, someone else it.
00:50.12JeffMForcing someone to go find a flag seems unfun
00:50.35JeffMYour plugin changes gameplay, thus you are affecting gameplay
00:50.58ZehraThat's because you don't have the whole picture, there is a few other items involved in adjusting the game play.
00:51.11ZehraIncluding going after a single flag.
00:51.18JeffMAhh
00:51.24JeffMThis for your quilt map?
00:51.34ZehraNope.
00:51.51ZehraI'm just handling the plug-in for this, not the map or the game play.
00:52.29blast007your plugin controls the game play...
00:54.07ZehraThe plug-in in question is being created on request.
00:55.01ZehraI'm not experienced with maps or plug-ins, so I don't know the whole extent of it all.
00:56.15ZehraBut they do, they have the experience with maps and game play, having done it for years.
00:56.26JeffMYet you are writing it ;)
00:57.38ZehraIt depends a lot on how the plug-in is used and the map made for it.
00:58.15ZehraI probably sound stupid, but basically the same plug-in can make something better or make it worst. :p
01:01.29*** join/#bzflag spldart (~spldart@bzflag/contributor/spldart)
01:01.29*** mode/#bzflag [+v spldart] by ChanServ
01:08.44JeffMWell show me your code when you are done with your rewrite
01:11.36*** join/#bzflag Zehra (~Zehra@unaffiliated/zehra)
01:17.22macsformethe more I read about it and reflect on it, the less concerned I am that we will lose the ability to use OpenGL on macOS or iOS anytime in the near future
01:19.08macsformemany people have pointed out that there is a lot of software, including many professional applications, that still rely on it, and the general sentiment is that Apple is unlikely to get rid of compatibility at this point or in the near future
01:20.11macsformefurthermore, there are many examples of deprecated macOS frameworks, API calls, etc. that are still available after 6-7 years of deprecation, so I think OpenGL will likely fall into that camp
01:20.47macsformeso, I am comfortable moving forward with our proposed OpenGL 3.2 transition
01:23.09JeffMprobably as long as they stay on x86 that's true
01:23.27JeffMbut yeah it's probalby not the end of the world to use GL3.2
01:24.53JeffMI'm assuming deperecated system count would be too high if vulcan was used?
01:37.31JeffMmacsforme: have you had quality issues with the 3.2 implementation on OSX?
01:37.59JeffMI've heard some games have issues, like they dropped the port of Elite Dangerous on mac because they could not get it work correctly.
01:41.35JeffMthe best mac I have here only supports openGL 1.3 :)
01:44.12macsformemy OpenGL 3.2 macOS experiments have been solid so far
01:45.10JeffMcool
01:45.30JeffMelite was probably trying to use GL 4 or something
01:45.35JeffMthey do some wacky stuff
01:45.41JeffMand it looks puuuurrrrrdddddyyyy
02:04.52blast007http://www.g-truc.net/doc/OpenGL%20status%202013-11.pdf  http://www.g-truc.net/doc/OpenGL%20status%202014-05.pdf  http://www.g-truc.net/doc/OpenGL%204%20Hardware%20Matrix.pdf
02:37.04allejoupdate on yaml-cpp, the version bundled in ubuntu is 0.5.x which requires a boost dependency. yaml-cpp 0.6.x is boost free and uses c++11. but we'd have to bundle yaml-cpp outselves. but it looks like it works with cmake
02:37.15allejoubuntu 16.04 lts, i.e.
02:39.03blast007"bundle yaml-cpp ourselves" meaning what?
02:39.29blast007you mean for Windows and macOS?
02:40.03FlashI am becoming more fond of cmake
03:09.46*** mode/#bzflag [-v short_circuit] by ChanServ
03:27.06allejoif we move to cmake, would that be used on linux too?
03:27.57allejomy only concern about yaml-cpp on linux is the bundled (apt-get) version on ubuntu 16.04 lts (possibly debian, haven't checked) requires boost
03:28.16allejowouldn't want to add unnecessary dependencies, no?
03:48.11Flashcmake rocks linus
03:48.13Flashlinux
03:54.01JeffMCurl won’t build on Windows with cmake
03:54.35JeffMBut curl could be replaced
03:54.52JeffMA number of Windows deps could be replaced
03:58.11allejoas someone who's never worked with cmake, would we be able to use a specfic version of a dependency without relying on them being provided by the system (e.g. curl or yaml-cpp)
03:58.33JeffMYou can tell it where the sources are
04:00.14allejoah so we'd just point to whatever dep and version we need?
04:00.59JeffMYeah
04:01.11allejosounds purdy
04:01.31JeffMIt’s functional
04:01.46JeffMThe tool is a little confusing on Windows but it works
04:01.57JeffMOnce you get it setup
04:03.07JeffMThere is a cmake addin for visual studio, but I haven’t tried it
04:04.04allejowhat's the add-in supposed to do? make cmake easier to manage/use?
04:04.34JeffMBut really, it’s be relatively easy to use native libs for ares, curl, and libpng
04:04.58JeffMhttps://docs.microsoft.com/en-us/cpp/ide/cmake-tools-for-visual-cpp
04:12.57allejoah so there's no need to generate something specific for VS anymore, VS will just accept it?
04:13.09JeffMDunno
04:13.37JeffMOr vc may generate the projects itself
04:13.55Flashvs generates projects from cmake
04:13.59Flashit works fine
04:14.05Flashvs 17
04:14.50Flashif you open a _folder_ with a CMakeLists.txt file, VS 17 generates the project
04:15.11JeffMThen there ya go
04:17.15allejo:D
09:42.23*** mode/#bzflag [+v spldart] by ChanServ
10:13.23blast007allejo: *we* wouldn't depend on boost, the yaml-cpp would
10:14.01blast007so we'd just tell them to install yaml-cpp-dev to build.  if their yaml-cpp depends on boost, it'll install the boost stuff.  Otherwise, it won't.
10:26.06*** mode/#bzflag [-v short_circuit] by ChanServ
15:47.58*** join/#bzflag I_Died_Once (~I_Died_On@unaffiliated/idiedonce/x-1828535)
17:28.08allejoblast007: for ubuntu 16.04, boost's a dependency but it's not listed in the package. you've gotta install it yourself. for 18.04 that's been fixed
17:28.39blast007then that's a bug with Ubuntu
17:30.25allejoso nothing that we'd have to worry about?
17:31.14blast007it's something that Ubuntu should fix
17:32.29blast007their later versions (17.10, 18.04) both have libyaml-cpp-dev depend on libboost-dev
17:35.18blast007http://changelogs.ubuntu.com/changelogs/pool/universe/y/yaml-cpp/yaml-cpp_0.5.2-4ubuntu1/changelog  "* Add libboost-dev dependency (Closes: #812851)"
17:36.22allejoi take it that adding a dependency breaks LTS so that's why i wasn't backported to 16.04?
17:36.24blast007that bug number seems wrong though
17:36.39allejolts policy*
17:36.50blast007I have no idea
17:37.23blast007https://bugs.launchpad.net/ubuntu/+source/yaml-cpp/+bug/1318940
17:41.23blast007https://bugs.launchpad.net/ubuntu/+source/yaml-cpp/+bug/1646914  unclear if the packaged version even works... :)
17:42.58blast007looks like it might be an issue in Debian, which Ubuntu inherited
17:43.15blast007Debian Jessie is missing the boost dependency, but Stretch has it
17:43.35allejoi wonder what I'm running, at least for my usage yaml-cpp compiled and ran
17:44.31blast007yeah... that bug number from the changelog was a debian bug number  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812851
17:44.38allejoyea, 0.5.2-3 so i should be affected by that?
17:44.48blast007maybe
17:45.37blast007https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847099
17:47.54allejopfft
17:51.26blast007also there's also unfixed vulnerabilities in the Debian yaml-cpp package  https://security-tracker.debian.org/tracker/source-package/yaml-cpp
17:52.37blast007unfixed for 10 months
17:52.41blast007maintainer seems to be MIA
17:53.38allejohttps://github.com/jbeder/yaml-cpp/issues/519
17:54.05allejoone of the vulnerabilities still exists upstream
17:54.41blast007nnnnnnnnNEAT
17:54.43allejocorrection, both https://github.com/jbeder/yaml-cpp/issues/459
17:54.47blast007heh
17:59.10allejohttps://bitbucket.org/xi/libyaml/issues/9/yaml-12-support doesn't have yaml 1.2 support (where json compat was fixed in the spec)
17:59.19allejoand https://github.com/tlsa/libcyaml has yet to see a stable release
17:59.52blast007https://github.com/mayah/tinytoml
18:00.51blast007https://github.com/ToruNiina/toml11
18:02.09blast007https://github.com/nlohmann/json
18:02.43blast007we could certainly have a separate JSON parser and use TOML for configs
18:03.20blast007for that JSON library: "The library is currently used in Apple macOS Sierra and iOS 10. I am not sure what they are using the library for, but I am happy that it runs on so many devices."
18:04.15allejoi was only interested in yaml because it'd kill two birds with one stone, but using two separate parsers for toml and json is fine by me
18:04.27allejothat json package also seems far more active than json-c
18:04.56allejoand the json-c api is a pain to work with
18:05.14blast007the json one also supports UTF-8
18:06.24allejoalso seems that the json one is a single header for everything
18:07.53blast007one header to rule them all
18:09.11allejoi'm sold on this combination
18:09.31blast007k
18:09.50blast007I'll have to play with TOML a bit to see if it's a decent fit
18:10.21blast007It should work well enough for the client config, but I'm not sure how it'll look for, say, a group db, a ban file or a report file
18:10.59blast007I had previously looked into using SQLite and YAML for those
18:11.21blast007SQLite's API was a bit... complicated and unforgiving
18:11.30blast007very much a C API
18:12.01blast007and their documentation wasn't very good either
18:12.07allejoi'd think that the toml would look like an array of structs for a group db or ban file
18:12.12allejono?
18:12.13blast007for YAML I think I was using yaml-cpp, so...
18:12.35blast007maybe.  I haven't really looked into what TOML can do
18:13.17allejoah
18:17.11allejopossible ban file structure? https://paste.ee/p/sOspU
18:17.21allejosince toml supports arrays of stuff
18:18.04blast007I approve of those ban messages
18:18.53allejo:p
18:45.50blast007https://github.com/crdoconnor/strictyaml/blob/master/FAQ.rst#why-not-use-toml
22:04.06*** join/#bzflag spldart (~spldart@bzflag/contributor/spldart)
22:04.06*** mode/#bzflag [+v spldart] by ChanServ
22:12.05*** join/#bzflag spldart (~spldart@bzflag/contributor/spldart)
22:12.05*** mode/#bzflag [+v spldart] by ChanServ
22:22.44*** join/#bzflag short_circuit (~spldart@bzflag/contributor/spldart)
22:22.44*** mode/#bzflag [+v short_circuit] by ChanServ
22:35.57*** join/#bzflag spldart (~spldart@bzflag/contributor/spldart)
22:35.57*** mode/#bzflag [+v spldart] by ChanServ

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.