Search found 52 matches
- Wed Nov 04, 2020 9:52 am
- Forum: Scripts & Packages
- Topic: Wayfinder, an alternate route finder package
- Replies: 2
- Views: 9844
Re: Wayfinder, an alternate route finder package
This solved all the issues I had with the A* algorithm, thanks! This algorithm seems to properly use the shortest number of hops to get to a location, even if that direction meanders away from the destination for a bit, instead of taking a more direct path that has more hops. (Room weights alone don...
- Tue Jun 23, 2020 10:17 pm
- Forum: Mudlet Development
- Topic: line = getCurrentLine() doesn't update line variable globally - does wiki just mean line variable is locally updated?
- Replies: 3
- Views: 31459
Re: line = getCurrentLine() doesn't update line variable globally - does wiki just mean line variable is locally updated
What's really weird, is that if I do a feedTriggers([["]]), triggers below the selectString([["]]); replace([["]]); line=getCurrentLine() do match properly the replaced character (this replaces " with a single quote), but lines that arrive from the server do not, and s...
- Tue Jun 23, 2020 10:11 pm
- Forum: Mudlet Development
- Topic: line = getCurrentLine() doesn't update line variable globally - does wiki just mean line variable is locally updated?
- Replies: 3
- Views: 31459
line = getCurrentLine() doesn't update line variable globally - does wiki just mean line variable is locally updated?
In short: I want to replace text and have triggers that match after the first one match on the replaced text instead of the original. Wiki seems to indicate after running 'replace(text)' that doing 'line = getCurrentLine()' should update line for subsequent triggers to the replaced line text, but th...
- Wed Mar 13, 2013 12:51 am
- Forum: Mudlet Development
- Topic: modifying mudlet.cpp to add and expose a function to lua
- Replies: 6
- Views: 6003
Re: modifying mudlet.cpp to add and expose a function to lua
Well, lots of possible hangups and probably not worth researching. I compiled the 2.0 final, not 2.1 or your 2.0+ branch, and I'm using the old recipe for Windows' libs and QT and minGW versions. Everything else seemed to work fine for my compile before I made any changes to the source; all my scrip...
- Wed Mar 13, 2013 12:36 am
- Forum: Mudlet Development
- Topic: modifying mudlet.cpp to add and expose a function to lua
- Replies: 6
- Views: 6003
Re: modifying mudlet.cpp to add and expose a function to lua
Nice. Thank you. Actually, I just finally managed to get mine to stop crashing. I had to check to see if the object was actually playing first, before calling clear(). Seems to work okay for me now; dunno why calling stop() or clear() on a non-playing object would cause it to crash for me and not fo...
- Tue Mar 12, 2013 8:16 am
- Forum: Mudlet Development
- Topic: modifying mudlet.cpp to add and expose a function to lua
- Replies: 6
- Views: 6003
modifying mudlet.cpp to add and expose a function to lua
So, just wanted to make a simple change to the source to add the ability to silence playing sounds. However, the method crashes mudlet. I added a method to mudlet.cpp and then modified TLuaInterpreter.cpp to add an intermediary method (what I assumed needed to happen to make the method available to ...
- Tue Mar 12, 2013 3:46 am
- Forum: Help Forum
- Topic: copy()/appendBuffer()
- Replies: 5
- Views: 4766
Re: copy()/appendBuffer()
Note that when you use functions like selectLine(), it actually moves the mouse cursor and selects the line, so if you're doing anything else with selecting text in between it can get messed up. Also, when you delete lines it deletes the line the cursor is currently on, though I believe you can spec...
- Sun Mar 10, 2013 7:50 am
- Forum: Help Forum
- Topic: AutoQuester
- Replies: 3
- Views: 3465
Re: AutoQuester
I had a similar parsing problem. The trick is to match the first line ("You still need to find the following:"), change the fire-length to something reasonable (the maximum number of things you might still need to find), then make two sub-triggers. Thus, the sub-triggers will fire for each...
- Sun Mar 10, 2013 7:36 am
- Forum: Help Forum
- Topic: Color Changing Gauges
- Replies: 3
- Views: 4176
Re: Color Changing Gauges
You do probably want labels, instead. If you only have one ore two labels you could probably simplify this a lot and just list them each seperately. The functions you'd want to call are createLabel() to create the label, resizeWindow() to set the size of the label, moveWindow() to set the position o...
- Sun Mar 10, 2013 6:24 am
- Forum: Mudlet Development
- Topic: Recipe to compile Mudlet on Windows
- Replies: 60
- Views: 43861
Re: Recipe to compile Mudlet on Windows
EDIT: I got it working! I had 2.0-test4 compiling successfully before using the original post's compile instructions (plus obviously the changes made to src.pro since then), but I see on 6/24/2012 there was a change from luazip to quazip made by chris. The src.pro from that point actually points to:...