Comments (8)
Comment the first line and the message changes from 4 to 3 when the bomb explodes.
Keeping it as-is causes the number to stay at 4, accessing broken references causes a crash on android and on windows get_position returns 0
from principia.
(maybe title needs to be updated)
from principia.
Discovered this accidentaly in this level: https://principia-web.se/level/676
from principia.
Another more straight forward example:
local ref
function init()
ref = world:get_entity_by_id(2)
end
function step(count)
if count > 200 then
ref:highlight()
end
end
After the bomb explodes on windows place where it was before the explosion is highlighted, and on android this causes a lua error and not a crash... wtf
from principia.
local ref
function init()
ref = world:get_entity_by_id(2)
end
function step(count)
if count == 3 then
game:message(ref:get_name())
end
if count == 240 then
game:message(ref:get_name())
end
end
This on frame 3 prints "Bomb" and on frame 240 (after explosion) "Toggle axis rotation"?????
from principia.
calling :set_color()
on ref crashes on windows
from principia.
After looking at the escript source I think this is actually use-after-free? Game tries to clean up objects from the stack and globals but fails in this case???
from principia.
(way overdue) correction: any form of disowning triggers this too, for example calling absorb
from principia.
Related Issues (20)
- Add JavaScript scripting support HOT 12
- Haiku OS port TODO
- Unable to open levels saved in older versions in the sandbox
- 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
- Robot Manager targetting an absorbed robot crashes the game on Windows with certain inputs HOT 6
- 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
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.