Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2019-08-16 00:00:00Z and 2019-08-17 00:00:00Z
Avatar
ff49500 Fix max menu tabs (closed #1893) - ChillerDragon 77e59e3 Merge #1894 - bors[bot]
Avatar
ChillerDragon 2019-08-16 09:58:19Z
09:58
xd
09:58
if some1 needs a professional enum designer contact me
10:21
mao
10:21
ur a genius
Avatar
hello, i want to ask if we could add voice chat? I already implemented it on a testmod and client and i want todo a pullrequest, but first i want to hear your opionion of it, because i thnink some of you guys doesnt like it
Avatar
ChillerDragon 2019-08-16 19:38:10Z
Didnt found a person who like it yet
19:38
xd
19:38
hf gl with that
Avatar
rush b
Avatar
Cyka Blyat 24/7
Avatar
/home/teeworlds/git/teeworlds/src/engine/shared/console.cpp:812:76: error: narrowing conversion of '4294967078u' from 'unsigned int' to 'int' inside { } [-Wnarrowing] static CIntVariableData Data = { this, &g_Config.m_##Name, Min, Max, Def }; \ ^ /home/teeworlds/git/teeworlds/src/././game/variables.h:38:1: note: in expansion of macro 'MACRO_CONFIG_INT' MACRO_CONFIG_INT(EdColorGridInner, ed_color_grid_inner, 0xFFFFFF26, 0, 0, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Color inner grid") ^~~~~~~~~~~~~~~~
21:36
Teeworlds 0.7 wont make it easy for me :D Any idea?
21:37
Cant build this
Avatar
(int) cast
Avatar
How?
22:05
Well, which cast
Avatar
either of "0xFFFFFF26" directly in that macro or in "static CIntVariableData Data = { this, &gConfig.m##Name, Min, Max, Def };" whereever that value is set
Avatar
Thanks!
22:09
It still cant compile
Avatar
same error?
22:10
i added (int) in front of every hexadecimal
Avatar
so it doesnt accept that cast now?
Avatar
I am not really sure, but i dont think so
Avatar
well let me look into c++11 standard maybe its prohibed
Avatar
okay
22:12
the error only occurs on linux
Avatar
else u need to convert all values to actual inteegers xD
Avatar
on windows it works fine
Avatar
yeah, u can ofc disable that warning
Avatar
but it creates an error
22:13
i cannot compile
Avatar
-Wno-narrowing in the cpp flags
22:17
g++ 4.9.0 -O2 -std=c++11 template<class T> struct vec3 { T x, y, z; vec3() = default; vec3(const vec3<T> &other) = default; vec3(T xx, T yy, T zz) { x = xx; y = yy;...
22:17
well i cant really read that a cast should not be allowed, but idk
22:18
but yeah u can also just implement a constructor
Avatar
i have no idea what to do xd
Avatar
u can implement a constructor for CIntVariableData
22:41
@fokkonaut just go into cmakelists.txt search for "add_c_compiler_flag_if_supported(OUR_FLAGS -fstack-protector-strong)" and add "add_c_compiler_flag_if_supported(OUR_FLAGS -Wno-narrowing)" under it
Avatar
But it wont stop it from not compiling or does iz
Avatar
it should
Avatar
Can I also work this error out?
22:44
do you have any suggestions for that?
Avatar
yes
22:44
i gave u all my suggestions
Avatar
But that did not work or I did it wrong
22:44
The error was still there
Avatar
either cast properly, use a constructor or replace all hexa numbers with integer values 😄
Avatar
Alright thanks :)
22:46
Thats the last thing left for me running a 0.7 server :D
22:46
I have manually copied DDNet to the 0.7 codebase
22:46
It was a lot of work but it works just fine
22:47
Also I did adjustments and fixed stuff they Changed
22:47
And on top I have added my own small 0.6 mod, I am up to date now :)
Avatar
"0xFFFFFFFFd" something like this might work aswell
22:48
so adding a d
22:48
after the hex values
Avatar
why?
Avatar
bcs that makes the constant a integer
22:49
wait
22:49
i think that doesnt work for hexa
22:49
dunno if it works somehow, but i think for unsigned and bigger sizes than int it works xD (edited)
22:50
better forget what i said
22:50
L would maybe work but that wouldn't garantuee to fit into an integer
22:56
int isnt defined by standard anyway
22:57
the size of it
Avatar
try adding UL at the end of the hexadecimal constant
Avatar
but that makes it unsigned , that is the problem xD
Exported 75 message(s)