Disabling a sensor or actuator in the logic bricks breaks the python controller that calls it #45432

Closed
opened 2015-07-14 21:13:56 +02:00 by Sam Brubaker · 5 comments

Version: 2.75a (Linux 64-bit)

How to reproduce:

  • Open the attached .blend LogicBrickBug.blend
  • Inspect the script and play the moving spinning cube game.
  • Start the game again with one or more sensors/actuators disabled (unchecked).
  • Note that if the python script calls out a single deactivated logic brick, the rest of the script fails as though it didn't exist.

Expected Behaviour:

A disabled brick shouldn't do anything, but it should still exist for the python controller to call it without raising an error. It is useful for the user to selectively disable sensors and actuators by unchecking them, but if this breaks the whole script, it's not very useful at all.

Version: 2.75a (Linux 64-bit) **How to reproduce:** - Open the attached .blend [LogicBrickBug.blend](https://archive.blender.org/developer/F206957/LogicBrickBug.blend) - Inspect the script and play the moving spinning cube game. - Start the game again with one or more sensors/actuators disabled (unchecked). - Note that if the python script calls out a single deactivated logic brick, the rest of the script fails as though it didn't exist. **Expected Behaviour:** A disabled brick shouldn't do anything, but it should still exist for the python controller to call it without raising an error. It is useful for the user to selectively disable sensors and actuators by unchecking them, but if this breaks the whole script, it's not very useful at all.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @rocketman

Added subscriber: @rocketman
Member

Added subscriber: @JorgeBernalMartinez

Added subscriber: @JorgeBernalMartinez
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Jorge Bernal self-assigned this 2015-07-15 01:06:16 +02:00
Member

If you disable a logic brick, this one is not even created and therefore it can not be called from a script. This is a known limitation with deactivation logic system but it is not a bug. Sorry for the inconvenience.

If you disable a logic brick, this one is not even created and therefore it can not be called from a script. This is a known limitation with deactivation logic system but it is not a bug. Sorry for the inconvenience.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#45432
No description provided.