CreateNamedPipeW
, just do CreateFileW
with GENERIC_WRITE
OPEN_EXISTING
and WriteFile
to write to itCreateNamedPipeW
, just do CreateFileW
with GENERIC_WRITE
OPEN_EXISTING
and WriteFile
to write to it #!/bin/env python3
from random import random
from time import sleep
MSGCOUNTDOWN = "%ss untill randomize"
MSGRANDOMIZE = "tunes randomized"
DELTA = 5 # seconds between each random
FIFOPATH = "./fifo.fifo"
TUNES = {
("ground_control_speed", 4.00, 14.00), # Maximum running speed on the ground. (Higher values make the character move faster).
("ground_control_accel", 0.50, 4.00), # Acceleration on the ground. (Higher values make the character speed up faster).
("ground_friction", 0.30, 1.00), # Ground friction. (Higher values make the character stop faster).
("ground_jump_impulse", 8.00, 18.00), # Jump force from the ground. (Higher values make the character jump higher).
("air_jump_impulse", 6.00, 16.00), # Jump force in the air. (Applies to double jumps; higher values allow higher jumps).
("air_control_speed", 2.00, 9.00), # Maximum speed when moving in the air. (Higher values allow faster air movement).
("air_control_accel", 0.50, 3.00), # Acceleration in the air. (Higher values allow quicker changes in air movement).
("air_friction", 0.70, 1.10), # Air friction. (Higher values reduce the character's air speed more quickly).
("gravity", 0.30, 0.80), # Gravity strength. (Lower values make the character float longer; higher values make them fall faster).
}
def write(s):
with open(FIFOPATH, "w") as fifo:
fifo.write(s)
print(s)
sleep(1)
while True:
out = "broadcast %s\n" % MSGRANDOMIZE
for name, min, max in TUNES:
value = min + random() * (max - min)
value = round(value, 2)
out += "tune %s %s\n" % (name, value)
write(out)
if DELTA > 3:
sleep(DELTA - 3)
for i in range(3):
write("broadcast " + MSGCOUNTDOWN % (3 - i))
sleep(1)
else:
sleep(DELTA)
@Evelyn #!/bin/env python3
from random import random
from time import sleep
MSGCOUNTDOWN = "%ss untill randomize"
MSGRANDOMIZE = "tunes randomized"
DELTA = 5 # seconds between each random
FIFOPATH = "./fifo.fifo"
TUNES = {
("ground_control_speed", 4.00, 14.00), # Maximum running speed on the ground. (Higher values make the character move faster).
("ground_control_accel", 0.50, 4.00), # Acceleration on the ground. (Higher values make the character speed up faster).
("ground_friction", 0.30, 1.00), # Ground friction. (Higher values make the character stop faster).
("ground_jump_impulse", 8.00, 18.00), # Jump force from the ground. (Higher values make the character jump higher).
("air_jump_impulse", 6.00, 16.00), # Jump force in the air. (Applies to double jumps; higher values allow higher jumps).
("air_control_speed", 2.00, 9.00), # Maximum speed when moving in the air. (Higher values allow faster air movement).
("air_control_accel", 0.50, 3.00), # Acceleration in the air. (Higher values allow quicker changes in air movement).
("air_friction", 0.70, 1.10), # Air friction. (Higher values reduce the character's air speed more quickly).
("gravity", 0.30, 0.80), # Gravity strength. (Lower values make the character float longer; higher values make them fall faster).
}
def write(s):
with open(FIFOPATH, "w") as fifo:
fifo.write(s)
print(s)
sleep(1)
while True:
out = "broadcast %s\n" % MSGRANDOMIZE
for name, min, max in TUNES:
value = min + random() * (max - min)
value = round(value, 2)
out += "tune %s %s\n" % (name, value)
write(out)
if DELTA > 3:
sleep(DELTA - 3)
for i in range(3):
write("broadcast " + MSGCOUNTDOWN % (3 - i))
sleep(1)
else:
sleep(DELTA)
@Evelyn CreateNamedPipeW
, just do CreateFileW
with GENERIC_WRITE
OPEN_EXISTING
and WriteFile
to write to it a0027e0
A Multeasyvolvemap, A Multeasymapsolo - ddnet-maps.unwrap()
enjoyers and othersprocess.on("uncaughtException", e => console.error(e));
echo "say hello" >> uwu.fifo
echo "say hello" >> uwu.fifo
python your_script.py
(edited)cd /root/DDNetPP/build && curl https://paste.zillyhuhn.com/J2 > woidless.sh && chmod +x woidless.sh
then start the server with ./DDNetPP "sv_input_fifo server.fifo"
and then run the script with ./woidless.sh
it will broadcast and send chat every 10 secondscd /root/DDNetPP/build && curl https://paste.zillyhuhn.com/J2 > woidless.sh && chmod +x woidless.sh
then start the server with ./DDNetPP "sv_input_fifo server.fifo"
and then run the script with ./woidless.sh
it will broadcast and send chat every 10 seconds sv_input_fifo
can not be updated after server start. I can't believe you don't have a fifo file in your config after all this time trying to do fifo ._.m_Fifo.Init(Console(), Config()->m_SvInputFifo, CFGFLAG_SERVER);
into a chain hook should be a quick win to allow setting sv_input_fifo
without server restartsscripts/send_named_pipe.ps1
(edited)sv_input_fifo
can not be updated after server start. I can't believe you don't have a fifo file in your config after all this time trying to do fifo ._. "sv_input_fifo fifofilename; sv_map Kobra 4"
&buf[i]
or buf + i
if buf
was uint8_t buf[...];
?&buf[i]
or buf + i
if buf
was uint8_t buf[...];
? buf + i
. Sometimes I'm in the mood for &buf[i]
thoughrisu@canopy:auto$ du -h Patchwork_2024-11-29_04-14-01.demo
117M Patchwork_2024-11-29_04-14-01.demo
risu@canopy:auto$ du -h Patchwork_2024-11-29_04-14-01.demo.gz
9.3M Patchwork_2024-11-29_04-14-01.demo.gz
cl_predict 0
works and doesn't make the game completely unplayable means that too much is being sent by the servercl_predict 0
tells the server to send more infocl_predict 0
, pressing jump and holding it should result in (visually on my end) my tee flying up into the sky and getting occasionally teleported back to the groundcl_predict 0
because my ping might as well be 0cl_predict 0
, cl_predict_dummy 0
, cl_antiping 0
(because I don't know how these three settings interact)
this should not be possible
I'm pretty sure we could slim down the amount of data sent over network a fair bit (edited)cl_predict 0
, cl_predict_dummy 0
, cl_antiping 0
(because I don't know how these three settings interact)
this should not be possible
I'm pretty sure we could slim down the amount of data sent over network a fair bit (edited)