I'm a mapping failure & Map debug isn't working?

Post Reply
Mr.Pain
Posts: 4
Joined: Sun Aug 18, 2024 7:12 pm

I'm a mapping failure & Map debug isn't working?

Post by Mr.Pain »

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?

Jor'Mox
Posts: 1152
Joined: Wed Apr 03, 2013 2:19 am

Re: I'm a mapping failure & Map debug isn't working?

Post by Jor'Mox »

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: .+ >

Mr.Pain
Posts: 4
Joined: Sun Aug 18, 2024 7:12 pm

Re: I'm a mapping failure & Map debug isn't working?

Post by Mr.Pain »

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?

Jor'Mox
Posts: 1152
Joined: Wed Apr 03, 2013 2:19 am

Re: I'm a mapping failure & Map debug isn't working?

Post by Jor'Mox »

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: .+ >

Mr.Pain
Posts: 4
Joined: Sun Aug 18, 2024 7:12 pm

Re: I'm a mapping failure & Map debug isn't working?

Post by Mr.Pain »

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.

Mr.Pain
Posts: 4
Joined: Sun Aug 18, 2024 7:12 pm

Re: I'm a mapping failure & Map debug isn't working?

Post by Mr.Pain »

It appears the issue is with my client running on Ubuntu 24.04
Work's fine out-of-the box on my other system.

Post Reply