Guild icon
DDraceNetwork
DDraceNetwork / questions
For newcomers to ask questions and get help. Also check https://wiki.ddnet.org/wiki/FAQ
Between 2022-07-06 00:00:00Z and 2022-07-07 00:00:00Z
Avatar
does cl_dummy_hook work or is there something else? i need something that makes the dummy hook
Avatar
jao's hairy kebab 2022-07-06 00:28:15Z
with cl_dummy_control 1
Avatar
but that
00:28
is not what im looking for
Avatar
https://ddnet.tw/ranks/solo/ could it be possible to filter maps there based on which tiles got used ?
Avatar
Does anyone have a triplefly bind for dummy?
Avatar
Why does Maxing out Clan tag force ... at the end of it now? (edited)
Avatar
Avatar
Jeremy
is not what im looking for
in what way are you trying to make dummy hook, if not with dummy_control? It sounds like exactly what you need
Avatar
Avatar
Sorah
https://ddnet.tw/ranks/solo/ could it be possible to filter maps there based on which tiles got used ?
09:32
just click on one tile
Avatar
yeah, but you can't filter on multiple tiles
Avatar
how do i turn off this freezing timer bar?
10:21
nvm found it
10:22
how do i turn off these snowflakes in freeze? 😄
Avatar
and how do i get the ninja effect back on the frozen tee?
Avatar
sadly you cant
10:32
the only way is to not update
10:33
you may just play with 16.1
Avatar
i mean the ninja thing ok, but why add eyecandy with those snowflakes without the option to remove them?
Avatar
You can remove them @Neiral
11:25
I send a png to you one sec
Avatar
Avatar
Jeremy
Does anyone have a triplefly bind for dummy?
If you still need the bind here you go :)
Avatar
Avatar
c0d3d3v
just click on one tile
oh nice but what Chairn said
12:04
but already helps alot so thanks
Avatar
Avatar
Sorah
but already helps alot so thanks
you can write a small script in python for more advanced filters.
Avatar
uh? How do you interface python with website?
Avatar
e.g. with requests and beautifulsoup
Avatar
how to pseudo fly?
12:56
and what is the bind?
Avatar
@Warrior hope this helps :) https://wiki.ddnet.org/wiki/Pseudofly
Pseudofly (or 'pseudo') is an advanced hammerfly technique similar to Speedfly in which the two tees never come into contact, but enables much more dynamic movement through the air when done correctly. With enough practice, a tee (or tees) can pseudofly up, down, and sideways, at will. Pseudofly is generally easier with a dummy, but can also be ...
Avatar
Avatar
Warrior
and what is the bind?
no bind for it
Avatar
Avatar
heinrich5991
e.g. with requests and beautifulsoup
xD I thought more about libtw....
Avatar
you mean Patiga's map library?
Avatar
yes I guess that was it https://docs.rs/twmap/latest/twmap/
This crate provides a library for safe parsing, editing and saving of Teeworlds and DDNet maps. Goals of this library are:
Avatar
I think I haven't yet added a method to load a map from bytes
14:11
I guess you could create a tempfile as a workaround, save to it and pass the map to the constructor (twmap.Map(path))
14:11
@c0d3d3v
Avatar
Why would you want to load it from bytes?
14:17
Just go through all ddnet maps one by one
14:17
You can download them from the website in one zip (edited)
Avatar
ah, I apparently missed the context. I thought you wanted to get map data from a website and parse it into a map
Avatar
how to play with friends on a private server?
Avatar
Avatar
Bouboulll
how to play with friends on a private server?
Here you can find a collection of frequently asked questions.
Avatar
This does not answer my question
16:58
I want to know how to make my private server accessible to friends
Avatar
Jupstar ✪ 2022-07-06 16:59:26Z
open UDP port in your router, best is you search the internet, bcs its different from router to router
16:59
the port is in the .cfg which you use when you start the server, the server console window will probably mention which cfg it executes
17:00
after that they can join the server by using your public ip address
17:01
ty
Avatar
Avatar
isaac
If you still need the bind here you go :)
waw thanks bro ill check it out
Avatar
Avatar
Bouboulll
I want to know how to make my private server accessible to friends
LAN servers are servers run locally by a player on their home network, which the hosting player has full control over.
Avatar
Avatar
isaac
If you still need the bind here you go :)
seems to be broken af
17:52
the toggle dont work
17:52
and the dummy dont hook
17:52
and
17:52
yeah
17:52
cant turn on/off
17:53
even with the key used to turn it on and off
Avatar
Did you exec then the name in game?
Avatar
wait i may have fixed it
17:55
ye i did that b4
Avatar
Also make sure you turn off any other dummy binds
Avatar
So the bind itself should turn off your hammer
17:56
If it doesn't do that then maybe you messed something up
17:56
And copy moves
Avatar
oh yeah it works great
17:58
thanks 100!
Avatar
Glad to hear. Enjoy
cendre3Heartdren 1
Avatar
@isaac how do i make it so when i turn it off it does not enable deepfly
19:18
and also can i make the button that works as mouse1 in the bind a different button?
19:18
so the one to make it so the dummy hits you
19:18
i want that to be mouse4 not mouse1
19:18
but if i change that in the config it stops hooking
Avatar
Avatar
Jeremy
@isaac how do i make it so when i turn it off it does not enable deepfly
when you turn off triple fly you have to manually turn off deep fly i guess which isnt an issue if you have a cfg bind for it
19:19
and yes you can just edit the text file and change it to mouse4 instead of 1
Avatar
ok so can i change the bind though somhow so it does not turn deepfly on when i turn it off?
Avatar
wait one second
19:20
ill try something
Avatar
how i use normal flying is i use mouse4 to make my dummy hit me
19:21
and i want it to be when i turn triple fly on it just makes it like it already is but it uses mouse4 instead of mouse1 to hammer me
Avatar
thats pretty odd
Avatar
cuz im more used to thta
19:21
and when i turn it off i dont want it to be on deepfly
19:21
but when i try changing it to mouse4 the bind breaks
19:21
the dummy wont hook any more
Avatar
ok go into triple fly off
Avatar
it will but not right afrer i hit
Avatar
and where it says
Avatar
bind mouse1 "+fire; +toggle cl_dummy_hammer 1 0 "
19:22
change it to bind mouse1 +fire
19:22
or mouse4
19:22
in your case
19:22
but
19:22
mouse4 is meant to make my dummy hammer
19:22
not me
Avatar
so i use mouse1 for me to hammer
19:23
and i use mouse4 as my dummy hammer
Avatar
yea thats pretty confusing xd i never knew anyone to change the dummy hammer from mouse1 to mouse4
19:23
but ye
19:23
all i want to do
19:23
so
19:23
u know how in the bind
19:23
if u press mouse1
19:23
the dummy hammers u?
Avatar
i know what youre saying
Avatar
so can i change it somhow?
Avatar
just type bind mouse1 +fire instead of bind mouse1 "+fire; +toggle cl_dummy_hammer 1 0 "
19:24
perhaps
19:25
in the OFF cfg/?
19:25
sorry i wasnt clear about that
Avatar
ok yeah thats good
19:26
it makes it turn off deepfly when i turn the bind off
Avatar
very nice
19:26
what else was it?
19:26
mouse1 to mouse4?
Avatar
yeah essentially
Avatar
ok go into triplefly on cfg
19:27
wich one
Avatar
the on one
19:27
ON cfg
19:27
oh
19:27
ok
Avatar
where it says bind mouse1 "+fire; +toggle cl_dummy_hammer 1 0 "
19:28
put mouse4
Avatar
so it would look like bind mouse4 "+fire; +toggle cl_dummy_hammer 1 0 "
Avatar
then re exec it in f1
19:28
ok
Avatar
ok so im
19:29
so it works
19:29
but, the dummy wont hook anymore
19:29
before, right after the dummy would hit me it would look down and hook
19:29
but now it looks down and wont hook
Avatar
hmm thats weird
Avatar
it will hook if im just sitting there
Avatar
gimme 1 sec
Avatar
but right after it hammers it wonr
19:30
k
Avatar
wait try to restart ddnet client maybe
19:30
i had issues with that bind before and i reset and it worked
19:30
like close it and open again
Avatar
any luck?
19:32
not workin
Avatar
both cfg files still have cl_dummy_copy_moves?
19:35
in OFF its cl_dummy_copy_moves 0 and in ON its cl_dummy_copy_moves 1
Avatar
wait so it moves and jumps the same way you do but doesnt hook?
19:37
it hooks
19:37
but unlike before it does not hook right after is hammers
19:38
so if im pseudoing or just normal hf it wont hook downward right after it hammers me
Avatar
can i get my stars back for the frozen tee?
Avatar
@Jeremy whats your ddnet name
19:40
im palying on lan
Avatar
oh right
Avatar
im too laggy to plya online
19:40
i can send u a video tho
Avatar
gimee some mins
Avatar
@Jeremyi see a few things i did wrong
Avatar
`the video is taking ages to uplaod
Avatar
i found the reason why @Jeremy so i forgot 1 thing
19:53
ill just send the ones i did instead
Avatar
actually just go into the OFF cfg
Avatar
and put bind mouse4 +fire
19:54
ik what u said but it works
19:54
where do i put it
19:54
oh repalce the one that says mouse1 +fire
19:54
with
19:54
mouse4 +fire?
Avatar
2nd line
19:54
yes
19:55
if that doesnt work ill send you mine because it works fine for me
Avatar
ok 1 min
19:57
yeah it dotnm work
19:57
just send me yours
Avatar
which key do you want to execute it?
19:59
Avatar
to toggle it u mean?
20:00
ok thanks
20:00
ill try it in a bit
20:00
i gtg
20:00
cya
Avatar
why does it say I got almost 29k points total?
Avatar
That's the total number of points available, you only have 430 of them
Avatar
that's the total amount of points there is to collect
Avatar
huh, alright
Avatar
What are some important topics/conventions you should be familiar with when coding in c++?
22:40
In general and in the case of making a 2d mulitplayer game with opengl like DDRace
Avatar
Just C++ basics, we don't use anything too complicated I think
Avatar
Avatar
deen
Just C++ basics, we don't use anything too complicated I think
I mean, the basics in a bit more of a detail. Things like memory allocation, Stack/Heap, naming conventions, maybe somthing about crossplatform compatibility, maybe some graphic stuff. Useful algorithms? Things you have to look out for when networking. I wanna read into stuff like that. You guys are experienced, i bet you could list a few ^_^ (edited)
23:11
I would appreciate it brownbear
Avatar
Avatar
Patiga
I will look into it thanks
Avatar
If you want to make anything serious in C++ you'll have to be fairly confident with manual memory management. Depending on whether you are looking to contribute to ddnet or make something on your own, you'll need a different skillset
✅ 1
Avatar
Also, how do you guys are up to date with everything? Any forums or youtubers you can recommend?
Avatar
Avatar
Learath2
If you want to make anything serious in C++ you'll have to be fairly confident with manual memory management. Depending on whether you are looking to contribute to ddnet or make something on your own, you'll need a different skillset
I wanna focus on DDNet because i wanna contribute to it. My main language is C#. I got the advantage of the .NET Framework there.
Avatar
Contributing to ddnet is made much easier because we have lower level systems already in place and we have people that specialise on the more niche things like graphics
Avatar
Avatar
Learath2
Contributing to ddnet is made much easier because we have lower level systems already in place and we have people that specialise on the more niche things like graphics
yea, i still wanna understand the underlying code ^_^
23:18
I didnt know how github worked before I saw the DDNet repository
23:18
lmao
Avatar
I think you'll have an easier time with a top down approach rather than a bottom up one. A bottom up approach means you'll need to understand a lot of code before you get to make any contribution at all
23:18
You might get bored pretty quickly 😄
Avatar
Avatar
Learath2
I think you'll have an easier time with a top down approach rather than a bottom up one. A bottom up approach means you'll need to understand a lot of code before you get to make any contribution at all
I am switching. I wanna do both, i already made a few visual changes to my own clone of ddnet.
Avatar
Anyway, definitely brush up on your manual memory management either way. Learn the naming conventions. Pick a small issue or feature and just start working at it
Avatar
Avatar
Learath2
Anyway, definitely brush up on your manual memory management either way. Learn the naming conventions. Pick a small issue or feature and just start working at it
Thats a good idea, thanks ^_^ (edited)
Avatar
Also since we do most everything ourselves instead of relying on an engine, and we lack documentation, you might find yourself lost at times, feel free to ask here and someone will definitely help you understand
Avatar
I just see you all throwing around those terms i havent even heard of and i think to myself, "how do they know about all that stuff"
23:21
I always look something up if i dont know it
Avatar
Avatar
Learath2
Also since we do most everything ourselves instead of relying on an engine, and we lack documentation, you might find yourself lost at times, feel free to ask here and someone will definitely help you understand
Yeah i noticed there aren't alot of comments in the code
Avatar
Avatar
bluesky
I always look something up if i dont know it
That's how we do it too, not like my brain came with extra information 😛 It's just that I've (and probably the other people that contribute regularly) spent a decade looking at C++
Avatar
Avatar
Learath2
That's how we do it too, not like my brain came with extra information 😛 It's just that I've (and probably the other people that contribute regularly) spent a decade looking at C++
I see, so mostly just experience
23:23
But do you all subscribe to any blogs or something like that?
Avatar
Avatar
bluesky
But do you all subscribe to any blogs or something like that?
Not really, maybe the others do. I listen to a lot of talks like cppcon, gdc, blackhat, ccc etc.
✅ 1
Avatar
https://wiki.ddnet.org/wiki/Resources#Blog_Posts here is a list of blog posts that talk about ddnet, there are a few but no regular ones
✅ 1
Avatar
I read https://eli.thegreenplace.net and https://randomascii.wordpress.com mostly because I find them interesting, maybe you might too
Forecast for randomascii: programming, tech topics, with a chance of unicycling
✅ 1
Avatar
@Learath2 how do I slow down a program artificially to observe bugs?
23:30
I guess I could use valgrind
Avatar
^^ callgrind is what I'd use
23:32
Another option is to just downclock, I did that once, it makes the debugging experience annoying too though
23:32
And you can't really go arbitrarily slow
Avatar
valgrind is unhappy 😦
Avatar
Thanks for the informations! 🙂 @Patiga @Learath2
Avatar
valgrind: Cannot continue -- exiting now. Sorry.
sorry 2
Avatar
Avatar
heinrich5991
valgrind: Cannot continue -- exiting now. Sorry.
That's the most useless error I've ever seen
23:35
It did say sorry though
Avatar
sorry, didn't post the actual error
23:35
valgrind: Fatal error at startup: a function redirection valgrind: which is mandatory for this platform-tool combination valgrind: cannot be set up. Details of the redirection are: valgrind: valgrind: A must-be-redirected function valgrind: whose name matches the pattern: strlen valgrind: in an object with soname matching: ld-linux-x86-64.so.2 valgrind: was not found whilst processing valgrind: symbols from the object with soname: ld-linux-x86-64.so.2 valgrind: valgrind: Possible fixes: (1, short term): install glibc's debuginfo valgrind: package on this machine. (2, longer term): ask the packagers valgrind: for your Linux distribution to please in future ship a non- valgrind: stripped ld.so (or whatever the dynamic linker .so is called) valgrind: that exports the above-named function using the standard valgrind: calling conventions for this platform. The package you need valgrind: to install for fix (1) is called valgrind: valgrind: On Debian, Ubuntu: libc6-dbg valgrind: On SuSE, openSuSE, Fedora, RHEL: glibc-debuginfo valgrind: valgrind: Note that if you are debugging a 32 bit process on a valgrind: 64 bit system, you will need a corresponding 32 bit debuginfo valgrind: package (e.g. libc6-dbg:i386). valgrind: valgrind: Cannot continue -- exiting now. Sorry.
Avatar
some guy commented about a fish issue, maybe that?
Avatar
yea, trying that
Avatar
Why do you need to slow down the program btw?
23:37
Trying to trigger a race of sorts?
Avatar
because the bug appears in a VM
23:37
and I don't want to debug in a VM
Avatar
Remote gdb?
Avatar
it's a windows VM
23:38
it'd be best if the bug was reproducible on linux. I could also set up a linux VM and check if it happens there, too
Avatar
Hm, last I used msys(? is it part of mingw maybe?) gdb worked pretty well (edited)
Avatar
well great
23:39
it doesn't happen in valgrind
23:40
it did have the desired slowdown though 😉
23:40
way worse than the VM
Avatar
Got another question^^ How do you debug ddnet? For example if i wanna track the value of a certain variable while i am in the game. (edited)
Avatar
Avatar
heinrich5991
it doesn't happen in valgrind
did you try with callgrind? that's even slower iirc 😄
Avatar
Do you just create a label and display it in the game or is there a program or maybe even a way to look at the console lol
Avatar
I usually debug-print it into the console
Avatar
Avatar
bluesky
Got another question^^ How do you debug ddnet? For example if i wanna track the value of a certain variable while i am in the game. (edited)
You can just print it, that's what I usually do, you can add it to the debug hud, you can use gdb (edited)
Avatar
there's probably a good way to do it, but I don't 😦
Avatar
With gdb you can use the neat hook trick. You add a watchpoint to the variable, then you add a hook-stop, that stops, prints the value and continues. It creates considerable slowdown for often updated variables though, but you can do even neater things like only continuing if the value doesn't match some condition
Avatar
anyway, that's a bug for another day
23:45
good night 🙂
23:46
Oh another nice trick is dbg_break() inside the code. Sometimes it's annoying to write a condition in gdb
Exported 277 message(s)