[2020-11-21 01:11:30][sdl]: SDL version 2.0.10 (compiled = 2.0.10)
error: XDG_RUNTIME_DIR not set in the environment.
[2020-11-21 01:11:30][gfx]: unable to init SDL video: No available video device
[2020-11-21 01:11:30][gfx]: out of ideas. failed to init graphics
[2020-11-21 01:11:30][client]: couldn't init graphics
This are the last 5 lines printed to the logcl : Command line warning D9025 : overriding '/MDd' with '/MTd'
cl : Command line warning D9025 : overriding '/W3' with '/W0'
The error I get compiling with VS:
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(2482): error C2338: Windows headers require the default packing option. Changing this can lead to memory corruption. This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined.
I read on some sites that this error occurs because of the Zp (structure packing)
Flag. However, I cannot really find where to change it in Clion0xC0000008: An invalid handle was specified.
GDI32.DLL::ChoosePixelFormat
opengl32.dll!pgldrvLoadAndAllocDriverInfo()
gcc -Q --help=warnings|grep enabled
ClDDRaceScoreBoard
. When you grep for that, you find m_TimeScore
in scoreboard.cpp
. When you grep for that, you find GAMEINFOFLAG_TIMESCORE
in gameclient.cpp
. So the final grep for that delivers you to the source in the server: gamecontroller.cpp
src/game/server/player.cpp
void CPlayer::ProcessScoreResult(CScorePlayerResult &Result)
void CPlayer::Snap(int SnappingClient)
...
- int Score = abs(m_Score) * -1;
+ int Score = m_Score;
+ if (Server()->IsSixup(SnappingClient))
+ Score = m_Score * -1;
src/game/server/player.cpp
void CPlayer::Snap(int SnappingClient)
...
- pPlayerInfo->m_Score = Score == -9999 ? -1 : -Score * 1000;
+ pPlayerInfo->m_Score = Score == -9999 ? -1 : -Score; // TBD: removed multiplication
+ //pPlayerInfo->m_Score = Score == -9999 ? -1 : -Score * 1000;
make -j$(nproc)
[ 23%] Built target engine-shared
[ 23%] Built target json
[ 24%] Built target dilate
[ 24%] Built target fake_server
[ 25%] Built target map_extract
[ 32%] Built target game-shared
Scanning dependencies of target DDNet-Server
[ 34%] Building CXX object CMakeFiles/DDNet-Server.dir/src/game/server/score.cpp.o
Now don't compile anymore