https://master1.ddnet.org/ddnet/15/servers.bin
struct CNetObj_ClientInfo
{
static constexpr int ms_MsgId = NETOBJTYPE_CLIENTINFO;
int m_Name0;
int m_Name1;
int m_Name2;
int m_Name3;
int m_Clan0;
int m_Clan1;
int m_Clan2;
int m_Country;
int m_Skin0;
int m_Skin1;
int m_Skin2;
int m_Skin3;
int m_Skin4;
int m_Skin5;
int m_UseCustomColor;
int m_ColorBody;
int m_ColorFeet;
};
std::thread spawn(sockpp::tcp_socket sock) {
// Move 'sock' into the lambda to avoid copying
return std::thread([this, sock = std::move(sock)]() mutable {
this->listen_network_tcp(std::move(sock));
});
}
struct CNetObj_ClientInfo
is generated, where... do i look to find... that?struct CNetObj_ClientInfo
is generated, where... do i look to find... that? CSixup m_aSixup[NUM_DUMMIES];
CClientData *pClient = &m_aClients[ClientId];
pClient->m_aSkinName[0]
chrome.com
to get their chrome browser
chrome.com
to get their chrome browser
chrome.com
to get their chrome browser
[34mDescription[38m: Fifo file (non-Windows) or Named Pipe (Windows) to use as input for server console
echo "tune gravity 0" > /path/to/your/file.fifo
in your terminalsv_tune_1 3 5
sv_tune_2 69 420
...
tune tunes value
tunes
to list all tunestune ground_control_speed 4.00 14.00 - Maximum running speed on the ground. (Higher values make the character move faster).
tune ground_control_accel 0.50 4.00 - Acceleration on the ground. (Higher values make the character speed up faster).
tune ground_friction 0.30 1.00 - Ground friction. (Higher values make the character stop faster).
tune ground_jump_impulse 8.00 18.00 - Jump force from the ground. (Higher values make the character jump higher).
tune air_jump_impulse 6.00 16.00 - Jump force in the air. (Applies to double jumps; higher values allow higher jumps).
tune air_control_speed 2.00 9.00 - Maximum speed when moving in the air. (Higher values allow faster air movement).
tune air_control_accel 0.50 3.00 - Acceleration in the air. (Higher values allow quicker changes in air movement).
tune air_friction 0.70 1.10 - Air friction. (Higher values reduce the character's air speed more quickly).
tune gravity 0.30 0.80 - Gravity strength. (Lower values make the character float longer; higher values make them fall faster).
#!/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)
@Evelynsv_input_fifo
to the same path as FIFOPATH
is in the python scriptroot@GoodServers:~/DDNetPP/build# python3 random.py
Traceback (most recent call last):
File "/root/DDNetPP/build/random.py", line 3, in <module>
from random import random
File "/root/DDNetPP/build/random.py", line 3, in <module>
from random import random
ImportError: cannot import name 'random' from partially initialized module 'random' (most likely due to a circular import) (/root/DDNetPP/build/random.py)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>
import subprocess, tempfile, os.path, re, pwd, grp, os, io
File "/usr/lib/python3.10/tempfile.py", line 184, in <module>
from random import Random as _Random
File "/root/DDNetPP/build/random.py", line 3, in <module>
from random import random
ImportError: cannot import name 'random' from partially initialized module 'random' (most likely due to a circular import) (/root/DDNetPP/build/random.py)
Original exception was:
Traceback (most recent call last):
File "/root/DDNetPP/build/random.py", line 3, in <module>
from random import random
File "/root/DDNetPP/build/random.py", line 3, in <module>
from random import random
ImportError: cannot import name 'random' from partially initialized module 'random' (most likely due to a circular import) (/root/DDNetPP/build/random.py)
root@GoodServers:~/DDNetPP/build# pyp
-bash: pyp: command not found
root@GoodServers:~/DDNetPP/build# pip
-bash: pip: command not found
root@GoodServers:~/DDNetPP/build# python3 pip
python3: can't open file '/root/DDNetPP/build/pip': [Errno 2] No such file or directory
root@GoodServers:~/DDNetPP/build#
(edited)Host network (docker run --net=host) is also namespaced inside RootlessKit.
At its core is the Bun runtime, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage
At its core is the Bun runtime, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage
var TYPES = {
'undefined' : 'undefined',
'number' : 'number',
'boolean' : 'boolean',
'string' : 'string',
'[object Function]': 'function',
'[object RegExp]' : 'regexp',
'[object Array]' : 'array',
'[object Date]' : 'date',
'[object Error]' : 'error'
},
TOSTRING = Object.prototype.toString;
function type(o) {
return TYPES[typeof o] || TYPES[TOSTRING.call(o)] || (o ? 'object' : 'null');
};
var TYPES = {
'undefined' : 'undefined',
'number' : 'number',
'boolean' : 'boolean',
'string' : 'string',
'[object Function]': 'function',
'[object RegExp]' : 'regexp',
'[object Array]' : 'array',
'[object Date]' : 'date',
'[object Error]' : 'error'
},
TOSTRING = Object.prototype.toString;
function type(o) {
return TYPES[typeof o] || TYPES[TOSTRING.call(o)] || (o ? 'object' : 'null');
};
uint32_t
consistently instead of int32_t
for the ghost data to ensure integer wrapping in the ghost-specific DiffItem
/UndiffItem
functions. Same as 65cb2ed7de102f155cde64b4e75839d15b6fe35a but only using uint32_t
pointers consistently instead of casting specifically for the addition/subtraction simplifies the code.