Prompt: < HP [ 27269/27269 ] MV [ 11904/11904 ] Exits: [ NES ] Room: Grolt's Home >
Mud prompt input:
prompt %cJ< %cCHP %cE[ %h/%hC ] %cCMV %cE[ %v/%V ] %cCExits: %cE[ %e ] %cCRoom:%cE%r %cJ>
map prompt
{
[""] = "^%cJ< %cCHP %cE[ %d+/%d+hp ] %cCMV %cE[ %d+/%d+mv ] %cCExits: %cE[ %d+ ] %cCRoom:%cE%d+
%cJ>"
}
(mapper): (error): Prompt not auto-detected, use 'map prompt' to set a prompt pattern.
It's not clicking... I'm slow. What am I doing wrong?
I'm a mapping failure & Map debug isn't working?
Re: I'm a mapping failure & Map debug isn't working?
The problem is that you are giving it the pattern you would send to the game for it to show you what you are seeing, not a Lua string pattern that matches the text the game sends back. At a glance, I'd try doing this:
map prompt < HP [ %d+/%d+ ] MV [ %d+/%d+ ] Exits: [ %a+ ] Room: .+ >
map prompt < HP [ %d+/%d+ ] MV [ %d+/%d+ ] Exits: [ %a+ ] Room: .+ >
Re: I'm a mapping failure & Map debug isn't working?
I've tried your suggestion (thank you) and I'll continue trying along those lines until I figure it out. So far it's still responding the same.
Does the mapping feature need to be "working" for the debug to display something or am I missing an output somewhere?
Does the mapping feature need to be "working" for the debug to display something or am I missing an output somewhere?
Re: I'm a mapping failure & Map debug isn't working?
Oh, I forgot, you are also going to need to escape all those square brackets, so maybe something like this:
map prompt < HP %[ %d+/%d+ %] MV %[ %d+/%d+ %] Exits: %[ %a+ %] Room: .+ >
map prompt < HP %[ %d+/%d+ %] MV %[ %d+/%d+ %] Exits: %[ %a+ %] Room: .+ >
Re: I'm a mapping failure & Map debug isn't working?
Well, I appreciate your efforts.. that didn't resolve the issue either. I'm continuing to troubleshoot.
Change the prompt to a very simple:
- Prompt HP %h-%H MV %v-%V Exits %e Room %r
- Example: HP 27446-27446 MV 12104-12104 Exits NES Room Grolt's Home
- map prompt HP %d+-%d+ MV %d+-%d+ Exits %a+ Room .+
- (mapper): (error): Prompt not auto-detected, use 'map prompt' to set a prompt pattern.
I'm sure it's something simple I'm overlooking. Maybe my installation is bad, I still can't seem to get the map debug to do anything. Probably still my issue.
Change the prompt to a very simple:
- Prompt HP %h-%H MV %v-%V Exits %e Room %r
- Example: HP 27446-27446 MV 12104-12104 Exits NES Room Grolt's Home
- map prompt HP %d+-%d+ MV %d+-%d+ Exits %a+ Room .+
- (mapper): (error): Prompt not auto-detected, use 'map prompt' to set a prompt pattern.
I'm sure it's something simple I'm overlooking. Maybe my installation is bad, I still can't seem to get the map debug to do anything. Probably still my issue.
Re: I'm a mapping failure & Map debug isn't working?
It appears the issue is with my client running on Ubuntu 24.04
Work's fine out-of-the box on my other system.
Work's fine out-of-the box on my other system.