Page MenuHome

Game Engine Publishing | Assets paths listing upgrade
AbandonedPublic

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

Details

Reviewers
Mitchell Stokes (moguri)
Group Reviewers
Game Engine
Summary

This revision introduces a new method of importing assets to be included into the game package. By adding the constructor "bpy_extras.io_utils.ImportHelper" to the "class PublishAddAssetPath(bpy.types.Operator)" we benefit of a custom file importer that can be modified to suite our needs. This upgrade let's us import a list of assets files all at once instead of adding a field and setting the path manually.

Diff Detail

Event Timeline

Oren Titane (Genome36) retitled this revision from to Game Engine Publishing | Assets paths listing upgrade.Aug 7 2014, 8:47 PM
Oren Titane (Genome36) updated this object.
Oren Titane (Genome36) updated this revision to Diff 2373.
Mitchell Stokes (moguri) requested changes to this revision.

In general, the execute function could be cleaned up quite a bit:

def execute(self, context):
    for file in self.files:
        asset = context.scene.ge_publish_settings.asset_paths.add()
        path = os.path.join(self.directory, file.name)

        if context.user_preferences.filepaths.use_relative_paths:
            asset.name = bpy.path.relpath(path)
        else:
            asset.name = bpy.path.abspath(path)

        self.report({'INFO'}, "Asset path: %s" % asset.name)
game_engine_publishing.py
445

This could be outside of the if, and just display asset.name.

This revision now requires changes to proceed.Aug 15 2014, 6:00 AM
Oren Titane (Genome36) set the repository for this revision to rBA Blender Add-ons.Aug 9 2015, 9:26 PM
Oren Titane (Genome36) updated this revision to Diff 4838.

Simplified source relpath / abspath.

Closing this due to the removal of the game engine. Maybe submit it to UpBGE?

UPBGE died when its merge was rejected from Blender fundation ...
It's time to move on.

Looking at the UpBGE github page, last commits were 7 days ago. It appears to be a working fork of Blender 2.7.

There was 3 developers. Panzergame, youle and me. Panzergame and me abandoned it some time ago. Youle maintains a branch with eevee for its own purpose. The main branch was updated seven days ago to generate a stable build but there have been no developments for months.

upbge is not dead - youle just updated / rebased - also the branch ge_23a_youle removed scenegraph refactor (it broke libload) and openColor(crashes/ instability) and added 'patterns' to GLSL nodes (cycles nodes that work in bge)

the branch ge_23a_youle_render attachments is stable and ready for SSR.

I am busy for 5 more weeks - should resume work then.

<@&438645847778000897> Blender Talk - Invite > https://discord.gg/blender <

youle is usually here with the bge users in the bge chatroom here.

there is also a upbge dev server
https://discord.gg/v488TWs

Well, it seems I was wrong. Sorry for the extra noise and a lot of encouragement to continue the project.

it's slow going anyway - I won't have time for 4 weeks or so to code,

when I do it will likely be adding templates to GLSL section.

Thank you for all your work @Jorge Bernal (lordloki) !!

we miss you :D