| View previous topic :: View next topic |
| Author |
Message |
azreal4066
Joined: 03 Sep 2009 Posts: 3
|
Posted: Thu Sep 03, 2009 2:17 pm Post subject: Reverse Pathing |
|
|
I am having a couple of issues that I wasn't able to find answers for searching the forums. I'm on version 1.99.7.
The first may be a simple misunderstanding of how the software works with variables and inputs. The other has to do specifically with the #PATH command.
#PATH
I need to be able to walk a path backwards but all of the examples that I have seen say to use | Code: | | #PATH SAVE b somealias; somealias | However this doesn't do any good. Saving the path backwards just does a string reversal and it does not actually reverse the directions. For example:
#PATH MAP : ssnee
#PATH SAVE b : eenss
The reverse of ssnee is nnsww not eenss.
Therein lies my second issue - trying to reverse it myself. Using a few of the script examples I've found throughout the site and forum I've found that the #parse command would be the way to go however I have not figured out how to expand an alias so that I can parse the contents. It may not exist yet and I'd like to avoid using an exterior scripting engine to do the work for me. Example: | Code: | #ALIAS {<%0}
{
#SHOWME %0
} |
If I input <R2NR it shows me literally R2NR. I need it to expand the R2NR alias to nnnennennnwnne... so that I can parse the series of characters into it's directional reversal. BTW I have checked my #PATHDIRs to make sure that I have my reversals setup correctly in case anyone was wondering.
I just moved to tintin++ on my Ubuntu Server from zMUD on my windows box and that instant path reversal is killing me. I love this software and I want it to work, perhaps I'm just missing something simple.
FYI - If anyone is looking for a script to turn a zMUD paths export into an #ALIAS file for tintin++ I have a *wince* powershell script that will do the trick. Powershell because I'm moving from a windows platform and it's way better than vbscript. zMUD is a windows application after all. |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Thu Sep 03, 2009 2:48 pm Post subject: |
|
|
Hiyas,
Looks like a few bugs slipped into the #path code with the transition from 1.99.6 to 1.99.7. I've updated the beta source code, and loading and saving paths should work correctly with it.
http://tintin.sourceforge.net/download/tintin-beta.tar.gz
There's no way to parse the content of an alias. One option would be to have #path {save} save the content to a variable rather than an alias, but given 1.99.7 has several backward compatibility issues compared to 1.99.6 I'll probably wait several months before making that change. |
|
| Back to top |
|
 |
azreal4066
Joined: 03 Sep 2009 Posts: 3
|
Posted: Thu Sep 03, 2009 3:09 pm Post subject: |
|
|
Awesome, ty. I thought something seemed amiss. After all, how could everyones' scripts and even the manual's examples all be wrong?
Thanks for the wicked quick reply! |
|
| Back to top |
|
 |
|