Search found 50 matches

by zhenzh
Fri May 08, 2020 9:46 am
Forum: General Forum
Topic: command separator incorrectly parsed
Replies: 9
Views: 1714

command separator incorrectly parsed

When I try running lua send() from input command line, separators were parsed incorrectly. For example, I'm using ; as separator and will send a batch of commands from lua. I used: lua send("north;north;north") While the command was considered as send("north, north, north") 3 parts which lead to inp...
by zhenzh
Thu May 07, 2020 7:12 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: How to get specified number of output lines in history
Replies: 1
Views: 1002

How to get specified number of output lines in history

I'd like to get last 10 lines received from server, how to implement that?
by zhenzh
Fri May 01, 2020 7:33 am
Forum: Mudlet Development
Topic: Script auto exection is really a trouble design
Replies: 10
Views: 1326

Re: Script auto exection is really a trouble design

Well, then I may understand why I'm troubling with such system while you said others not. I guess most people use this script feature as function container so that multiple execution will be be a problem as only functions being defined again and again. While I use it as a true script in which defini...
by zhenzh
Fri May 01, 2020 4:56 am
Forum: Mudlet Development
Topic: Script auto exection is really a trouble design
Replies: 10
Views: 1326

Re: Script auto exection is really a trouble design

Look at the above attachment(grean area output) Switch clicking parent and children script: 1. clicking parent -> children run, parent run (yellow font) 2. clicking children -> parent run, children run (gray font) 3. clicking parent -> children run, parent run (yellow font) 4. clicking children -> p...
by zhenzh
Thu Apr 30, 2020 2:03 pm
Forum: Mudlet Development
Topic: Script auto exection is really a trouble design
Replies: 10
Views: 1326

Re: Script auto exection is really a trouble design

Will you have plan to fix this issue that parent script being auto executed by its children? I think there should be some rules to avoide parent/children scripts impact each other. Such as: All children scripts will be auto executed once thier parent script is executed. Children script execution wil...
by zhenzh
Thu Apr 30, 2020 10:51 am
Forum: Mudlet Development
Topic: Toggle splitscreen button is recommanded
Replies: 1
Views: 421

Toggle splitscreen button is recommanded

It would be better to add a "toggle splitscreen" button like what zMUD did to help quickly moving to the latest screen page.
捕获.PNG
捕获.PNG (3.75 KiB) Viewed 421 times
by zhenzh
Sun Apr 26, 2020 6:12 pm
Forum: Mudlet Development
Topic: Will mudlet supports LPeg
Replies: 2
Views: 563

Re: Will mudlet supports LPeg

cool
by zhenzh
Sun Apr 26, 2020 1:16 pm
Forum: Mudlet Development
Topic: Will mudlet supports LPeg
Replies: 2
Views: 563

Will mudlet supports LPeg

I'd like to use re module for regex processing in lua but I don't find LPeg module. Will that be supported in the future or including external library by ourselves?
by zhenzh
Fri Apr 24, 2020 5:00 am
Forum: Mudlet Development
Topic: Script auto exection is really a trouble design
Replies: 10
Views: 1326

Re: Script auto exection is really a trouble design

As for the parent/children topic, I have also had some findings. See: 000DFA57-C752-46FF-AFE6-EB2FE1D8874D.jpg When keep on clicking the script "Test", only "Test" is executed. (blue area) When switch clicking between "Test" and "Test Group", the script course at will be executed first and then exec...
by zhenzh
Fri Apr 24, 2020 4:44 am
Forum: Mudlet Development
Topic: Script auto exection is really a trouble design
Replies: 10
Views: 1326

Re: Script auto exection is really a trouble design

No. I have not run resetProfile() in script, just call the function from command line through the provided run-lua-code. And I have some investigation against the multiple run issue. It should be caused by the logic of auto execution. See the attached 2 examples: Add 2 scripts with one code print(de...