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

#shortest path: unknown error since 2.00.8

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
ixle



Joined: 15 Sep 2011
Posts: 133
Location: United States

PostPosted: Fri Jan 13, 2012 3:14 pm    Post subject: #shortest path: unknown error since 2.00.8 Reply with quote

I'm getting an error since upgrading to 2.00.8 from 2.00.8b4: #SHORTEST PATH: UNKNOWN ERROR.

This happens when I attempt to find a path through a portal I've linked from my list of portals (used #map dig for each item to each room it goes to). It seems to be happening regardless of room name, area name, or vnum search.

I use a complex set of aliases to link/unlink portals and find a path to a room/area/vnum, so it's rather hard for me to easily provide more background without dumping a lot of code here. Hopefullly this is enough to get started on.
Back to top
View user's profile Send private message
Slysven



Joined: 10 Apr 2011
Posts: 254
Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK

PostPosted: Fri Jan 13, 2012 6:27 pm    Post subject: Reply with quote

Well, perusing the code it seems that this message occurs when, in the shortest_path() function the searchgrid_find() HAS found a route from the current room to the destination when given the current room and destination room directly but a second procedure using this function that checkes the intermediate rooms to be valid VOID rooms (NOW which are to have EXACTLY TWO exits) does NOT.

So, I'd check that your void rooms are set correctly and that any rooms or NOW EXITS that have AVOID flags on are set correctly. Incidentally the second use of searchgrid_find() in the code that I mention has a cryptic commant: "Slower than a backtrace, but works with mazes." I wonder what this means, could the code actually check the route in the reverse direction instead, what does this mean for your portal routes if they are set to be one way?
Back to top
View user's profile Send private message
ixle



Joined: 15 Sep 2011
Posts: 133
Location: United States

PostPosted: Fri Jan 13, 2012 7:52 pm    Post subject: Reply with quote

Slysven wrote:
Well, perusing the code it seems that this message occurs when, in the shortest_path() function the searchgrid_find() HAS found a route from the current room to the destination when given the current room and destination room directly but a second procedure using this function that checkes the intermediate rooms to be valid VOID rooms (NOW which are to have EXACTLY TWO exits) does NOT.

So, I'd check that your void rooms are set correctly and that any rooms or NOW EXITS that have AVOID flags on are set correctly. Incidentally the second use of searchgrid_find() in the code that I mention has a cryptic commant: "Slower than a backtrace, but works with mazes." I wonder what this means, could the code actually check the route in the reverse direction instead, what does this mean for your portal routes if they are set to be one way?


I don't have any VOID rooms that I know of. It still finds a path and runs it using the portal, just the last few rooms after the portal don't go to the correct room somehow.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Fri Jan 13, 2012 9:27 pm    Post subject: Reply with quote

Would you mind downloading the beta source code again and see if that fixes it?

If that's the case let me know so I can compare 2.00.8 with the beta, which should narrow things down quite a bit.
Back to top
View user's profile Send private message Send e-mail
ixle



Joined: 15 Sep 2011
Posts: 133
Location: United States

PostPosted: Fri Jan 13, 2012 10:23 pm    Post subject: Reply with quote

Scandum wrote:
Would you mind downloading the beta source code again and see if that fixes it?

If that's the case let me know so I can compare 2.00.8 with the beta, which should narrow things down quite a bit.


Yeah, in the 2.00.8 beta works without an error message, finds the right vnum. I still had the 2.00.8b4 src saved.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Fri Jan 13, 2012 11:36 pm    Post subject: Reply with quote

Unfortunately there are substantial differences between the two versions.

Would you mind emailing your map file to mudclient@gmail.com along with the required commands to reproduce the error?
Back to top
View user's profile Send private message Send e-mail
ixle



Joined: 15 Sep 2011
Posts: 133
Location: United States

PostPosted: Sat Jan 14, 2012 12:29 pm    Post subject: Reply with quote

Scandum wrote:
Unfortunately there are substantial differences between the two versions.

Would you mind emailing your map file to mudclient@gmail.com along with the required commands to reproduce the error?


Mail sent.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sat Jan 14, 2012 8:04 pm    Post subject: Reply with quote

Think I found the bug, fixed in the beta:

http://tintin.sf.net/download/tintin-beta.tar.gz
Back to top
View user's profile Send private message Send e-mail
ixle



Joined: 15 Sep 2011
Posts: 133
Location: United States

PostPosted: Sun Jan 15, 2012 2:13 am    Post subject: Reply with quote

So far so good.
Back to top
View user's profile Send private message
ixle



Joined: 15 Sep 2011
Posts: 133
Location: United States

PostPosted: Sun Jan 15, 2012 2:35 am    Post subject: Reply with quote

Spoke too soon :(

Same error from vnum 20472 using command 'hf in ghostly fire'
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sun Jan 15, 2012 11:36 am    Post subject: Reply with quote

Looks like it wasn't properly handling the AVOID flag, I updated the beta with a fix.

Thanks for the help. Smile
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 -> Script Help 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