Alarke
05-27-2016, 02:44 PM
Well this is a new one for me. I'm having issues on only one of my characters where TSC is not recognized as a mapped room. Here's an example of what I see when I run ;rnum:
[Town Square Central - ]
And when I try to use ;go2 from TSC:
>;go2 285
--- Lich: go2 active.
[go2: error: your current room was not found in the map database]
--- Lich: go2 has exited.
So I've tried ;repo download-mapdb, I've tried to delete all maps and re-download them, I've tried to alter my character folder in lich, and nothing works. If I log out and log back in, about 75% of the time it recognizes TSC at room #228, but within 10 minutes it just... unmaps. Any ideas here?
Haldrik
05-27-2016, 07:29 PM
More information-
I'm personally not seeing any problems.
This is the echo with room descriptions ENABLED.
>;e echo Room.current.inspect
--- Lich: exec1 active.
[exec1: @wayto={"227"=>"northwest", "282"=>"southeast", "229"=>"east", "284"=>"southwest", "7562"=>"go old well", "285"=>"west", "276"=>"northeast", "8665"=>"go oak tree"}
@paths=["Obvious paths: northeast, east, southeast, southwest, west, northwest"]
@image_coords=[277, 615, 313, 651]
@terrain=nil
@description=["This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end, an old well, with moss-covered stones and a craggy roof, is shaded from the moonlight by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep.", "This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end of the space, an old well, with moss-covered stones and a craggy roof, is shaded by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep.", "This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end, an old well, with moss-covered stones and a craggy roof, is shaded from the moonlight by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep.", "This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end, an old well, with moss-covered stones and a craggy roof, is shaded from the moonlight by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep."]
@image="wl-wehnimers-1264234799.png"
@climate=nil
@title=["[Town Square Central]"]
@check_location=nil
@timeto={"227"=>1.0, "282"=>1.0, "229"=>1.0, "284"=>1.0, "7562"=>0.2, "285"=>1.0, "276"=>1.0, "8665"=>0.2}
@id=228
@location="the town of Wehnimer's Landing"
@tags=["some sovyn clove", "some acantha leaf", "some calamia fruit", "node", "town", "ayana leaf", "supernode", "ayana root", "small rose", "small wild rose", "wild carrot", "some wingstem root", "small daisy", "some angelica root", "stalk of chicory", "stalk of goldenrod", "pepperthorn root", "wild chokecherry", "sanctuary"]
@links=[]]
--- Lich: exec1 has exited.
This is the echo with room descriptions DISABLED because too many people.
>;e echo Room.current.inspect
--- Lich: exec1 active.
[exec1: @wayto={"227"=>"northwest", "282"=>"southeast", "229"=>"east", "284"=>"southwest", "7562"=>"go old well", "285"=>"west", "276"=>"northeast", "8665"=>"go oak tree"}
@paths=["Obvious paths: northeast, east, southeast, southwest, west, northwest"]
@image_coords=[277, 615, 313, 651]
@terrain=nil
@description=["This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end, an old well, with moss-covered stones and a craggy roof, is shaded from the moonlight by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep.", "This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end of the space, an old well, with moss-covered stones and a craggy roof, is shaded by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep.", "This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end, an old well, with moss-covered stones and a craggy roof, is shaded from the moonlight by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep.", "This is the heart of the main square of Wehnimer's Landing. The impromptu shops of the bazaar are clustered around this central gathering place, where townsfolk, travellers, and adventurers meet to talk, conspire or raise expeditions to the far-flung reaches of Elanith. At the north end, an old well, with moss-covered stones and a craggy roof, is shaded from the moonlight by a strong, robust tree. The oak is tall and straight, and it is apparent that the roots run deep."]
@image="wl-wehnimers-1264234799.png"
@climate=nil
@title=["[Town Square Central]"]
@check_location=nil
@timeto={"227"=>1.0, "282"=>1.0, "229"=>1.0, "284"=>1.0, "7562"=>0.2, "285"=>1.0, "276"=>1.0, "8665"=>0.2}
@id=228
@location="the town of Wehnimer's Landing"
@tags=["some sovyn clove", "some acantha leaf", "some calamia fruit", "node", "town", "ayana leaf", "supernode", "ayana root", "small rose", "small wild rose", "wild carrot", "some wingstem root", "small daisy", "some angelica root", "stalk of chicory", "stalk of goldenrod", "pepperthorn root", "wild chokecherry", "sanctuary"]
@links=[]]
--- Lich: exec1 has exited.
>e
There also has been any code updates that could explain some of the problems.
>;repo list --name=go2
--- Lich: repository active.
file size last update author DLs rating
------------- ----- ------------------ ---------- ---- --------
go2.lic 46.1k 2016-04-01 1:36am Tillmen 4942 10.0 (3)
ego2.lic 53.6k 2015-04-07 6:36pm Tillmen 584 10.0 (1)
go2name.lic 0.5k 2014-09-30 10:50am Gibreficul 138
go2fam.lic 0.9k 2014-12-21 7:05pm Tillmen 38
go2locate.lic 1.7k 2014-12-21 7:05pm Tillmen 70
platgo2.lic 43.2k 2014-12-21 7:09pm nobody 16
--- Lich: repository has exited.
>;repo list --name=narost
--- Lich: repository active.
Yenko just went northwest.
>
file size last update author DLs rating
---------- ----- ------------------ ------- ---- --------
narost.lic 11.2k 2014-08-24 12:18pm Tillmen 1152 10.0 (1
Tillmen
06-01-2016, 07:12 PM
What started all this is that I fixed a bug in the last version of Lich which was causing Map.current to ignore the room description when finding a matching room in some cases.
Lich generally gets the description of a room from the XML for the Stormfront room window. When this is possible, it doesn't matter if you use "set desc off" or "set roombrief on". Lich gets the full room description in either case. The problem comes when the room window is disabled, which the game does automatically when there's too many people in a room or whatnot. In that case, Lich tries to pull the room description from what you see in the game window. That might be nothing (set desc off) which accidentally still finds a room because it creates an empty search regex that matches all room descriptions. Or, it might be some shortened room description (set roombrief on), which isn't going to match anything in the map database.
Map.current first searches through the entire map database for a room description that matches exactly, and if it doesn't find one it does a second round looking for any sentence of the room description that matches. The solution I settled on was to check if the room window was disabled before doing the second search, and just ignore the room description if it is. This should still allow the workaround of pulling the room description from the game window with "set desc on" and "set roombrief off", but still have a decent chance of finding the right room if either of those settings aren't right and the room window is disabled, or something.
TL;DR Lich 4.6.34 fixes bugs
Tillmen
06-01-2016, 08:39 PM
No, the intended behavior is current. Or no.. wait...
If the game decides not to send the room description in the XML, and you decide you don't want to look at the full room description, then there's no possible way for Lich to know the room description. Today's update should find a matching room in the map database anyway by ignoring the room description when the room description can't be known. That might end up giving you the wrong room, but there's not much else that can be done.
Haldrik
06-02-2016, 01:33 AM
No, the intended behavior is current. Or no.. wait...
If the game decides not to send the room description in the XML, and you decide you don't want to look at the full room description, then there's no possible way for Lich to know the room description. Today's update should find a matching room in the map database anyway by ignoring the room description when the room description can't be known. That might end up giving you the wrong room, but there's not much else that can be done.
I suppose I'm just confused why it managed to work before, but doesn't work now. It somehow pulled the room before. e.g. room window off, and set roombrief on, set desc on.
Maybe add some predictive mapping stuff in on failure? For example, if you are in TSE, and you go West. Why not have the mapper assume you are in TSC if it can't find the room?
Tillmen
06-02-2016, 09:39 AM
It does work now. Stop living in the past!
Lich 4.6.32: Ignored the room description in all second round room searches due to a bug, so TSC was found, but the wrong room was found in other cases even if the room window wasn't disabled.
Lich 4.6.33: Always used the room description in a room search, so if it was a brief room description it wouln't match, but it would find the correct room in the cases that were previously wrong.
Lich 4.6.34: Uses the room description in a second round search unless the room window is disabled, so it should find the correct room almost all the time.
Haldrik
06-02-2016, 10:47 PM
It does work now. Stop living in the past!
Lich 4.6.32: Ignored the room description in all second round room searches due to a bug, so TSC was found, but the wrong room was found in other cases even if the room window wasn't disabled.
Lich 4.6.33: Always used the room description in a room search, so if it was a brief room description it wouln't match, but it would find the correct room in the cases that were previously wrong.
Lich 4.6.34: Uses the room description in a second round search unless the room window is disabled, so it should find the correct room almost all the time.
Ahah! I didn't realize you had been updating lich. Okay it all makes sense now. You rock.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.