Comments (6)
Can indeed reproduce.
Strangely only crashes on Windows, works fine on Linux.
from principia.
from principia.
Yes, obviously.
from principia.
seems like the Robot Manager never receives ENTITY_EVENT_REMOVE
, even though it's subscribed to it
literally have no idea why this doesn't work, since Lua Script relies on the same event and it does work there... (even if it's actually not handled properly)
from principia.
seems like subscriptions get reset??? between initialization and actual absorb.
calling subscribe every frame (hack) fixes the issue....??
from principia.
Lines 839 to 845 in 87b00fb
... interesting...
seems like this is a side effect of the default setup
implementation, which clears all listeners and subscriptions
(The robot manager subscribes to the ENTITY_EVENT_REMOVE
event in the init
"stage", which gets called before setup
)
Commenting out the following lines in the setup
implementation "fixes" the issue:
// this->listeners.clear();
// this->subscriptions.clear();
But I'm pretty sure this has some unintended side effects...
By the way, saving and reloading the state before the robot is absorbed causes the game to not crash, since setup
is not called if the level is reloaded from a state buffer:
Lines 560 to 578 in 87b00fb
from principia.
Related Issues (20)
- Controller support
- Player-controlled object tracking
- Shadows disappear when the shadow's object is out of the screen HOT 1
- Opening level in sandbox cuts off last byte of file HOT 1
- Switching to CalVer
- WASM port using Emscripten
- TODO issue for 2024.02.29 HOT 5
- Holes in terrain HOT 2
- "Disable third layer" flag does not affect the "Builder" tool in Adventure mode
- Joint strength problems in Connection Edit and Multi-Select
- Glitchy Jittering Scrolling on Levels
- There is no way to know the "Alpha" value of a "Pixel" object after switching to GTK 3. HOT 1
- Crash when trying to destroy a bomb from the "Bomb launcher" if the robot holding it is dead.
- New dialog for the pixel on GTK UI backend HOT 1
- Runtime setting to change main community site domain HOT 2
- Make OpenGLES available on non-Android
- GCC 14 breaks building Principia
- Longer long description for F-Droid
- crash on Android when loading prevoius levels
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from principia.