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 2018-05-27 00:00:00Z and 2018-05-28 00:00:00Z
Avatar
6ddb4b1 M Resistance, M Bob, A Cavity - def-
Avatar
I was just about to get on a plane and they found a huge ww2 era bomb in the city, all flights delayed.............
Avatar
aand all flights cancelled
09:18
aaand I can't go back to the city as they evacuated the place where the bus goes
Avatar
damn, I really did want to see london 😛
Avatar
#include <stdio.h> #define SIX 1+5 #define NINE 8+1 int main(void) { printf("%d * %d = %d\n", SIX, NINE, SIX * NINE); return 0; }
Avatar
nice trap
Avatar
isnt this why theres a convention of putting #defined expressions in parentheses
Avatar
yep
09:28
also around parameter replacements of macros
09:29
#define MULT(x, y) x * y MULT(1+5, 8+1)
Avatar
#define MULT(x,y) ((x)*(y))
Avatar
use constexpr instead
Avatar
but then SIX * NINE != 42 😦
Avatar
guess I'll do ddnet issues today, have nothing to do
Avatar
@heinrich5991 so very true 😦
Avatar
@Learath2 dont crash the plane with your technical equipment ;D
Avatar
@Im 'corneum cancelled 😦
Avatar
aah whaat
Avatar
already crashed it?
10:32
😛
Avatar
they found a bomb in the city, closed all runways but the one facing france, and french air traffic control just went on strike
Avatar
[I have started something for the secure hash thing. you can ofc also try to do sth like that]
Avatar
I was thinking of doing a marathon on accounts
Avatar
argh 😄
10:34
you could take a look at 'actual' issues 😛
Avatar
dont die pls learath
Avatar
yeah but most of those are boring
Avatar
software maintenance is seen as boring unfortunately
Avatar
I actually enjoy doing maintainance, but in the case of ddnet, everything is so messy
10:35
TIL it's maintenance not maintain-ance
Avatar
english
Avatar
yeah in what other language can you not distinguish two differently spelled words unless you have a thick northern british accent "hut" "hot"
Avatar
yaay, busses are working again
Avatar
why dont you steal a plane.
10:49
how hard can it be
Avatar
don't say such things, the GCHQ and the NSA are listening on this platform
Avatar
allah oops akbar
Avatar
allah akbar means allah is great, nothing bad 😛
Avatar
@Learath2 wat
11:07
in which city
11:07
did they find a bomb
Avatar
@Snaier turin
Avatar
broken hilite
Avatar
and ye we have strikes since like 2 months there
Avatar
yeah just some horrible timing for the french airspace to be unmaintained
Avatar
hi developers
Avatar
@Dev why do i have 1200 fps with vanilla client and 700 with ddnet?
17:01
i can remember that i had so much fps in older versions, about some months ago
Avatar
probably your hate towards the newer versions
17:20
vanilla 1k, older 10.7 1.6k, newest 1.6k fps
Avatar
latest = 1.6k fps?
17:33
for sure not
Avatar
dude u have a gtx 1060 and play on low res
17:34
how can u even have that shitty fps
Avatar
low resolution?
Avatar
hd ready or something
17:34
or full hd
17:34
?
Avatar
see i play on 2k with old gtx 760
17:35
its not even made for that resolution
17:35
show me your settings
17:35
then i might be able to help you
Avatar
okay, come privtae
Avatar
@deleted-role @Dev maybe set the cl_refresh_rate default value to zero? many ppl oversee this setting and think it's the new client
Avatar
what is the best way to input data easily from keyboard in C ? here an working example I did :
18:36
char abscissa = 0; int ordinate = 0; int orientation = 0; char string[MAXSIZE]; printf("starting position of the word : \n"); printf("abscissa (letter) : \n"); abscissa = getchar(); getchar(); printf("ordinate (integer): \n"); ordinate = (int) getchar() - '0'; getchar(); printf("orientation : 1.Vertical 2.Horizontal :\n"); orientation = (int) getchar() - '0'; getchar(); printf("type the word : \n"); fgets(string, sizeof(string), stdin); printf("\n");
Avatar
@Amu~Cookie I usually go for scanf on my quick mocks, and fgets+(a custom parser || sscanf) and parse by line
19:02
for serious stuff
Avatar
ok ty ^^
Avatar
@fokkonaut cl_refresh_rate 0, gfx_refresh_rate 0
19:33
i don't see much benefit in having the inputs polled > 500 times per second
Avatar
normal gamer mouse has 1000hertz
19:43
also cpu limit always decrease frame stability
Avatar
@Amu~Cookie i think fgets prevents buffer overflow
Avatar
hmm with fgets I need to clean the buffer if the user enter more char than the string can contain
19:49
like this
19:50
void clean(const char *buffer, FILE *fp){ char *p = strchr(buffer,'\n'); if (p != NULL) *p = 0; else { int c; while ((c = fgetc(fp)) != '\n' && c != EOF); } }
19:51
But i dont know why C lib doesn't include this function
Avatar
ChillerDragon 2018-05-27 20:52:39Z
20:52
leaking sensible data
20:52
xd
Avatar
@Deleted User so we should set the default to 0?
Avatar
i dont care, your client your choice, i know the setting so it doesnt affect me xd
Exported 91 message(s)