26 Feb 2024 |
TubberPupper | --- something
local channel = "det"
local function minfy(sec)
return math.floor(sec/60)
end
local function gms(min)
return math.floor(minfy(os.time()) - min)
end
local temp = {}
if event.type == "program" then
digiline_send("det", "stop")
digiline_send("lcd", "Hello, want some steak?")
end
if event.type == "on" and event.pin.name == "C" then
if port.b ~= port.b_old then
digiline_send("det", "start")
end
end
if event.type == "digiline" and event.channel == channel then
if event.msg.action == "detect" and event.msg.detected then
-- Process detected objects
local lcdstr = ""
temp.names = mem.names or {}
temp.ct = minfy(os.time())
for _, obj in ipairs(event.msg.detected) do
local dt = temp.names[obj.name] or {q=5,lt=temp.ct}
if dt and dt.lt ~= temp.ct then
local timepassed = temp.ct - dt.lt
if timepassed > 119 then
dt.q = math.min(math.floor(timepassed/120),50)
lcdstr=lcdstr..obj.name..": You get "..dt.q.." steak(s) for your patience."
else
lcdstr=lcdstr..obj.name..": Hei! You got steaks "..timepassed.." minutes ago. You can have more steaks in "..(120-timepassed).." minutes."
end
else
lcdstr=lcdstr..obj.name..": You can get "..dt.q.." steaks!"
end
temp.names[obj.name] = dt
end
mem.names = temp.names
digiline_send("lcd",lcdstr)
digiline_send("det","stop")
end
end
| 23:29:36 |
TubberPupper | alien code again | 23:29:37 |
TubberPupper | In reply to @darkknight8785:matrix.org i just discovered this place last night, idk what is this ooh that's map generated | 23:41:22 |
TubberPupper | it's a part of a mapgen mod that Mesecraft and Exile use | 23:41:37 |
TubberPupper | In reply to @tubberpupper:matrix.org alien code again I can prob explain it better when I have more brain cells | 23:43:08 |
27 Feb 2024 |
Pēteris Ūsiņš | added 5 second interrupt to return to start msg on display | 00:03:22 |
Pēteris Ūsiņš | added msg for output bet in one place only, somhow it outputs 3x times more then sayz, i have not understod dt.q variable | 00:04:10 |
Pēteris Ūsiņš | ty very much | 00:04:24 |
1 Mar 2024 |
TubberPupper | ayyyyy | 03:24:57 |
TubberPupper | In reply to @peterisu1:matrix.org added msg for output bet in one place only, somhow it outputs 3x times more then sayz, i have not understod dt.q variable ah sorry, dt.q is the amount of steaks | 03:25:14 |
Pēteris Ūsiņš | Redacted or Malformed Event | 17:15:11 |
TubberPupper | Download image.png | 23:03:27 |
TubberPupper | Download image.png | 23:03:39 |
TubberPupper | the ritual mineshaft Shadow AI6FS | 23:03:47 |
Cash | Lets sacrifice miche there | 23:07:11 |
TubberPupper | LMFAO YES | 23:09:39 |
3 Mar 2024 |
Cash | Download Screenshot_20240302_202642_Minetest.jpg | 01:27:22 |
Cash | ⅓ of a portal, seems like the portal is on a strike today | 01:27:39 |
Shadow AI6FS | In reply to @genkin_desu:matrix.org ⅓ of a portal, seems like the portal is on a strike today Cash strikes again. Trying to use that portal broke the portal in-use for moon-to-mars | 07:46:40 |
Shadow AI6FS | also concerning is that your airbar in that screenshot is not full - did you damage more of 2B again? | 07:59:31 |
Cash | Didn't touch the glass at all | 23:16:26 |
4 Mar 2024 |
Shadow AI6FS | Cash: I'll survey it and figure out what's going on, thanks. | 19:56:27 |
Shadow AI6FS | vacuum purge seems intact. weird. | 19:57:50 |
5 Mar 2024 |
Shadow AI6FS | Download Screenshot from 2024-03-05 07-32-50.png | 15:33:21 |
Shadow AI6FS | dark-knight has an abandoned blimp floating in the skies | 15:33:25 |
7 Mar 2024 |
| Cash changed their display name from Cash to Shashu. | 18:13:57 |
| Cash changed their display name from Shashu to Cash. | 18:14:55 |
9 Mar 2024 |
Shadow AI6FS | Download Screenshot from 2024-03-08 17-38-10.png | 01:38:51 |
Shadow AI6FS | Tabulated dragon adventure data as of this posting. | 01:38:53 |
10 Mar 2024 |
| karlexceed joined the room. | 06:18:52 |