11:12 <+bridge> [ddnet] Google Images failes on input -1 lol 11:12 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/557144191084265476/unknown.png 11:25 <+bridge> [ddnet] because the - prefix means to exclude terms from the search 11:25 <+bridge> [ddnet] "-1" might be what you wanted 11:27 <+bridge> [ddnet] No, comments in sql are "--", this is an escaping bug by google 11:29 <+bridge> [ddnet] Oh no nvm this is intended 11:53 <+bridge> [ddnet] What does Google search have to do with SQL escaping? 11:57 <+bridge> [ddnet] ```for (unsigned i = 0; i < Amount; i++) 11:57 <+bridge> [ddnet] { 11:57 <+bridge> [ddnet] new CMeteor(GameWorld(), ProjStartPos, m_pPlayer->GetCID(), true); 11:57 <+bridge> [ddnet] }``` 11:57 <+bridge> [ddnet] why does this only create 1 CMeteor if Amount > 0 (no matter how big, just bigger than zero) 11:58 <+bridge> [ddnet] ```for (unsigned i = 0; i < Amount; i++) 11:58 <+bridge> [ddnet] { 11:58 <+bridge> [ddnet] new CMeteor(GameWorld(), ProjStartPos, m_pPlayer->GetCID(), true); 11:58 <+bridge> [ddnet] }``` 11:58 <+bridge> [ddnet] why does this only create 1 CMeteor if Amount > 0 (no matter how big, just bigger than zero) 11:58 <+bridge> [ddnet] ```for (unsigned i = 0; i < Amount; i++) 11:58 <+bridge> [ddnet] { 11:58 <+bridge> [ddnet] new CMeteor(GameWorld(), ProjStartPos, m_pPlayer->GetCID(), true); 11:58 <+bridge> [ddnet] }``` 11:58 <+bridge> [ddnet] why does this only create 1 CMeteor if Amount > 0 (no matter how big, just bigger than zero) 11:58 <+bridge> [ddnet] ```for (unsigned i = 0; i < Amount; i++) 11:58 <+bridge> [ddnet] { 11:58 <+bridge> [ddnet] new CMeteor(GameWorld(), ProjStartPos, m_pPlayer->GetCID(), true); 11:58 <+bridge> [ddnet] }``` 11:58 <+bridge> [ddnet] why does this only create 1 CMeteor if Amount > 0 (no matter how big, just bigger than zero) 11:58 <+bridge> [ddnet] ```for (unsigned i = 0; i < Amount; i++) 11:58 <+bridge> [ddnet] { 11:58 <+bridge> [ddnet] new CMeteor(GameWorld(), ProjStartPos, m_pPlayer->GetCID(), true); 11:58 <+bridge> [ddnet] }``` 11:58 <+bridge> [ddnet] why does this only create 1 CMeteor if Amount > 0 (no matter how big, just bigger than zero) 11:58 <+bridge> [ddnet] ```for (unsigned i = 0; i < Amount; i++) 11:58 <+bridge> [ddnet] { 11:58 <+bridge> [ddnet] new CMeteor(GameWorld(), ProjStartPos, m_pPlayer->GetCID(), true); 11:58 <+bridge> [ddnet] }``` 11:58 <+bridge> [ddnet] why does this only create 1 CMeteor if Amount > 0 (no matter how big, just bigger than zero) 11:59 <+bridge> [ddnet] wafel 12:08 <+bridge> [ddnet] it does work with other stuff, like printing a chat message (message gets printed `Amount` times.) why doesnt it work with this? 12:09 <+bridge> [ddnet] @fokkonaut idk how u implemented cmeteor but doesnt it get cleaned when the current iter of the loop ends 12:10 <+bridge> [ddnet] i dont know what you mean, but when i just use the new CMeteor line 2 times, it also just creates one. if i execute the command again, however i have two CMeteors 12:10 <+bridge> [ddnet] it just wont spawn them at once 12:11 <+bridge> [ddnet] @Ryozuki any idea? 12:12 <+bridge> [ddnet] no i have 0 info how u implemented things 12:12 <+bridge> [ddnet] What do you need to know? 12:12 <+bridge> [ddnet] the constructor 12:12 <+bridge> [ddnet] `CMeteor(CGameWorld *pGameWorld, vec2 Pos, int Owner, bool Infinite);` 12:12 <+bridge> [ddnet] how u implemented it 12:13 <+bridge> [ddnet] ? 12:20 <+bridge> [ddnet] @fokkonaut btw, when you allocate with `new` you should store it somewhere and call delete later. 12:20 <+bridge> [ddnet] okay :) 12:20 <+bridge> [ddnet] is it okay to call delete in the Reset() function of that entity? 12:20 <+bridge> [ddnet] @fokkonaut and if you want help with code make a minimal example that we can run straight from command line and share that 12:21 <+bridge> [ddnet] uhm, what 12:21 <+bridge> [ddnet] (usually while doing that you'll realize yourself where the mistake is) 12:22 <+bridge> [ddnet] what do you mean with that minimal example? 12:23 <+bridge> [ddnet] https://gist.github.com/def-/5cba6332b63c88c4ba49ecb0f6a3bbaf 12:23 <+bridge> [ddnet] like this, works as expected 12:23 <+bridge> [ddnet] That's much easier to figure out than asking you "how is the constructor implemented?" and going step by step 12:26 <+bridge> [ddnet] how do i delete that CMeteor *Meteor = new... 12:26 <+bridge> [ddnet] delete Meteor; 12:26 <+bridge> [ddnet] But generally you should be using unique_ptrs or shared_ptr instead of manually managing memory 12:27 <+bridge> [ddnet] and if i have multiple meteors? 12:27 <+bridge> [ddnet] how do i delete one specific 12:27 <+bridge> [ddnet] (the one that gets reset) 12:34 <+bridge> [ddnet] delete it 12:37 <+bridge> [ddnet] sorry, i am very, very stupid :D it always spawned the right amound of entities, they were just spawned into each other so i couldnt see it. 15:22 <+bridge> [ddnet] i cant see the times in the scoreboard in browser 15:29 <+bridge> [ddnet] fixed in the next release, join a server and disconnect for it to work 16:14 <+bridge> [ddnet] @Im 'corneum nice map 16:15 <+bridge> [ddnet] :brownbear: thx 16:28 <+bridge> [ddnet] could it be possible to autofill chat commands with TAB just like with names? 16:29 <+bridge> [ddnet] strictly speaking the client doesn't know what commands the server supports 16:29 <+bridge> [ddnet] It could assume the server is ddnet and provide those commands or we could have another way of sending those commands, like the ones for f2 are transmitted to client 16:30 <+bridge> [ddnet] it would be a nice general solution for commands that i dont want to bind yet still use regulary 16:30 <+bridge> [ddnet] i always misspell showothers the first try ((( 16:33 <+bridge> [ddnet] i have my repo on github, but when i clone it and try to compile it has some errors with cmakelists.txt, what can i do about it? 17:03 <+bridge> [ddnet] How to only compile server with cmake and latest ddnet on linux? 17:12 <+bridge> [ddnet] @fokkonaut u dont want to install sdl right 17:12 <+bridge> [ddnet] ye 17:12 <+bridge> [ddnet] i dont remember the argument now but its possible 17:32 <+bridge> [ddnet] Try '-DCLIENT=OFF' 17:33 <+bridge> [ddnet] ( https://github.com/ddnet/ddnet/blob/master/CMakeLists.txt#L82 )