00:31:25 Fork (bcrawl) on crawl.kelbi.org updated to: 0.23-a0-5014-gf9597c7f93 03:22:23 Experimental (bcrawl) branch on underhound.eu updated to: 0.23-a0-5014-gf9597c7f93 10:07:03 DaftChap (L13 GrEE) ASSERT(alive()) in 'actor.cc' at line 963 failed. (Lair:4) 10:07:37 !crashlog DaftChap 10:07:38 1. DaftChap, XL11 TrFi, T:8283 (milestone): https://crawl.kelbi.org/crawl/morgue/DaftChap/crash-DaftChap-20221218-161157.txt 10:07:59 !crashlog DaftChap 10:08:00 1. DaftChap, XL11 TrFi, T:8283 (milestone): https://crawl.kelbi.org/crawl/morgue/DaftChap/crash-DaftChap-20221218-161157.txt 10:08:06 tick tick tick 10:08:38 !crashlog DaftChap 10:08:39 2. DaftChap, XL13 GrEE, T:16844 (milestone): https://crawl.kelbi.org/crawl/morgue/DaftChap/crash-DaftChap-20231006-170637.txt 10:11:11 mm, second level interaction of knockback with dead attackers? that is, it knocked a blink frog back into something which died from it, then the boulder tried to knock the corpse back, I think 10:41:39 <06p​leasingfungus> erp 11:27:41 -!- geekosaur[c] is now known as geekosaur 13:08:37 -!- geekosaur is now known as geekosaur[c] 13:48:12 -!- geekosaur[c] is now known as geekosaur 14:35:17 Hello! I am trying to make a lua function run every time I get to a new level by editing the RC file on DCSS Webtiles. It is my own server and I have the game in WIZ mode. To test more efficiently, I am using `type = “turn”` instead of “entered_level” that I will replace it with. 14:35:18 Here is what I have: 14:35:18 ``` 14:35:19 { 14:35:19 crawl.call_dlua( 14:35:20 [[ 14:35:20 function test_fn(data, triggerable, triggerer, marker, ev) 14:35:21 crawl.mpr('SHOULD PRINT EVERY 5-20 TURNS') 14:35:21 end 14:35:22 local tf = TriggerableFunction:new ( {func='test_fn', repeated=true }) 14:35:22 tf:add_triggerer(DgnTriggerer:new { 14:35:23 type="turn", 14:35:23 delay_min=50, 14:35:24 delay_max=200, 14:35:27 }) 14:35:27 - verify this codeblock works 14:35:27 test_fn() 14:35:27 ]] 15:24:09 EricF: Best not to paste screenfuls of text 15:27:37 Yeah, saw that after. Here you go: https://pastebin.com/hqjrKsqw 15:29:25 I am starting to think it's because I don't have a lua_maker, but can't seem to figure out how to make one (dng.lua("<", tf) gives me an "attempt to call field 'mtmap' (a nil value)" error and the dng.mtmap is not defined anywhere 15:29:39 Other than this: #define MAP_METATABLE "dgn.mtmap" 15:56:09 <03s​emi_tonal> EricF: i'm not very fluent with crawl's lua so not sure how to do the thing you're aiming for, but I think the problem is that you're trying to use dlua functions - dlua isn't accessible when editing the rc, it's only for use in the dungeon builder (because it has access to things that would leak information to the player or allow them to cheat, etc) 15:57:06 I wuld also ask if that typo is only in here or also in your code? ("dng" for "dgn", which is short for "dungeon") 15:57:06 <03s​emi_tonal> there's a separate lua interface for the set of functions that can be accessed on the client end via the rc, those are the clua functions 15:59:36 crawl.call_dlua does the calling of dlua -- so it definitely works in rc! 15:59:59 only when you are in WIZ mode (and I am) 16:00:40 and the dng was just a typo here (not in my code) 16:02:53 And earlier I meant `dgn.mtmap("<", tf) 16:05:24 *dng.lua_marker("<", tf) 18:27:43 <05i​coson> tbh I would sort of think that any use of call_dlua in a rc that is not literally part of one of the stress tests is a code path that has absolutely never been used 18:32:42 <05i​coson> a few possibilities for tracking entering a new level: (i) track cur + deepest level by branch in "ready()" and use "find_deepest_explored" to notice when it changes; (ii) write a message hook to notice when you change levels and check "turns_on_level()" to see when it is 0 (or whatever it is when you first enter); (iii) macro > to a lua fun that checks that value, (iv) some combination of these 18:33:02 <05i​coson> basically I think there are two problems, noticing a level change, and knowing when it is a brand new level 18:33:54 <05i​coson> "you.turns_on_level()" does entirely cover the latter I think, though it is far from the only way 18:35:07 <05i​coson> oops, should have checked /names 18:35:09 <05i​coson> well, it's in the logs 23:45:10 Monster database of master branch on crawl.develz.org updated to: 0.31-a0-851-g7ff8af7976