Search found 12 matches

by Zah
Thu Dec 18, 2014 11:40 pm
Forum: Mudlet Development
Topic: Coroutines: what do we know about them already?
Replies: 5
Views: 7965

Re: Coroutines: what do we know about them already?

If I take the time to implement the solution described above is there interest in including it in a release? I imagine it may require a bit more testing than the average PR.

In the intermediate term I will work to see if I can get a message queue approach working.
by Zah
Thu Dec 18, 2014 6:11 pm
Forum: Mudlet Development
Topic: Coroutines: what do we know about them already?
Replies: 5
Views: 7965

Coroutines: what do we know about them already?

One of the idea I'm pushing with my Mudmaster chat client is that each socket connection should live in a seperate container that cannot block the main Lua thread. I see lots of conversation about coroutines before 2012. I know if I call echo() from a coroutine mudlet instantly crashes. What else do...
by Zah
Wed Dec 10, 2014 6:53 am
Forum: Mudlet Development
Topic: Making TConsole::printOnDisplay work on miniconsoles
Replies: 15
Views: 15229

Re: Making TConsole::printOnDisplay work on miniconsoles

Okay I cleaned up the code, and submitted a pull request. https://github.com/Mudlet/Mudlet/pull/222/files Bonus: I also added support for the &esc; token to echoAnsi. :D --with embedded escapes echoAnsi("\27[0;1;31;40m<REDTEXT>\n\27[0m\n") echoAnsi("HelloWorld","\27[0;1;...
by Zah
Mon Dec 08, 2014 5:43 pm
Forum: Mudlet Development
Topic: Making TConsole::printOnDisplay work on miniconsoles
Replies: 15
Views: 15229

Re: Making TConsole::printOnDisplay work on miniconsoles

I want to clean up my code and remove some of the unnecessary functions I made before I submit a pull request. In regards to tokenizing the escape character, I see the value in that too. I use XML a lot for work and naming the token &esc; fits well for this case. As far as the the tintin++ it do...
by Zah
Sun Dec 07, 2014 7:22 am
Forum: Mudlet Development
Topic: Making TConsole::printOnDisplay work on miniconsoles
Replies: 15
Views: 15229

Re: Making TConsole::printOnDisplay work on miniconsoles

Okay everyone, I got this working in Qt now. Start to finish it exposes a lua function called echoAsci. echoAnsi("\27[0;1;31;40m<REDTEXT>\n\27[0m\n") => displays "<REDTEXT>" colored red on the main console echoAnsi("WinName","\27[0;1;31;40m<REDTEXT>\n\27[0m\n"...
by Zah
Fri Dec 05, 2014 8:18 pm
Forum: Mudlet Development
Topic: Making TConsole::printOnDisplay work on miniconsoles
Replies: 15
Views: 15229

Re: Making TConsole::printOnDisplay work on miniconsoles

The strings containing the ASCII control codes are coming from socket connections made to a Mudmaster/Zchat server, so I don't have to worry about storing the raw escape code in the XML. I see what you mean about cTelnet::postMessage(QString) being a bad approach. However it did help me find anothe...
by Zah
Wed Dec 03, 2014 8:07 pm
Forum: Mudlet Development
Topic: Making TConsole::printOnDisplay work on miniconsoles
Replies: 15
Views: 15229

Re: Making TConsole::printOnDisplay work on miniconsoles

I'm already doing that now to an extent. I process the color codes from the ANSI string and convert them into tags I can pass into cecho. It doesn't work well for other text effects such as bold/internsity, underline, blinking because there are no tags available to cecho to process them. Many of the...
by Zah
Wed Dec 03, 2014 4:40 pm
Forum: Mudlet Development
Topic: Making TConsole::printOnDisplay work on miniconsoles
Replies: 15
Views: 15229

Re: Making TConsole::printOnDisplay work on miniconsoles

I want to take a string from lua with ANSI codes such as "\27[1;31;40mBob chats to you, \27[0m\27[32;40mHello Everyone\n" and write it to a miniconsole with the colors fully translated on screen. The function feedTriggers does what I want using printOnDisplay, but it appears to be hard cod...
by Zah
Wed Dec 03, 2014 6:59 am
Forum: Mudlet Development
Topic: Making TConsole::printOnDisplay work on miniconsoles
Replies: 15
Views: 15229

Making TConsole::printOnDisplay work on miniconsoles

This is not a feature request. I need help understanding the architecture. My goal is to add another TConsole::printOnDisplay function that will allow me to pass it a windowName as a second parameter in order to write to Geyser miniconsoles. To better understand the code I added a wrapper function t...
by Zah
Mon Dec 30, 2013 10:40 pm
Forum: Mudlet Development
Topic: Compiling on Windows 7
Replies: 38
Views: 39818

Re: Compiling on Windows 7

In regards to the original error reported in this thread: [ ERROR ] cannot find Lua module rex_pcre. Some functions may not be available.Lua error:error loading module 'rex_pcre' from file '.\rex_pcre.dll': %1 is not a valid Win32 application. I found a cheap hack of a workaround. Install the Lua bi...