Corruption of bge modules #40132
Labels
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#40132
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 7 64 bit, Nvidia GeForce GT540M Cuda
Blender Version
Broken: 2.65 up to current: 2.70a
Worked: 2.64a
Short description of error
Modules such as bge.logic (GameLogic), bge.texture (VideoTexture), ... are overwritten by folders with corresponding names 'GameLogic', 'VideoTexture', ... if they are located in the same directory as the opened blend file, which makes these modules unaccessible.
Exact steps for others to reproduce the error
Press 'P' to play the game. Check the System Console to compare the results if the folders are in the same directory as the blend file, and when they are not.
Corruption_of_bge_modules.zip
Changed status to: 'Open'
Added subscriber: @raco
Added subscribers: @ideasman42, @Moguri
bge.logic, etc are actually just aliases to modules such as GameLogic (this was done to keep compatibility with older scripts). Therefore, when you have a GameLogic folder, it overrides the builtin GameLogic module, which bge.logic then references. I don't know if this is really something worth fixing though. Campbell, what are your thoughts?
I would like to add my opinion. It may be not so very important. Probably not very straightforward to have folders named 'GameLogic' or 'VideoTexture' anyway. So since this is just a design issue, I don't think it's worth fixing it either. But then I think the only thing that needs to be done is adding to the API documentation that it should be avoided to have folders in the same directory as the opened blend file with names: 'GameLogic', 'VideoTexture', ... I think this would provide the necessary transparency.
Added subscriber: @mont29
Campbell, here is a patch adding a warning to the docs:
bge_mod_warning.dff
Could you give this a quick review?
I would rather not add notes like this in docs since this can be fixed in the code.
See:
BPyInit_bmesh
how it initializes submodules.This can be a replacement for
setupGamePython
use ofPyRun_SimpleString
I started this task on my soc-2014-bge branch but did not finish it.
Commits so far are 14fceb6, d503f8a and 140a3ac
I left my non working changes has a diff: D615
Added subscriber: @brita
This issue was referenced by
15cd222270
Changed status from 'Open' to: 'Resolved'
Closed by commit
15cd222270
.