[Bug] #mapper reset does not reset the map the same as G4 when on wrong map

Open
#459 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
cli, game-dev

Research direction

Start by locating the #mapper reset command entry point and the code that re-resolves the current room after the mapper is pointed at another map. Reproduce the failure by changing to a different map, running #mapper reset, and observing that the current room remains unresolved. Done means reset selects the map containing the current recognized room and #goto works again after the failed-movement path triggers a reset.

Written by the indexing model from the issue text.

Description

bug g4-regression

What happened

In G4, you could be on a completely different map
(say you manually changed the map to a different one than what you are on)
#mapper reset - and the map correctly updates to the map you are currently in
(as long as you are in a recognized room )

This function doesn't seem to work the same in G5
If you are in a different map on the mapper than the map you are actually in
And do #mapper reset it just says
[mapper] Re-resolving current room....
But it never actually updates the map, so it never resolves the room

say you have a movement script trying to #goto a certain label
But if you are in Fang Cove and you have the map set to Ratha
movement will just spam *** AUTOMOVE FAILED. *** over and over
until you manually update it to the correct map

In travel script and others, it uses the automove failed routine to do a #mapper reset
and hopefully kick the map back into the right place where it's recognized
In G4 this works most of the time, say you change the map mid-travel script, it runs into a move failed, does a #mapper reset
and the map kicks back into the correct map you are on and then recognizes your room

What you expected

be on different map
#mapper reset
Map updates to the map you are on
travel and #goto now function properly

Steps to reproduce

  1. Be somewhere
  2. Change the map to any different map
  3. #mapper reset

In G4 this seems to work 99% of the time
In G5 the map never seems to change with #mapper reset

Environment

  • OS + version: Win10
  • Genie 5 version: G5 5.0.0 Stable
Dominant language
C#
Stars
2
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenieClient/Genie5

All issues in GenieClient/Genie5

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.