Time Nick Message 02:06 ShadowNinja LemonLake: Show us the code you're working on. 02:06 LemonLake https://bitbucket.org/LemonLake/ace-of-picks/src/0796a675559f7babf6c12a510811addec195f386/mods/default/hud.lua?at=master 02:07 LemonLake I'm working at line 107 02:07 LemonLake After changing the hud of that text, I want to 'move' the rest of the values down an id, ditto for death_items 02:09 ShadowNinja LemonLake: Oh, you want to push to the begining of a table? 02:09 LemonLake I don't want to push at all 02:10 LemonLake My intention is, for example, if I wanted to 'remove' id 1, shift all the values 2-4 down to 1-3 02:10 LemonLake An 'unused' value is just blank, like the three lines changing the hud 02:10 ShadowNinja LemonLake: The line you pointed out contains only an end, and you're calling hud_change with empty strings as the ID. 02:10 LemonLake I'm aware 02:10 LemonLake I want to add code before that end 02:11 LemonLake The empty strings is intentional 02:11 LemonLake Oh, I see what you're looking at. 02:11 LemonLake No. death_items and death_hud are different tables. 02:11 ShadowNinja LemonLake: local t = {"foo", "bar", "baz"} -> table.remove(t, 1) -> t == {"bar", "baz"} 02:12 LemonLake Wait 02:12 LemonLake I just had a re-think 02:12 ShadowNinja LemonLake: Passing a string is invalid usage though. 02:12 LemonLake death_items I believe I can remove from 02:13 LemonLake so if I just remove the first element, they'll obviously get shifted down 02:13 LemonLake Then I can loop through that and change the lines in death_hud as necessary, right? 02:14 ShadowNinja Um, I'm not sure what exactly you're talking about. 02:14 LemonLake I just realised how stupidly obvious this is 02:14 LemonLake I'll try what I think and see if it works 02:14 ShadowNinja Removing items in a loop can cause issues if you don't do it right (no (I)pairs) 02:15 LemonLake Nope 02:15 LemonLake I'll remove from death_items normally 02:15 LemonLake Then when that's done, iterate through death_hud, change what's necessary and all should be good 02:16 ShadowNinja HUD_SIZE = "" 02:17 LemonLake ShadowNinja, are there supposed to be no ops in this channel? 02:17 ShadowNinja Global, and why is this a string? 02:17 ShadowNinja LemonLake: Yes. 02:17 ShadowNinja It's still registered. 02:17 ShadowNinja Well, actually SB should be oped. 02:18 ShadowNinja <3 aliases. 02:19 LemonLake Also, you MAY have noticed that death_hud wasn't setup right for players 02:20 LemonLake I forgot to save when I commited, but I re-added that 02:35 LemonLake ShadowNinja: I think I'm onto something here 02:48 LemonLake Okay, now that the code is written this is the part where I keep running the game, get a really obvious error and fix it recursively until it works