Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Realy nice Sokoban-style game.

I got a crash on lvl 10, but luckily there's the skip option, so I could just skip those after refresh.
Here's the stack:

error[B0003]: Could not insert a bundle (of type `quark_on_ice::game::player::Player`) for entity 391v215 because it doesn't exist in this World.
Stack:
Error
    at imports.wbg.__wbg_new_abda76e883ba8a5f (https://html-classic.itch.zone/html/9271319-880510/bevy_game.js:401:21)
    at console_error_panic_hook::hook::hee645c0f690b40b8 (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[13058]:0x112878f)
    at core::ops::function::Fn::call::ha6c123f899f98a48 (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[64125]:0x16fad69)
    at std::panicking::rust_panic_with_hook::hbf46ef0245cc9589 (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[22697]:0x14644d0)
    at std::panicking::begin_panic_handler::{{closure}}::hc07db454214d2c87 (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[25881]:0x15001da)
    at std::sys_common::backtrace::__rust_end_short_backtrace::hf9e2f055fb5ef672 (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[63424]:0x16f94ef)
    at rust_begin_unwind (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[33260]:0x15faf49)
    at core::panicking::panic_fmt::h14c85a61aa3d538e (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[37423]:0x16510a3)
    at core::ops::function::FnOnce::call_once::h30e41ce0b7f74097 (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[18342]:0x13457bc)
    at bevy_ecs::system::commands::_::<impl bevy_ecs::system::system_param::systemparam="" for="" bevy_ecs::system::commands::commands="">::apply::h5c1ae8882de07268 (https://html-classic.itch.zone/html/9271319-880510/bevy_game_bg.wasm:wasm-function[25495]:0x14ef24c)</impl>

Thanks for your feedback! I will try to fix this issue in post jam version

(+1)

A bit more context - it happened when I finished the lvl or clicked next.

Oh! I figured it out today, and I will upload the new version after the jam which will fix this bug.

This issue will only occur when you click the next level button and click a duck simultaneously, and the entity will be prematurely despawned.  Another system relies on this entity will try to insert a bundle to an invalid entity, which will cause a crash. So I just have to make sure that the two systems are executed in the right order to fix the bug.

Thanks a lot for your valuable feedback!