LibLoad, startGame and relative paths #25819

Closed
opened 2011-01-26 20:07:49 +01:00 by der On · 14 comments

Category: Conversion

%%%OS: Ubuntu 10.10 65bit
Blender: r34509

Wether I use LibLoad or startGame and am loading blend files that reside in a different directoy then the current blend file, textures with relative paths can't get loaded and even libraries within the loaded blend that have relative paths are not loaded.%%%

**Category**: Conversion %%%OS: Ubuntu 10.10 65bit Blender: r34509 Wether I use LibLoad or startGame and am loading blend files that reside in a different directoy then the current blend file, textures with relative paths can't get loaded and even libraries within the loaded blend that have relative paths are not loaded.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%please provide an example blender file (or in this case a zipped file with the files in their right directory). Assigning to Campbell%%%

%%%please provide an example blender file (or in this case a zipped file with the files in their right directory). Assigning to Campbell%%%

%%%Here is a simple setup that confirms the libload bug. But using the startGame seems fine with me. Also, this bug does not occur when the texture is packed.%%%

%%%Here is a simple setup that confirms the libload bug. But using the startGame seems fine with me. Also, this bug does not occur when the texture is packed.%%%

%%%Here is a simple setup that confirms the libload bug. But using the startGame seems fine with me. Also, this bug does not occur when the texture is packed.%%%

%%%Here is a simple setup that confirms the libload bug. But using the startGame seems fine with me. Also, this bug does not occur when the texture is packed.%%%

%%%Bug Confirmed on Windows 7.%%%

%%%Bug Confirmed on Windows 7.%%%

%%%r35661 should fix this. However, you have to add a "//" in front of relative paths for LibLoad().%%%

%%%r35661 should fix this. However, you have to add a "//" in front of relative paths for LibLoad().%%%

%%%So, I have a patch that will force all relative paths (paths that don't start with "/" or ":") to start with "" (unless the path already started with "*"). However, I think this will force all relative paths to be relative to the blend file and not relative to the present working directory, so I'm not sure about committing the change. Here is the patch: http://www.pasteall.org/33522/diff%%%

%%%So, I have a patch that will force all relative paths (paths that don't start with "/" or "*:") to start with "*" (unless the path already started with "*"). However, I think this will force all relative paths to be relative to the blend file and not relative to the present working directory, so I'm not sure about committing the change. Here is the patch: http://www.pasteall.org/33522/diff%%%

Added subscriber: @lukaszfito

Added subscriber: @lukaszfito

Added subscribers: @brita, @raco

Added subscribers: @brita, @raco

@brita This seems to be fixed. I tested in 2.71.2. Starting the path with '//' solves the problem. I made a proper test file for this. I'm not sure if I could close this so I'll leave that up to you (or someone else). Here's the test file. When starting the game two cubes will be LibLoaded, one with packed textures, one without. After two seconds 'Start Game From File' will activate. In all cases the textures show up as they should: texture_path_working.zip

@brita This seems to be fixed. I tested in 2.71.2. Starting the path with '//' solves the problem. I made a proper test file for this. I'm not sure if I could close this so I'll leave that up to you (or someone else). Here's the test file. When starting the game two cubes will be LibLoaded, one with packed textures, one without. After two seconds 'Start Game From File' will activate. In all cases the textures show up as they should: [texture_path_working.zip](https://archive.blender.org/developer/F99330/texture_path_working.zip)
Member

@raco Thank you very much for your work
so, @Moguri this can be closed? you did commit the patch then?

@raco Thank you very much for your work so, @Moguri this can be closed? you did commit the patch then?
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Added subscriber: @JorgeBernalMartinez

Added subscriber: @JorgeBernalMartinez
Member

Hi all,

I just checked the test blend and it is working in current master blender.

I'm going to close this report now. If any of you find some blend working wrong related to this issue, please feel free to open this task again.

Thank you all of you for the time spent here.

Hi all, I just checked the test blend and it is working in current master blender. I'm going to close this report now. If any of you find some blend working wrong related to this issue, please feel free to open this task again. Thank you all of you for the time spent here.
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
8 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#25819
No description provided.