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 2023-03-14 00:00:00Z and 2023-03-15 00:00:00Z
Avatar
Avatar
Daniel
quick question: Storage()->GetBinaryPath(PLAT_SERVER_EXEC, aBuf, sizeof(aBuf)); m_ServerProcess.Process = shell_execute(aBuf); like this is the code already implemented to start a server. i want to add a command like sv_name testmap that the server will start with a map WITHOUT USING configfile Is there a way to append the command inline or to execute a command from client to started server? I think only first idea will work because i can add information by startup but not after it because its get runned external, or? (edited)
you can use str_append() on aBuf (edited)
Avatar
yea nah not working
Avatar
you can also str_format()
01:45
char *mapArg = "--map"; // Whatever char *aBuf2 = static_cast<char *>(malloc(sizeof(aBuf) + sizeof(mapArg))); str_format(aBuf2, "\"%s\" %s", aBuf, mapArg); // i can't remember if this takes a size argument (edited)
01:45
something like that
Avatar
Avatar
Robyt3
Not sure if you can assume that packets will arrive in the same order as they are sent
VITAL net messages are received in order
Avatar
Avatar
Voxel
I'll try that (edited)
using static would be not so good, better would be using a member variable
Avatar
static will be the same variable across all instances of the class
02:10
sometimes it does not matter but a member is definitely safer
Avatar
Avatar
heinrich5991
VITAL net messages are received in order
Don't we already have m_KillmsgCurrent?
02:13
And, if I were to store multiple tees in killfeed like this, would I need an outside CTeeRenderInfo buffer?
Avatar
I don't know about CTeeRenderInfo, sorry
Avatar
It's used in void CKillMessages::OnMessage like this
02:16
The whole thing is basically, read whatever the packet is sending and send it to a 5 long list called m_aKillmsgs to be rendered (edited)
Avatar
Avatar
Daniel
quick question: Storage()->GetBinaryPath(PLAT_SERVER_EXEC, aBuf, sizeof(aBuf)); m_ServerProcess.Process = shell_execute(aBuf); like this is the code already implemented to start a server. i want to add a command like sv_name testmap that the server will start with a map WITHOUT USING configfile Is there a way to append the command inline or to execute a command from client to started server? I think only first idea will work because i can add information by startup but not after it because its get runned external, or? (edited)
shell_execute probably just boils down to std::/system() so you just have to pass it one string
Avatar
Avatar
Yek
@Jupstar ✪ With which distribution did you get more fps in linux?
Arch and Debian worked basically the same. Wayland gave me more fps than x11
06:32
id have thought drm would eliminate any differences in stuff like that
06:32
waylon Smithers
Avatar
i guess its simply CPU bound. so whatever lib is more performant is faster
Avatar
Avatar
Yek
@Jupstar ✪ With which distribution did you get more fps in linux?
gentoo
Avatar
Avatar
Ewan
shell_execute probably just boils down to std::/system() so you just have to pass it one string
On Unix mostly yes, but it uses fork/execvp directly; on Windows not really, there are several layers of functionality in ShellExecute that probably nobody fully understands outside of Microsoft
Avatar
When pasting text containing multiple consecutive (back)slashes in the editor save dialog not all slashes where removed. For example with the text /a//bb/\/ccc////dddd//\//.

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds ar...
Avatar
1e74e06 Fix slash removal when multiple slashes are pasted in editor - Robyt3 862137a Merge #6420 - bors[bot]
Avatar
chillerdragon BOT 2023-03-14 17:03:38Z
Nice font. Where can I buy it? (@Voxel)
image.png
Avatar
i forgor
17:04
+ im at my job
Avatar
oh, i thought you were still a student
Avatar
See #5908. As far as I can tell this function is only used in the popup, so this should not break anything.

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that affect existing maps
  • ...
Avatar
ChillerDragon BOT 2023-03-14 18:35:40Z
SOS my brain broke im trying to migrate my jump server that i use to access my home network to a new hoster. Copied my ~/.ssh folder over and expected it to just work :( but it says connection refused what am i not seeing here?
18:35
Avatar
@ChillerDragon Cascadia Codr
Avatar
ChillerDragon BOT 2023-03-14 18:38:08Z
ty
Avatar
Cascadia Code
18:38
np
Avatar
heinrich5991 BOT 2023-03-14 18:38:24Z
ChillerDragon: check the ssh server logs
Avatar
ChillerDragon BOT 2023-03-14 18:38:32Z
whos?
Avatar
heinrich5991 BOT 2023-03-14 18:38:47Z
the one where your auth is failing
Avatar
ChillerDragon BOT 2023-03-14 18:38:58Z
idk which one its using even :D
18:39
guess ima check all
18:39
o helo irc user
Avatar
heinrich5991 BOT 2023-03-14 18:40:13Z
also, check DM :p
Avatar
ChillerDragon BOT 2023-03-14 18:41:07Z
a thats why irc
Avatar
ChillerDragon: how does this proxy even work?
18:43
connecting clients expect certain messages, no?
18:44
you're really just dropping close messages?
Avatar
ChillerDragon BOT 2023-03-14 18:49:14Z
yes
18:49
now i would like to share the code but its so messy its not open src yet xd
18:50
here is the code in its uglyness xd
18:51
im also honestly suprised how well it works xd
Avatar
heinrich5991 BOT 2023-03-14 18:51:25Z
interesting… I wouldn't have thought that this would work for connecting again
Avatar
ChillerDragon BOT 2023-03-14 18:51:32Z
same here
18:51
just proofs that i didnt fully understand the protocol yet
18:51
after 1000 hours reading and documenting it xd
18:52
i assume the client just sends the messages on join that make the server respond with the infos
18:53
Some Teeworlds stuff in Rust. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
18:53
i guess this jus gets triggered
18:53
and there is no disconnect or tee death in between
Avatar
It'd be nice if we could get buttons which opens each directory aswell (maps/downloadedmaps/mapres and so on)
https://github.com/ddnet/ddnet/issues/3016#issuecomment-827198157 We could add a button left of the "Refresh" button to open the currently shown folder in the system file browser.
Avatar
ChillerDragon BOT 2023-03-14 19:04:12Z
Some Teeworlds stuff in Rust. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
Avatar
f012716 add sorting by name and time modified to filedialog - Marmare314 9540d27 fix formatting issues and clean up indicator selection - Marmare314 e2449ac use str_timestamp_ex and fix codestyle - Marmare314 c338eca ignore time for links and root folder - Marmare314 fb5cb3e fix formatting - Marmare314 223813e reset timemodified sort - Marmare314 5f7f30d Merge #6419 - bors[bot]
Avatar
@Jupstar ✪ @Learath2 https://openai.com/research/gpt-4
We’ve created GPT-4, the latest milestone in OpenAI’s effort in scaling up deep learning. GPT-4 is a large multimodal model (accepting image and text inputs, emitting text outputs) that, while less capable than humans in many real-world scenarios, exhibits human-level performance on various professional and academic benchmarks.
19:18
Avatar
nais, we getting closer
Avatar
ChillerDragon BOT 2023-03-14 19:23:05Z
thanks for the pointers i managed to solve it @heinrich5991 :) it pointed me in the right direction of understanding it doesnt get reached. There is no log output and it says refused so the thing im talking to doesnt listen.
19:25
then i noticed in ss -lt it bound ::1 and 127.0.0.1 instead of :: and 0.0.0.0 and i rememberd that was a ssh config in /etc/ssh/sshd_config its GatewayPorts yes :)
Avatar
ChillerDragon: it's in the network.py
Avatar
ChillerDragon BOT 2023-03-14 19:42:12Z
ah yea i see it
19:42
i was looking here :p
Avatar
but you were looking at the ddnet json 😉
Avatar
ChillerDragon BOT 2023-03-14 19:42:43Z
omg i was deciding on the names for so long and also witing here and asked for help
19:42
yeye
19:44
@jopster ^
19:44
now u know its in network.py .-.
19:49
love to see that after all this time you are still working so activley on the dissector @heinrich5991
Avatar
just a couple of bug fixes
Avatar
ChillerDragon BOT 2023-03-14 19:50:07Z
yes those are the best
Avatar
I'd love to see the snap stuff at some point
Avatar
ChillerDragon BOT 2023-03-14 19:50:22Z
yes also looking forward to that
Avatar
remind me in like, two hours to comtinue my PR idea i have a solid idea for how i can impliment it now
Avatar
ChillerDragon BOT 2023-03-14 19:51:38Z
@heinrich5991 you can prepare your self by proof reading this and reporting bugs :p https://chillerdragon.github.io/teeworlds-protocol/07/snap_items.html
Avatar
@heinrich5991 today is the day of ur logo on gh
19:55
i also need to draw heinrich tee again
Avatar
its pi day in murica
Avatar
ChillerDragon BOT 2023-03-14 19:57:04Z
only in murica? xd
Avatar
Avatar
ChillerDragon
@heinrich5991 you can prepare your self by proof reading this and reporting bugs :p https://chillerdragon.github.io/teeworlds-protocol/07/snap_items.html
ChillerDragon: first thing I notice, NETMSG_SNAPSMALL does not actually exist
19:58
is containing → contains
19:58
build → built
20:00
and please turn your link to libtw2 into a permalink
Avatar
cuz in murica they show month before days
20:02
3/14
Avatar
you can have it in europe as well 🙂
20:03
2023-03-14
20:12
bing do be trying hard
Avatar
ChillerDragon BOT 2023-03-14 20:22:31Z
seems like i missed NETMSG_SNAPSMALL in my // unused prs then havent gotten to documenting the snap stuff in the messages section yet
Avatar
71c8aad ignore tiles that dont use ids in ContainsElementWithId - Marmare314 762f1a1 Merge #6421 - bors[bot]
Avatar
Display and control your Android device. Contribute to Genymobile/scrcpy development by creating an account on GitHub.
20:30
i just discovered this exists
Avatar
The UI()->MouseInside(&View) check does work when the mouse is all the way at the right or bottom side. Changing the MouseInside functions introduces other problems due to UI element and mouse positions being floating point numbers and not corresponding to exact pixels. As a workaround to enable unlimited editor panning in all direction when the GUI is hidden the check is omitted, as the map editor encompasses the entire view and so the check is not necessary in this case. Closes #4...
21:32
Maybe we could have two seperate settings for FSAA, one for ingame and one for the menu/editor. Because the setting can be changed without restarting the game I was hoping that this might be possible. This would make the menu/editor look a lot better without affecting the ingame performance.
Avatar
it's pretty useful ;)
Avatar
Can we close the issues labelled with "3rd party" or is there still some value in keeping this issues that we cannot solve open? https://github.com/ddnet/ddnet/issues?q=is%3Aopen+is%3Aissue+label%3A%223rd+party%22
Avatar
Probably not worth. If one of these issues happen again we can still reopen
Avatar
Don't add entered command to console history, if the last console history entry is identical to this command. For example, entering the commands 1, 2, 3, 3, 2, 1 adds 5 entries to the history, i.e. only one entry for the command 3.

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 (especially base/) or added coverage to integrat...
Avatar
I’m not sure where to ask this, but considering this channel is called developer I’ll post it here. For the creators of teeworlds, what gave you the idea of this game and if you could change anything about it now what would it be?
Avatar
generally, I think it's worth to keep issues open that happen to users, even if they're not caused directly by us
23:39
if we decide that they're not reproducible enough, I'd close them though 🙂
Exported 120 message(s)