Search found 50 matches

by zhenzh
Fri Apr 24, 2020 2:30 am
Forum: General Forum
Topic: all message show output don't follow the wrap rule
Replies: 3
Views: 1010

Re: all message show output don't follow the wrap rule

I have opened 3 issues for tracking show command wrapping, unify the length of character, wrapping position choice for non-english character
by zhenzh
Thu Apr 23, 2020 7:33 pm
Forum: Mudlet Development
Topic: Script auto exection is really a trouble design
Replies: 10
Views: 1326

Script auto exection is really a trouble design

The design that each time click on a script, all related scripts will be auto execute do trouble me a lot. In most cases, what I want is just editing the script for trouble shooting rather than execution as that may brake the previous problem env. Besides, auto execution may also impacts on resetPro...
by zhenzh
Thu Apr 23, 2020 3:07 pm
Forum: General Forum
Topic: all message show output don't follow the wrap rule
Replies: 3
Views: 1010

Re: all message show output don't follow the wrap rule

Besides, the line wrap counter doesn't unify the length of different characters. Both single and double bytes characters are treated as the same length which get the english and non-english lines wrap at different position. I understand such method simply avoides double byte characters being separat...
by zhenzh
Thu Apr 23, 2020 2:29 pm
Forum: General Forum
Topic: all message show output don't follow the wrap rule
Replies: 3
Views: 1010

all message show output don't follow the wrap rule

I find the output of all message show commands(print,echo,display and etc.) will not be restrained by ling wrap so that messages get out of the window size.
by zhenzh
Thu Apr 23, 2020 3:27 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: How to read an ANSI string
Replies: 1
Views: 513

How to read an ANSI string

I have some strings encoded with ANSI.
Is there any function to get ANSI being converted to UTF8 so that display in mudlet can work?
by zhenzh
Thu Apr 23, 2020 2:24 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: How can I open an external sqlite3 db file?
Replies: 3
Views: 637

Re: How can I open an external sqlite3 db file?

the database functions provided by mudlet has only create/close, no open or conn. How to work for external file?
Besides, how to save the db created by db:create? Where is the db file?
by zhenzh
Wed Apr 22, 2020 7:37 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: How can I open an external sqlite3 db file?
Replies: 3
Views: 637

How can I open an external sqlite3 db file?

I find there's a sqlite3 module installed by mudlet when resetProfile()
[ OK ] - Lua module sqlite3 loaded.
But when I try to open an external db file by sqlite3.open(), it reports no such function.
Is the lua sqlite3 module embeded in mudlet? How to open the db files?
by zhenzh
Wed Apr 22, 2020 3:54 pm
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 8
Views: 1323

Re: Wait and Wait Line

v3 script enhancement: 1. localize variable threads to avoid getting conflict from global env. 2. wait_line supports multi-line by defining pattern as a table format like {pattern1, pattern2, pattern3, ...}. Captured values will be returned as what the mudlet multimatches variable. Single line match...
by zhenzh
Wed Apr 22, 2020 3:46 pm
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 8
Views: 1323

Re: Wait and Wait Line

#1 I have set the threads local variable which can not be reached from global at all. You can try the v3 script in #1 post edited. #2 The timer killing function do be called by trigger execuation, "threads[name][3]()" which is to stop effect of timeout at the point of time that the trigger is fired....
by zhenzh
Tue Apr 21, 2020 10:30 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: How can I create a package including multiple elements
Replies: 2
Views: 491

How can I create a package including multiple elements

Now, I can only use export from editor menu to generate an xml package and only 1 element(any one of trigger,timer,alias or script) can be selected. How can I create a full package including multiple triggers,timers,aliases and scripts together? My current work around is manually editing each single...