


























DDNet some.demo and it will immediately start the demo viewer of that demo. But can i also somehow immediately start a video export via start_video?
I tried DDNet some.demo "start_video out.mp4" but it runs the start video command before running the demo so i get videorecorder: Video can only be recorded in demo player. Any ideas? (edited)
































git clone https://github.com/ddnet/ddnet.git && cd ddnet && mkdir build && cd build && cmake .. && make -j$(nproc)

















build folder now in VS Code. Can I now build the local client?



libfreetype.dll" when executing DDNet.exe. Anyone familiar with this Error? (edited)libpng16-16.dll, SDL2.dll, avformat-60.dll






import os
import shutil
source_dirs = [
('c:/Users/Anwender/Projects/ddnet/build/Debug', 'c:/Users/Anwender/Projects/ddnet/build/'),
]
for source_dir, destination_dir in source_dirs:
if not os.path.exists(source_dir):
print(f"Source directory {source_dir} does not exist. Skipping.")
continue
os.makedirs(destination_dir, exist_ok=True)
for filename in os.listdir(source_dir):
if filename == 'DDNet.exe' or filename == 'steam_api.dll' or filename == 'DDNet-Server.exe':
source_file = os.path.join(source_dir, filename)
destination_file = os.path.join(destination_dir, filename)
try:
shutil.copy(source_file, destination_file)
print(f"Moved {source_file} to {destination_file}")
except FileExistsError:
print(f"{destination_file} already exists. Skipping.")
input("Done...")
change the source_dirs to yours, the rest should just work




cmake .. and cmake --build . -j or cmake --build . -j --clean-first

cmake --build command looks cleaner :P (edited)







mind dropping me a DM for things that were unclear ? (you can type those in german) - so i might update the readme once more if its something i can elaborate further (edited)




mind dropping me a DM for things that were unclear ? (you can type those in german) - so i might update the readme once more if its something i can elaborate further (edited)










1










rm -Force debug // change to the folder name debug
rm -Force Release // change to the folder name release
mkdir build
cd build
cmake ..
cmake --build . -J


rmdir /S /Q debug
rmdir /S /Q release
mkdir build //already exists
cd build
cmake ..
cmake --build . -j (edited)



PS D:\Coding\DDnet_coding> cmake ..
CMake Warning:
Ignoring extra path from command line:
".."
CMake Error: The source directory "D:/Coding" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI. cmake .. (edited)
















ProgressProps was not passed to the RenderProgressSpinner function.
!image






CONF_PLATFORM_MACOS (edited)


CONF_PLATFORM_MACOS (edited)



CONF_PLATFORM_MACOSX and CONF_PLATFORM_MACOS macros in your codeCONF_PLATFORM_MACOSdetect.h with ours, I think that should simply work if you do the MACOSX -> MACOS change

str_format_v from ddnet so you don't need to pragma ignore the warning which doesn't seem to work

GNUC_ATTRIBUTE

GNUC_ATTRIBUTE 
pragma clang diagnostic push, not sure why that causes the warning though







str_format_v to system.h:
int str_format_v(char *buffer, int buffer_size, const char *format, va_list args)
GNUC_ATTRIBUTE((format(printf, 3, 0)));GNUC_ATTRIBUTE attribute




ninja: error: 'package_dmg', needed by 'CMakeFiles/package_default', missing and no known rule to make it

ninja: error: 'package_dmg', needed by 'CMakeFiles/package_default', missing and no known rule to make it package_dmg related stuff from ddnet's CMakeLists (edited)


.github/workflows/build.yaml


package_dmg related stuff from ddnet's CMakeLists (edited)dmg I need?

dmg I need? dmg


if(CLIENT AND DMGBUILD)



ninja: error: 'package_dmg', needed by 'CMakeFiles/package_default', missing and no known rule to make it 
dmg.py is an old file, ddnet only has dmgsettings.py

pip3 install --break-system-packages dmgbuild


set(PACKAGE_DEFAULT dmg)

add_custom_target(package_dmg DEPENDS ${CPACK_PACKAGE_FILE_NAME}.dmg)
list(APPEND PACKAGE_TARGETS package_dmg)
and probably more to add the package_dmg CMake target if you want to support building dmg files


set(PACKAGE_DEFAULT dmg) 




add_custom_target(package_default DEPENDS package_${PACKAGE_DEFAULT}) to set the other target as a dependencypackage_dmg target for macOS, or package_zip for Windows







if(DMG)
add_custom_target(package_dmg DEPENDS ${CPACK_PACKAGE_FILE_NAME}.dmg)
list(APPEND PACKAGE_TARGETS package_dmg)
endif()
${CPACK_PACKAGE_FILE_NAME}.dmg so you'll also need to add add_custom_command(OUTPUT ${CPACK_PACKAGE_FILE_NAME}.dmg etc.














