10:41 <+bridge> [ddnet] does someone know of the good way to uppercase a string in tw code? 10:46 <+bridge> [ddnet] ascii string? a loop with str_uppercase 10:46 <+bridge> [ddnet] not used anywhere in the cod it turns out, but system.c has it 😄 11:05 <+bridge> [ddnet] k nice thanks 11:05 <+bridge> [ddnet] ya ascii 11:18 <+bridge> [ddnet] 11:18 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/610764126985125898/img.png 11:18 <+bridge> [ddnet] is this valid? 11:19 <+bridge> [ddnet] nein 11:19 <+bridge> [ddnet] rip 11:19 <+bridge> [ddnet] 🍺 11:19 <+bridge> [ddnet] wat should i do then number man? Use string.toUpperCase() ? xd 11:19 <+bridge> [ddnet] yes! 11:20 <+bridge> [ddnet] :D 11:20 <+bridge> [ddnet] \:') 11:24 <+bridge> [ddnet] meh seems to crash i sokk 11:25 <+bridge> [ddnet] u need to do 11:25 <+bridge> [ddnet] while (*str++) 11:25 <+bridge> [ddnet] not str++ 11:37 <+bridge> [ddnet] but isnt *str the value? And i want to increment the pointer? 11:37 <+bridge> [ddnet] u can do a simple ugly loop 11:39 <+bridge> [ddnet] ```c++ 11:39 <+bridge> [ddnet] void str_uppercase(char *str) { 11:39 <+bridge> [ddnet] int i = 0; 11:39 <+bridge> [ddnet] while(str[i] != '\0') 11:39 <+bridge> [ddnet] str[i] = ch_uppercase(str[i++]) 11:39 <+bridge> [ddnet] } 11:39 <+bridge> [ddnet] ``` 11:39 <+bridge> [ddnet] ```cpp 11:39 <+bridge> [ddnet] void str_uppercase(char *str) { 11:39 <+bridge> [ddnet] int i = 0; 11:39 <+bridge> [ddnet] while(str[i] != '\0') 11:39 <+bridge> [ddnet] str[i] = ch_uppercase(str[i++]) 11:39 <+bridge> [ddnet] } 11:39 <+bridge> [ddnet] ``` 11:39 <+bridge> [ddnet] i guess? 11:40 <+bridge> [ddnet] yikes 11:40 <+bridge> [ddnet] so much code 11:40 <+bridge> [ddnet] if it works 🤷 11:40 <+bridge> [ddnet] but the thing is my version skips the first letter :c 11:40 <+bridge> [ddnet] logic 11:40 <+bridge> [ddnet] ikr 11:40 <+bridge> [ddnet] i guess ill go with a for loop then 11:41 <+bridge> [ddnet] can't u do 11:41 <+bridge> [ddnet] ? 11:41 <+bridge> [ddnet] `*(str-1) = ch_uppercase(*(str-1))` ?xd 11:41 <+bridge> [ddnet] ya 11:41 <+bridge> [ddnet] thought so 11:41 <+bridge> [ddnet] but i did *--str = and it gave a warning 11:41 <+bridge> [ddnet] warning not good 11:41 <+bridge> [ddnet] oof 11:41 <+bridge> [ddnet] rip then 11:42 <+bridge> [ddnet] cuz could be undefined 11:42 <+bridge> [ddnet] use my version ;D 11:42 <+bridge> [ddnet] never 11:42 <+bridge> [ddnet] 😔 12:42 <+bridge> [ddnet] @ChillerDragon https://www.tutorialspoint.com/c_standard_library/c_function_toupper 12:42 <+bridge> [ddnet] look the example 12:43 <+bridge> [ddnet] @ChillerDragon '\0' is falsy 12:50 <+bridge> [ddnet] @ChillerDragon 12:50 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/610787268583620618/unknown.png 12:50 <+bridge> [ddnet] :poggers: 13:56 <+bridge> [ddnet] 13:56 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/610803912663891988/img.png 13:59 <+bridge> [ddnet] well that works fine for me @Ryozuki 13:59 <+bridge> [ddnet] thanks anyways 14:05 <+bridge> [ddnet] urs is ugly 14:06 <+bridge> [ddnet] bro 14:07 <+bridge> [ddnet] xd 14:08 <+bridge> [ddnet] @archimede67 your version is UB, it has `i++` and `i` in the same statement 14:32 <+bridge> [ddnet] Doesn't look that ugly to me. At least it's very clear and every statement does exactly one thing 14:35 <+bridge> [ddnet] Combining everything into a `while(*str = str_uppercase(*str++));` might look clever but is also harder to understand 14:37 <+bridge> [ddnet] ku 14:37 <+bridge> [ddnet] wrong window 15:07 <+bridge> [ddnet] :troll: 15:59 <+bridge> [ddnet] <0xc000f> This is normal? 15:59 <+bridge> [ddnet] <0xc000f> https://cdn.discordapp.com/attachments/293493549758939136/610834761211969536/unknown.png 15:59 <+bridge> [ddnet] <0xc000f> Dont let me put my server public :s 16:15 <+bridge> [ddnet] have you checked whether your server is banned? 16:15 <+bridge> [ddnet] <0xc000f> where i can check that? :s 16:16 <+bridge> [ddnet] https://www.teeworlds.com/master-bans.cfg 16:17 <+bridge> [ddnet] <0xc000f> i search in that page my public ip and i dont find it 16:17 <+bridge> [ddnet] <0xc000f> so.. then i'm not banned i think 16:17 <+bridge> [ddnet] then you're not banned 16:17 <+bridge> [ddnet] <0xc000f> Mmmm i open my ports and this work for other games but teeworlds never let me put it public 16:25 <+bridge> [ddnet] master4 sometimes just decides not to respond to some servers, haven't really figured out why yet 16:26 <+bridge> [ddnet] <0xc000f> then isnt my problem? it's only wait? 17:16 <+bridge> [ddnet] I doubt it, the other masters should be working fine if that was the issue 17:26 <+bridge> [ddnet] <0xc000f> i was waiting like 30 min and dont work :( 17:38 <+bridge> [ddnet] <0xc000f> same thing all the time 17:38 <+bridge> [ddnet] <0xc000f> < 17:38 <+bridge> [ddnet] <0xc000f> https://cdn.discordapp.com/attachments/293493549758939136/610859767619125248/unknown.png 17:48 <+bridge> [ddnet] try disabling master4 then 17:48 <+bridge> [ddnet] edit the line in masters.cfg, replacing master4.teeworlds.com with localhost 127.0.0.1:8300 17:49 <+bridge> [ddnet] edit the line in masters.cfg, replacing `master4.teeworlds.com ` with `localhost 127.0.0.1:8300` 17:49 <+bridge> [ddnet] <0xc000f> Oh ty! i will try :D 17:49 <+Learath2> heinrich5991: Do you happen to know how one should figure out the domain of a laplace transform 17:49 <+Learath2> ? 18:02 <+bridge> [ddnet] <0xc000f> i edited the file but when i run the server the file rewrite his ip :/ 18:07 <+bridge> [ddnet] <0xc000f> any idea? :s 18:17 <+bridge> [ddnet] have you deleted the master4.teeworlds.com and replaced it with localhost? 18:19 <+bridge> [ddnet] and replaced the ip address 18:20 <+bridge> [ddnet] <0xc000f> I delete only the last ip address and put the localhost 18:20 <+bridge> [ddnet] <0xc000f> 127.0.0.1 18:20 <+bridge> [ddnet] <0xc000f> with the port 18:21 <+bridge> [ddnet] <0xc000f> i delete the line and put only 127.0.0.1 and nothing work, the file rewrite again :s 18:22 <+bridge> [ddnet] you should replace the whole line with `localhost 127.0.0.1` 18:24 <+bridge> [ddnet] <0xc000f> i do it and i get this :s 18:24 <+bridge> [ddnet] <0xc000f> 18:24 <+bridge> [ddnet] <0xc000f> https://cdn.discordapp.com/attachments/293493549758939136/610871380560445450/unknown.png 18:44 <+bridge> [ddnet] @0xc000f seems like no master is reachable for you then :/ 18:47 <+bridge> [ddnet] <0xc000f> i cant fix that then? :C 22:19 <+bridge> [ddnet] what about making timeout codes public keys? 22:20 <+bridge> [ddnet] so the private key is only leaked to the server when its actually used 22:21 <+bridge> [ddnet] ppls use timeoutcodes to give tee to ppl 22:21 <+bridge> [ddnet] ya just realized that xd 22:21 <+bridge> [ddnet] ur always antiban u want to make this impossible? 22:21 <+bridge> [ddnet] :bluekitty: 22:23 <+bridge> [ddnet] Queued now for Linux 5.3 and also marked for back-porting to existing kernel stable series is a fix to address distorted and crackling analog audio input that has affected AMD systems for at least the past two years with certain Realtek audio codecs. 22:31 <+bridge> [ddnet] Lorem ipsum dolor set amet 22:40 <+bridge> [ddnet] did i say the private key is leaked 22:40 <+bridge> [ddnet] ignore that xd 22:46 <+bridge> [ddnet] <0xc000f> Someone can help me with my server? 22:48 <+bridge> [ddnet] as long as you dont specify ur problem it will be hard to help u 22:49 <+bridge> [ddnet] <0xc000f> i can make my server public 22:49 <+bridge> [ddnet] <0xc000f> and i change the code for force that more 22:49 <+bridge> [ddnet] <0xc000f> 22:49 <+bridge> [ddnet] <0xc000f> https://cdn.discordapp.com/attachments/293493549758939136/610938012473229323/unknown.png 22:50 <+bridge> [ddnet] what are u trying to do 22:51 <+bridge> [ddnet] <0xc000f> try to make public my server but that didnt work 22:51 <+bridge> [ddnet] set `sv_register 1` in config file 22:51 <+bridge> [ddnet] if that doesnt work then maybe ur port forwarding / firewall is wrong 22:51 <+bridge> [ddnet] <0xc000f> Yeah i put that and i open my ports 22:56 <+bridge> [ddnet] The code for CMasterServer is weird, it just keeps replacing your changes 22:56 <+bridge> [ddnet] i dont think changing from private to public in this code is how to register ur srv 22:56 <+bridge> [ddnet] I ended up patching it out out of anger while testing 22:59 <+bridge> [ddnet] <0xc000f> right now this is the terminal of my server :/ 22:59 <+bridge> [ddnet] <0xc000f> https://cdn.discordapp.com/attachments/293493549758939136/610940438614114305/unknown.png 23:13 <+bridge> [ddnet] <0xc000f> 23:13 <+bridge> [ddnet] <0xc000f> https://cdn.discordapp.com/attachments/293493549758939136/610943914945413121/unknown.png