TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

ROM Travel

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Wed Jan 05, 2011 5:54 pm    Post subject: ROM Travel Reply with quote

Not a bug in the client itself, just think it broke with one of the updates. Just a heads up.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Wed Jan 05, 2011 10:30 pm    Post subject: Reply with quote

Added to my todo list. Smile
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Thu Jan 06, 2011 10:26 am    Post subject: Reply with quote

http://dl.dropbox.com/u/3801627/Travel%20Debug

forgot to add the .txt if you were wondering... Ubuntu newbie =)
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Thu Jan 06, 2011 7:37 pm    Post subject: Reply with quote

It's working for me. Maybe another script is interfering?

I'll update the script to use associative arrays, but I don't think that'll change much.
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Thu Jan 06, 2011 11:44 pm    Post subject: Reply with quote

Did you look at the debug file I posted? I ran it by itself and it didn't work for me?

It moves one room then hits me with:

Code:

#DEBUG ACTION {[Exits: %1]}
[10] if {$travel}
[10]     if {"north south" != "%* %*"}
[05]     endif
[06]     else
[02]         regexp {north south} {%* %* %*}{#var travel 0;#showme <118>You stop traveling to pick up directions.}#regex {north south} {%* %*}{#var newdir
@finddir{$lastdir;&1;&2};#showme <118>You travel $newdir.;#var lastdir @revdir{$newdir};@shortdir{$newdir}}
[02] regexp {north south} {%* %*}{#var newdir @finddir{$lastdir;&1;&2};#showme <118>You travel $newdir.;#var lastdir @revdir{$newdir};@shortdir{$newdir}}
[02] variable newdir @finddir{$lastdir;north;south}
#DEBUG FUNCTION {finddir}
[10] if {"" != ""}
[05] endif
[06] else
[15]     return
#OK. VARIABLE {newdir} HAS BEEN SET TO {}.
[02] showme <118>You travel $newdir.
You travel .
[02] variable lastdir @revdir{$newdir}
#DEBUG FUNCTION {revdir}
[18] switch {""}
[01]     case {"north"}
[05]     endcase
[01]     case {"east"}
[05]     endcase
[01]     case {"south"}
[05]     endcase
[01]     case {"west"}
[05]     endcase
[01]     case {"up"}
[05]     endcase
[01]     case {"down"}
[05]     endcase
[05] end
#OK. VARIABLE {lastdir} HAS BEEN SET TO {}.
[17] @shortdir{$newdir}
#DEBUG FUNCTION {shortdir}
[18] switch {""}
[01]     case {"north"}
[05]     endcase
[01]     case {"east"}
[05]     endcase
[01]     case {"south"}
[05]     endcase
[01]     case {"west"}
[05]     endcase
[01]     case {"up"}
[05]     endcase
[01]     case {"down"}
[05]     endcase
[05] end
[17]
[05]     endif
[05] endif
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Jan 07, 2011 8:07 am    Post subject: Reply with quote

Could be you have an old script.

Try updating your script from the website and see if that helps?
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Fri Jan 07, 2011 5:48 pm    Post subject: Reply with quote

Got it fresh off the press...
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Jan 07, 2011 9:25 pm    Post subject: Reply with quote

With the latest version of the script on 2.00.5 I get:

Code:

#read romtravel.tin
#OK:   1 ACTION LOADED.
#OK:   1 ALIAS LOADED.
#OK:   1 FUNCTION LOADED.
#OK:   4 VARIABLES LOADED.
travel n
You travel n.
#NO SESSION ACTIVE. USE: #session {name} {host} {port} TO START ONE.
#showme [Exits: north south]
You travel north.
#NO SESSION ACTIVE. USE: #session {name} {host} {port} TO START ONE.
[Exits: north south]
#showme [Exits: south east]
You travel east.
#NO SESSION ACTIVE. USE: #session {name} {host} {port} TO START ONE.
[Exits: south east]
#showme [Exits: south north]
You travel south.
#NO SESSION ACTIVE. USE: #session {name} {host} {port} TO START ONE.
[Exits: south north]
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Sat Jan 08, 2011 12:06 am    Post subject: Reply with quote

Version 1.99.8

How do you update on ubuntu? I installed the tar.gz, do I need to replace something with it? Bah ubuntu newbie... Confused
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Sat Jan 08, 2011 9:06 am    Post subject: Reply with quote

Think you need to run apt-get install libpcre3-dev once on Ubuntu to get the Perl compatible regular expression library.

After running 'make' you should also run 'make install' (as root) so you can execute tt++ anywhere.

You'd also want to browse through the news section for compatibility issues, most notably function arguments needing to be separated by semicolons instead of spaces, which is probably why the travel script isn't working.
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Sun Jan 09, 2011 10:52 pm    Post subject: Reply with quote

I'm having a hard time replacing the old version, maybe dumb it down a bit? Embarassed
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Sun Jan 09, 2011 11:20 pm    Post subject: Reply with quote

As per: http://tintin.sourceforge.net/install.php

To get the pcre library type: apt-get install libpcre3-dev

That should be a one time thing.

* Download the TinTin++ source code
* cd to the directory you downloaded the tar.gz file into
* Type: tar -zxf <filename>
* Type: cd tt/src/
* Type: ./configure
* Type: make
* Type: ./tt++ to start TinTin++

To make tt++ valid anywhere on your system use with root access: make install

I think I compiled the linux binary with Unbuntu, so you could give the precompiled linux binary a try as well.

Hope that helps.
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Mon Jan 10, 2011 11:36 am    Post subject: Reply with quote

Yeah I was trying to go by that last night, the first step didn't "unzip?!" the file. I'm guessing that is what it is supposed to do since the next step required me to cd into a directory that didn't exist. Nothing happened at all when I would hit tar zxf- blah blah.

Oh, and it says it should be a one time thing? Well I have done it before to install 1.99.8 or whichever version it is I have.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Mon Jan 10, 2011 12:49 pm    Post subject: Reply with quote

What error message does 'tar -zxvf tintin-2.00.5.tar.gz' give you?
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Wed Mar 02, 2011 1:26 pm    Post subject: Reply with quote

Scandum wrote:
What error message does 'tar -zxvf tintin-2.00.5.tar.gz' give you?


Back to this after a long hiatus.

I download the 'tintin-2.00.5-linux.tar.gz' on desktop, cd to the desktop in terminal:

tar -zxf tintin-2.00.5-linux.tar.gz

This doesn't make "tt" folder so I can "cd tt/src", it just makes a tt++ file and when I hit "tt++" in the terminal it brings up the older version. I've deleted all the old files, that I'm aware of.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Wed Mar 02, 2011 5:52 pm    Post subject: Reply with quote

You need to use ./tt++ - but that is the Linux binary you're using and it's unlikely to work properly.

So best to download tintin-2.00.5.tar.gz and compile from source.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group