09:19 <+bridge> what does m_Jumps -1 mean in terms of netcode? 09:19 <+bridge> I understand what 0 means, but what does it mean to have a negative amount of jumps :thonk: 09:24 <+bridge> likely infinite jumps 09:25 <+bridge> I was checking now if we have a special value or something for it, but no we are just checking for -1 xD 09:35 <+bridge> we have -2 for sv_chat messages in order to message teamless, interesting 10:09 <+bridge> that's really crazy good 10:10 <+bridge> in addition to good benchmark results, I also want to understand the code and have it maintainable โ€” being fast is not the only quality I'd like to see 10:10 <+bridge> I think `-1` might be "only ground jump" 10:10 <+bridge> we added something like that for the tutorial 10:14 <+bridge> ``` 10:14 <+bridge> NetMessageEx("Sv_KillMsgTeam", "killmsgteam@netmsg.ddnet.tw", [ 10:14 <+bridge> NetIntRange("m_Team", 0, 'MAX_CLIENTS-1'), 10:14 <+bridge> NetIntCustom("m_First", 10:14 <+bridge> values=[ 10:14 <+bridge> Constant(-1, "-1"), # TODO what does -1 mean? 10:15 <+bridge> Range(0, "MAX_CLIENTS-1") 10:15 <+bridge> ] 10:15 <+bridge> ) 10:15 <+bridge> ]), 10:15 <+bridge> ``` 10:15 <+bridge> 10:15 <+bridge> What does m_First in this message mean? 10:18 <+bridge> probably "nobody"? 10:20 <+bridge> ``` 10:20 <+bridge> // Special jump cases: 10:20 <+bridge> // m_Jumps == -1: A tee may only make one ground jump. Second jumped bit is always set 10:20 <+bridge> // m_Jumps == 0: A tee may not make a jump. Second jumped bit is always set 10:20 <+bridge> // m_Jumps == 1: A tee may do either a ground jump or an air jump. Second jumped bit is set after the first jump 10:20 <+bridge> // The second jumped bit can be overridden by special tiles so that the tee can nevertheless jump. 10:20 <+bridge> ``` 10:21 <+bridge> 10:21 <+bridge> Yes, only ground jump 10:38 <+bridge> why "โ€”" not "-" ๐Ÿค” heinrich5991 is AI which hates AI summary ๐Ÿ˜ฎ 10:48 <+bridge> because I'm able to use a keyboard? ^^ 10:48 <+bridge> have you tried https://en.wikipedia.org/wiki/Compose_key 10:48 <+bridge> you'll be able to see that I used emdashes before 2020 11:07 <+bridge> โ€” looks better 11:08 <+bridge> no way i got the issue again! 11:08 <+bridge> this time not on my scuffed old windows 5 xp computer but in the pipeline 11:08 <+bridge> `D:\a\ddnet-insta\ddnet-insta\src\insta\engine\shared\config_variables_insta.h(167,1): error C1061: compiler limit: blocks nested too deeply [D:\a\ddnet-insta\ddnet-insta\debug\game-server-without-main.vcxproj]` 11:09 <+bridge> i reached the maximum amount of config variables?????? 11:09 <+bridge> fr? 11:09 <+bridge> https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1061 11:10 <+bridge> seems to be about block depth, not amount of config variables 11:10 <+bridge> ikr 11:10 <+bridge> but adding and removing config variables is what seems to have an effect 11:11 <+bridge> hmmmm 11:11 <+bridge> i also can not believe it 11:12 <+bridge> because there are other projects with I assume way more config variables 11:12 <+bridge> maybe it is because I have additional code generation with config variables in ddnet-insta 11:12 <+bridge> hah! that might actually be it! 11:35 <+bridge> Try to move behavior for individual config variables into helper functions so you don't have one extremely long function when macros are expanded 11:38 <+bridge> okay nice that indeed was the issue, yay this also helps me a lot for another project 11:38 <+bridge> okay now the question is how to fix it :C 11:39 <+bridge> @robyt3 yea not sure if i can avoid macros here as i need the config name and value at runtime to check which settings are set and reflect that in the vote menu 11:40 <+bridge> I'd love to know if my descriptions are correct: 11:40 <+bridge> 11:40 <+bridge> ``` 11:40 <+bridge> NetIntCustom("m_Jumped", 11:40 <+bridge> values=[ 11:40 <+bridge> Constant(0, "0"), # Tee has no jumps left 11:40 <+bridge> Constant(1, "1"), # Tee has ground jump 11:40 <+bridge> Constant(2, "2"), # Invalid 11:40 <+bridge> Constant(3, "3"), # Tee has ground and air jump 11:40 <+bridge> ] 11:40 <+bridge> ), 11:40 <+bridge> ``` 11:42 <+bridge> If possible you should avoid expanding macros into many lines though, or you exceed some limit of the number of blocks within a function 11:42 <+bridge> lines/blocks* 11:42 <+bridge> does not disprove you being AI from birth ๐Ÿ”ฅ 11:43 <+bridge> @robyt3 yea i realized that too now :c i mean linux compilers do support it -,- 11:43 <+bridge> aren't we all some kind of biological neural networks? 11:43 <+bridge> I guess we are bit more, since we have extensions to be self-sustaining and self-replicating 11:44 <+bridge> oh, humans are gray goo 11:44 <+bridge> hรผtte brennt, but i am sitting here waiting for cd pipeline to finish building ๐Ÿ‘€๐Ÿ”ฅ 11:46 <+bridge> @essigautomat here is a 0.7 jumped value gif generated with code so it should be quite correct https://chillerdragon.github.io/teeworlds-protocol/07/snap_items.html#obj_character_core 11:47 <+bridge> it does contain the value 2 which you marked as invalid ๐Ÿค” 11:56 <+bridge> then my marking is invalid 11:57 <+bridge> I doubt it changed in 0.7 but better double check that 11:57 <+bridge> Im only 90% sure itโ€™s the same 11:57 <+bridge> can I just use your description? 11:57 <+bridge> Sure 12:01 <+bridge> I think the 2 does not mean, that an air jump was performed necessarily 12:01 <+bridge> no I mean the 3 12:02 <+bridge> it just means that no air jump can be performed and a jump happened, this can also happen if m_Jumped == -1 12:02 <+bridge> it just means that no air jump can be performed and a jump happened, this can also happen if m_Jumps == -1 as established above 12:03 <+bridge> ``` 12:03 <+bridge> NetIntCustom("m_Jumped", 12:03 <+bridge> values=[ 12:03 <+bridge> Constant(0, "0"), # Tee has not jumped on current input and can do air jumps 12:03 <+bridge> Constant(1, "1"), # Tee made a jump on current input and can do air jumps 12:03 <+bridge> Constant(2, "2"), # Tee has not jumped on current input but can't do air jumps 12:03 <+bridge> Constant(3, "3"), # Tee made a jump on current input and can't do air jumps anymore 12:03 <+bridge> ] 12:03 <+bridge> ), 12:03 <+bridge> ``` 12:03 <+bridge> :justatest: 12:05 <+bridge> that gif is very helpful, thanks a lot 12:06 <+bridge> if this is correct, than walking off an edge without jumping would still lead to 0 12:06 <+bridge> bro 12:06 <+bridge> https://cdn.discordapp.com/attachments/293493549758939136/1503699959529345137/1.jpg?ex=6a044d37&is=6a02fbb7&hm=9b125e23b7d90cb4da6b0a9f1dc15cdfe6edefc3d14ae6afdc9608e9bf44bf39& 12:06 <+bridge> https://cdn.discordapp.com/attachments/293493549758939136/1503699959936061580/2.jpg?ex=6a044d37&is=6a02fbb7&hm=3b8f34678537f3432cb82f42bcaa38b354a97a1e2178c6532521698be89f99e0& 12:06 <+bridge> https://cdn.discordapp.com/attachments/293493549758939136/1503699960259149904/3.jpg?ex=6a044d37&is=6a02fbb7&hm=f5bba56765c78c709a8b09063cce132998356812e34c920a96d55ead55817dc2& 12:06 <+bridge> https://cdn.discordapp.com/attachments/293493549758939136/1503699960695099422/4.jpg?ex=6a044d38&is=6a02fbb8&hm=d38d8112ccdece7be0dbba07b4784e0468810636f6d0255bc83eb09df5d82a8e& 12:06 <+bridge> @nikosaccount 12:06 <+bridge> @Discord Mod 12:07 <+bridge> sorry Ed, was too fast 12:49 <+bridge> anyone know why my mouse wheel is not switching my weapon when I build from source? the build from website works correctly, but when I compile it myself it's broken. scrolling inside console and server browser works, but in-game it does not switch my weapons. i just did `git clone https://github.com/ddnet/ddnet;cd ddnet;mkdir build; cd build; cmake ..;make -j16;./DDNet` and this already has broken mouse wheel 12:51 <+bridge> do you have +nextweapon and +prevweapon bibded to mousewheelup and down 12:52 <+bridge> Update your systems sdl 12:55 <+bridge> what does m_JumpedTotal == -1 mean? 12:55 <+bridge> # New data fields for jump display, freeze bar and ninja bar 12:55 <+bridge> # Default values indicate that these values should not be used 12:55 <+bridge> NetIntRange("m_JumpedTotal", -1, 255, default=-1), 12:55 <+bridge> ``` 12:55 <+bridge> # New data fields for jump display, freeze bar and ninja bar 12:55 <+bridge> # Default values indicate that these values should not be used 12:55 <+bridge> NetIntRange("m_JumpedTotal", -1, 255, default=-1), 12:56 <+bridge> ``` 12:56 <+bridge> -1 just means off, or infinite, or ground only? hmm 12:57 <+bridge> ``` 12:57 <+bridge> // We only accept the display information when it is received, which means it is not -1 in each case. 12:57 <+bridge> if(pObjDDNet->m_JumpedTotal != -1) 12:57 <+bridge> ``` 12:58 <+bridge> so -1 means "no display information" 13:01 <+bridge> hmm it's latest version from arch repos, but still bugged, but if it's just sdl bug then I'll look into what version the website builds are using 13:02 <+bridge> I had the same issue, opened a ticket and this will be fixed in the next release. For now downgrade sdl-compat to x.x.66 instead of x.x.68 13:03 <+bridge> I had the same issue, opened a ticket and this will be fixed in the next release. For now downgrade sdl2-compat to x.x.66 instead of x.x.68 13:03 <+bridge> @art0007i see #12140 13:03 <+bridge> https://github.com/ddnet/ddnet/issues/12140 13:09 <+bridge> I had the same issue, opened a ticket and this will be fixed in the next release of sdl2-compat. For now downgrade sdl2-compat to x.x.66 instead of x.x.68 13:46 <+bridge> this is my last TODO: 13:46 <+bridge> 13:46 <+bridge> ``` 13:46 <+bridge> 13:46 <+bridge> NetMessageEx("Sv_YourVote", "yourvote@netmsg.ddnet.org", [ 13:46 <+bridge> NetIntRange("m_Voted", -1, 1), # TODO what do these values mean? use NetIntCustom 13:46 <+bridge> ]), 13:46 <+bridge> ``` 13:47 <+bridge> no clue what these values mean 13:51 <+bridge> ``` 13:52 <+bridge> CVoting *pSelf = (CVoting *)pUserData; 13:52 <+bridge> if(str_comp_nocase(pResult->GetString(0), "yes") == 0) 13:52 <+bridge> pSelf->Vote(1); 13:52 <+bridge> else if(str_comp_nocase(pResult->GetString(0), "no") == 0) 13:52 <+bridge> pSelf->Vote(-1); 13:52 <+bridge> ``` 13:52 <+bridge> 13:52 <+bridge> What does Vote(0) mean? I can send it over the network 13:53 <+bridge> ```C++ 13:53 <+bridge> if(!pMsg->m_Vote) 13:53 <+bridge> return; 13:53 <+bridge> ``` 13:53 <+bridge> 13:53 <+bridge> so I found an unused netmessage 13:54 <+bridge> except that this triggers the spam protection 14:05 <+bridge> this syntax is invalid in current python: `C_HEADER_INCLUDE_PATTERN = re.compile(fr"#include\s+<({"|".join(C_HEADER_SET)})\.h>")` 14:10 < Bamcane> Have we fixed the issue of snapshot building? 14:22 <+bridge> :brownbear: 14:26 < internationalmo> Hi Guys! It's Madeleine Czura! Just thought I'd leave my number here in case you're lonely ;) . 14:26 < internationalmo> You can reach me on +44-7599248843 or maddyczura@gmail.com or madeleine.czura@arcadis.com anytime! 14:26 < internationalmo> Linkedin: uk.linkedin.com/in/maddy-czura 14:26 < internationalmo> Instagram: instagram.com/maddy_czura 14:26 < internationalmo> Brothers: Benjamin V Czura(Ben), Timothy P Czura(Tim), Greg Czura 14:26 < internationalmo> Sisters: Eleanor Lousie Czura, Josie Czura 14:26 < internationalmo> Mom: Lucy P Czura 14:26 < internationalmo> Dad: Peter Christopher Czura 14:26 < internationalmo> Dad Emails: peter.czura@ntlworld.com, peter.czura@corrigenda.co.uk 14:26 < internationalmo> Business Address: Top Floor, 164 Plashet Road, London, United Kingdom, E13 0QT 14:26 < internationalmo> Home Address: Comrie, 8 Southampton Road, Fareham, Hampshire, United Kingdom, PO16 7DY 14:28 <+bridge> D: 14:29 <+bridge> I'm going to close my IRC client now as I can connected on my discord. 14:29 <+bridge> also is that spam? 14:32 <+bridge> @Discord Mod 14:32 <+bridge> just for sure 14:32 <+bridge> OMG who is this woman. What did she do to whoever she did it to 14:33 <+bridge> That's right, the code is partially unreadable, I plan to rewrite it in the future (completely by hand) :)