macsforme | if we redo the UI and textures, going forward what maximum display resolution do we want to target? | 02:24 |
---|---|---|
macsforme | I see there are 8K televisions coming, but computer displays seem maxed out at 4K or 5K right now? | 02:25 |
The_Noah | IWhat resolution textures | 02:38 |
Zehra | I noticed one issue on a plug-in of mine, but cannot remember the precise workaround used for it. | 02:38 |
The_Noah | should be made | 02:38 |
Zehra | The following code section is being used, but it does not provide any data after the check, hence why I'm able to know it is this precise code. if (grabData->flagType == "TH") | 02:40 |
allejo | if grabData is an instance of bz_eFlagGrabbedEvent, then flagType is a `const char*` which doesn't have the `==` operator | 02:42 |
macsforme | yeah, that's not how you compare C-style strings | 02:42 |
Zehra | Dam it, thought it was bz_apistring. | 02:44 |
macsforme | bz_ApiString(grabData->flagType) == "TH" | 02:44 |
allejo | or `strcmp(grabData->flagType, "TH") == 0` | 02:45 |
macsforme | or #include <cstring>, strcmp(grabData->flagType, "TH... yeah :-P | 02:45 |
Zehra | I'll stick to C style for my sanity. | 02:45 |
allejo | or `"TH" == grabData->flagType` (I think) | 02:45 |
macsforme | how would that work? | 02:46 |
Zehra | Cannot convert argument 1 from 'bz_ApiString' to 'const char*'. | 02:53 |
macsforme | reverse them | 02:55 |
macsforme | the bz_ApiString goes first | 02:57 |
Zehra | Adding ".c_str()" seems to fix it. | 02:58 |
macsforme | now you have the same problem you did before... comparing two C-style strings | 03:03 |
Zehra | That's not an issue with strcmp... | 03:06 |
blast007 | if you're using strcmp, then what are you using .c_str() on? | 03:09 |
allejo | macsforme: "TH" would be of type std::string, which does have an `==` operator. or at least that's the logic i'm thinking | 03:10 |
blast007 | "TH" would not be a std::string | 03:11 |
allejo | welp, nvm then | 03:12 |
Zehra | Shot data, but previously it seemed using c_str() worked on grab data. | 03:12 |
blast007 | Zehra: stop being vague | 03:13 |
Zehra | blast007: My bad. The first issue was that while using "if (grabData->flagType == "TH")", compiled, it did not end up doing what was expected, as during debugging, the process failed right there for no good reason. | 03:15 |
Zehra | This was a simple check, before either doing some changes to a few arrays for logic or calling a few functions. | 03:16 |
Zehra | So it caused me to wonder what "might" have gone wrong. | 03:17 |
Zehra | Thus some small changes had to be made to fix it and I had to also adjust some of the sections in the shotdata code I was using (by adding '.c_str()') and mistakenly assuming that it had to be part of "grabdata" as well. | 03:19 |
*** Zehra <Zehra!~Zehra@unaffiliated/zehra> has quit IRC (Quit: Gone for now.) | 04:10 | |
*** Sgeo_ <Sgeo_!~Sgeo@ool-18b98dd9.dyn.optonline.net> has quit IRC (Read error: Connection reset by peer) | 09:54 | |
*** Sgeo_ <Sgeo_!~Sgeo@ool-18b98dd9.dyn.optonline.net> has joined #bzflag | 09:54 | |
*** Sgeo <Sgeo!~Sgeo@ool-18b98dd9.dyn.optonline.net> has joined #bzflag | 14:12 | |
*** Sgeo_ <Sgeo_!~Sgeo@ool-18b98dd9.dyn.optonline.net> has quit IRC (Ping timeout: 245 seconds) | 14:15 | |
joevano | Cleaning today and stumbled across this old BZFlag CD... https://www.dropbox.com/s/1ucfufojycguu9g/IMG_0390.JPG?dl=0 | 14:24 |
The_Noah | Wow! Nice! | 14:42 |
joevano | IIRC Jeff or Phil made them but I could be wrong | 15:08 |
spldart | That brings back memories:) | 15:08 |
*** Sgeo_ <Sgeo_!~Sgeo@ool-18b98dd9.dyn.optonline.net> has joined #bzflag | 17:07 | |
*** Sgeo <Sgeo!~Sgeo@ool-18b98dd9.dyn.optonline.net> has quit IRC (Ping timeout: 250 seconds) | 17:11 | |
macsforme | any thoughts on my question about screen resolutions to target? | 18:41 |
allejo | I'd say 4k at most. do you see us going to a platform any time soon that it'd be played on an 8k tv? | 18:45 |
blast007 | why would the UI not work at higher resolutions? | 21:30 |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has quit IRC (Read error: Connection reset by peer) | 21:30 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has joined #bzflag | 21:32 | |
Flash | "TH"s | 22:01 |
*** Zehra <Zehra!~Zehra@unaffiliated/zehra> has joined #bzflag | 22:29 | |
*** joevano <joevano!~joevano@bzflag/developer/JoeVano> has quit IRC (Ping timeout: 245 seconds) | 22:48 | |
*** joevano <joevano!~joevano@bzflag/developer/JoeVano> has joined #bzflag | 22:50 | |
*** ChanServ sets mode: +v joevano | 22:50 |
Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!