3D silently throws error on single layer maps

Open
#187 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
frontend, game-dev

Research direction

Start with BabylonViewer.ts, especially generateGroundLayer at line 165, and trace how single layer maps reach that method during initialization. Reproduce the blank render with a single layer map and inspect the failing access to details; done when the map renders without the reported error.

Written by the indexing model from the issue text.

Description

bug

Causes a blank render without error.

Observed in d-link-test:

Uncaught (in promise) TypeError: Cannot read property 'details' of undefined
    at BabylonViewer.generateGroundLayer (BabylonViewer.ts:165)
    at BabylonViewer.initBabylonInternal (BabylonViewer.ts:98)
    at BabylonViewer.init (BabylonViewer.ts:38)
    at babylon.component.ts:44
Dominant language
TypeScript
Stars
59
Forks
19
Avg merge
32m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 CCDirectLink/crosscode-map-editor

All issues in CCDirectLink/crosscode-map-editor

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.