Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2019-08-13 00:00:00Z and 2019-08-14 00:00:00Z
Avatar
ChillerDragon 2019-08-13 08:41:55Z
does someone know of the good way to uppercase a string in tw code?
Avatar
ascii string? a loop with str_uppercase
08:46
not used anywhere in the cod it turns out, but system.c has it 😄
Avatar
ChillerDragon 2019-08-13 09:05:31Z
k nice thanks
09:05
ya ascii
Avatar
ChillerDragon 2019-08-13 09:18:35Z
09:18
is this valid?
Avatar
nein
Avatar
ChillerDragon 2019-08-13 09:19:17Z
rip
09:19
🍺
09:19
wat should i do then number man? Use string.toUpperCase() ? xd
Avatar
yes!
Avatar
ChillerDragon 2019-08-13 09:20:01Z
:D
Avatar
:')
Avatar
ChillerDragon 2019-08-13 09:24:51Z
meh seems to crash i sokk
Avatar
u need to do
09:25
while (*str++)
09:25
not str++
Avatar
ChillerDragon 2019-08-13 09:37:34Z
but isnt *str the value? And i want to increment the pointer?
Avatar
u can do a simple ugly loop
09:39
void str_uppercase(char *str) { int i = 0; while(str[i] != '\0') str[i] = ch_uppercase(str[i++]) } (edited)
09:39
i guess?
Avatar
ChillerDragon 2019-08-13 09:40:03Z
yikes
09:40
so much code
Avatar
if it works 🤷
Avatar
ChillerDragon 2019-08-13 09:40:31Z
but the thing is my version skips the first letter :c
Avatar
logic
Avatar
ChillerDragon 2019-08-13 09:40:46Z
ikr
09:40
i guess ill go with a for loop then
Avatar
can't u do
Avatar
ChillerDragon 2019-08-13 09:41:18Z
?
Avatar
*(str-1) = ch_uppercase(*(str-1)) ?xd
Avatar
ChillerDragon 2019-08-13 09:41:29Z
ya
09:41
thought so
09:41
but i did *--str = and it gave a warning
09:41
warning not good
Avatar
oof
09:41
rip then
Avatar
ChillerDragon 2019-08-13 09:42:03Z
cuz could be undefined
Avatar
use my version ;D
Avatar
ChillerDragon 2019-08-13 09:42:06Z
never
Avatar
The best text and video tutorials to provide simple and easy learning of various technical and non-technical subjects with suitable examples and code snippets.
10:42
look the example
10:43
@ChillerDragon '\0' is falsy
Avatar
@ChillerDragon
10:50
poggers
Avatar
ba1c99b 6th Birthday Tournament - def-
Avatar
ChillerDragon 2019-08-13 11:56:40Z
11:59
well that works fine for me @Ryozuki
11:59
thanks anyways
Avatar
urs is ugly
Avatar
bro
12:07
xd
Avatar
@archimede67 your version is UB, it has i++ and i in the same statement
Avatar
Doesn't look that ugly to me. At least it's very clear and every statement does exactly one thing
12:35
Combining everything into a while(*str = str_uppercase(*str++)); might look clever but is also harder to understand
Avatar
ku
12:37
wrong window
Avatar
This is normal?
13:59
Dont let me put my server public :s
Avatar
have you checked whether your server is banned?
Avatar
where i can check that? :s
Avatar
i search in that page my public ip and i dont find it
14:17
so.. then i'm not banned i think
Avatar
then you're not banned
Avatar
Mmmm i open my ports and this work for other games but teeworlds never let me put it public
Avatar
master4 sometimes just decides not to respond to some servers, haven't really figured out why yet
Avatar
then isnt my problem? it's only wait?
Avatar
I doubt it, the other masters should be working fine if that was the issue
Avatar
i was waiting like 30 min and dont work :(
Avatar
same thing all the time
15:38
<
Avatar
try disabling master4 then
15:48
edit the line in masters.cfg, replacing master4.teeworlds.com <ip address> with localhost 127.0.0.1:8300 (edited)
Avatar
Oh ty! i will try :D
Avatar
[quakenet] Learath2 BOT 2019-08-13 15:49:55Z
heinrich5991: Do you happen to know how one should figure out the domain of a laplace transform
15:49
?
Avatar
i edited the file but when i run the server the file rewrite his ip :/
16:07
any idea? :s
Avatar
have you deleted the master4.teeworlds.com and replaced it with localhost?
16:19
and replaced the ip address
Avatar
I delete only the last ip address and put the localhost
16:20
127.0.0.1
16:20
with the port
16:21
i delete the line and put only 127.0.0.1 and nothing work, the file rewrite again :s
Avatar
you should replace the whole line with localhost 127.0.0.1
Avatar
i do it and i get this :s
16:24
Avatar
@Fran_ seems like no master is reachable for you then :/
Avatar
i cant fix that then? :C
Avatar
ChillerDragon 2019-08-13 20:19:11Z
what about making timeout codes public keys?
20:20
so the private key is only leaked to the server when its actually used
Avatar
ppls use timeoutcodes to give tee to ppl
Avatar
ChillerDragon 2019-08-13 20:21:32Z
ya just realized that xd
Avatar
ur always antiban u want to make this impossible?
20:21
bluekitty
20:23
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.
Avatar
Lorem ipsum dolor set amet
Avatar
ChillerDragon 2019-08-13 20:40:02Z
did i say the private key is leaked
20:40
ignore that xd
Avatar
Someone can help me with my server?
Avatar
ChillerDragon 2019-08-13 20:48:38Z
as long as you dont specify ur problem it will be hard to help u
Avatar
i can make my server public
20:49
and i change the code for force that more
20:49
Avatar
what are u trying to do
Avatar
try to make public my server but that didnt work
Avatar
set sv_register 1 in config file
20:51
if that doesnt work then maybe ur port forwarding / firewall is wrong
Avatar
Yeah i put that and i open my ports
Avatar
The code for CMasterServer is weird, it just keeps replacing your changes
Avatar
i dont think changing from private to public in this code is how to register ur srv
Avatar
I ended up patching it out out of anger while testing
Avatar
right now this is the terminal of my server :/
Avatar
@Fran_ you don't need to modify the source to make your server public
Exported 123 message(s)