Skip to content

[Bug]: file_to_map error parsing coinmasters.txt #250

@SalMonella01

Description

@SalMonella01

What's the bug?

TourGuide 2.2.2, on startup, using KoLmafia r28567, produces several error messages like these:

- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
-- is out of range, returning 0
- is out of range, returning 0
--- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0
- is out of range, returning 0

These error messages appear to be benign. They come from relay/relay_TourGuide.ash trying to parse coinmasters.txt in initialiseItemIngredients():

string [string,string,int,string] coinmasters_map;
file_to_map("data/coinmasters.txt", coinmasters_map);

The coinmasters_map structure appears to be incompatible with the coinmasters.txt file as currently distributed with KoLmafia.

Account State

Aftercore

In-Game Path & Class

Turtle Tamer in Unrestricted

TourGuide Commit

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions