Search found 64 matches

by zhenzh
Sat Jun 25, 2022 4:42 am
Forum: General Forum
Topic: Can mudlet provide websocket related functions
Replies: 1
Views: 680

Can mudlet provide websocket related functions

I'm going to connect to outside websocket server to implement some advanced features for my robot.
Since it can communicate with discord in mudlet, I guess there may be websocket lua library included.
Can you provide lua functions for websocket connection in mudlet?
by zhenzh
Sun Feb 13, 2022 3:17 pm
Forum: Geyser Layout Manager
Topic: Mapper window can not fully satisfy the parent window
Replies: 1
Views: 811

Mapper window can not fully satisfy the parent window

I'm trying to put the mapper into a specified parent lable, but the window position has malposition:
99EF0858-8AEA-4D2A-B5F9-C89E69F8ABC3.jpg
The label2 can correctly process the relative position between its parent label1 and itself. But the mapper can not fully cover its parent label2
by zhenzh
Sun Nov 14, 2021 4:03 pm
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 3123

Re: Can I get the raw data sent from server

Besides, I find the getTextFormat() has an issue that the format of tha last character of a line can not be got. Here's a test for the line contains "NarutoMUD" string: B716262D-A2DC-4E2E-BB7E-9CA43AD99CAE.jpg Below are prints of format capture: 0/69 character: " " -> format: tab...
by zhenzh
Sun Nov 14, 2021 3:12 pm
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 3123

Re: Can I get the raw data sent from server

Even utf8.len() may also count unexpected character number. Here's a test for some special case: 841EF063-140D-4C51-8152-F0EC210FC3B0.jpg When I count form the value of line captured by mudlet, it got a smaller number than I count the string manually copy/paste from the line I think that should not ...
by zhenzh
Sun Nov 14, 2021 12:44 pm
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 3123

Re: Can I get the raw data sent from server

I need to process some qeusts in my playing mud, it's a colored trigger looks like this: -328ad242544cd46f.jpg Players are required to recognize the number consist of special colored characters across multiple lines. Since the color and position are not fixed, I can not use the color trigger provide...
by zhenzh
Sun Nov 14, 2021 3:54 am
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 3123

Re: Can I get the raw data sent from server

Here's the example raw data I can received from tintin++:
BB2F7ED7-A229-4FE4-9AD0-B4BF34C51C15.jpg
BB2F7ED7-A229-4FE4-9AD0-B4BF34C51C15.jpg (34.1 KiB) Viewed 3087 times
^[[1;32mEnter your character's ^[[1;31mname^[[1;32m, or type ^[[1;31mnew^[[1;32m: Illegal name, try another.
by zhenzh
Sat Nov 13, 2021 4:58 am
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 3123

Can I get the raw data sent from server

I'd like to process original data sent from mud server which should including ANSI color code, is there a method in mudlet provided?
Also, if it's possible, is it a method to print such raw data to screen with color code auto translated by mudlet?
by zhenzh
Tue Mar 16, 2021 2:56 pm
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 12
Views: 15951

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: 4185

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: 3027

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...