extracting udp payload from ethernet packet ...
[twnet_parser v0.8.0] udp payload: 80 14 02 4a c2 32 17 dd 50 30 b2 ad c3 40 c7 5a a6 8d 46 3c 9e 0f 55 c3 99 d4 2b 6e 00
--- 0.7
--- 0.6
<class: 'PacketHeader6'>: {'flags': <class: 'PacketFlags6'>, 'ack': 20, 'token': b'J\xc22\x17', 'num_chunks': 2, 'connless_version': 1, 'response_token': b'\xff\xff\xff\xff'}
<class: 'MsgClEmoticon'>: {'message_type': 'game', 'message_name': 'cl_emoticon', 'system_message': False, 'message_id': 23, 'header': <class: 'ChunkHeader'>, 'emoticon': 7}
<class: 'MsgInput'>: {'message_type': 'system', 'message_name': 'input', 'system_message': True, 'message_id': 16, 'header': <class: 'ChunkHeader'>, 'ack_snapshot': 2660, 'intended_tick': 2661, 'input_size': 40, 'input': <class: 'ObjPlayerInput'>}
let struct_with_ptr_u32_u64 = Layout::new::<*mut ()>()
.extend(Layout::new::<u32>())?
.0
.extend(Layout::new::<u64>())?
.0;
bumpalo
static void run_bench(return_values_t *, void *, uint64_t)
__attribute__((weakref("_mlir_ciface_main::main::main")));
/// The block sizes to use.
///
/// The sizes must each be power of 2 because they are also used as
/// the block alignment (alignments must be always powers of 2).
const BLOCK_SIZES: &[usize] = &[8, 16, 32, 64, 128, 256, 512, 1024, 2048];
bash -x script.sh
and share the output in a paste snippet?bash -x script.sh
and share the output in a paste snippet? malloc
whereas other commands use the command data buffer? Seems like we currently leak the texture data memory if AddCmd
fails.AddCmd
return void
AddCmd
if
-statements, but in many it's notAddCmd
never fails then it's not that ptr = unsafe { libc::malloc(inner_layout.size()).cast() };
im doing rust sinsoot@dkLinux:/home/dk/ddnet/ddnet/build# emcmake cmake .. -DVIDEORECORDER=OFF -DVULKAN=OFF -DSERVER=OFF -DTOOLS=OFF -DPREFER_BUNDLED_LIBS=ON
configure: cmake .. -DVIDEORECORDER=OFF -DVULKAN=OFF -DSERVER=OFF -DTOOLS=OFF -DPREFER_BUNDLED_LIBS=ON -DCMAKE_TOOLCHAIN_FILE=/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/node;--experimental-wasm-threads
-- Could NOT find Curl (missing: CURL_INCLUDEDIR)
-- Could NOT find Freetype (missing: FREETYPE_INCLUDEDIR)
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find Ogg (missing: OGG_INCLUDEDIR)
-- Could NOT find Opus (missing: OPUS_INCLUDEDIR)
-- Could NOT find Opusfile (missing: OPUSFILE_INCLUDEDIR)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDEDIR)
-- Could NOT find SQLite3 (missing: SQLite3_INCLUDEDIR SQLite3_LIBRARY)
-- Could NOT find Threads (missing: Threads_FOUND)
-- ******** DDNet ********
-- Target OS: linux x86
-- Compiler: /usr/bin/em++
-- Rust version: rustc 1.66.1 (90743e729 2023-01-10) (built from a source tarball)
-- Build type: Release
-- Dependencies:
-- * Curl not found
-- * Freetype not found
-- * Glew not found (using bundled version)
-- * GTest not found
-- * Ogg not found
-- * OpenSSL Crypto found
-- * Opus not found
-- * Opusfile not found
-- * PNG not found
-- * PythonInterp found
-- * SDL2 not found
-- * SQLite3 not found
-- * Wavpack not found (using bundled version)
-- * Zlib found
CMake Error at CMakeLists.txt:659 (message):
You must install Curl to compile DDNet
CMake Error at CMakeLists.txt:668 (message):
You must install SQLite3 to compile DDNet
CMake Error at CMakeLists.txt:694 (message):
You must install libpng to compile DDNet
CMake Error at CMakeLists.txt:697 (message):
You must install Freetype to compile the DDNet client
CMake Error at CMakeLists.txt:700 (message):
You must install Ogg to compile the DDNet client
CMake Error at CMakeLists.txt:703 (message):
You must install Opus to compile the DDNet client
CMake Error at CMakeLists.txt:706 (message):
You must install Opusfile to compile the DDNet client
CMake Error at CMakeLists.txt:709 (message):
You must install SDL2 to compile the DDNet client
-- To run the tests, you have to install GTest
-- Configuring incomplete, errors occurred!
See also "/home/dk/ddnet/ddnet/build/CMakeFiles/CMakeOutput.log".
See also "/home/dk/ddnet/ddnet/build/CMakeFiles/CMakeError.log".
emcmake: error: 'cmake .. -DVIDEORECORDER=OFF -DVULKAN=OFF -DSERVER=OFF -DTOOLS=OFF -DPREFER_BUNDLED_LIBS=ON -DCMAKE_TOOLCHAIN_FILE=/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/node;--experimental-wasm-threads' failed (returned 1)
root@dkLinux:/home/dk/ddnet/ddnet/build#
trying to build wasm: commands i run:
1. git clone https://github.com/ddnet/ddnet
2. deleted -> ddnet-libs
3. run -> scripts/compile_libs/gen_libs.sh . webasm
4. created build folder
5. emcmake cmake .. -DVIDEORECORDER=OFF -DVULKAN=OFF -DSERVER=OFF -DTOOLS=OFF -DPREFER_BUNDLED_LIBS=ON
6. getting the error above 99%] Building C object CMakeFiles/opus.dir/silk/float/pitch_analysis_core_FLP.c.o
[100%] Linking C static library libopus.a
[100%] Built target opus
Cloning into 'opusfile'...
remote: Enumerating objects: 2157, done.
remote: Counting objects: 100% (227/227), done.
remote: Compressing objects: 100% (83/83), done.
remote: Total 2157 (delta 115), reused 221 (delta 112), pack-reused 1930
Receiving objects: 100% (2157/2157), 936.67 KiB | 16.15 MiB/s, done.
Resolving deltas: 100% (1316/1316), done.
Updating build configuration files for opusfile, please wait....
./autogen.sh: 10: autoreconf: not found
find: ‘/root/Android/Sdk/ndk’: No such file or directory
/usr/bin/llvm-ar-13: warning: creating libopusfile.a
--2023-07-19 17:31:52-- https://www.sqlite.org/2021/sqlite-amalgamation-3360000.zip
Resolving www.sqlite.org (www.sqlite.org)... 2600:3c00::f03c:91ff:fe96:b959, 45.33.6.223
Connecting to www.sqlite.org (www.sqlite.org)|2600:3c00::f03c:91ff:fe96:b959|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2477662 (2,4M) [application/zip]
Saving to: ‘sqlite-amalgamation-3360000.zip’
sqlite-amalgamation-33600 100%[===================================>] 2,36M 2,61MB/s in 0,9s
2023-07-19 17:31:54 (2,61 MB/s) - ‘sqlite-amalgamation-3360000.zip’ saved [2477662/2477662]
scripts/compile_libs/gen_libs.sh: line 114: 7z: command not found
scripts/compile_libs/gen_libs.sh: line 118: cd: sqlite3: No such file or directory
mkdir: cannot create directory ‘ddnet-libs’: File exists
mkdir: cannot create directory ‘ddnet-libs’: File exists
cp: cannot stat 'compile_libs/sdl/build_webasm_wasm/libSDL2.a': No such file or directory
cp: cannot stat 'compile_libs/sdl/build_webasm_wasm/libSDL2main.a': No such file or directory
mkdir: cannot create directory ‘ddnet-libs’: File exists
mkdir: cannot create directory ‘ddnet-libs’: File exists
mkdir: cannot create directory ‘ddnet-libs’: File exists
mkdir: cannot create directory ‘ddnet-libs’: File exists
cp: cannot stat 'compile_libs/sqlite3/build_webasm_wasm/sqlite3.a': No such file or directory
mkdir: cannot create directory ‘ddnet-libs’: File exists
mkdir: cannot create directory ‘ddnet-libs’: File exists
mkdir: cannot create directory ‘ddnet-libs’: File exists
here are the last loglines of thatfunction build_cmake_lib() {
if [ ! -d "${1}" ]; then
git clone "${2}" "${1}"
fi
# THIS IS NEW
if [[ "${1}" == "sdl" ]]; then
git checkout release-2.28.1
fi
(
cd "${1}" || exit 1
cp "${CURDIR}"/scripts/compile_libs/cmake_lib_compile.sh cmake_lib_compile.sh
./cmake_lib_compile.sh "$_ANDROID_ABI_LEVEL" "$OS_NAME" "$COMPILEFLAGS" "$LINKFLAGS"
)
}
in gen_libs.shrelease-2.28.x
root@dkLinux:/home/dk/ddnet/ddnet/build# make -j8 DDNet-Server
[ 0%] Built target json
[ 0%] Generating wasm32-unknown-emscripten/release/libddnet_engine_shared.a
[ 2%] Built target rust-bridge-shared
[ 13%] Built target game-shared
[ 63%] Built target engine-shared
Compiling link-cplusplus v1.0.6
Compiling ddnet-test v0.0.1 (/home/dk/ddnet/ddnet/src/rust-bridge/test)
Compiling ddnet-engine-shared v0.0.1 (/home/dk/ddnet/ddnet/src/engine/shared)
error[E0463]: can't find crate for `core`
|
= note: the `wasm32-unknown-emscripten` target may not be installed
= help: consider downloading the target with `rustup target add wasm32-unknown-emscripten`
error[E0463]: can't find crate for `compiler_builtins`
For more information about this error, try `rustc --explain E0463`.
error: could not compile `link-cplusplus` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
|
= note: the `wasm32-unknown-emscripten` target may not be installed
= help: consider downloading the target with `rustup target add wasm32-unknown-emscripten`
error: could not compile `ddnet-test` due to previous error
make[3]: *** [CMakeFiles/rust_engine_shared_target.dir/build.make:86: wasm32-unknown-emscripten/release/libddnet_engine_shared.a] Error 101
make[2]: *** [CMakeFiles/Makefile2:232: CMakeFiles/rust_engine_shared_target.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:373: CMakeFiles/DDNet-Server.dir/rule] Error 2
make: *** [Makefile:319: DDNet-Server] Error 2
root@dkLinux:/home/dk/ddnet/ddnet/build#
i installed all the things that they gave me as info in this error but no response (edited)oot@dkLinux:/home/dk/ddnet/ddnet/build# rustup target add wasm32-unknown-emscripten
info: component 'rust-std' for target 'wasm32-unknown-emscripten' is up to date
you know how to disable ddnet-test to compile? (edited)oot@dkLinux:/home/dk/ddnet/ddnet/build# rustup target add wasm32-unknown-emscripten
info: component 'rust-std' for target 'wasm32-unknown-emscripten' is up to date
you know how to disable ddnet-test to compile? (edited)C++
float TopLeftX, TopLeftY, BottomRightX, BottomRightY;
Graphics()->GetScreen(&TopLeftX, &TopLeftY, &BottomRightX, &BottomRightY);
float FakeHeightFactor = Graphics()->ScreenHeight() / (BottomRightY - TopLeftY);
return UI()->MouseDeltaY() / FakeHeightFactor / View.h;
pacman -Syu
if you value your sanity