Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rooms.merge causes error: Attempt to cache an already cached tilemap #501

Closed
winterstein opened this issue Feb 23, 2024 · 0 comments
Closed
Labels
type:bug Something isn't working

Comments

@winterstein
Copy link
Contributor

Describe the bug
Context: Migrating a project from v3 to v4.
Merging a room let myroom = rooms.merge(roomName); causes the error:
Uncaught Error: [ct.tiles] Attempt to cache an already cached tilemap.

To Reproduce

  1. Use rooms.merge()
    Bug happens on the first call.
    Game crashes. Error message seen in debug console.

    Uncaught Error: [ct.tiles] Attempt to cache an already cached tilemap.
    at Tilemap.cache (ct.js:1334:15)
    at Object.merge (ct.js:3847:12)
    at _Room.onCreate (ct.js:8799:23)

Expected behavior
rooms.merge creates a new merged room.

System information report
Ct.js v4.0.1 😽 (packaged)

NW.JS v0.72.0
Chromium v109.0.5414.87
Node.js v19.3.0
Pixi.js v7.3.2

WebGPU UNAVAILABLE
WebGL available
WebGL vendor Google Inc. (Intel)
WebGL renderer ANGLE (Intel, Vulkan 1.3.255 (Intel(R) Xe Graphics (TGL GT2) (0x00009A49)), Intel open-source Mesa driver)
OS linux x64 // Linux 6.5.0-18-generic

@winterstein winterstein added the type:bug Something isn't working label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant