Minetest logo

IRC log for #minetest-mods, 2014-05-28

| Channels | #minetest-mods index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:32 SoniEx2 joined #minetest-mods
01:06 phantombeta joined #minetest-mods
01:56 BrandonReese joined #minetest-mods
02:06 LemonLake joined #minetest-mods
02:06 ShadowNinja LemonLake: Show us the code you're working on.
02:06 LemonLake https://bitbucket.org/LemonLake/ace-of-p​icks/src/0796a675559f7babf6c12a510811add​ec195f386/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:31 phantombeta joined #minetest-mods
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
03:34 kaeza joined #minetest-mods
03:45 Amaz_ joined #minetest-mods
03:59 Amaz_ joined #minetest-mods
04:30 asie joined #minetest-mods
06:05 SoniEx2 joined #minetest-mods
09:06 LemonLake joined #minetest-mods
11:06 LemonLake joined #minetest-mods
11:22 aboutGod joined #minetest-mods
11:24 kaeza joined #minetest-mods
11:27 aboutGod left #minetest-mods
12:13 asie joined #minetest-mods
12:30 LemonLake joined #minetest-mods
12:52 asie joined #minetest-mods
14:22 PilzAdam joined #minetest-mods
14:45 rubenwardy joined #minetest-mods
15:00 LemonLake joined #minetest-mods
16:18 phantombeta joined #minetest-mods
17:25 restcoser joined #minetest-mods
17:27 kaeza joined #minetest-mods
17:56 asie joined #minetest-mods
18:06 asie joined #minetest-mods
18:13 asie joined #minetest-mods
18:28 LemonLake joined #minetest-mods
18:41 LemonLake joined #minetest-mods
22:01 SoniEx2 joined #minetest-mods
22:31 phantombeta joined #minetest-mods
22:35 Wuzzy joined #minetest-mods
22:54 SoniEx2 joined #minetest-mods

| Channels | #minetest-mods index | Today | | Google Search | Plaintext