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 2022-01-16 00:00:00Z and 2022-01-17 00:00:00Z
Avatar
does anyone know how the bug where someone falls directly into 2 ppl hammerflying and skips into the middle of them works?
Avatar
Logically, probably similar to skipping through doors with speed.
08:25
tick-based
08:26
Never done it before / seen it happen though, I think
08:28
It would just require far more speed, since the tee's hitbox is far less forgiving.
08:32
Sounds unrealistic to do without some form of gaining speed. Grenade, reverse speedfly, or something of the sort (edited)
Avatar
as reported by louis

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#u...
Avatar
[quakenet] ChillerDragon BOT 2022-01-16 11:30:11Z
Skeith be like
11:30
11:34
I have a habit of typing things that are hard to read, then I feel obligated to correct myself. justatest trollkek (edited)
Avatar
This adopts the 0.7 way of handling double clicks, by checking Event.button.clicks of the SDL_Event. The double click is stored as a flag which is cleared when the MouseDoubleClick() function is called (d215c732062cbc73b9922ce270be70c36d00bb9d and 7977b46d36aee6e0eb4676ed1f9a14859d9f5408). This reverts 72a6e20, as this hack is no longer required (closes #1745). Double clicking a friend in the friend list still works (#444) with both gfx_asyncrender_old 0 and 1. Refactorings an...
Avatar
@murpi you guys just need a entity design for the live freeze?
Avatar
probably, not sure if deen already received any submissions
Avatar
chillerdragon BOT 2022-01-16 14:36:21Z
If i have two clients open and download the same map at the same time how is it made sure there are no conflicts? Is the tmp download file containing some pid or something? I think iv seen such code but can not find it anymore
14:37
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/storage.cpp at c5d8e0069be41cba641246540f9b1569cf8856f9 · ddnet/ddnet
14:37
nvm got it
Avatar
[quakenet] breton BOT 2022-01-16 16:25:27Z
would anybody be so kind and ban blockers from ddnet-rus - novice, the one on port 8301?
Avatar
[quakenet] breton BOT 2022-01-16 16:35:10Z
yykkle too please
16:36
thank you
Avatar
chillerdragon BOT 2022-01-16 16:52:43Z
a: buse
Avatar
I need a new terminal emulator because the author of urxvt is racist against gentoo users
Avatar
[quakenet] breton BOT 2022-01-16 17:21:52Z
if anybody from moderators is still kind enough, could you please stop the name changing spam on the same server? A player changes a nick every 5 seconds, and even muting them does not prevent a message about it
17:22
the whole chat looks like this: 'D1mple' changed name to 'elpm1D'; 'elpm1D' changed name to 'D1mple'
Avatar
ѕα∂ℓσνє🖤 BOT 2022-01-16 17:26:47Z
hi is it legal have a ddnet with 3 dumies?
Avatar
Avatar
Learath2
I need a new terminal emulator because the author of urxvt is racist against gentoo users
alacritty
17:42
made in rust
17:42
ive been using it for long now
17:42
no problems
17:42
it also has a vim like mode itself
17:42
tho i never used it
Avatar
Is alacritty the terminal that is gpu accelerated?
17:44
well it uses opengl
17:44
A cross-platform, OpenGL terminal emulator. Contribute to alacritty/alacritty development by creating an account on GitHub.
Avatar
Avatar
Learath2
I need a new terminal emulator because the author of urxvt is racist against gentoo users
can u show the drama
Avatar
I used kitty on macOS for a while, I wonder how it is
Avatar
i need my weekend dose of it
17:54
i used kitty before
17:54
but i think alacritty is faster
17:54
and its rusty so
Avatar
It's not really drama per se. I'm just jilted enough by the way he typed that to look for a new terminal emulator
Avatar
@Learath2 i have drama for u, the multimc author uses open source licenses but doesnt like other ppl using the software as they like
17:56
xd
17:56
multimc is a minecraft launcher to handle mods
Avatar
These people are all like very stupid...
Avatar
A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once (Fork of MultiMC) - FAQ · PolyMC/PolyMC Wiki
Avatar
Did you not read the license before you put it on your code?
Avatar
so this fork was made
17:57
The maintainer of MultiMC has been hostile to other people packaging it, and has taken an anti-user approach removing features from the software to make it harder to package for a system install. Therefore, this project was made to allow anyone to distribute this as they please, without needless obstructions that the MultiMC maintainer seems to deem necessary. Additionally, this allows for full-system installs, building from source (and you will be allowed support for your own builds), and for any redistribution you like--packages, binaries, whatever.
Avatar
There is a huge similar drama I just remembered, the sshfs drama
Avatar
Avatar
Learath2
Did you not read the license before you put it on your code?
the reason he chose this is cuz he wanted other ppl to provide patches, but alwayus under his control
17:58
xddd
17:58
clueless
Avatar
Ah it was osxFUSE
17:59
He made the thing closed source and he only provides binary releases now
Avatar
Someone can't even take over because apple won't give out kernel extension signing certificates anymore
18:00
literally holding us all hostage using power vested in him by apple
18:00
New releases have the following message in their description: The license has changed. Starting with the 3.10.0 release, redistributions bundled with commercial software are not allowed without spe...
Avatar
chillerdragon BOT 2022-01-16 18:20:53Z
Oh i was wondering when you started that PolyMC that it sounded so similar to MultiMC. Yea the aur package always seemed outdated maybe it’s time to switch. But isn’t PolyMC then lacking the main maintainer?
Avatar
Avatar
ѕα∂ℓσνє🖤
hi is it legal have a ddnet with 3 dumies?
pls
Avatar
Hey, I need some help. I am trying to delete an element from a vector and I am doing it the same way I have always done it. I get a vector erase iterato out of range somehow. how is that possible?
18:33
18:33
[2022-01-16 19:29:09][hi]: returned: 0 [2022-01-16 19:29:09][hi]: removing: 0/1
18:34
returned and got is the same, just that returned is in the function where it returns i
Avatar
i have a question, when im holding keys and press the text button those keys keep being held right (edited)
Avatar
I can not call erase(begin()) either. what kind of witchcraft is this
19:06
no matter if cleared before, or adding size checks... Its wicked
Avatar
Avatar
Souly
@murpi you guys just need a entity design for the live freeze?
yes
Avatar
deen i need you
19:17
:(
Avatar
Avatar
Nathan_
pls
ye you can use 3 dummies
Avatar
Avatar
fokkonaut
Hey, I need some help. I am trying to delete an element from a vector and I am doing it the same way I have always done it. I get a vector erase iterato out of range somehow. how is that possible?
Very funny: I can output values from the vector element DoorNumber even. Also, it works as it should, just this erasing does not work. Weird af
Avatar
try ASAN, maybe some memory is corrupted?
Avatar
make a small example?
Avatar
Avatar
fokkonaut
Click to see attachment 🖼️
I have this code list<int> p {5,3,6,2,1}; vector<int> v {2,3,4}; cout<<(v.begin() + 1); cout<<(p.begin() +1); I get output of the 3rd line as 3 but the 4th line shows t...
Avatar
Avatar
deen
make a small example?
i've added a vector to CDoorTile so that multiple doors can be on one spot. right now the size of each tile is either 0 or 1, depending on whether there is a door or not on that tile
20:20
i push them back, and iterate over them to find the index, then i use the index which i can also access and get values from, and then when i try to erase the index when i remove a door, this error occurs
Avatar
when i hover over m_pDoor
20:46
when i hover over m_vTiles
20:46
why is the size different?
Avatar
Fixes #4608

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresss...
Avatar
@fokkonaut you shouldn't erase from a vector while iterating over it, that won't work in c++
Avatar
b391e4b Fix bullet rendered through walls - trml f5b3d23 Merge #4609 - bors[bot]
Avatar
Avatar
deen
@fokkonaut you shouldn't erase from a vector while iterating over it, that won't work in c++
1. why? 2. i dont even do :D i iterate over it once to know the index, which i then can remove (one at a time)
22:16
funny thing is, I couldnt even get erase(begin()) to work, it just says iterator outside range
Avatar
do you erase from the same vector that you used begin on?
Avatar
erasing with index should work as long as you don't use the iterators afterwards
22:17
as I said, make a small example in a single cpp file, then others can check
Avatar
I can, sure, but I dont get it at all you know, because I do this behaviour more than 2 or 3 times in my code
22:17
And it works, just in this case noz
22:17
not*
22:19
I even tried to delete it instantly after pushed back, it didnt work :D
Avatar
hard to debug without seeing all the code
Avatar
i can invite u if you'd like. I doubt a small code example would help because it would probably not happen :D
22:21
anyways, about what you said; I see the complications about iterating and removing, but how would it be done then if needed? (unrelated rn)
Avatar
I think you are for-looping over the vector. If you remove an element from a vector, you are changing also the size of the vector. Index is now pointing to next (if exist). For loop will increase index in any case and loop will skip one element each time one element is erased. We are supposing some code that we cannot see 😅
Avatar
You can't loop with iterators and delete, it's just not possible in C++
22:45
You can iterate with indexes and delete if you are careful, just need to update the end index of the loop when you delete
Avatar
will doing it while reverse iterating work?
Avatar
Or you can do it the C++17 way, std::algorithm::remove_if
Avatar
Avatar
trml
will doing it while reverse iterating work?
As far as I'm aware, the standard says all iterators are invalid after a std::vector::erase
22:49
Oh actually just checked it and it says it only invalidates iterators at and after the one you delete
Avatar
oh, ok. it has worked the times I've tried it, but wasn't sure if it was always guaranteed to work
Avatar
I just took a look at the standard and it seems you can erase going forwards but you need to be careful how you do it, you can't just do a range based for loop
22:55
for(auto it = v.begin(); it != v.end();) { it = condition(*it) ? vec.erase(it) : it + 1; } should work(tm)\
22:56
Notice you can't cache the end iterator, nor can you just it++ after every iteration
Avatar
oh, interesting. I was perhaps thinking more of a non-iterator version like for(int i = v.size()-1; i >= 0; i--) { if(condition(v[i]) erase(v.begin() + i); }
23:04
v.erase*
Avatar
@fokkonaut creating a minimal example can also help you find the error
Avatar
Avatar
trml
oh, interesting. I was perhaps thinking more of a non-iterator version like for(int i = v.size()-1; i >= 0; i--) { if(condition(v[i]) erase(v.begin() + i); }
For loop backward is so simple and smart solution 💯
Exported 123 message(s)