Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-12-12 00:00:00Z and 2020-12-13 00:00:00Z
Avatar
Some players use the weakness of the network part of the game. As a result, it is not possible to play on some servers. As I assume, they send a lot of garbage packets and since there is no check for the incoming number, the server tries to process them all from one client-no matter how many of them. I think, as a solution: need to set a limit on packets per unit of time. It seems to be in the "CNetConnection" part::Feed"
Avatar
I need some teaching
13:12
what does const member / function do? (in comparison to the non-const ones)
Avatar
Const methods cant modify the class attributes
Avatar
Does compilers optimize for these too
Avatar
It's more of a static guarantee and it allows you to call those methods on const objects
Avatar
i see. thanks ❤️ :
Avatar
having problems compiling... I added a new gamemode .cpp and .h, and visual studio asked me if I want Cmake to generate something and I clicked yes, and I also tried to add my gamemode in some parts of the code that referenced the other gamemodes to include mine too, and then when I compile i doesnt work (edited)
19:12
I get this output in visual studio when i save
Avatar
is that critical?
Avatar
I don't use CMake but it doesn't look critical to me
Avatar
Like it's taking forever showing hundreds of these "Could NOT find..." messages
Avatar
isn't that googletest stuff?
Avatar
does it fail afterwards?
Avatar
I don't know it hasn't finished yet lol
Avatar
if it's not stopping, it's not a critical error most likely
Avatar
But before when I clicked on settings it got cancelled
Avatar
and just a warning or so
Avatar
But cant I get rid of it?
Avatar
maybe, getting rid of all warnings is often a boring sidequest ;)
Avatar
now said "configuration incomplete, errors occurred!"
Avatar
then find the error
Avatar
dude but i cant compile
Avatar
scroll down, can you see an error?
19:17
the last line is this:
19:17
'cmd.exe' '/c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="W:\teeworlds\teeworlds\out\install\x64-Release" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "W:\teeworlds\teeworlds" 2>&1"' execution failed with error: ''cmd.exe' '/c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="W:\teeworlds\teeworlds\out\install\x64-Release" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/HostX64/x64/cl.exe" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "W:\teeworlds\teeworlds" 2>&1"' returned with exit code: 1'.
19:19
maybe its because I mixed old files with new files of the source...
19:26
oh yea it was probably that.. and that I deleted some parts of code unintentionally. now it works!
Avatar
use ``` for formatting
Avatar
I change the tuning for my server, but I want to be able to compile the client with normal tuning. How can I do that? Is there any macro thing that tells you what compilation type this is?
Avatar
I don't know what you mean by "tuning"
Exported 35 message(s)