10:40 <+bridge> [ddnet] bois 10:40 <+bridge> [ddnet] how is chillerbot outdated it has ddnet version 99001 10:41 <+bridge> [ddnet] i get this annoying broadcast timer and an update message :c 10:44 <+bridge> [ddnet] @ChillerDragon the servers know thats a bulshit version number 10:44 <+bridge> [ddnet] 99001? xd 10:45 <+bridge> [ddnet] its chillerbot-ux version 001 10:45 <+bridge> [ddnet] and it is based on a new enoigh ddnet client to support the gametimer 10:53 <+bridge> [ddnet] then make it send a normal version number and it the servers will recognize it as such 10:53 <+bridge> [ddnet] but it is not a ddnet client :c 10:53 <+bridge> [ddnet] i want to show its chillerbot 10:53 <+bridge> [ddnet] for bot detection lol xd 10:55 <+bridge> [ddnet] btw onby i didnt get ur chatonly client running on dbeian :c 10:55 <+bridge> [ddnet] debian* 11:06 <+bridge> [ddnet] its a bugged version 11:06 <+bridge> [ddnet] thanks for rlsin the bugge done xd 11:07 <+bridge> [ddnet] could u fix it pls -.- 11:07 <+bridge> [ddnet] u kept bothering me to send u the code nobo 11:07 <+bridge> [ddnet] ill fix it soemtime 11:07 <+bridge> [ddnet] k ill watch the repo xd 11:07 <+bridge> [ddnet] i didnt say ill post it on github 11:07 <+bridge> [ddnet] gosh 11:07 <+bridge> [ddnet] why 11:07 <+bridge> [ddnet] honestly i forgot i even uploaded it there 11:07 <+bridge> [ddnet] i was probly relly fucked up when i did that 11:07 <+bridge> [ddnet] stap drugs 11:07 <+bridge> [ddnet] no 11:07 <+bridge> [ddnet] ill post it if u remind me tho 11:08 <+bridge> [ddnet] haha i will 18:18 <+bridge> [ddnet] i wish debian testing updated ddnet faster 18:18 <+bridge> [ddnet] i would try to help but i never packaged and it looks hard to get into 18:18 <+bridge> [ddnet] xD 19:16 <+bridge> [ddnet] @Ryozuki i dont understand this :< ive already looked for answers on the internet, but couldnt find one that helps me: 19:16 <+bridge> [ddnet] 19:16 <+bridge> [ddnet] Do you remember when i asked for help with the enum using in other classes? i got it to work when i placed the enum on top of gamecontext.h, but now i want to access that enum from player.h, and thats not possible, no matter what i try. can you help me? 19:17 <+bridge> [ddnet] it the enum outside a class 19:17 <+bridge> [ddnet] i can help u lot faster if u show me a example 19:33 <+bridge> [ddnet] ``` 19:33 <+bridge> [ddnet] #include 19:33 <+bridge> [ddnet] 19:33 <+bridge> [ddnet] enum ITEMS 19:33 <+bridge> [ddnet] { 19:33 <+bridge> [ddnet] ITEM1 = 1, 19:33 <+bridge> [ddnet] ITEM2, 19:33 <+bridge> [ddnet] NUM_ITEMS 19:33 <+bridge> [ddnet] } 19:33 <+bridge> [ddnet] 19:33 <+bridge> [ddnet] class CGameContext : public IGameServer 19:33 <+bridge> [ddnet] { 19:33 <+bridge> [ddnet] [...] 19:33 <+bridge> [ddnet] } 19:33 <+bridge> [ddnet] ``` 19:33 <+bridge> [ddnet] and in player.h i just want to use NUM_ITEMS 19:33 <+bridge> [ddnet] for an array `m_aHasItem[NUM_ITEMS]` 19:34 <+bridge> [ddnet] `gamecontext.h` is also included and i have no idea why i cant use it, already tried `ITEMS::NUM_ITEMS` and `CGameContext::ITEMS::NUM_ITEMS` but nothing worked (visual studio suggests me auto completion tho) 19:35 <+bridge> [ddnet] isn't there an error 19:36 <+bridge> [ddnet] @jao undefined ofc 19:36 <+bridge> [ddnet] nothing more 19:36 <+bridge> [ddnet] oh 19:48 <+bridge> [ddnet] @fokkonaut do these headers include each other? 19:48 <+bridge> [ddnet] yes 19:51 <+bridge> [ddnet] @fokkonaut inclusion isn't magic. inclusion just copies the file to the position with the include 19:52 <+bridge> [ddnet] if you do that in your head, you can probably find out why `NUM_ITEMS` isn't defined if you include gamecontext.h or player.h first 19:52 <+bridge> [ddnet] they are included on top of the file, isnt that correct? 19:53 <+bridge> [ddnet] ah 19:53 <+bridge> [ddnet] lol 19:53 <+bridge> [ddnet] no 19:53 <+bridge> [ddnet] to the position where the include is 19:54 <+bridge> [ddnet] so i need to include it under the enum 19:54 <+bridge> [ddnet] so i need to include it under the enum? 19:54 <+bridge> [ddnet] if you want to play these shenanigans, yes 19:55 <+bridge> [ddnet] it's probably better to not have circular imports 19:55 <+bridge> [ddnet] make a new file that only has this enum and include it in both headers 19:55 <+bridge> [ddnet] wait, one question 19:55 <+bridge> [ddnet] why can i use this enum from character.cpp? 19:56 <+bridge> [ddnet] the "problem" is that you use circular imports 19:56 <+bridge> [ddnet] I'd wager that character.cpp doesn't have circular imports with the file where this enum is defined 19:57 <+bridge> [ddnet] i can also use it from ddracecommands.cpp 19:58 <+bridge> [ddnet] those are all not included by gamecontext.h 19:58 <+bridge> [ddnet] they just include it 19:58 <+bridge> [ddnet] oh, i see 19:58 <+bridge> [ddnet] but your player.h include gamecontext.h **and** vice versa 19:58 <+bridge> [ddnet] yea 20:00 <+bridge> [ddnet] ``` 20:00 <+bridge> [ddnet] int CCollision::GetCustTile(int x, int y) 20:01 <+bridge> [ddnet] { 20:01 <+bridge> [ddnet] if (!m_pTiles) 20:01 <+bridge> [ddnet] return 0; 20:01 <+bridge> [ddnet] 20:01 <+bridge> [ddnet] int Nx = clamp(x / 32, 0, m_Width - 1); 20:01 <+bridge> [ddnet] int Ny = clamp(y / 32, 0, m_Height - 1); 20:01 <+bridge> [ddnet] int pos = Ny * m_Width + Nx; 20:01 <+bridge> [ddnet] 20:01 <+bridge> [ddnet] return m_pTiles[pos].m_Index; 20:01 <+bridge> [ddnet] } 20:01 <+bridge> [ddnet] 20:01 <+bridge> [ddnet] vec2 CCollision::GetRandomTile(int Tile) 20:01 <+bridge> [ddnet] { 20:01 <+bridge> [ddnet] vec2 ReturnValue[512] = { vec2(0,0) }; 20:01 <+bridge> [ddnet] int i = 0; 20:01 <+bridge> [ddnet] for (int y = 0; y < m_Height; y++) 20:01 <+bridge> [ddnet] for (int x = 0; x < m_Width; x++) 20:01 <+bridge> [ddnet] { 20:01 <+bridge> [ddnet] vec2 Pos(x*32.0f + 16.0f, y*32.0f + 16.0f); 20:01 <+bridge> [ddnet] 20:01 <+bridge> [ddnet] if (GetCustTile(Pos.x, Pos.y) == Tile) 20:01 <+bridge> [ddnet] { 20:01 <+bridge> [ddnet] ReturnValue[i] = Pos; 20:01 <+bridge> [ddnet] i++; 20:01 <+bridge> [ddnet] } 20:01 <+bridge> [ddnet] } 20:01 <+bridge> [ddnet] 20:01 <+bridge> [ddnet] if (i) 20:01 <+bridge> [ddnet] {