[Bug]: Missing assets for default tables

Open
#6,011 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
desktop, game-dev

Research direction

Reproduce with an empty asset cache, then Help > Add Default Tables, and note that table images show missing-asset placeholders until the campaign is saved and reloaded. Trace how default tables register their table images versus other entry images, and how those assets are resolved when the cache is empty. Done when default table images appear immediately after Add Default Tables without a save/reload cycle.

Written by the indexing model from the issue text.

Description

bug
Describe the Bug

When the asset cache is empty, using Help > Add Default Tables… results in Red X's of death on each of the table's Table Image. The other images for the table entries are present, aside from the one that is the same as the Table Image.

Saving, closing MT, and reloading fixes the issue.

To Reproduce
  1. Open MapTool
  2. Clear the asset cache
  3. Close MapTool
  4. Open MapTool
  5. Use Help > Add Default Tables…
    • Look at the Tables window and notice a pane full of Red X's
  6. Save the campaign
  7. Close MapTool
  8. Open MapTool
  9. Load the campaign from (7)
    • Notice the Tables window now the images available
Expected Behaviour

Default table images should be loaded even without the asset cache being populated.

Screenshots
Image
MapTool Info

1.18.6

Desktop

Linux Mint 22.3

Additional Context

No response

Dominant language
Java
Stars
927
Forks
286
Avg merge
3d 17h
Merged PRs (30d)
94

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 RPTools/maptool

All issues in RPTools/maptool

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.