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 2019-09-14 00:00:00Z and 2019-09-15 00:00:00Z
Avatar
[ddnet/ddnet7] New branch created: master
11:17
[ddnet/ddnet7] New branch created: 0.6
Avatar
ChillerDragon 2019-09-14 11:23:06Z
Yikes what a discussion... I really should give rust another try πŸ™‚
Avatar
When finally will be fixed ? When you open editor and save map your framerate changing to 72 and don't goes back in game . ( Fixes by pressing vertical synhronization clicking two times but it's annoying to do every single time )
Avatar
[ddnet/ddnet7] New branch created: master
12:44
[ddnet/ddnet7] New branch created: 0.6
12:49
853a087 Remove build test - fokkonaut
12:50
754a295 Remove nethash generation - fokkonaut
12:53
12:56
e7e4906 Add some ddrace stuff - fokkonaut
Avatar
2f52965 Fix warnings/error - fokkonaut
13:08
fe9186b Remove unused variable - fokkonaut
Avatar
yay spam
13:16
1050b79 Fix reload crashbug and rename mod - fokkonaut
13:22
13:29
1b843c0 Fix some warnings - fokkonaut
Avatar
ChillerDragon 2019-09-14 13:34:38Z
@Learath2 :c
13:34
0.7 is nice
13:34
Any reasons ?
13:42
fa11c6d Set skill level and fix chattarget - fokkonaut
13:46
8140120 This will take forever - fokkonaut
Avatar
why is he pushing every commit on its own
Avatar
fcd122e Fix damage indicator - fokkonaut
13:53
26a361a Clamp damage indictors - fokkonaut
13:54
13:56
13:58
ed3152e Rename jointeam to team again - fokkonaut
14:00
7fca03e Normal rank request msg - fokkonaut
14:04
14:05
f972a1c Fix tees stucking inside of each other - fokkonaut
Avatar
@jao im sorry
14:08
14:09
410ca7f Get rid of confusable same names and no names - fokkonaut
14:11
14:14
096a89d Update spectator ids on disconnect - fokkonaut
14:15
c19f108 Remove commands - fokkonaut fe66b46 add descirptions - fokkonaut
14:19
5900723 Getting to the end - fokkonaut
14:24
Avatar
Just drop bam
14:32
@ChillerDragon it's a whole lot of work just to get a worse looking client
14:33
And by a whole lot i dont mean a couple weeks, it'd take months to get everything that ddnet client has into vanilla
Avatar
ChillerDragon 2019-09-14 14:49:11Z
@Learath2 agree about the work but disagree about the worse looking. Well okay i prefered the old server browser but the new menu is nicer imo. And also wouldn't it be nice to update to latest vanilla codebase and keep merging the new commits from vanilla? The it also would be less work to update to 0.8
Avatar
You also seem invested in 0.7. Did you put all your bitcoin in a bet or sth? :D
Avatar
ChillerDragon 2019-09-14 14:50:40Z
nah all my bitcoins are in ddnet troll
14:51
its just i really like the game and 0.7 is future for sure. And i also like ddnet and it would be sad if a big part of the community dies with 0.6. Also 0.7 feels better than 0.6
14:51
Demo slowmo is smoother
14:51
for example
Avatar
Why are you so sure its the future? Ddnet survived the test of time, vanilla didnt
Avatar
ChillerDragon 2019-09-14 14:52:23Z
well vanila kept ddnet aluve
Avatar
i dont wanna talk about ddnet demos cammo
Avatar
ChillerDragon 2019-09-14 14:52:36Z
new players come because of the official advertisement
Avatar
A small part of the community dying in 0.7 is way more likely then the community dying in 0.6
Avatar
ChillerDragon 2019-09-14 14:53:09Z
inside teeworlds ddnet might be more popular than vanilla. But outside teeworlds where new players come from teeworlds is more known than ddnet.
Avatar
Please, do you see it reasonable that the 500 or so players we have here migrating to 0.7 if we dont?
Avatar
ChillerDragon 2019-09-14 14:53:47Z
yes
Avatar
0.7 has over 100 players already too
Avatar
ChillerDragon 2019-09-14 14:53:51Z
because players quit
Avatar
i watched the count increase
Avatar
ChillerDragon 2019-09-14 14:53:57Z
and new players join 0.7 and not 0.6
Avatar
Lately all of you have been talking from ideological and emotional standpoints about everything
14:54
How many people play 0.7 rn?
Avatar
110 players
14:54
it increased every week
14:55
last week i saw around 60 or 70 in average
Avatar
ChillerDragon 2019-09-14 14:55:06Z
well sure i am emotional about tw but the assumption that 0.7 is going to kill 0.6 slowly isnt emotional i think.
Avatar
or maybe 80
Avatar
How many of them will stick around to play?
Avatar
ChillerDragon 2019-09-14 14:55:20Z
not many
Avatar
If the rate you give is correct, congrats with the snowball effect teeworlds will be the next fortnite
Avatar
xD i dont think it will keep this rate
Avatar
ChillerDragon 2019-09-14 14:56:00Z
i assume the average playtime of most tw players is 1-2 weeks vanilla and then they move on.
Avatar
ofc its also based on daytime and stuff
Avatar
ChillerDragon 2019-09-14 14:56:15Z
but some of those stay. But they will stay in 0.7
Avatar
see, 120players right now
14:56
190 servers
Avatar
@Learath2 "4:50 PM] Learath2: You also seem invested in 0.7. Did you put all your bitcoin in a bet or sth? :D" this is a very bad discussion style IMO
Avatar
20 players are in vanilla, 100 in other gamemodes on 0.7
Avatar
@heinrich5991 you cant argue against emotion and instinct with logic
14:57
It just doesnt work
Avatar
ChillerDragon 2019-09-14 14:57:08Z
xd heinrich mr nice guy joined again to enssure nice wording
Avatar
Look at antivaxxers
Avatar
you seem arrogant if you think that you're above emotion and the people you discuss with are obviously led by emotion (edited)
Avatar
ChillerDragon 2019-09-14 14:57:51Z
isnt it logic that new versions kill old ones @Learath2 ?
14:58
and do you disagree that the source for new ddnet players is coming from vanilla teeworlds?
Avatar
(this is just about this particular point of you, not about this discussion)
Avatar
I'm not above emotion, but i'm cognizant when I involve them in my arguments, and I always preface those with something along the lines of "imho"
Avatar
ChillerDragon 2019-09-14 14:58:59Z
same here
14:59
Avatar
When you come to me with. I feel the future of teeworlds is 0.7. I'm sorry but that's not enough for me
Avatar
so please assume good faith and assume that your discussion partner also does so and call them out if they don't
14:59
but not in such a general way
Avatar
ChillerDragon 2019-09-14 15:00:06Z
you did not respond to my arguments/assumptions why it is the future.
Avatar
not like "you seem to be pretty invested in 0.6, @Learath2, it's not worth arguing with you". that's arrogant IMO
Avatar
ChillerDragon 2019-09-14 15:00:27Z
this discussion has nothing todo with tw anymore its pure meta...
Avatar
yes
Avatar
I have no doubt chillerdragon is in good faith. I just think he is not aware of some emotional bias, which I pointed out
Avatar
no
15:00
you said something general
15:00
you didn't point towards something specific
15:01
assume I said the above. how would you even respond?
15:01
"no u"?
Avatar
ChillerDragon 2019-09-14 15:01:15Z
xxxxxxxxxxxxxxxxxD
Avatar
I think I'll bow out. I don't feel this is important enough to create a hostile environment like this
Avatar
i'd say lets do it like deen said, implement few 0.7 servers and see if its worth it
Avatar
Also next time I say anything against the grain. Let me know and I'll stop. I just don't want to argue anymore
Avatar
ChillerDragon 2019-09-14 15:03:35Z
could be a new forum signature xd
Avatar
if the screen wasn't white theme probably
danAmazing 3
Avatar
For the record, I'd respond to that with "suit yourself" @heinrich5991. You are entitled to your opinion just as much as i am to mine, and if you have no intention of changing it, there is no point to discuss in the first place.
15:09
s#discuss#discussing#
Avatar
ChillerDragon 2019-09-14 15:11:02Z
Was there some compiler flag or something debuggy to see what functions slow down my code?
Avatar
valgrind if it's not IO
Avatar
ChillerDragon 2019-09-14 15:11:30Z
Or any advice to find where to look at if my tw mod is sooooo bloated that 32 tees activly playing has the same result has strong ddos xd
Avatar
sounds like a job for valgrind
Avatar
ChillerDragon 2019-09-14 15:12:15Z
i thought valgrind is for memory and stuff?
Avatar
ASan is also useful, not available on windows like valgrind tho
Avatar
ChillerDragon 2019-09-14 15:12:32Z
im not on windows ❀
Avatar
@ChillerDragon but that's not what you need, you need a profiler
Avatar
ChillerDragon 2019-09-14 15:12:50Z
ya think so
Avatar
like gprof
Avatar
valgrind --tool=callgrind
15:12
that's a profiler
Avatar
oh yeah, valgrind has callgrind
Avatar
ChillerDragon 2019-09-14 15:13:21Z
so valgrind --tool=callgrind ./twmod ?
Avatar
yes, think so
Avatar
ChillerDragon 2019-09-14 15:13:30Z
ty
Avatar
view with kcachegrind
Avatar
ChillerDragon 2019-09-14 15:14:38Z
?
Avatar
callgrind doesn't have a human friendly output
Avatar
obv teeworlds catches players cuz its in steam
15:16
we justn eed to release ddnet on steam
15:17
the standalone way is the best way
15:17
build a mod ecosystem around ddnet
15:17
not teeworlds
Avatar
ChillerDragon 2019-09-14 15:17:32Z
it was also before steam
Avatar
and lets be honest
15:17
no one plays vanilla
Avatar
ChillerDragon 2019-09-14 15:17:41Z
false
Avatar
teeworlds itself sucks
15:17
ddnet is unique
Avatar
ChillerDragon 2019-09-14 15:17:44Z
false
15:17
ddnet is unqiue yes
Avatar
vanilla is not
15:17
its generic
15:18
and rly boring
15:18
ctf? this is in every game
15:18
it only gets players due to steam
15:18
we should release on steam
15:18
and drop vanilla support
Avatar
ChillerDragon 2019-09-14 15:18:58Z
all the nice movement and physics that make ddnet unique are coming from vanilla which might be still "yet another 2d shooter" but it has a smooth gameplay and there are a bunch of players in the vanilla pro scene who play it for years and enjoy it.
Avatar
chiller u always talk like we are in debt with tw but we arent
15:19
they suck
Avatar
ChillerDragon 2019-09-14 15:19:38Z
yikes i am not even able to join my tw server while it runs in valgrind
Avatar
vanilla has a much cleaner codebase than ddnet does
Avatar
ChillerDragon 2019-09-14 15:19:44Z
i guess it slows it even more down
Avatar
@heinrich5991 Am I allowed to point out the obviously non-logical argument from @Ryozuki?
Avatar
yes, about 10x
Avatar
ChillerDragon 2019-09-14 15:19:52Z
@heinrich5991 and then just ctrl-c and then kcachegrind?
Avatar
@Learath2 yes…
Avatar
we could make the codebase cleaner after becoming standalone dropping vanilla support
15:20
and all the hacky workarounds
Avatar
the codebase isn't bad because of vanilla support
15:20
let me quote our blocker code
Avatar
Well there is a nice portion of the code supporting vanilla
15:20
The network clipping stuff isn't exactly what i'd call pretty
Avatar
yes, but that's nothing to do with being unclean
Avatar
nor the faketunes
Avatar
ChillerDragon 2019-09-14 15:21:01Z
vanilla 0.7 has a issue to support ddrace so if you would stop ranting about vanilla and start collaborate it could be less hacky
Avatar
@heinrich5991 this is cuz ddnet has the problem that maps use bugs, on vanilla u just dont care cuz there are no ranks
Avatar
ChillerDragon 2019-09-14 15:21:21Z
Oy and most vanilla devs are actually kinda mod supportive
Avatar
no, even that can be solved
Avatar
so we can solve it
15:21
its not a problem
Avatar
yes
15:21
but we don't
15:21
that's why vanilla code is cleaner than ddnet's
Avatar
if you explain how to solve it
15:21
we can do it
Avatar
@ChillerDragon So to support the mods they removed skin changes from the code?
Avatar
but im not motivated if u are going to port to 0.7
15:22
it just sucks to much
Avatar
It took me 3 days to try argue for them properly supporting 64players
Avatar
ChillerDragon 2019-09-14 15:22:25Z
but then they did
Avatar
idk why u dont want this to become standalone
Avatar
They wouldn't take it from me, it took some other guy
Avatar
ChillerDragon 2019-09-14 15:22:29Z
and skin change is reimplemented
Avatar
all succesfull mods in games do it
Avatar
if(Temp.x > 0 && ((pCharCore->m_TileIndex == TILE_STOP && pCharCore->m_TileFlags == ROTATION_270) || (pCharCore->m_TileIndexL == TILE_STOP && pCharCore->m_TileFlagsL == ROTATION_270) || (pCharCore->m_TileIndexL == TILE_STOPS && (pCharCore->m_TileFlagsL == ROTATION_90 || pCharCore->m_TileFlagsL ==ROTATION_270)) || (pCharCore->m_TileIndexL == TILE_STOPA) || (pCharCore->m_TileFIndex == TILE_STOP && pCharCore->m_TileFFlags == ROTATION_270) || (pCharCore->m_TileFIndexL == TILE_STOP && pCharCore->m_TileFFlagsL == ROTATION_270) || (pCharCore->m_TileFIndexL == TILE_STOPS && (pCharCore->m_TileFFlagsL == ROTATION_90 || pCharCore->m_TileFFlagsL == ROTATION_270)) || (pCharCore->m_TileFIndexL == TILE_STOPA) || (pCharCore->m_TileSIndex == TILE_STOP && pCharCore->m_TileSFlags == ROTATION_270) || (pCharCore->m_TileSIndexL == TILE_STOP && pCharCore->m_TileSFlagsL == ROTATION_270) || (pCharCore->m_TileSIndexL == TILE_STOPS && (pCharCore->m_TileSFlagsL == ROTATION_90 || pCharCore->m_TileSFlagsL == ROTATION_270)) || (pCharCore->m_TileSIndexL == TILE_STOPA)))
15:22
(just for reference)
Avatar
@heinrich5991 which you cleaned up
Avatar
i know that
Avatar
yes
15:22
but I introduced a bug, unfortunately
15:22
and then I didn't look at it again
15:23
(so far)
Avatar
@ChillerDragon in a suboptimal way
15:23
Can you even do name changes from the server to attach a level anymore?
Avatar
ChillerDragon 2019-09-14 15:23:59Z
do a pr that is more optimal im sure it would be merged
Avatar
@ChillerDragon the optimal solution was to not mess with the status quo just because they felt like it
Avatar
ChillerDragon 2019-09-14 15:24:26Z
true
Avatar
The names and the skins were perfectly fine in the snap
15:24
and they were completely optimized out by the delta
Avatar
I do agree that they're perhaps better off not in the snap
Avatar
ChillerDragon 2019-09-14 15:24:46Z
but its not they are working against modding just for fun
Avatar
we should go on steam
Avatar
this way they're not sent more often when you have a higher latency
Avatar
we had just bad luick they changed greenlight when we were just about to get in steam
Avatar
@ChillerDragon but they won't go out of their way to give us a hand either
Avatar
i.e. one time per 40ms latency
15:25
(roundtrip)
Avatar
@heinrich5991 deltashots would never contain the names and skins the occasional full snapshot would, but even that is negligible
15:26
But yes, it is more optimal bandwidth wise this way
15:27
Sadly traffic usage does not correlate with mod friendliness at all
Avatar
ChillerDragon 2019-09-14 15:27:24Z
yikes kcachegrind is gui. I am always confused by gui
Avatar
@Learath2 why you don't want to become standalone
15:27
i dont like relying on other people
Avatar
@Ryozuki I think we still have the option to greenlight
15:27
it doesnt exist
Avatar
we do
15:27
we can publish on steam right now
Avatar
Yeah, we were greenlit before it ended
Avatar
if you want
Avatar
so we can publish still
Avatar
we should do it
Avatar
@Ryozuki I don't want to become standalone because most are against it
15:28
chiller
Avatar
I'm also against it
Avatar
well obv u are a tw dev
Avatar
chiller, heinrich,deen and fokkonaut make up like 70% of the ddnet development work
Avatar
ChillerDragon 2019-09-14 15:28:50Z
there is still a other mods community like city/zcatch/infection/block etc
15:29
i would say heinrich 60%
Avatar
ChillerDragon 2019-09-14 15:29:01Z
xd
15:29
tru
Avatar
deen would go with the grain I assume since he doesn't like to involve himself in these matters
Avatar
ChillerDragon 2019-09-14 15:29:09Z
i did only typos
Avatar
if we go standalone i would help more
15:29
but given the path to 0.7 u seem to support
15:29
it just doesnt make me want to help
Avatar
@ChillerDragon " Oy and most vanilla devs are actually kinda mod supportive" is that acutally true? πŸ˜„ always thought thats the reason everyone hates vanilla xD
Avatar
ChillerDragon 2019-09-14 15:29:40Z
yes
15:29
and thats sad because here is some lack of communication
Avatar
@Deleted User there seems to have been some kind of change in the last year or so
Avatar
@Deleted User they weren't very friendly the last time around, and a couple of us are rightly still very skepticak
Avatar
ChillerDragon 2019-09-14 15:30:03Z
unjustified hate
Avatar
justified*
Avatar
s#k$#l#
Avatar
ChillerDragon 2019-09-14 15:30:13Z
xd
Avatar
thanks for your helpful commentary… @ChillerDragon @Ryozuki
Avatar
It's not hate, it's just healthy skepticism
Avatar
ChillerDragon 2019-09-14 15:30:30Z
???
Avatar
what are u being thankfull fore
15:30
for*
Avatar
Going standalone is something we could only do with @heinrich5991 agreeing at this point tbh, and that's not likely
Avatar
why has heinrich to agree?
Avatar
ChillerDragon 2019-09-14 15:31:10Z
idk what yo talking about @heinrich5991 ? was this some passive agressive critique?
Avatar
So I think the best way forward is indeed migrating to 0.7
Avatar
@ChillerDragon yes
Avatar
ChillerDragon 2019-09-14 15:31:30Z
then pls explain it further
Avatar
time to look for another open source project to help
Avatar
ChillerDragon 2019-09-14 15:31:43Z
rq
Avatar
@Ryozuki because unless you think you and I are enough to develop a completely standalone fork, we just don't have the people
15:32
I definitely don't have much time at all to spare
15:32
we are already kinda standalone
15:33
we only push some upstream patches like every 2 years
15:33
we would just drop vanilla support and ease our life
Avatar
That's not enough, people need to follow our fork
Avatar
note that you're overestimating my contributions, @Learath2. https://github.com/ddnet/ddnet/graphs/contributors you have way more contributions than I do in recent times
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
Avatar
lot of ppl already follow ddnet fork
Avatar
ChillerDragon 2019-09-14 15:34:04Z
but i think your contributions have a high quality @heinrich5991
Avatar
@heinrich5991 your work is usually essential things
Avatar
what would be wrong adjusting the vanilla code, so ddnet gets an extension, like a clean code base, where its easy to develop mods like ddrace in
Avatar
and yeah, definitely way higher quality then most of legacy ddrace code
Avatar
if they are as mod friendly as they say xD
Avatar
heinrich is mainly the cmake guy
Avatar
The optimal scenario for me would be to base a very moddable version of teeworlds on 0.7
Avatar
yes
15:35
that sounds like the best for me too
Avatar
And avoid touching the vanilla code at all while modding so we can merge in upstream easily
15:35
However, that's just an immense amount of work, just to get all the hooks in the right places
Avatar
Let alone reimplementing the couple dozen features ddnet has using those hooks
Avatar
i mean, how many features does ddnet really have? xD
15:36
its mostly overloading the weapons and physics
Avatar
couple dozen is my estimate πŸ˜›
Avatar
front layers, switch speedups, telegun, time, checkpoints, freeze mechanics, the weapons modified, teleport, etc
Avatar
I experimented with a very small project that loads mods as dll's
15:37
I only implemented chat commands, interesting but dynamic libraries are not too nice to work with
Avatar
thats why ppl usually dont load dynamic libraries in c++
15:38
they use lua
Avatar
oh nice @Learath2
Avatar
Yeah, lua or python would have been a much better choice
Avatar
I also thought about that in the past
Avatar
i just wonder how much perfomance effect it has
Avatar
I thought that maybe one could do it in wasm these days
Avatar
yeah no script languages in loops
15:39
its killer
Avatar
@Ryozuki an extra call on the stack for most of the part
Avatar
then you can even continue coding your stuff in C
Avatar
(for a dynamic library that is)
Avatar
/C++
Avatar
web assembly?
15:40
no scripting language in tight loops*
Avatar
why not allow specific overloads in compile time, like preprocessor macros allowing to overload specific initialization of objects
Avatar
preprocessor macros are just black magic
Avatar
*defines
Avatar
They really don't lead to the cleanest code
Avatar
how do they destroy any code
Avatar
What could be cute is if teeworlds had been designed properly for polymorphism
Avatar
i think factorio is a nice example
15:41
they build the engine in c++ and gameplay in lua
15:41
its rly well done tbh
Avatar
extern CreateObject #if MOD____ #include "this" #else #include "standard" #endif
Avatar
Arma also follows the same idea, most all bohemia games use the same engine
Avatar
nothing is well done with script languages
15:42
this is good modding support
15:43
vanilla is a joke xd
Avatar
@Deleted User countless games that support modding through scripting languages and countless others that implement all of gameplay in scripts begs the differ
Avatar
doesnt matter, what they claim
Avatar
jupstar holds the truth
Avatar
fact is script languages run poor
Avatar
in his hand
15:43
so
Avatar
JIT helps quite a lot
Avatar
teeworlds is designed to run on a potato
Avatar
yo u sacrifice some perfomance for ease
15:44
its always been this way
Avatar
luajit is quite performant nowadays
Avatar
but it doesnt need to be like this
15:44
not for an open source game
Avatar
thats true
Avatar
v8 is also blazing fast
Avatar
we could make modding directly in c++
15:44
with a good a api
Avatar
@Deleted User what about webassembly? I think it runs at most 0.5x the speed of native?
15:44
*at least
Avatar
I think we could even do with just polymorphism tbh
Avatar
yeah but why not a solution that doesnt need any extra layer at all xD
Avatar
how do you load untrusted code?
Avatar
i dont see this "the code looks shitty then" you all see πŸ˜„
Avatar
functions in dynamic libraries run at 1x the speed of native πŸ˜›
Avatar
u directly compile the whole client with that extension
Avatar
not quite
15:45
it's an indirect function call
Avatar
lot of irc servers use c++ modules
15:46
well dynamic libraries
Avatar
@Learath2 ppl also believe java runs as good as c in some rare never occuring edge cases
Avatar
well the extra function call would in most cases be negligable w.r.t what the function itself is doing
Avatar
@Learath2 r u trying to achieve a way to mod that doesnt require to recompile the base game?
15:47
or you don't care about that
Avatar
so u would like to have a mod loader client/server i would like to have a modable client/server
Avatar
we should make it clear
Avatar
@Ryozuki I'm mostly trying to achieve not touching the vanilla code
Avatar
and thats best done at compile time
Avatar
It'd be nice to have a small list of changes to vanilla that wouldn't break too much while merging new code
15:48
@Deleted User with dynamic libraries, you can also statically link your code, ZNC does something similar
Avatar
if u want a modloader u would need to have support of vanilla team
15:48
imo
Avatar
you can both load dynamic libraries, or compile znc with a module
15:49
@Deleted User the macro example you gave e.g. wouldn't lead to the easiest merges
15:50
e.g. pickup.h would need to have the content you posted, and a change to pickup.h would have to go to pickup_vanilla.h
Avatar
tw still prioritizes bam over cmake btw
15:51
xd
Avatar
I don't get that either
15:52
What is that if not just sentiment?
Avatar
our lord matrix made it
15:52
so we must use it
Avatar
cmake+ninja is ridiculously fast
Avatar
instead of the standard used nowadays
15:52
all praise matrix
Avatar
I doubt that's it @Ryozuki
Avatar
they are just to lazy
15:53
i guess
Avatar
Probably, or maybe status quo bias
Avatar
i had to make a pr
15:53
to fix cmake
15:53
until they merged it
15:53
it would error
15:53
it just not their priority
15:53
xddd
Avatar
@Learath2 true if things in these areas change alot of behaviour often
15:54
but thats not really the case i'd say
15:54
not more, than a modloader would be needed to change
15:54
bcs u can still polymorph the vanilla objects
Avatar
@Deleted User I have a better way to implement your macro thing with less pita merges
15:55
Keep the standard file in there, and just have it in an #else block
15:55
git handles those kinds of merges much better
Avatar
u know most things we say here will be forgotten tomorrow
Avatar
But it's still a lot of code duplication
15:55
our pickup.h is not that different then vanillas
Avatar
but remember
15:56
we talk about a anyway easy modable base
Avatar
@Ryozuki I actually do intend to do something with the couple of weeks I have after exams
Avatar
its not the vanilla we have now
Avatar
@Learath2 u always say that :p
Avatar
its designed to be modable in first place
Avatar
@Ryozuki this time I actually have the time to do something significant
15:56
last time I just had so many other things to do during the "free" time
Avatar
im willing to help make a mod friendly game
15:57
with cmake
15:57
and i still think
15:57
oy is stubborn
Avatar
@Deleted User I think I like the idea of hooks or standard polymorphism much better
Avatar
i think hooks is the best
15:58
also mod intercommunication should be a thing if ever
15:58
maybe im thinking to much
Avatar
If teeworlds was better set up to handle oop code, polymorphism would work just fine
Avatar
indeed
Avatar
But manipulating behaviour in huge monolith functions like Tick() would be hard
Avatar
imagine you make a mod which adds a currency api
15:59
other mods should be able to use it
Avatar
u can modulize it more
15:59
its bad code anyway
Avatar
@Ryozuki yeah, that all comes with implementing a good ecosystem
16:00
It'd be cute if people could just include a universal account system in their mods by just loading a module
Avatar
thats how good modding is done
Avatar
@Deleted User Yeah, a lot of the code needs refactoring like this sadly
Avatar
ddnet could nicely implement client side mod support for fng and other stuff then too πŸ˜„
Avatar
so ur talking about changing ddnet to be supper mod friendly
16:01
or changing vanilla?
Avatar
vanilla as mod friendly base
Avatar
u would need oy and others to agree
16:01
and commit to it
Avatar
@Ryozuki I'd work with 0.7 if possible
Avatar
well chillerdragon said they are mod friendly
16:02
if they really are
Avatar
That's why I said we shouldn't touch vanilla code
Avatar
they could prove it like this
Avatar
ye chiller says a lot of things tbh
Avatar
If we have a fork that can easily follow vanilla, but is also mod friendly, it'd take over anyway
Avatar
i am only sceptical bcs i heard things like this in the past, not bcs i am sure about it
Avatar
@Deleted User im also skeptical
16:02
oy was super anti mod
16:02
anti ddrace
Avatar
so if oy would agree to help working on this, or atleast allow others to do it, i would welcome him todo so
Avatar
@Ryozuki he is doing a little better nowadays, Dune even made a small "ddrace"
Avatar
ye i seen it
16:03
but remember oy is the guy who said ddrace was cancer
16:03
and the worst for tw
16:03
just sayin
16:04
its in the forum
Avatar
One thing with mod systems is untrusted code
Avatar
i would just warn ppl
16:04
if they add something shady
16:04
up to them
Avatar
well if mod loader, i am actually with @heinrich5991 using something like webasmbly
Avatar
"warning: mods can contain mailicious code, make sure to trust blabla"
Avatar
thats fast and safe as in safety can be xD
Avatar
I'd rather have some sandboxing in place, atleast a little
Avatar
i wouldnt
Avatar
Yeah, something like wasm could be cute
Avatar
how wasm works?
Avatar
its bascially a vm i think
Avatar
C/C++ code compiles to wasm
16:06
and it's a vm yeah
Avatar
is the sandbox the only benefit?
Avatar
mods won't crash your game e.g. πŸ™‚
Avatar
It's also relatively fast
Avatar
(side effect of sandboxing)
Avatar
I'm not sure how it fares compared to luajit or v8 though
Avatar
im still against mod loader tho, i just dont see the gain in it, would be nice if all mods can stay open source anyway
Avatar
@Deleted User well closed source mods are a thing, look at block servers
Avatar
and they are full of ddosers
Avatar
yeah but they dont do anything awesome u can't implement in 2-3 days xD
Avatar
I mean how we implement the mod stuff doesn't really influence those people
Avatar
@Deleted User ye anyone willing to make a open source version of what they have wouldnt have a hard time doing it
16:08
just nobody is interested in that shit
Avatar
ChillerDragon 2019-09-14 16:08:54Z
yo hackers? does some1 has a quick sed or something to remove these 3 lines in my codebase?
Avatar
well anyway, its server side anyway
16:09
i also speak of client side mods
Avatar
@ChillerDragon are you stealing ath code? πŸ˜„
Avatar
ChillerDragon 2019-09-14 16:09:17Z
is this in ath code? xd
Avatar
Yes, ATH keeps a call stack
Avatar
ChillerDragon 2019-09-14 16:09:27Z
never looked into it
Avatar
very useful for debugging actually
Avatar
ChillerDragon 2019-09-14 16:09:37Z
why?
16:09
gdb does the same?
Avatar
At any point during runtime you can dump the stack
Avatar
ChillerDragon 2019-09-14 16:10:10Z
some dude implemented that for me because i didn tknow how gdb worked back then
16:10
he might be a contribuor of ath
Avatar
without the performance penalty of gdb, or relying on libunwind
Avatar
gdb doesn't have a performance penalty
Avatar
ChillerDragon 2019-09-14 16:10:39Z
but performance penalty of this system xd
Avatar
u can export symbols in gcc and see where the crash happenend without debugging
Avatar
I assumed so aswell (given there is hardware support), but it did slow down my old laptop πŸ€”
Avatar
hmmm
16:13
find . | grep -E '\.(cpp|h)$' | xargs python -c 'import sys;for a in sys.argv[1:]:contents=open(a).read();open(a, "w").write(contents.replace("#if defined(CONF_DEBUG)\n\tCALL_STACK_ADD();\n#endif\n", ""))' (edited)
16:13
untested, first check that find . | grep -E '\.(cpp|h)$' does what I expect
16:14
have backups
16:14
oh, could've done that with find shrug
16:14
@ChillerDragon ^
Avatar
ChillerDragon 2019-09-14 16:15:04Z
yikes python
16:15
i expected something simpler tbh but thanks ill try it
Avatar
sed and awk operates on lines
16:15
it's not exactly convenient to use them for multiple lines
Avatar
ChillerDragon 2019-09-14 16:15:51Z
hmm i see
Avatar
if u use an IDE chillerdragon u might also have a replace function with support for such things or use regular expressions
Avatar
true
Avatar
VSCode has a decent find and replace
16:16
so does sublime
16:16
Atom can also do multiple lines iirc
Avatar
the only things is the number of tabs used (edited)
16:16
thats why regular expressions are nice πŸ˜„
Avatar
ChillerDragon 2019-09-14 16:17:36Z
ya was thinking about vscode as well
16:17
but does it support multiple lines?
16:18
and i always got weird results with replace in vscode
Avatar
it has a mode probably that allows characters like \n
Avatar
vim best
Avatar
u can just copy the string herinrich posted (edited)
Avatar
vscode can do multiline even without newline characters
Avatar
oh nice
Avatar
you can just select the group before hitting cmd shift f
Avatar
@Learath2
16:20
u use vscode instead of vim?
Avatar
our vim priest is back XD
Avatar
@Ryozuki yeah, I'm too with vim
Avatar
vim is the editor
16:20
other "editors" are plebs
Avatar
If I ever get proficient with it, I might use vscode in vim mode
16:21
apparently it's great
Avatar
only the church of emacs can go against vim
16:21
no one knows who wins
Avatar
vim has a multiple of the user base IIRC
Avatar
please, emacs is a sad excuse for an editor that might aswell be an entire operating system
Avatar
emacs+systemd can probably replace an entire distro
Avatar
@Learath2 hav u seen this
16:22
@Learath2 do u have ur vimrc online?
16:23
my vimrc. GitHub Gist: instantly share code, notes, and snippets.
Avatar
Nearly 90,000 took this comprehensive, annual survey of people who code. Demographics. Most loved, dreaded and wanted technologies. Salary and careers.
16:23
in that survery, vim has 5x the userbase of emacs
16:23
ez
Avatar
all discussion for nothing, if we really want to change vanilla, we just need to let @Ryozuki talk about how awesome the mod support idea is in the vanilla discord, he convinces everyone
16:24
why me xd
Avatar
bcs u the tw priest
Avatar
@Ryozuki I don't have a vimrc, apparently I'm not allowed one until I learn how to use vim
Avatar
hey that's what the greybeards have told me
Avatar
this is nice
Avatar
set background=dark set nocompatible set backspace=indent,eol,start set showcmd " display incomplete commands set incsearch " do incremental searching set hlsearch set number set smartcase set autoindent set ruler set hls bg=dark set completeopt+=longest set wildmode=longest,full filetype plugin on syntax on "scratch indent reconfiguration, use vim-sleuth function! CleverTab() if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$' return "\<Tab>" else return "\<C-N>" endif endfunction inoremap <Tab> <C-R>=CleverTab()<CR> "autocmd filetype rust set comments^=:/// "autocmd filetype rust set comments^=://! autocmd filetype rust set tw=0 (edited)
Avatar
clevertab
Avatar
this will be fun in irc
Avatar
heh
Avatar
I really need some way to navigate projects in vim
16:26
fzf
Avatar
ctrl p is the most useful thing sublime has come up with
Avatar
use fzf
16:26
and bind it
16:26
to ctrl p
16:26
i have it
16:26
in my vimrc
Avatar
please
16:26
write
Avatar
its rly ez
16:26
single
16:26
line
Avatar
what
16:26
linebreak
16:27
isn
16:27
t
16:27
the
Avatar
word
16:27
separator
Avatar
ChillerDragon 2019-09-14 16:27:05Z
xd
16:27
compile_commands.json??
16:27
I smell vscode
Avatar
@heinrich5991 PLSS ofc \ u \ just \ need \ to \
Avatar
its generated by cmake
Avatar
add \
Avatar
oh it's clang actually
Avatar
@Learath2 my neovim lang server which uses clang for c uses it
16:28
i have a cmake plugin which makes the build dir and the link automatically
Avatar
is studying java
Avatar
@Learath2 bntw u should use neovim not vim
16:28
it just better
16:29
🌸 A command-line fuzzy finder. Contribute to junegunn/fzf development by creating an account on GitHub.
16:29
poggers
Avatar
is it not very meh having to drop to a shell to execute fzf?
Avatar
vscode best
Avatar
I'd still like sublime better if only they updated it
16:31
Electron is such a resource hog
Avatar
@Learath2 u just have to force urself to vim only and in a week u wont be able to go back
Avatar
Also Java in a text editor is just a horrible experience
Avatar
discord is electron
Avatar
Discord is also such a resource hog πŸ˜›
Avatar
Communicate the way you want with Riot - a universal secure chat app entirely under your control.
16:32
decentralized discord
16:32
it uses matrix protocol xd
Avatar
The top3 is not surprising at all
Avatar
is that mac?
Avatar
@Ryozuki with things like these, the most important factor isn't how open source it is or how secure it is
16:33
it's mostly how many people you can reach with it
16:33
Yeah it's macOS
Avatar
@Learath2 ye and it will never win cuz u dont have the marketing power of a company
16:33
but its still nice
Avatar
eclipse is also an amazing resource hog
16:34
like most other ide's I guess
16:34
vim is just the best
16:34
justatest
Avatar
Java in vim would be such a miserable experience πŸ˜„
Avatar
thats true i guess
16:34
but thats cuz the nature of java
Avatar
Even in vscode with plugins it was not nice
Avatar
it relies on IDEs a lot
16:35
atleast u have intellij idea
16:35
its rly good for java
Avatar
yeah, raises a lot of developers that are reliant on the crutches
16:35
if only intellij idea had a nice color scheme
16:35
u can install themes
16:35
i always installed material
16:35
xD
Avatar
material themes are usually too light for me nowadays
Avatar
do u use light or dark theme for coding
16:36
Depends on where I'm coding
Avatar
At home always dark, if I'm outside in sunlight it's always light
16:37
wait it just loaded my colors
16:37
this is how my idea looks
Avatar
This is what I usually use under sunlight
16:38
i die
Avatar
The yellowish background looks white under natural sunlight πŸ˜›
Avatar
this is my vim justatest
Avatar
I guess it's how eyes adjust white balance playing tricks on you
16:40
Used this for a long time, it's just not dark enough anymore
Avatar
i like the default dark theme
Avatar
@jao I also like it, but there are two flaws in it for me
Avatar
so u use vscode
Avatar
it doesn't color variable names differently then the assignment operator
16:41
and it's not dark enough πŸ˜›
Avatar
@Learath2 what term u use?
Avatar
kitty, because mac os terminals are retarded
Avatar
im using kitty too
Avatar
and CoreFont can't handle a lot of text
Avatar
i need a better font tho
Avatar
kitty sadly renders fonts a little weirdly sometimes
16:42
the only acceptable terminal font is dejavu sans mono
Avatar
I like dejavu sans mono as well
Avatar
terminals on bitmap fonts look the best
16:43
but they dont support many characters
Avatar
droid sans mono also looks nice
Avatar
πŸ’Œ Bitmapped programming font, based on Tamsyn. Contribute to sunaku/tamzen-font development by creating an account on GitHub.
Avatar
That also looks cute
16:44
@Learath2 exezin uses bitmap fonts
Avatar
should comments draw attention or not
Avatar
wanna start a holy war, @jao? πŸ˜›
16:48
yes
Avatar
@Ryozuki exezin also uses an amazing algorithm to scale them
16:49
Multi-channel signed distance field generator. Contribute to Chlumsky/msdfgen development by creating an account on GitHub.
16:49
Amazing work imho
Avatar
This is intellij IDEA without any projects open πŸ˜›
Avatar
@Ryozuki do u read ur comments
Avatar
my comments are mostly todos
Avatar
and those shouldn’t draw attention?
16:51
i will just use grep
16:51
to search for todos
16:52
linux as ide
Avatar
rg is a nice grep replacement for searching through code btw
16:53
faster and shorter command lines
Avatar
Yeah, rg works pretty nicely
Avatar
vsc especially highlights todos πŸ˜›
Avatar
I also use fgrep sometimes
16:53
helps a lot with the speed
Avatar
what about ack
Avatar
slower than grep and rg IIRC
Avatar
jao vsc fan
Avatar
that’s right
19:33
because it’s by microsoft
19:33
and im a windows normie
19:33
cc @Ryozuki
Avatar
1. Play video (tried from twitch, youtube.music, Chrome, Edge, Internet Explorer) 2. Alt+Tab to game If you are (un)lucky enough you will see...I can't even describe it. Something like this - !123 3. You are still able to switch from game to another app In task manager CPU usage by the game will become zero at this point (usually it's about 50%) 4. Switching back to the game will lead...
Exported 717 message(s)