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-11 00:00:00Z and 2022-01-12 00:00:00Z
Avatar
This should be a Big message louis
justatest 1
06:28
kek
06:29
Finally u stoooed
06:29
Fuck
Avatar
can anyone confirm this? "while in a stopper, your velocity vector parallel is set to 0 every tick (and you are also given a doublejump if the stopper is vertical). Since stoppers don't actively push you out, the tick that you enter the stopper will determine your position, as you will be stopped immediately after. This is the reason why when walking or falling into a stopper, your position will fluctuate based on how you entered. This also leads to a special case when completely skipping a stopper in one tick - afterwards, your speed will be set to 0, and you will be given a doublejump if the stopper is vertical."
06:29
took a long time cus im typing on my phone justatest
heartw 1
🇺 1
Avatar
@louis leak part
Avatar
pollito part
Avatar
Avatar
louis
can anyone confirm this? "while in a stopper, your velocity vector parallel is set to 0 every tick (and you are also given a doublejump if the stopper is vertical). Since stoppers don't actively push you out, the tick that you enter the stopper will determine your position, as you will be stopped immediately after. This is the reason why when walking or falling into a stopper, your position will fluctuate based on how you entered. This also leads to a special case when completely skipping a stopper in one tick - afterwards, your speed will be set to 0, and you will be given a doublejump if the stopper is vertical."
"while in a stopper, your velocity vector parallel is set to 0 every tick (and you are also given a doublejump if the stopper is vertical)" yes. "Since stoppers don't actively push you out, the tick that you enter the stopper will determine your position, as you will be stopped immediately after." yes. "This is the reason why when walking or falling into a stopper, your position will fluctuate based on how you entered. This also leads to a special case when completely skipping a stopper in one tick - afterwards, your speed will be set to 0, and you will be given a doublejump if the stopper is vertical." yes.
07:40
get doublejump and speed y set to 0.
07:41
Avatar
what about how you don't get dj if you are hooking someone
Avatar
Avatar
louis
can anyone confirm this? "while in a stopper, your velocity vector parallel is set to 0 every tick (and you are also given a doublejump if the stopper is vertical). Since stoppers don't actively push you out, the tick that you enter the stopper will determine your position, as you will be stopped immediately after. This is the reason why when walking or falling into a stopper, your position will fluctuate based on how you entered. This also leads to a special case when completely skipping a stopper in one tick - afterwards, your speed will be set to 0, and you will be given a doublejump if the stopper is vertical."
" velocity vector parallel to the stopper direction" maybe
Avatar
Avatar
plsplsplslol
what about how you don't get dj if you are hooking someone
it may because ur speed y is not bigger than 0.
Avatar
i think it also does when you are hooking someone above you
07:45
also how would you get dj by standing on stoppers then
Avatar
i think it also relate about speed calculated from hooking and gravity, but i am not clear about it.
07:48
u can see speed is calculated earlier than tile(stopper)
07:49
if u are interesting in, u can find this in src\game\server\entities\character.cpp void CCharacter::Tick()
Avatar
ok i think i found it actually
08:16
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/gamecore.cpp at 469136b5e7c7ae30b5ea22aff59e9f0845e5452a · ddnet/ddnet
08:16
when you are hooking someone it calculates stoppers earlier than normal
👍 1
08:17
so m_Vel.y is 0 at // stopper
08:18
if you arent hooking it clamps velocity after it checks m_Vel.y > 0
Avatar
@Patiga i was checking ur twmap code and i found this, actually the code on line 174 is unreachable, because ? on a Err always returns, thats why its always better to return errors using "return" when you creare ur own Err() like this
👍 1
08:37
ill pr later
Avatar
chillerdragon BOT 2022-01-11 08:47:13Z
twmap masterrace
09:38
monkalaugh
09:44
tis beautiful
09:44
Avatar
Well almost all languages have a swap in their stdlib :D
Avatar
@Patiga how does the py script work
Avatar
ah I hoped it would explain itself
11:10
generate_external_constants.py 6 ~/usr/share/ddnet/data/mapres ddnet_external.rs and generate_external_constants.py 7 ~/usr/share/teeworlds/data/mapres teeworlds_external.rs
11:11
(assuming you are on arch and have ddnet and teeworlds 0.7 installed)
Avatar
ok i pushed
Avatar
@Ryozuki gitlab gives me the option to squash the commits, mind if I do that?
Avatar
i dont mind
Avatar
@Patiga u should run cargo fmt too
Avatar
I'm scared
11:46
but ye
Avatar
scared of?
Avatar
the amount of lines changed
Avatar
about 4k
11:47
iirc
11:48
Git pre-commit hook that checks Rust code style with cargo fmt - pre-commit-cargo-fmt
Avatar
@Patiga all the highlighted ones dont show any maps and Stop could probably be renamed to Stopper
Avatar
thanks for notifying :), changes are already submitted
Avatar
9207113 Upgrade SDL2 2.0.18 -> 2.0.20 (except on Windows) - def-
11:58
[ddnet/ddnet-libs] New branch created: pr-sdl-2012
12:01
Still works on macOS

Checklist

  • [x] 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...
Avatar
Windows still having performance issues on newer sdl?
Avatar
@Ryozuki scanned a bit over the files, and I dislike the formatting it does to the generated files. it messes up the arrays also I saw a weird thing it did to src/lib.rs: pub mod map_checks; // comment1 pub mod map_edit; // comment2 pub mod map_dir; // comment3 was changed to +pub mod map_checks; // comment1 +pub mod map_dir; +pub mod map_edit; // comment2 // comment3
Avatar
hmm weird
Avatar
You dare question cargo fmt?
Avatar
i never had problems with it
12:08
can u show me the array thing
Avatar
You obviously wanted comment 2 and 3 merged
Avatar
bluekitty definitely more concise or smth
Avatar
ok do whathever
Avatar
@Ryozuki don't wanna paste the whole array here, too long
12:09
I'll send in pm
Avatar
I've actually had no issues with cargo fmt either. Odd that it's messing up there
12:13
honestly this looks like a bug in cargo fmt
12:14
maybe if u can find a reduced code version of it u can report it
12:15
i can reproduce it
12:15
ill report it
Avatar
yeah its really simple to reproduce o.o
Avatar
on the arrays u can add the skip tag i told u
Avatar
Avatar
Learath2
Windows still having performance issues on newer sdl?
didn't check but there was no relevant change in changelog
Avatar
Avatar
Patiga
thanks for notifying :), changes are already submitted
So I should just rerun it?
Avatar
yes, with the new changes
12:17
I also finally rebased to master ^^
12:18
i opened it
12:22
next time I wanna open that issue myself :)
Avatar
@Ryozuki do you have a fix for the long lines of tiles or should I make one?
Avatar
make it
12:37
u should wrap all the tiles in a div with some max weidth
12:37
width
12:37
and display:flex the div probs
Avatar
with flex-wrap: wrap
Avatar
@deen the names and grouping I did might've been a bit confusing: HOOKTHROUGH_ALL is just new hookthrough (THROUGH is old hookthrough), PLASMAU is the unfreezing plasma turret. I mapped the freezing+exploding bullet into the freezing bullet
13:08
so no plasmae?
Avatar
as it is right now yes, should I separate it from the plasmaf?
Avatar
ok, no. that's fine
👍 1
Avatar
7f9c087 Fix alignment with more tiles - def-
Avatar
@Patiga weird some maps still report PLASMAE and some PLASMAF
Avatar
ah I mixed up the names in my head.
14:03
there are PLASMA, PLASMAF, PLASMAE, PLASMAU. F -> freeze, e -> explosion, u -> unfreeze, PLASMA -> freeze + explosion and I mapped PLASMA onto PLASMAF
14:04
so PLASMAE should have the icon at index 220, PLASMAF -> 221, PLASMAU -> 223
14:05
and PLASMA is mapped onto 220
Avatar
Any idea why we have 2 refresh rate sliders in the settings now?
14:28
abit confusing
Avatar
graphics thread and input thread
Avatar
Yeah, but why 😄
Avatar
you can set both, they have different effects
Avatar
there are a couple of settings which should be moved to different tabs e.g: Show name plates + name plates size, Show clan above nameplates, in General to HUD Show only chat messages from friends, In General to HUD > Chat Tab Refresh rate, In General to Graphics and rename both according to what they do Automatically record demos and the slider in, General to DDNet in the demo section or do we have not enough space? ^^
Avatar
layer arrows unseeable under blocks fix it place
Avatar
Avatar
hussainx3
layer arrows unseeable under blocks fix it place
like here i can't know how he did it was holding A or some A and D or not move at allzzzz
14:47
i suggest putting layer arrows ,up
Avatar
Users of popular open-source libraries 'colors' and 'faker' were left stunned after they saw their applications, using these libraries, printing gibberish data and breaking. Some surmised if the NPM libraries had been compromised, but it turns out there's more to the story.
14:59
How can project rely on other library being updated without their consent? This js bullshit is beyond me
15:00
But the bottom topic is probably of concern here too 🙂
Avatar
@Chairn this has to do with how semantic versioning works
15:01
ppl usually pin to the minor version
15:01
e.g 4.2
15:01
so it actually means >4.2.0, <4.3 (edited)
15:02
this troll guy updated it with 4.2.1 (or something equivalent, this is an example)
15:02
also its more this guy being a dick
15:02
he wants money but he licensed his project with MIT
15:02
a brainless guy whose only achievemnt is a stupid color library things he did something big
Avatar
Avatar
Ryozuki
so it actually means >4.2.0, <4.3 (edited)
Yeah, but its still automatic, while in C/C++, Python or others, you decide which version you use and need to change manually, so its harder to exploit as a Remote Code Execution attack
Avatar
whyd github suspend his account
15:09
doesn't make sense to me
Avatar
Avatar
Chairn
Yeah, but its still automatic, while in C/C++, Python or others, you decide which version you use and need to change manually, so its harder to exploit as a Remote Code Execution attack
not rly on python
15:09
u can pin on minor too with requirements.txt
15:09
@Chairn but its actually weird that if affects lots of apps
15:09
because package managers usually have a lockfile
15:10
so production code installs libs from the lockfile
15:10
which is always the same
15:10
so they must have updated the lockfile to break their own app
Avatar
Avatar
louis
whyd github suspend his account
he wanted to delete everything he has on github i think and since lot of ppl want to use it github said no
15:11
i am actually against this tho
15:11
he should be able to delete it
15:11
at the same time its kinda pointless
15:11
since git is not centralized
Avatar
who owns the code when it was written by tens of people?
Avatar
i dont think anybody owns it, its governed under the license
15:12
well idk
15:12
im not a lawyer
Avatar
Who owns DDNet for instance? Deen? Matricks? GreyFox?
15:13
What if tomorrow deen decides to just throw it away and delete the git?
15:13
Those are serious questions raised by the guy
Avatar
@Chairn idk what owning means, i just know u can do almost anything thanks to the license, what i think u cant do is change this license
15:13
for this u would need agreement of every contributor
Avatar
+ the fact that nobody got remuneration for their work
Avatar
Avatar
Chairn
+ the fact that nobody got remuneration for their work
i think its a bit weird to expect remuneration when u do open source
Avatar
Avatar
Ryozuki
@Chairn idk what owning means, i just know u can do almost anything thanks to the license, what i think u cant do is change this license
well, that sounds like a big flaw because you're stuck with constraint from maybe 10 years ago. Even countries constitution are more flexible
Avatar
. Even countries constitution are more flexible
15:14
i doubt
Avatar
they at least state how they can be modified
15:15
modify what
15:15
what i meant is that probably (im not sure) if you want to change from MIT to gpl u would need to ask every contributor if he agrees i think
Avatar
Avatar
Chairn
What if tomorrow deen decides to just throw it away and delete the git?
well the source is still there, the question if someone would be up for the task to maintain the servers
15:16
him deleting git means nothing
15:17
and u can do whathever
15:18
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
>
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.
15:18
monkalaugh
Avatar
Avatar
Ryozuki
what i meant is that probably (im not sure) if you want to change from MIT to gpl u would need to ask every contributor if he agrees i think
Isn't it allowed to make the license more restrictive? Forbidding that would be pretty weird because the MIT license allows making the code proprietary
Avatar
Avatar
Maiski
Isn't it allowed to make the license more restrictive? Forbidding that would be pretty weird because the MIT license allows making the code proprietary
some licenses are compatible and some are not
19:37
it doesnt allow to make the code propietary btw
19:37
it allows you to use it for profit
19:37
and or modify it
19:38
and that modification can be propietary but needs the original license notice
19:38
this is why GPL is superior
19:39
any modification needs to follow gpl
19:39
for true free software
19:39
open source is a business interest they only want licenses like mit
19:51
TIL "quixotic"
19:51
extremely idealistic; unrealistic and impractical. "a vast and perhaps quixotic project"
19:51
xD
19:52
chillerdragon expand ur vocabulary
Avatar
this guy is so stupid why release your work under an extremely permissive license if you are going to be a little bitch baby when people use the license as written
Avatar
Avatar
Learath2
this guy is so stupid why release your work under an extremely permissive license if you are going to be a little bitch baby when people use the license as written
exactly as i thought
19:57
he should have used gpl-3
Avatar
Github was extremely out of line for banning him tho
19:57
Who the fuck is microsoft to decide what someone does to their project
Avatar
that too
19:57
but its microsoft
19:57
xd
Avatar
@Learath2 extend, embrace, steal
19:58
monkalaugh
Avatar
i suggest put layer direction above blocks because when it's under blocks you can't see directions Tees it's example here ⬇ i can't know here how he did it was holding A? or a little A and B? or not move at all https://streamable.com/8gdkk6
Avatar
@Learath2 you wanted to have some API for the ddnet server at some point
22:35
was that for managing stuff like bans?
Exported 193 message(s)