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 2020-11-24 00:00:00Z and 2020-11-25 00:00:00Z
Avatar
How to spawn item
04:14
Like Ninja Sword, armor etc.
Avatar
You'll need to get familiar with mapping if you wish to create a custom map
04:42
alternatively you can give yourself all weapons by typing weapons in the rcon console (your own server)
04:43
all available server commands: https://ddnet.tw/settingscommands/
Avatar
@murpi in c++
Pepethink 1
Avatar
Cpickup(...)
Avatar
@Spyry https://github.com/ddnet/ddnet/blob/master/src/game/server/gamecontroller.cpp#L120 this is how the server creates entities (in this case from the map info iirc)
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
Avatar
Can I compile it from any OS for any OS? Or do I have to use Windows to compile it for Windows?
Avatar
@becc You can compile from Linux to everything else, others are not so easy
09:56
Here's how I crosscompile the release for Windows: https://github.com/ddnet/ddnet-scripts/blob/master/release/build.sh#L111
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
09:57
Requires mingw
Avatar
Also requires some messing around sometimes. That symbol overlap issue with dlls was quite annoying to debug
Avatar
0822f9c Add check_dilate - def- b722dcc Dilate & optimize non-dilated images - Jupeyy 3956796 Merge #2798 - bors[bot]
12:10
yay centos 6 will soon die
12:12
damn centos 7 uses the same cmake version as centos 6
12:12
we cant bump it yet i guess
12:12
rip
12:12
stuck at 2.8
12:13
centos 8 has 3.11 poggies
12:13
and i got 3.19
12:13
aPES4_Steering
Avatar
ddnet#2796 removed tileset_* tools, but CMakeLists.txt still try to match their filename. This patch removes it as it is not longer needed.

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 affec...
Avatar
Starting in CMake 3.12, this supports a range, such as VERSION 3.1...3.15; this means you support as low as 3.1 but have also tested it with the new policy settings up to 3.15. This is much nicer on users that need the better settings, and due to a trick in the syntax, it's backward compatible with older versions of CMake (though actually running CMake 3.1-3.11 will only set the 3.1 version of the policies in this example, since those versions didn't treat this specially). New versions of policies tend to be most important for macOS and Windows users, who also usually have a very recent version of CMake.
12:15
rip
Avatar
8d3d46a Remove remaining tileset_ occurrence - rffontenelle e343585 Merge #3354 - bors[bot]
Avatar
@Deleted User to make systemd dump crashes you have to tune a service first.
13:40
yeah already found it
13:40
its limits
13:40
in debian
13:41
Also if you're on Ubuntu it has it's own crash interceptor which could be removed first.
Avatar
Avatar
Deleted User
yeah already found it
Nice!
13:41
it was set to 0, which disabled it
πŸ‘ 1
13:41
@Deleted User so on ubuntu there is some crash handler on default?
13:43
It has systemd and you can install systemd-coredump package first. Then you have to disable a built-in coredump interceptor, apport.
13:44
Or maybe disable Apport first would be a nicer idea πŸ˜„
13:44
but is that some crash handler?
13:45
since ubuntu is based on debian, maybe there is some crash dump somewhere πŸ˜„
13:45
ah
13:45
its a gui interface ok
13:45
To be honest I don't remember if it was enabled or disabled by default on ubuntu 20.0 server installation.
13:46
maybe i should install smth like that πŸ˜„
13:46
I've just found a tip to disable it while trying to make systemd-coredump work. And it was limits.
13:46
Why should you? systemd-coredump is much better
13:46
and it's universal
13:46
I have a script that asks systemd to get last dump from my VPS server and then download it. Works so nice.
13:47
then i see when smth is crashing or when something is just closing πŸ˜„
13:47
Just don't forget to backup EVERY DDNet-server binary build you deploy on server or else your coredump will correspond to newer version and most probably will not work.
13:48
@Deleted User if you're working on local dev machine only then ok.
13:48
But if you manage servers I'd recommend you to use something like papertrail to get notifications on email about SEGV dumps.
13:49
Also it keeps all logs from all servers in one place and make it easy searchable.
13:49
13:49
For example, I write SEGV and see all crashes.
13:50
That day I've introduced new bugs and fixed them on the second try πŸ˜„ no crash since then. (edited)
13:50
Frustration-free log management. Seamlessly manage logs from apps, servers, and cloud services.
13:50
it has a free plan too
13:51
luckily my fng servers didnt ever crash yet since years xd so i dont have trouble server side
13:51
It doesn't seems you're adding new features daily, right?
13:51
To your fng mod I mean.
13:51
yeah, rarely
13:52
and like 99% of bugs are easily visible with asan, or back then valgrind πŸ˜„
13:53
Nice. Crashes were bane of my existence from the very start of my mod. Before I've accidentally found a trick to check if I am accessing a pointer which still points to a destroyed instance.
13:53
I should try valgrind one day πŸ˜„
13:55
better use asan tbh, the performance is just superb
Avatar
ye, the virtual memory trick is such a great idea
Avatar
Nvim development (prerelease) build. NVIM v0.5.0-828-g0a95549d6 Build type: Release LuaJIT 2.1.0-beta3 Install Windows Extract nvim-win64.zip (or nvim-win32.zip) Run nvim-qt.exe macOS Download ...
14:42
soon neovim 0.5.0 released
14:42
over 2.3k commits
14:44
14:44
Traditional highlighting (left) vs Treesitter-based highlighting (right).
14:44
poggers
Avatar
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.
Avatar
@Deleted User the cheapo solution that I use is a cron entry with MAILTO=myaddress like this πŸ˜„ : 0 */8 * * * find /home/teeworlds/servers -maxdepth 1 -name 'core*'
15:17
requires sendmail to work of course
Avatar
I had been very skeptical of game streaming up until today. Google was giving away free stadia controllers and subscriptions, got mine and I can confidently say this is probably the future for singleplayer gaming
Avatar
lol even if it works well its like DRM
Avatar
Why just singleplayer?
Avatar
its not good
Avatar
Even with my average connection I can get console level graphics and very acceptable responsiveness
15:18
Multiplayer I don't see happening without some major improvements to latenct
15:18
Latency*
Avatar
not even the best compression gives good result with noisy graphics
Avatar
Even in single player I feel the effects of all the lag combining
Avatar
thats why watching ppl stream games with lot of particles makes bitrate go crazy
15:19
i assume the same happens
Avatar
What we nerds think with our privacy requirements and very high graphics needs don't matter
15:20
Oh and our distaste of drm
Avatar
console leve graphics lol
15:20
level*
Avatar
For the general public drm is good, they think it's the companies right to protect their profits
15:21
For the general public google tracking them is a non issue
Avatar
u can circumvent drm xd
15:21
youtube theorically has a drm
15:21
but youtube-dl exists
Avatar
And for them console gfx is far better than acceptable
Avatar
its just to make sure in law u can say u are protecting the content
Avatar
I'm fairly confident this is the future
Avatar
and ur average joe cant right click download
Avatar
The controller is shit though, google needs to step up their game
15:22
Oh and the stupid controller doesn't implement usb pd correctly still. After 7 years of usb c we still get non compliant devices...
Avatar
9,99 € month, if u play long enough its more worth to buy a gpu
15:24
u may even get better results
Avatar
Well you'd need to play maaassive amounts to cover all the free games included in the subscription
15:25
Buying single games on stadia, idk, might be less worth
Avatar
those free games are boring
Avatar
There is one hidden cost with gpus, they are basically almost space heaters. 500W is no joke
Avatar
ppl want to play cyberpunk 2077 not nba basketball lol
Avatar
My space heaters first level is 600W
15:26
Cyberpunk 2077 is coming out on stadia too. On launch even
Avatar
i want to see how it performs there
15:27
@Learath2 but u have to buy the game specifically on stadia
15:27
to play it there
15:27
?
15:27
if so then thats rly bad
Avatar
I played some Sniper Elite 4 today. I'll try dead by daylight tomorrow
15:28
@Ryozuki the game collection is really not as bad as I expected. Tho you do need to buy some titles they are usually cheaper to get on stadia
Avatar
but its locked to stadia
Avatar
I don't see myself subscribing to stadia as I don't play much nowadays and when I do I have a good gpu I'd like to utilize and want the ability to revisit games in the future
15:29
Tho I can see how for the common consumer this is a great deal
Avatar
when we get quantum entanglement internet connections, then this is the future xd
Avatar
tree sitter highlighting without support from a LSP
15:30
the future is neovim
Avatar
It is indeed locked to stadia, but does Joe Average care about that? He gets to play his game, at a very reasonable gfx quality, for cheaper
15:30
Even 4k if you have a beastly internet connection like in northern europe or korea
Avatar
also it highlights correctly as u edit
15:30
its incremental
15:30
coffee
Avatar
@Ryozuki whatever text editor that is, looks nice
Avatar
@Deleted User multiplayer games I agree require better, but I'm honestly surprised at how playable the singleplayer experiences are
Avatar
its neovim from source with neovim-treesitter and dracula theme
15:32
i use dracula everywhere lately
15:32
it looks nice everywhere
Avatar
oh I think I've had that theme in notepad++ long ago
Avatar
Dracula is a color scheme for code editors and terminal emulators such as Vim, Notepad++, iTerm, VSCode, Terminal.app, ZSH, and much more.
15:33
with rust code BASED
15:35
@Ryozuki i dunno
15:35
honstly like this more xD
Avatar
well ur color theme is different
Avatar
that's really similar to my current notepad++ skin xD but not exact
Avatar
yea its the famous vscode dark theme
Avatar
its default of vscodium, or vscode
Avatar
yeah but for me the numbers on the left are blue
15:37
other than that pretty much the same
Avatar
@Deleted User vscode doesnt use treesitter yet
Avatar
cannot judge if i find it useful πŸ˜„
Avatar
the cool thing is u can edit and it highlights correctly even as u edit
Avatar
but ur tip with clang server was good xd thats useful
Avatar
"It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited."
15:39
@Deleted User for vim?
15:39
best greenthing
Avatar
for vscodium
15:39
clangd everywhere
Avatar
Avatar
louis
Click to see attachment πŸ–ΌοΈ
are u learning rust
Avatar
its insanly much faster than the microsoft tool
15:40
sadly the extension isnt perfect yet πŸ˜„
Avatar
i dont like font ligatures
15:40
i prefer seeing every character
Avatar
honestly I salute to the people who can make syntax highlighting with 50 different colors look good
Avatar
@Ryozuki i was doing a little bit before but im not really focusing on it now
Avatar
rust ftw
15:42
rust is complicated as a first language tho
Avatar
@Learath2 do u think this is worth doing (java) or do they optimize .size if i dont use n
Avatar
Hm, I don’t think it would be allowed to optimize as you are not barred from modifying the array in a loop like this
Avatar
I would use a for-each or a stream tho. Modern java and all
15:59
More safety, easier to optimise
Avatar
For each loop :: 110 ms Using collection.size() :: 37 ms Using [int size = list.size(); int j = 0; j < size ; j++] :: 4 ms Using [int j = list.size(); j > size ; j--] :: 1 ms
16:00
my loop is the 3rd
16:00
i dont think they optimize it
16:00
xd
16:00
iterators in java are not zero cost
16:00
rip
Avatar
Well it doesn’t say which version this is in. Iirc iterators optimize much better nowadays
Avatar
Java 7
Avatar
How do you push commit into someone else's PR? (In a repo that I own ofc) (edited)
Avatar
Ah, stick to old stuff @Ryozuki. Get the size once loop thru
Avatar
@TsFreddie add their repo as a remote, push to their branch
Avatar
im doing that in the example i sent u xd
16:03
but im going to test those loops in java 15
16:03
well 14, 15 is too new for my ide
Avatar
Can I just do that? Pushing to other ppl's branch
Avatar
if ur a member of ddnet
16:04
and they made pr withthat tick on
16:04
yes
16:04
the tick is on by default
Avatar
Cool
Avatar
@Ryozuki also depends on the jvm btw
16:06
I wonder how different the bytecode is between the different loop types
Avatar
For each loop :: 49 ms Using collection.size() :: 3 ms Using [int size = list.size(); int j = 0; j < size ; j++] :: 3 ms Using [int j = list.size(); j > size ; j--] :: 0 ms
16:08
with java 14
16:08
openjdk
16:09
the reverse loop is rly fast
16:09
For each loop :: 27 ms Using collection.size() :: 4 ms Using [int size = list.size(); int j = 0; j < size ; j++] :: 5 ms Using [int j = list.size(); j > size ; j--] :: 0 ms (edited)
16:09
with java 1.8
16:09
xd
16:09
fixed
16:09
i copied old one by mistake
Avatar
@Ryozuki have u used R8?
Avatar
10000000 this is the size of lists
16:10
whats r8
Avatar
a java optimizer
16:10
from google
Avatar
It is better but it’s still not there, so odd. You’d think with more constraints it should be trivial for the jvm to optimize
Avatar
i havent used it
16:11
im not a fan of java
16:11
using it only because i have to
Avatar
Anyway, I write most of my java code with streams. I would only consider performance if it proves to be an issue
16:12
Java is shit for performance anyway πŸ˜›
16:12
@Learath2 ppl make webservers with spring
Avatar
when i hear java, i see minecraft (edited)
Avatar
well ppl also make them with python
16:12
at this point ppl dont care about perfomance
16:13
im writing my web in rust
16:13
2nd fastest web framework
16:13
after c++ dragon or smth like that
16:13
Performance comparison of a wide spectrum of web application frameworks and platforms using community-contributed test implementations.
16:13
im using actix
16:13
Avatar
Honestly, performance is not usually the concern in web since your site will realistically only serve so many people
16:15
Unless you work at amazon, than it matters
16:15
express is one of the most famous
16:15
and it has rly bad perf
Avatar
Avatar
Learath2
Honestly, performance is not usually the concern in web since your site will realistically only serve so many people
i know xd
16:15
but gotta go fast
16:15
aPES4_Steering
Avatar
@Ryozuki is that a full webserver, like completly in rust?
16:16
no script languages?
16:16
@Deleted User yes
Avatar
then its cool xd
Avatar
@Deleted User for templates i use askama, it compiles the templates to rust from html
16:16
i can know at compile time if my templates will fail
16:17
Type-safe, compiled Jinja-like templates for Rust. Contribute to djc/askama development by creating an account on GitHub.
Avatar
yeah sounds cool
16:17
and diesel for orm
Avatar
Is the webserver also part of the project?
Avatar
actix-web (the web framework) is built on top of actix a Actor framework
16:18
Features Async and sync actors Actor communication in a local/thread context Uses futures for asynchronous message handling Actor supervision Typed messages (No Any type) Runs on stable Rust 1.40+
Avatar
Avatar
Learath2
Is the webserver also part of the project?
what project
Avatar
Actix
Avatar
the web framework is built on top of actix
16:19
by the actix authors
Avatar
A web framework doesn’t usually contain a webserver, they usually have an interface of sorts, like fastcgi or uwsgi
16:21
Seems they do, it’s nice for performance
Avatar
they have lot of libs
16:21
actix-server is their tcp server
16:22
actix-connect the connector
16:22
and so on
Avatar
Not sure how good of an idea it is to do that yourself though, very large attack surface on web servers
Avatar
but u just use actic-web
Avatar
There is a reason there are only a handful around in active use
Avatar
@Deleted User R8 sounds like it's used for Android mostly?
Avatar
8d31108 Update frontpage video - def-
Avatar
then take proguard or whatever tool xd
19:03
android is the only case where i ever used java lately πŸ˜„
Avatar
Why are you not a fan of Java? :0
Avatar
rust shall overtake the world
19:08
The Java programming language and Java software platform have been criticized for design choices in the language and platform, including the implementation of generics, forced object-oriented programming, the handling of unsigned numbers, the implementation of floating-point arithmetic, and a history of security vulnerabilities in the primary Ja...
19:09
oh just noticed this Arrays must be indexed by int values
19:09
means u can only have a array as long as max int
19:09
32
19:09
2.1 billion
19:10
Supporting large arrays would also require changes to the JVM.[22] This limitation manifests itself in areas such as collections being limited to 2 billion elements[23] and the inability to memory map continuous file segments larger than 2 GB.[24] Java also lacks true multidimensional arrays (contiguously allocated single blocks of memory accessed by a single indirection), which limits performance for scientific and technical computing.[15]
19:10
There is no efficient way to initialize arrays in Java. When declaring an array, the JVM compiles it to bytecodes with instructions that set its elements one by one at runtime.
19:10
kek
19:10
the list goes on
19:10
java is a joke
19:11
i also hate its so ide oriented
19:11
u need to access 30 folders
19:11
to go to ur src file
19:11
src/main/tw/ddnet/mypackage/MyClass.java
19:11
xdd
Avatar
Yeah it has some issues and bad designs, however, almost any language got some of that I guess I really like Java, no matter the performance. I have never had problems using it for a lot of projects :0
Avatar
Anyways ... More than 4 Billion Devices run Java :> (edited)
Avatar
your sim card runs java
Avatar
run, or have it installed? πŸ˜„
Avatar
AFAIUI, you can run java code on sim cards
Avatar
They are cheating with sim cards...
21:03
ofc more than 4b run it because sim cards can do JVM bytecode iirc
Avatar
4b doesnt sound alot tho
21:32
if we count android its actually pretty low
Avatar
yea
Avatar
they said more than πŸ˜›
22:28
consider the amount of android phones, now all of those run java, now double that since the sim cards also run java on their own
Exported 304 message(s)