Skip to content

VM_ACTOR_REPLACE_TILE undefined global problem #1971

@guilleCrespo

Description

@guilleCrespo

Describe the bug
VM_ACTOR_REPLACE_TILE cannot find the reference correctly even tho it is listed on the references. While compiling the game, it shows an "undefined global problem". This does not happen in old versions of GB Studio. The problem happened when migrating my game to 4.2.1, but even when restarting the project from zero on 4.2.1 as well, it happened again.

Also, it doesnt happen with all my sprite tilesets. Strangely, some tilesets give out this error and some of them don't, and I couldn't find any discernible reason for it: not naming convention, not sprite size, tile number, etc.

To Reproduce
Steps to reproduce the behavior:

  1. Create a GBVM event
  2. Use the VM_ACTOR_REPLACE_TILE inside the GBVM event to replace the tiles of the Player sprite

Expected behavior
VM_ACTOR_REPLACE_TILE should replace the indicated tiles in it's parameters with the reference sprite tileset.

Screenshots

Image Image

With this sprite tileset doesn't compile.

Image Image

But with this other sprite tileset that I picked for the sake of demonstration, it does compile. This happens with some tilesets, and not with others.

Platform:

  • Windows 10
  • App version 4.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions