Page MenuHome

Game Engine Publishing | Lib folder creation bug
ClosedPublic

Authored by Oren Titane (Genome36) on Aug 7 2014, 8:57 PM.

Details

Summary

This revision fixes a bug with the lib folder creation. As Moguri stated in his add-on wiki, when downloading blender packages for different operating systems, you unpack them in the lib folder (assuming the folder was already created) and press the auto add platform button. Only problem is that when auto-downloading the packages from http://download.blender.org/release/ with the add-on, the lib folder is not created automatically for a new user.

Diff Detail

Event Timeline

Oren Titane (Genome36) retitled this revision from to Game Engine Publishing | Lib folder creation bug .
Oren Titane (Genome36) updated this object.

Added comments to code parts.

Oren Titane (Genome36) set the repository for this revision to rBA Blender Add-ons.Aug 9 2015, 9:27 PM

The changes to PublishDownloadPlatforms are good, but I don't like the idea of PublishAutoPlatforms creating a folder. If it is creating a folder, that means there are no platforms to add, which could be a silent error (typo in the lib path causing no platforms to be found). Instead, I would prefer to report to the user that the lib path does not exist and to cancel the operator (return {'CANCELLED'}).

Oren Titane (Genome36) updated this revision to Diff 4851.EditedAug 13 2015, 2:30 AM
Oren Titane (Genome36) edited edge metadata.
Oren Titane (Genome36) removed rBA Blender Add-ons as the repository for this revision.

Changed class "PublishAutoPlatforms" to return an error if the lib folder does not exist.

Looks good. One minor tweak for clarity: the error should be "Could not add platforms, lib folder (%s) does not exist"

For tooltips, we don't use ending periods, but I'm not sure how this applies to error reports. My guess would be to leave them out there too.

Oren Titane (Genome36) retitled this revision from Game Engine Publishing | Lib folder creation bug to Game Engine Publishing | Lib folder creation bug.

Fixed error message.

Mitchell Stokes (moguri) edited edge metadata.
This revision is now accepted and ready to land.Aug 20 2015, 8:08 AM
This revision was automatically updated to reflect the committed changes.

Please update your remaining patches to remove the author line. It causes a trivial conflict, but I cannot seem to get Arcanist to nicely merge it (it just bombs out).