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-07-27 00:00:00Z and 2018-07-28 00:00:00Z
Avatar
@ezy @loui the difference is that in the first example ur passing the value of x (0), and in the second example u call it by doing: func(&x); which says, pass the address of the local variable x
00:20
then when u *x = 1; the * operator dereferences the pointer so u can modify whatever it points to
Avatar
theres alot of other uses for pointers but thats a common one, bc if u do it the first way it just makes a copy that gets discarded when func() is done
Avatar
that means when ur calling the function u only have to have set *x somewhere and it works?
Avatar
well why would it return 0 in the first place that's dumb
Avatar
if(messages("noby") > 5) mute("noby");
Avatar
it doesnt return anything
Avatar
void func (int x) { x = 1; } it makes a copy of whatever number u pass in func(x), sets that copy to 1, then destroys the copy when returning void func (int *x) { *x = 1; } points to the original int that ur trying to change so the change will stay once the function exits
00:24
idk how to explain it well lol
Avatar
so ur changing something in a global scale?
00:25
ur actually changing the int itsself?
00:25
well that's only if u define x outside of func?
Avatar
the context would be like void func (int *x) { *x = 1; } int main () { int x = 0; func(&x);
00:25
after that line x would be 1
Avatar
now x is actually 1
00:25
ya
00:26
i get it (edited)
Avatar
never actually have had to use it tho
00:26
i just use return shit for that xd
Avatar
i think its more common when ur using only C bc it doesnt have as many abstractions that hide the pointers from u
00:27
ciclop
Avatar
why jao complains when i talk about coding in #general but not when people spam images in #developer thonkery
00:28
ok they were deleted
Avatar
nigga doesn't fear death
Avatar
i guess pointers just save u some coding
00:29
instead of having to define a new var and assigning it to the return value
Avatar
how to add points on server?
Avatar
?
Avatar
i wanna add points on my server
Avatar
its good for when u want to return multiple values from a function but dont really have a structure set up to do so
Avatar
there is tutorial on forum to set up server with sql
Avatar
i just saw broadcast saying ddnet tournament starting on friday
01:00
its already friday
01:01
whose friday is it starting on
01:17
next friday is tournament so that i can finish map and be tournament winnertroll
Avatar
wasn't this channel restricted to sane people?
Avatar
it was
Avatar
yes
Avatar
hi im having trouble configuring ddnet on cmake
03:45
03:46
i get those errors
03:46
ive downloaded python and stuff
03:46
am i retarded or something
Avatar
download ddnet 9
03:57
and use bam
f3 1
❤ 1
Avatar
you only need visual studio
Avatar
ddnet-libs
05:49
d5572dc add 2 new commands to automapper - Aerll d235036 Merge branch 'master' into automapper - Aerll 3c07a2b fixes #1213 - Aerll 2e7a0be wrong naming for pointer - Aerll 56a5ee6 formatting.. - Aerll 52fbade remove unnecessary tiles overwriting - Aerll 292f0a2 no need for all pos rule tests - Aerll 4f18d7f Merge pull request #1213 from Aerll/automapper - def-
05:51
409abf1 Simplify code a bit - def-
Avatar
519e30a teleport gun event links - def-
09:26
someone
09:27
it casts it to int type
Avatar
casting to int doesn't round but only cuts off decimal digits
Avatar
syltoox is learning to make his own bots GWfroggyMonkaThink
Avatar
I think my posts from IRC are not coming through to here btw
Avatar
yeah heinrich made it one way but maybe its not needed anymore? with twvoice
Avatar
That seems weird, so I respond to people on IRC and they never get to read it?
Avatar
it's one-way due to the amount of spam we get on IRC
Avatar
better to have no bridge than a unidirectional one
Avatar
I think I told you it's one-way when you first tried to respond to someone :/
Avatar
poke
10:03
now the bridge is completely disabled
Avatar
Great now I have two places to check :P
10:27
I shoild run a personal bridge
Avatar
Or enable the bridge and just wait till the people dont spam anymore.
Avatar
@Bojidar Marinov what's your ingame nick?
Avatar
Bojidar Marinov 2018-07-27 11:10:23Z
bob_fasul 😃
Avatar
i had the same problem, i thought i was ignored :/
Avatar
ChillerDragon 2018-07-27 12:18:20Z
(i didn't do any research in the web before asking this question. So feel free to ignore the following text if u think ppl should ask the web first before using #ddnetdevdiscord) i guess i can fake github commit times? bcs i failed my pixel art ❤ in vacation and have to timetravel back? Any github influencer artists here? can i just change my system time and create an commit? or can i set the commit date manually in some file? there is one day missing in my awesome hearth c:
Avatar
HAHAHAHAHA
12:20
pretty
Avatar
ChillerDragon 2018-07-27 12:21:51Z
google sucks bro
👋 1
12:23
and i just said u should ignore the meesage not send me to an search engine lul
Avatar
git commit --date="Wed Feb 16 14:00 2011 +0100"
Avatar
ChillerDragon 2018-07-27 12:24:37Z
ye i also found that in the web
12:24
but i only have one try
12:24
thats why i asked for some expirenced github artists
12:24
so i dont make any mistakes
Avatar
github artists
Avatar
ChillerDragon 2018-07-27 12:25:10Z
yep
12:25
xd
Avatar
maybe it even just takes the push time? idk
Avatar
ChillerDragon 2018-07-27 12:26:06Z
nah
12:26
i dont think so
12:26
i guess i need 4th github test acc
12:26
xd
Avatar
you can't do more than setting author date and commit date, idk about commit date (edited)
12:28
git log --pretty=fuller to see if it worked
Avatar
ChillerDragon 2018-07-27 12:29:02Z
ty bud
Avatar
@timakro come tw
Avatar
10 min
Avatar
@ChillerDragon a bit more sophisticated: https://github.com/gelstudios/gitfiti
gitfiti - abusing github commit history for the lulz
Avatar
wow there are really tools for this o.O
12:35
much cooler to do it legit though 😄
Avatar
ChillerDragon 2018-07-27 12:36:44Z
ik
12:36
this tool
12:37
but im artist i only have to fake my date because github failed the timezones in france and everything was buggy
Avatar
rus is down
12:45
nothing I can do right now
Avatar
if you use laser you cant tp with weap but you can with pistol and grenade launcher you can :/ glitch (edited)
17:48
intresting if you are in wall you can use pistol in wall to teleport xD (edited)
Avatar
lol ))
18:13
u can tp with laser in weap TPs
18:13
it's in the solo map
18:14
new mehanich
Avatar
isn't that cause u have no tp weapon entities in the WEAP tp
Avatar
i teleported far far away from map
Avatar
Cellegen | HU 2018-07-27 18:26:42Z
Hey can we add delays for the teleport on / off tiles? thonkery
18:26
would be interesting tho
Avatar
Bojidar Marinov 2018-07-27 18:45:33Z
made another mapping PR; I think I covered most of the jarring moments I had with the mapper so far
Avatar
DDNet 11.3 loads every map twice(fast and then slowly). 11.2.1 doesnt
21:22
if I abort second load, map is still needs to be loaded (twice) (edited)
Avatar
just realized that too
21:23
10 seconds ago xD
21:25
i have that too (edited)
Avatar
same
Avatar
should be fixed
21:35
get*
Exported 147 message(s)