Player couldn't be found for export Game in *.app #52041

Closed
opened 2017-07-13 02:34:43 +02:00 by Xavier Lamouche · 16 comments

iMac 21" 2011, MacOs Sierra (10.12.5), AMD Radeon HD 6750M 512 Mo

Blender 2.78 (2.78 2017-02-27)

I try to export ma Blender Scene as a Game with the Exporte but it can't find the Player. So the export was abort.

  1. Juste open the new scene (with the default scene), in the preference user select the add-on : Game Engine: Save As Game Engine Runtime.
  2. Save the User Settings.
  3. Go to Export and choose : Save as Game Engine Runtime.
  4. Choose the folder where you want to save your game.
  5. Push the "Save As Game Engine Runtime" button.
  6. It doesn't work !
iMac 21" 2011, MacOs Sierra (10.12.5), AMD Radeon HD 6750M 512 Mo Blender 2.78 (2.78 2017-02-27) I try to export ma Blender Scene as a Game with the Exporte but it can't find the Player. So the export was abort. 1) Juste open the new scene (with the default scene), in the preference user select the add-on : Game Engine: Save As Game Engine Runtime. 2) Save the User Settings. 3) Go to Export and choose : Save as Game Engine Runtime. 4) Choose the folder where you want to save your game. 5) Push the "Save As Game Engine Runtime" button. 6) It doesn't work !

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @XavierLamouche

Added subscriber: @XavierLamouche

Added subscriber: @ArtoKitula

Added subscriber: @ArtoKitula

MacOS Sierra has system called translocator. This messes up bpy.app.binary_path.

You need to move (using Finder) blender.app and blenderplayer.app directly to the /Applications folder to remove quarantine flag.

If you want to run Blender from another location, you need to go to terminal and:

xattr -d com.apple.quarantine /Your/Blender/Dir/blender.app

Also do it for blenderplayer.app too

Another workaround is to start blender from terminal commandline.

(edit: add xattr command help)

MacOS Sierra has system called translocator. This messes up bpy.app.binary_path. You need to move (using Finder) blender.app and blenderplayer.app directly to the /Applications folder to remove quarantine flag. If you want to run Blender from another location, you need to go to terminal and: xattr -d com.apple.quarantine /Your/Blender/Dir/blender.app Also do it for blenderplayer.app too Another workaround is to start blender from terminal commandline. (edit: add xattr command help)

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Arto Kitula self-assigned this 2017-07-13 07:42:52 +02:00

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Arto Kitula was unassigned by Brecht Van Lommel 2017-07-13 08:41:15 +02:00

Surely this is still a bug and something we can fix quite easily?

Surely this is still a bug and something we can fix quite easily?

Gatekeeper translocation copies .app to folder under /private/vars/folders. That is, quarantine location. We don't know what is the location where blender was copied from.

This breaks also WM_OT_blenderplayer_start (on wm.py) as the blenderplayer.app isn't quarantized.

Either we add blenderplayer location option to preferences and modify addons to use that, or make installer that does xattr -d.
(custom install location)

(edit, fixing my englisssh =) )

Addenum: My suggestion is to install blender on /Applications folder. (not subfolder, gatekeeper rules apply)

Gatekeeper translocation copies .app to folder under /private/vars/folders. That is, quarantine location. We don't know what is the location where blender was copied from. This breaks also WM_OT_blenderplayer_start (on wm.py) as the blenderplayer.app isn't quarantized. Either we add blenderplayer location option to preferences and modify addons to use that, or make installer that does xattr -d. (custom install location) (edit, fixing my englisssh =) ) Addenum: My suggestion is to install blender on /Applications folder. (not subfolder, gatekeeper rules apply)

Ok, the fix might be so simple, but some possible solutions:

  • Put blenderplayer in blender.app/Contents/Resources/
  • Distribute blender as a signed .dmg
Ok, the fix might be so simple, but some possible solutions: * Put blenderplayer in blender.app/Contents/Resources/ * Distribute blender as a signed .dmg

+1 for signed .dmg

+1 for signed .dmg

As user I would like to keep simple way, so I'm ok with the .dmg solution.

As user I would like to keep simple way, so I'm ok with the .dmg solution.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

so this is solved for future releases (and could be closed)?

so this is solved for future releases (and could be closed)?

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Arto Kitula self-assigned this 2018-01-26 15:05:14 +01:00

@lichtwerk , true. Closing.

@lichtwerk , true. Closing.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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-addons#52041
No description provided.