Search found 57 matches

by zhenzh
Tue Mar 16, 2021 2:56 pm
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 11
Views: 9159

Re: Wait and Wait Line

You are correct. Timeout function doesn't point to the correct trigger id. But your fix can only process single line case, I have fixed it to afford both single line and multiple line cases: function wait_line_timer(name) for _,v in ipairs(threads[name][2]) do for _,i in ipairs(v) do disableTrigger(...
by zhenzh
Fri Jan 15, 2021 5:13 pm
Forum: Mudlet Development
Topic: heaptrack file for mudlet memory leak issue
Replies: 0
Views: 1360

heaptrack file for mudlet memory leak issue

This is the original heaptrack file to the issue: https://github.com/Mudlet/Mudlet/issues/4636
by zhenzh
Tue Jan 12, 2021 1:08 pm
Forum: Help Forum
Topic: Mudlet used memory can not released
Replies: 0
Views: 1304

Mudlet used memory can not released

I find my mudlet keeps on increasing its memory use. I tried resetProfile() and waited for several hours to check whether memory used by mudlet can be released after GC. But I only find LUA collected its memory, while C++ doesn't, memory used by mudlet remains. This is the state I just run resetProf...
by zhenzh
Mon Nov 02, 2020 4:51 am
Forum: General Forum
Topic: statics of temp triggers
Replies: 4
Views: 16250

Re: statics of temp triggers

I may find the root cause of mudlet hung during reload process. The issue can be easily reproduced by the command below: for i=1,50000 do id = tempTrigger("test", "") killTrigger(id) end resetProfile() reloadModule(<test module>) I think the issue is introduced by the function re...
by zhenzh
Sat Oct 31, 2020 7:16 pm
Forum: General Forum
Topic: statics of temp triggers
Replies: 4
Views: 16250

Re: statics of temp triggers

I have such question because I find reload module spends quiet a long time(even get the mudlet hung) each time my robot keep on running for several days(a lot of temp triggers add/remove occurred)
by zhenzh
Sat Oct 31, 2020 6:54 pm
Forum: General Forum
Topic: statics of temp triggers
Replies: 4
Views: 16250

statics of temp triggers

I find killTrigger() do delete the created temp trigger but the count of trigger report in statics will not get decreased.
Is that mean killTrigger() will not physically delete a temp trigger and allocated memory can not be released until reload the whole LUA env?
by zhenzh
Fri Oct 23, 2020 3:13 am
Forum: General Forum
Topic: Looking for a method to reset lua env
Replies: 1
Views: 6209

Looking for a method to reset lua env

Is there a graceful and light method to clean current running LUA env including removing all global/local values, terminating running coroutines and deleting existing temp triggers/timers? I'm now using resetProfile() and reloadModule() to implement such operation, but I think it's so heavy that all...
by zhenzh
Mon Sep 21, 2020 2:48 pm
Forum: General Forum
Topic: which file records profile settings
Replies: 1
Views: 5687

which file records profile settings

I tried to migrate my mud game to another computer by installing a fresh mudlet and copy existing profile directory to the new mudlet-data.
But I find it lost a lot of profile settings including fonts type/size/color and loaded packages/modules.

Which file is the exact one storing these settings?
by zhenzh
Fri Aug 07, 2020 4:11 am
Forum: Help Forum
Topic: Unexpected Trigger Fire
Replies: 2
Views: 10852

Re: Unexpected Trigger Fire

Yes, for permanent triggers, chain is a solution. While as for temp triggers, group is not supported. I prefer temp triggers as there're a lot of one shot triggers applying in my mud game. Using permanent triggers may get my robot larger and larger. As you mentioned, such firing order issue is proba...
by zhenzh
Thu Aug 06, 2020 7:36 pm
Forum: Help Forum
Topic: Unexpected Trigger Fire
Replies: 2
Views: 10852

Unexpected Trigger Fire

At the begining, I want to confirm a consensus against trigger firing mechanism in mudlet that any trigger can only be fired by new arriving lines after the point of time the trigger itself being created, isn't it? If the above view is correct, the below scenario should not get the trigger fired: ne...