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-03-17 00:00:00Z and 2019-03-18 00:00:00Z
Avatar
a2dd721 M Binary, M Lunar Base - ddnet-maps
Avatar
@Learath2 why cant i access ddnet.tw aswell as ddnet ger?
13:27
dnsbl?
Avatar
[quakenet] <Learath2> seems fine for me
Avatar
@fokkonaut give me your ip in dm and i'll check
Avatar
okay
Avatar
@fokkonaut vpn ?
Avatar
same problem like me i think 😄 (edited)
14:24
71a0ee5 fix broken server icon - daverck 11a5e3c Merge pull request #1496 from daverck/master - def-
14:25
71a0ee5 fix broken server icon - daverck 11a5e3c Merge pull request #1496 from daverck/master - def-
Avatar
I am trying to use M_PI in character.cpp, but theres an error saying its not declared
15:17
do i have to include something for it to work?
15:18
@Learath2 do you know why?
Avatar
you can try to define _USE_MATH_DEFINES before including cmath
Avatar
how?
15:23
i did it, thanks :)
Avatar
@fokkonaut you also can't reach ddnet.tw and ddnet ger?
Avatar
if so, send me your ip address and traceroute please
Avatar
How do I make enums useable in every class?
Avatar
dont steal my ip
Avatar
put them in a header that'si ncluded everywhere
Avatar
doesnt work :(
19:22
have them in gamecontext.h
19:22
cant reach from character.cpp
Avatar
if i ctrl+leftclick on the var from the enum it moves me to gamecontext.h but when i compile it says its not defined, how?
Avatar
help?
Avatar
maybe your variable is in private you must create link for your variable in public or something like that
Avatar
its in public
19:56
i can access it from ddracecommands.cpp (edited)
Avatar
how you call your variable in character.cpp
Avatar
VARIABLE
19:57
since its from a enum
19:57
it just doesnt work in any entity classes
19:57
all others are fine (edited)
Avatar
if you able copy your variable and you eror line
Avatar
why u define the enum in gamecontext
Avatar
because i want it to be accessable from anywhere
19:58
or mostly anywhere
19:58
i need it in many places
Avatar
just include character.h then
Avatar
player.h isn't better for that ?
Avatar
@fokkonaut whats the name of trhe enum
Avatar
enums dont have names, do they?
Avatar
i mena
20:00
they can but i meant the members
20:00
give a example
20:00
tw uses anonymous enums
Avatar
PLASMA_GUN
20:00
but also names like RAINBOW arent working
Avatar
GameServer()->PLSMA_GUN didn't work in character.cpp ?
Avatar
i would define it in character are u even sure what u wanna use it for on other places
Avatar
as i said, its defined in gamecontext.h
20:01
well its weird u cant use it
20:01
in any entities class
Avatar
r u sure u incluide gamecontext on char
Avatar
lol ofc
20:02
its by default @Ryozuki
Avatar
@fokkonaut try to access NUM_TUNEZONES from character
Avatar
it's defined by default
Avatar
Does work
Avatar
true i was watching the .h
20:02
hmm
20:02
can u show me how u deifne the enum
20:02
and where
20:02
what line
Avatar
enum { PLASMA_GUN = 1, RAINBOW, };
20:03
its in a public part
Avatar
dont put it in a public part
Avatar
lol?
Avatar
put it after num tunezones enum
20:03
by public u mean inside a class right
20:03
try putting it after the num tunezones enum and try
20:04
why does that work xD
Avatar
did u put the enum inside a class public:?
Avatar
before, yes
20:04
now its where NUM_TUNEZONES is
Avatar
CGameContext::enumvariable
20:04
i think thats how u access it
20:04
if its in public
Avatar
ay, but this is nice, thanks!
Avatar
@Ryozuki best dev of todayfeelsamazingman
Exported 96 message(s)