00:34 <+bridge> [ddnet] https://www.youtube.com/watch?v=tas0O586t80&ab_channel=Kaslai 02:07 <+bridge> [ddnet] I like the new HUD. I sometimes did parts harder, because I forgot I have endless jump. 02:07 <+bridge> [ddnet] Is there also an indicator for strong / week hook? That's depending on every tee right? 02:13 <+bridge> [ddnet] I like the new HUD. I sometimes did parts harder, because I forgot I have endless jump. 02:13 <+bridge> [ddnet] Is there also an indicator for strong / week hook? That's depending on every tee right?, so migh not be suitable for hud 04:09 <+bridge> [ddnet] might be cool to have an indicator pop up while you're hooking someone 04:09 <+bridge> [ddnet] so that it only shows then and not all the time 06:19 <+bridge> [ddnet] <αΆ°Β°KonΝ§sti> There is, Forgot the command but search in f1 for something with nameplates strong 08:50 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/973839422489518130/RDT_20220511_0849558786720735552507324.jpg 08:50 <+bridge> [ddnet] @Learath2 08:50 <+bridge> [ddnet] :TOOBASED: 08:57 <+ChillerDragon> @Jupstar pls fix #5086 mac build 08:57 <+ChillerDragon> omg ddnet bot where 08:57 <+ChillerDragon> https://github.com/ddnet/ddnet/pull/5086 11:07 <+ChillerDragon> What happend to server chat messages? I saw some weird commit about it 11:08 <+ChillerDragon> I assume "chatresp" is a magic string 11:08 <+ChillerDragon> https://github.com/ddnet/ddnet/commit/d5f8bc27836cf77e7490fcc57e8cb0ddf2126b7f 11:08 <+ChillerDragon> ah yea 11:08 <+ChillerDragon> hrmpf 11:21 <+bridge> [ddnet] you mean a new strong week indicator, in addition to the old one that already exists above the tees head? 11:25 <+bridge> [ddnet] lovely devs, can you please tell me what happened to the ddnet client over the last like 2 months, I have gone from being able to connect to any ddnet server and connect my dummy on any of them no problem, to having to connect to most of the ddnet servers like 5-10 times before the server actually decides to let me in, and even when I log in, I cannot connect my dummy - it seems completely random, and there are no logs I can see to 11:26 <+bridge> [ddnet] are these code related, or some measures against ddosing ? 11:32 <+bridge> [ddnet] you can test old clients, just download them form https://ddnet.tw/downloads/ 11:32 <+bridge> [ddnet] for example DDNet 15.6.2 ... 11:32 <+bridge> [ddnet] This probably is more likely related to ddos, I also notice that I can not connect to servers in the last few days/weeks. Probably your connection request gets dropped while ddos, and maybe the client does not try to resend the request. 11:33 <+bridge> [ddnet] What is interesting, is that when I finally connect, there are no issues with ping on the server, and other people are able to connect their dummies 11:34 <+bridge> [ddnet] but that always been the case with ddos I guess, for whatever reason some people can still move fairly ok, while others are lagging all around 11:36 <+bridge> [ddnet] can really depend of many things 11:37 <+bridge> [ddnet] any way to help you guys with those ddos attacks ? 11:38 <+bridge> [ddnet] About what do you think, should I rename `hud.png` to `ddnet.png` or `ddrace.png` I will change also the asset tab name accordingly. The Idea was to include also new textures we use in our game into that png, for features that are not vanilla (like the new shields), but allow vanilla to extend their `game.png` so we can still merge their PR that changes the `game.png` because of added vanilla feat 11:40 <+bridge> [ddnet] pray for kinder people that do not need to ddos so we have peace in teeworlds 11:41 <+bridge> [ddnet] tough 11:41 <+bridge> [ddnet] you can test old clients, just download them form https://ddnet.tw/downloads/ 11:41 <+bridge> [ddnet] for example DDNet 15.6.2 ... 11:41 <+bridge> [ddnet] This probably is more likely related to ddos, I also noticed that I can not connect to servers in the last few days/weeks. Probably your connection request gets dropped while ddos, and maybe the client does not try to resend the request. 12:24 <+bridge> [ddnet] You could change the timer as well and make it more speedrun friendly 12:57 <+bridge> [ddnet] tell me more 12:57 <+bridge> [ddnet] tell me more, what do you mean with "more speedrun friendly" 12:59 <+bridge> [ddnet] Milliseconds 13:29 <+bridge> [ddnet] This is probably not as easy as it sounds. We could display milliseconds, but you'd be disappointed if they didn't match your actual finish time, wouldn't you? 13:29 <+bridge> [ddnet] I think that there is a problem with the client time is not perfectly in sync with the server ticks... so they would not match perfectly. Also it would mean to change the font size so we have enough space if you want to display ms 13:52 <+bridge> [ddnet] Ah I se 13:52 <+bridge> [ddnet] Der 13:52 <+bridge> [ddnet] Ah I see 14:47 <+bridge> [ddnet] add, didn't know that, 🀐 14:48 <+bridge> [ddnet] ahh, didn't know that, 🀐 14:56 <+bridge> [ddnet] Is it possible to download the builds that the CI makes or are they deleted directly? 15:35 <+bridge> [ddnet] ``` 15:35 <+bridge> [ddnet] Run actions/upload-artifact@v1 15:35 <+bridge> [ddnet] Uploading artifact 'ddnet-windows-latest' from 'D:\a\ddnet\ddnet\release\artifacts' for run #21808 15:35 <+bridge> [ddnet] Uploading 1 files 15:35 <+bridge> [ddnet] File upload complete. 15:35 <+bridge> [ddnet] Uploaded '44447819' bytes from 'D:\a\ddnet\ddnet\release\artifacts' to server 15:35 <+bridge> [ddnet] Associated artifact ddnet-windows-latest (16537689) with run #21808 15:35 <+bridge> [ddnet] ``` 15:36 <+bridge> [ddnet] xD to what server are the artifacts uploaded and is it the executable? 15:43 <+bridge> [ddnet] Ah I have found them 16:21 <+bridge> [ddnet] I find this really interesting. Sometimes trivial things are the hard things. I remember also this about youtube view count, that it got stuck on viral videos for some reason, after publishing. 17:49 <+bridge> [ddnet] does anyone know how do the eyes move in teeworlds 17:49 <+bridge> [ddnet] like how it's implemented 17:50 <+bridge> [ddnet] cause they go in a circle 17:50 <+bridge> [ddnet] is that the answer to your question? 17:51 <+bridge> [ddnet] uh 17:51 <+bridge> [ddnet] no, not really 17:52 <+bridge> [ddnet] i think he's asking where in the code is the eye movement handled 17:52 <+bridge> [ddnet] maybe 17:52 <+bridge> [ddnet] or just an explanation in plain english 17:52 <+bridge> [ddnet] https://github.com/ddnet/ddnet/blob/490704b54344089bd1fb28d859d7398b4e8a0c0f/src/game/client/render.cpp#L696-L699 17:52 <+bridge> [ddnet] im trying to recreate the effect with javascript and i dont know how to start 17:52 <+bridge> [ddnet] @Alexander_ ^ 17:52 <+bridge> [ddnet] thank you very much 17:54 <+bridge> [ddnet] can you explain the code a bit since im not really familiar with c++ 17:55 <+bridge> [ddnet] like how does it offset it 17:55 <+bridge> [ddnet] well its pretty much not c++ related code xD 17:55 <+bridge> [ddnet] basesize = 64 17:55 <+bridge> [ddnet] 17:55 <+bridge> [ddnet] empte == blink means the small eyes 17:55 <+bridge> [ddnet] 17:55 <+bridge> [ddnet] eye seperation = the gap between both eyes 17:56 <+bridge> [ddnet] direction = cursor direction normalized from the mid of the tee 17:56 <+bridge> [ddnet] rest is math 17:56 <+bridge> [ddnet] basesize = 64 17:56 <+bridge> [ddnet] 17:56 <+bridge> [ddnet] emote == blink means the small eyes 17:56 <+bridge> [ddnet] 17:56 <+bridge> [ddnet] eye seperation = the gap between both eyes 17:56 <+bridge> [ddnet] okay so im interested in that last line 17:56 <+bridge> [ddnet] direction.x would be what 17:56 <+bridge> [ddnet] mouse position? 17:57 <+bridge> [ddnet] x = 1 17:57 <+bridge> [ddnet] mouse to right 17:57 <+bridge> [ddnet] x = -1 mouse to left 17:57 <+bridge> [ddnet] yeah the coords 17:57 <+bridge> [ddnet] also one more question 17:57 <+bridge> [ddnet] y = 1 either up or down, have to test, tw sometimes flips the coordinates 17:57 <+bridge> [ddnet] what does vec2 mean 17:57 <+bridge> [ddnet] 2d vector 17:57 <+bridge> [ddnet] nice 17:57 <+bridge> [ddnet] basically {x, y} 17:57 <+bridge> [ddnet] thats all, thank you very much 19:12 <+bridge> [ddnet] @Not Keks https://twitter.com/icculus/status/1524418759120805889 19:12 <+bridge> [ddnet] lmao 19:12 <+bridge> [ddnet] is that you? 19:12 <+bridge> [ddnet] XD 19:12 <+bridge> [ddnet] yes, nice finally 19:14 <+bridge> [ddnet] @Not Keks is Direction.x and Direction.y min and max values -1 and 1? 19:15 <+bridge> [ddnet] yes 19:15 <+bridge> [ddnet] normalized 19:15 <+bridge> [ddnet] so they are never both 1 19:15 <+bridge> [ddnet] cant find the code for that though 19:16 <+bridge> [ddnet] but it says direction 19:16 <+bridge> [ddnet] directions are always normalized 19:16 <+bridge> [ddnet] how do they get normalized 19:16 <+bridge> [ddnet] else it could also be named position 19:17 <+bridge> [ddnet] well with normalize()? xd 19:17 <+bridge> [ddnet] if u dont know what that is, its math 19:17 <+bridge> [ddnet] sorry if im asking dumb questions, im trying to understand it so i could rewrite it in javascript 19:18 <+bridge> [ddnet] u divice all components by the length of the vector 19:18 <+bridge> [ddnet] `x *= 1/sqrt(x*x + y*y)` 19:18 <+bridge> [ddnet] same for y 19:20 <+bridge> [ddnet] shit, this is really complicated for my small brain 19:20 <+bridge> [ddnet] its ez just think in geometric algebra 19:20 <+bridge> [ddnet] just think in what now 19:21 <+bridge> [ddnet] im not as smart as you think I am 19:21 <+bridge> [ddnet] well can u image the length of a vector= 19:21 <+bridge> [ddnet] its basically how long the arrow is 19:21 <+bridge> [ddnet] i understand that 19:22 <+bridge> [ddnet] if u divide all components by that length, u basically get a value inside a 1 big circle 19:22 <+bridge> [ddnet] no matter how your vector looks like(if its non zero) 19:22 <+bridge> [ddnet] the length will be 1 19:23 <+bridge> [ddnet] of the new vector 19:23 <+bridge> [ddnet] so you can basically draw a circle around it 19:23 <+bridge> [ddnet] and u want a circle 19:23 <+bridge> [ddnet] bcs thats how the eyes rotate 19:23 <+bridge> [ddnet] if u divide a 1 dimensional number its the same 19:23 <+bridge> [ddnet] 1/1 = 1 19:23 <+bridge> [ddnet] 2/2 = 2 19:23 <+bridge> [ddnet] its basically the same for 2d values 19:23 <+bridge> [ddnet] im just gonna give up doing it the teeworlds way and try to do it another way 19:24 <+bridge> [ddnet] lmao 19:24 <+bridge> [ddnet] http://www.fundza.com/vectors/normalize/ 19:24 <+bridge> [ddnet] 1/1 = 1 19:24 <+bridge> [ddnet] 2/2 = 1 19:25 <+bridge> [ddnet] https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization 19:25 <+bridge> [ddnet] lol they have js code 19:26 <+bridge> [ddnet] do you know what a normalized vector is in the first place? 19:26 <+bridge> [ddnet] you gotta know things in order to understand them 19:26 <+bridge> [ddnet] i dont really understand why its using vectors in the first place 19:27 <+bridge> [ddnet] bcs its a 2d game 19:27 <+bridge> [ddnet] so u need a 2d number 19:27 <+bridge> [ddnet] in 3d u use 3d numbers 19:27 <+bridge> [ddnet] so basically coordinates? 19:27 <+bridge> [ddnet] yes 19:27 <+bridge> [ddnet] coordinates are numbers 19:27 <+bridge> [ddnet] 19:27 <+bridge> [ddnet] 1d coordinate is just plain numbers 19:27 <+bridge> [ddnet] 2d coordinates is a 2d number 19:28 <+bridge> [ddnet] a normalized vector is one whose length is 1 19:28 <+bridge> [ddnet] yes imagine the number is 1 away from 0 19:28 <+bridge> [ddnet] ohhhhh 19:29 <+bridge> [ddnet] Math.sqrt(x^2 + y^2) = length 19:29 <+bridge> [ddnet] basically like a hookline in tw can represent a vector, yes? 19:29 <+bridge> [ddnet] yes 19:29 <+bridge> [ddnet] if ur tee is 0 19:29 <+bridge> [ddnet] and u dont move xd 19:30 <+bridge> [ddnet] but not a normalized vector 19:30 <+bridge> [ddnet] bcs the hookline is the length of the hook 19:30 <+bridge> [ddnet] not 1 19:31 <+bridge> [ddnet] a normalized vector can also include values greater then abs(-1) no? 19:31 <+bridge> [ddnet] there https://github.com/C0D3D3V/ddnet/blob/490704b54344089bd1fb28d859d7398b4e8a0c0f/src/game/client/components/players.cpp#L383 19:31 <+bridge> [ddnet] 19:31 <+bridge> [ddnet] https://github.com/C0D3D3V/ddnet/blob/490704b54344089bd1fb28d859d7398b4e8a0c0f/src/base/vmath.h#L135-L138 19:31 <+bridge> [ddnet] https://github.com/C0D3D3V/ddnet/blob/490704b54344089bd1fb28d859d7398b4e8a0c0f/src/game/client/components/players.cpp#L360-L382 19:31 <+bridge> [ddnet] why should it 19:32 <+bridge> [ddnet] normalized = length 1 from 0 19:32 <+bridge> [ddnet] oh 19:32 <+bridge> [ddnet] only edge case is vector(0, 0) 19:32 <+bridge> [ddnet] then u broke math 19:32 <+bridge> [ddnet] and have a blackhole 19:33 <+bridge> [ddnet] (0,0) is forbidden as target direction in ddnet, in multiple locations xD can happen probably but you should not worry to much about it 19:33 <+bridge> [ddnet] yes, happened before 19:33 <+bridge> [ddnet] i fixed all NaNs i could find 19:34 <+bridge> [ddnet] problem with computers if ofc the limited range 19:34 <+bridge> [ddnet] 0 is not the same as 0 in math 19:34 <+bridge> [ddnet] thats also why 1/0 is infinity in computer science 19:34 <+bridge> [ddnet] you want to fix one more NaN? I have a very famous one for you 19:34 <+bridge> [ddnet] its just a value VERY VERY close to 0 19:34 <+bridge> [ddnet] its all fun and games until the tee looks into your soul like this 19:34 <+bridge> [ddnet] https://i.imgur.com/fjCPiED.png 19:34 <+bridge> [ddnet] 19:35 <+bridge> [ddnet] these dark eyes eat your soul 19:35 <+bridge> [ddnet] maths undefined behaviour 19:35 <+bridge> [ddnet] xD 19:35 <+bridge> [ddnet] btw thats a render 19:35 <+bridge> [ddnet] this reminded me of this https://www.youtube.com/watch?v=SrU9YDoXE88 19:36 <+bridge> [ddnet] its bout this https://en.wikipedia.org/wiki/Aleph_number 19:36 <+bridge> [ddnet] tell me which xd 19:37 <+bridge> [ddnet] shotgun bug ? 19:37 <+bridge> [ddnet] xD yes 19:37 <+bridge> [ddnet] ^^ 19:37 <+bridge> [ddnet] I already debugged it with UBSan ... its easy to find 19:37 <+bridge> [ddnet] heinrich has to fix it, he is used to getting hate for breaking physics 19:37 <+bridge> [ddnet] can't be fixed 19:37 <+bridge> [ddnet] i like the shotgun bug 19:38 <+bridge> [ddnet] could just set the int to INT_MAX when legnth of the pos is 0 19:38 <+bridge> [ddnet] then its at least not UB XD 19:38 <+bridge> [ddnet] XD 19:38 <+bridge> [ddnet] purposly set behavior 19:38 <+bridge> [ddnet] deen said we should keep the physics for the shotgun bug, so you just have to define the behaviour instead of undifiend NaN 19:38 <+bridge> [ddnet] "its a feature" 19:39 <+bridge> [ddnet] i wonder if there is atleast 1 run where the server was affected by a cosmic ray 19:39 <+bridge> [ddnet] and it gave an advantage 19:39 <+bridge> [ddnet] we gotta fix the universe 19:39 <+bridge> [ddnet] xD 19:39 <+bridge> [ddnet] 19:39 <+bridge> [ddnet] gotta make the server triple redundant 19:40 <+bridge> [ddnet] it bugs me that you didnt remove the spaces between the emojis 19:40 <+bridge> [ddnet] there are no spaces 19:40 <+bridge> [ddnet] uff 19:40 <+bridge> [ddnet] there are 19:40 <+bridge> [ddnet] xd 19:40 <+bridge> [ddnet] aaaaaaaaaaaaaaaaaaa 19:40 <+bridge> [ddnet] edit 19:41 <+bridge> [ddnet] 19:41 <+bridge> [ddnet] weeee 19:41 <+bridge> [ddnet] what spaces? 19:41 <+bridge> [ddnet] XD 19:41 <+bridge> [ddnet] XDDDDDD 19:41 <+bridge> [ddnet] oh fuck 19:41 <+bridge> [ddnet] weeeee 19:41 <+bridge> [ddnet] who is deleting stuff 19:42 <+bridge> [ddnet] 19:42 <+bridge> [ddnet] :kekw: 19:44 <+bridge> [ddnet] the js code: https://i.imgur.com/6uQL9GJ.png 19:44 <+bridge> [ddnet] @Ryozuki "Born too late to explore the world, born too early to explore the universe." 19:44 <+bridge> [ddnet] :feelscryman: 19:44 <+bridge> [ddnet] close but no cigar 19:44 <+bridge> [ddnet] :feelsbadman: 19:44 <+bridge> [ddnet] it should be a normalized vector 19:44 <+bridge> [ddnet] it is until you point in the center 19:45 <+bridge> [ddnet] in tw it just sets it to angle 0 19:47 <+bridge> [ddnet] @Alexander_ how old are you? 19:48 <+bridge> [ddnet] why ask? 19:49 <+bridge> [ddnet] to help you understand things 19:49 <+bridge> [ddnet] as i think you mix programming vectors and mathematical vectors 19:49 <+bridge> [ddnet] im 19 19:49 <+bridge> [ddnet] did you have any algebra course yet? 19:50 <+bridge> [ddnet] no 19:50 <+bridge> [ddnet] wait you mean in school? 19:50 <+bridge> [ddnet] ye 19:50 <+bridge> [ddnet] yeah I did 19:50 <+bridge> [ddnet] so you know what a mathematical vector is? 19:50 <+bridge> [ddnet] yeah 19:51 <+bridge> [ddnet] its like a line that has an intensity (length) and coordinates 19:52 <+bridge> [ddnet] yup, so it is used to describe position and movement in a 2D plane 19:52 <+bridge> [ddnet] normalized vectors are vectors whose length is equal to 1 19:53 <+bridge> [ddnet] in general, you use them just to get direction angle so that when you apply an operation with another vector, the new length is equal to the other vector length 19:54 <+bridge> [ddnet] i think i understand now 19:55 <+bridge> [ddnet] you're 19, so maybe you'll have basic algebra course next year 19:56 <+bridge> [ddnet] depends on your studies and country 19:56 <+bridge> [ddnet] im finishing school 19:56 <+bridge> [ddnet] this year 19:57 <+bridge> [ddnet] highschool? i think i learnt vectors in highschool, but more advanced stuff in 1st year university 20:01 <+bridge> [ddnet] learned vectors 4 years ago 20:01 <+bridge> [ddnet] or 3 20:03 <+bridge> [ddnet] Highschools tend to give a very surface form of knowledge especially lacking in intuition, atleast in my country 20:04 <+bridge> [ddnet] they teached it well here 20:05 <+bridge> [ddnet] yeah, i kinda agree 20:05 <+bridge> [ddnet] not like they have a choice though 20:06 <+bridge> [ddnet] Wait, you got taught math in high school? πŸ˜„ We only learned the exact steps to input into the calculator to get the result. I learned more in my first hour of university math than the previous 3 years. 20:06 <+bridge> [ddnet] you cant expect teenagers to have a profund understanding of these things as often, it is unfortunately not linked to real life application 20:07 <+bridge> [ddnet] the real problem, at least in math in France is off-ground learning 20:07 <+bridge> [ddnet] people don't get what it's used for 20:09 <+bridge> [ddnet] France? nice, i love France bc my friend was born in France.... 20:13 <+bridge> [ddnet] lol 20:13 <+bridge> [ddnet] i even did matrices in high school 20:13 <+bridge> [ddnet] and solved equation systems 20:13 <+bridge> [ddnet] with 3 variables 20:13 <+bridge> [ddnet] etc 20:17 <+bridge> [ddnet] i did equation system too in highschool, but matrices were in first year university 20:19 <+bridge> [ddnet] are tee eyes going in a circle or an ellipse 20:20 <+bridge> [ddnet] cause i feel like its an ellipse 20:20 <+bridge> [ddnet] what i mean by that is that the max y offset is not the same as the max x offset 20:29 <+bridge> [ddnet] We weren't allowed calculators, so we learned some math πŸ˜„ 20:30 <+bridge> [ddnet] Still just mostly filling things into equations 20:36 <+bridge> [ddnet] math starts where your imagination ends 20:54 <+ChillerDragon> Its impressive how many 500s github throws seems like they never will fix that 21:49 <+bridge> [ddnet] nice quote 22:55 <+bridge> [ddnet] https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1 22:55 <+bridge> [ddnet] 22:55 <+bridge> [ddnet] @Ryozuki 23:07 <+bridge> [ddnet] Hey guys, can i ask a programming question here? Tried programming discords, but havent been able to get any solution so far 😦 Its a java question 23:09 <+bridge> [ddnet] https://dontasktoask.com/ 23:11 <+bridge> [ddnet] Thanks πŸ™‚ So basically i have a problem with the split function in a for loop. I want it to be overwritten each itteration, but its not working. The first iteration is working fine, but the second iteration the array returns null 23:11 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/974056166424445019/unknown.png 23:12 <+bridge> [ddnet] the code isnt finished yet, but yeah i want to solve this issue first 23:12 <+bridge> [ddnet] can you explain what you want to solve 23:12 <+bridge> [ddnet] by reading the file 23:13 <+bridge> [ddnet] The file contains text like "MEMBER:Margaret Hamilton:margaret@nasa.gov:lkd432"... i want create members out of that text file 23:13 <+bridge> [ddnet] first, why are you using an array instead of a arraylist 23:13 <+bridge> [ddnet] since you clearly grow the array 23:13 <+bridge> [ddnet] an ArrayList does that for you 23:14 <+bridge> [ddnet] https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html 23:15 <+bridge> [ddnet] it has a handy add() method 23:15 <+bridge> [ddnet] you should be using `hasNextLine` instead of `hasNext` when you fetch the line using `nextLine` 23:16 <+bridge> [ddnet] Yep, i actually tried that from the start, but i wasnt sure how to add stuff to it directly. I think the probelm i got was when i wanted to do something like "members.get(1).setUsername"... not sure if that was the issue but it was something along those lines.. thats why i ended up using arrays 23:16 <+bridge> [ddnet] was probably my fault, but i went with something i knew better xD 23:16 <+bridge> [ddnet] but its way worse 23:16 <+bridge> [ddnet] you should: 23:16 <+bridge> [ddnet] change the for loop for a while with the hasnextline 23:17 <+bridge> [ddnet] True, my bad... I just copied what my teacher told me 23:17 <+bridge> [ddnet] use a arraylist and add stuff to it 23:17 <+bridge> [ddnet] and probably understand what a reference is 23:18 <+bridge> [ddnet] I was thinking of reference being a problem as well... So what i wanted to do instead was to create a 2d array instead. But when i went to the programming discord, people said that overwriting should work in a single array as well 23:18 <+bridge> [ddnet] ```java 23:18 <+bridge> [ddnet] List members = new ArrayList(); 23:18 <+bridge> [ddnet] 23:18 <+bridge> [ddnet] while(scanner.hasNextLine()) { 23:18 <+bridge> [ddnet] String line = scanner.nextLine(); 23:18 <+bridge> [ddnet] // if + split 23:18 <+bridge> [ddnet] members.add(new Member(.....)); 23:19 <+bridge> [ddnet] } 23:19 <+bridge> [ddnet] 23:19 <+bridge> [ddnet] // here members has all the members now 23:19 <+bridge> [ddnet] ``` 23:19 <+bridge> [ddnet] forget about 2d arrays 23:19 <+bridge> [ddnet] what u want to do is extremly simple and ur overcomplicating it 23:20 <+bridge> [ddnet] hmm alright thanks xD Its the first time im doing i/o in java so im probably doing exactly that. Overcomplicating it. But even with a arraylist i will need an array to split 23:20 <+bridge> [ddnet] so i guess i will come back to the same question? 23:20 <+bridge> [ddnet] to split what? 23:20 <+bridge> [ddnet] The split method always returns an array yeah 23:20 <+bridge> [ddnet] to split the line for every ":" 23:21 <+bridge> [ddnet] but that doesn't affect the list of members 23:21 <+bridge> [ddnet] ah ye i was talking about the members 23:21 <+bridge> [ddnet] so each line is like this "MEMBER:Margaret Hamilton:margaret@nasa.gov:lkd432" 23:21 <+bridge> [ddnet] you should completly remove the expand() its plain wrong way to do it 23:22 <+bridge> [ddnet] I want to add each section between the ":" to a seperate variable in member 23:22 <+bridge> [ddnet] yeah, if i use an arraylist i wont be needing it πŸ™‚ 23:22 <+bridge> [ddnet] you can create the member first and then add it to the list 23:22 <+bridge> [ddnet] But the split function will still be needed it think 23:22 <+bridge> [ddnet] i* 23:23 <+bridge> [ddnet] ```java 23:23 <+bridge> [ddnet] Member member; 23:23 <+bridge> [ddnet] 23:23 <+bridge> [ddnet] if(x) { 23:23 <+bridge> [ddnet] member = new Member(...); 23:23 <+bridge> [ddnet] } else { 23:23 <+bridge> [ddnet] member = new Member(...) 23:23 <+bridge> [ddnet] } 23:23 <+bridge> [ddnet] 23:23 <+bridge> [ddnet] members.add(member); 23:23 <+bridge> [ddnet] ``` 23:24 <+bridge> [ddnet] yeah the split 23:24 <+bridge> [ddnet] Yeah, but i need to load members from the file itself... So if a line is "MEMBER:Margaret Hamilton:margaret@nasa.gov:lkd432" Then Margaret Hamilton will be the username, margaret@nasa.gov will be the members email, and lkf432 will need to be the userID 23:25 <+bridge> [ddnet] So im pretty sure i need to run a loop even with an arraylist and use a split function with a array 23:25 <+bridge> [ddnet] and that is basically the problem i have right now 23:25 <+bridge> [ddnet] Sorry if im missing something obvious here... i know im a n00b 23:26 <+bridge> [ddnet] you just need to put together the code now 23:26 <+bridge> [ddnet] you can also use jshell to try stuff out 23:26 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/974060029080649758/unknown.png 23:27 <+bridge> [ddnet] Yeah my first itteration works fine like you just described.. the problem is when i want itterate over the the same array again. It returns null 23:28 <+bridge> [ddnet] can a line contain more than one member? 23:28 <+bridge> [ddnet] Nope 23:28 <+bridge> [ddnet] It can contain either a member, or their boats... but each on seperate lines 23:29 <+bridge> [ddnet] You could uncomment the println to check if you even get each line in the loop 23:30 <+bridge> [ddnet] yeah, the str returns each line fine... but if would put sysout(num) under the split, it will return "null" the second iteration 23:31 <+bridge> [ddnet] `num` should be a local variable as well 23:31 <+bridge> [ddnet] you only use it locally once to it's best to avoid any global effects 23:32 <+bridge> [ddnet] It was actually a local variable when i encountered the problem. So i tried to set it outside of the for loop, but the problem still exists 😦 23:33 <+bridge> [ddnet] Also, i really appreciate all the help guys. You are awesome ❀️ 23:33 <+bridge> [ddnet] Have you applied all the changes from above? Can you share your code again? 23:34 <+bridge> [ddnet] I am currently changing it πŸ™‚ Just give me a few min... also if i use arraylist, can i still iterate through it with "i"? 23:35 <+bridge> [ddnet] The `split` method should never return `null` 23:35 <+bridge> [ddnet] i cant do members.add(i) = new member 23:35 <+bridge> [ddnet] oh wait 23:35 <+bridge> [ddnet] you don't need the `i`, you can add at the end of the list 23:35 <+bridge> [ddnet] thats stupid lol 23:35 <+bridge> [ddnet] yeah 23:35 <+bridge> [ddnet] sorry im stupdi xD 23:39 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/974063247487549530/unknown.png 23:40 <+bridge> [ddnet] Guys i love you so much! Its working now πŸ˜„ I have no idea why num was returning null before, but atleast its working now xD If you know what might have been wrong previously please let me know πŸ™‚ 23:42 <+bridge> [ddnet] Nice. I don't think the `split` method can return `null` at all, so maybe you put the `println(num)` somewhere where `split` was not called yet. 23:43 <+bridge> [ddnet] Someone in Discord linked to this tweet and I figured I'd take a stab at singing it in my totally not awful fake accent: https://twitter.com/bhilburn/status/971019559095427075/photo/1 23:43 <+bridge> [ddnet] 23:43 <+bridge> [ddnet] Download: 23:43 <+bridge> [ddnet] WAV: https://kaslai.com/files/program_in_c.wav 23:43 <+bridge> [ddnet] MP3: https://kaslai.com/files/program_in_c.mp3 23:43 <+bridge> [ddnet] https://developer.nvidia.com/blog/nvidia-releases-open-source-gpu-kernel-modules/ 23:43 <+bridge> [ddnet] @Not Keks lol 23:44 <+bridge> [ddnet] is this related to the nvidia leaks? 23:44 <+bridge> [ddnet] No 23:44 <+bridge> [ddnet] iirc i had it right under String[] num = str.split(":");.... But maybe my memory is betraying me xD Well it works anyways now, so big thanks πŸ™‚ 23:44 <+bridge> [ddnet] Big thanks to you as well ❀️ 23:45 <+bridge> [ddnet] πŸ‘ 23:59 <+bridge> [ddnet] interesting 23:59 <+bridge> [ddnet] first prs are real chillerdragon style prs 23:59 <+bridge> [ddnet] "fix typo" 23:59 <+bridge> [ddnet] xd 23:59 <+bridge> [ddnet] to be contributor 23:59 <+bridge> [ddnet] xd