(Source Code Question) - Database connection in Templates Tab Godot 2.1

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Duskitty
:warning: Old Version Published before Godot 3 was released.

In the Source and Stuff does anybody know the whereabouts of where i can change this so if say i wanted to connect to my own database and download templates and such i would be able to set it in the Source Code? and where could i find said file in the source files?

:bust_in_silhouette: Reply From: Akien

It took me a while to understand the question, but I guess you’re asking how to setup your own asset library and connect it to Godot.

To add a new repository, for the time being, you have to edit this file: https://github.com/godotengine/godot/blob/master/tools/editor/asset_library_editor_plugin.cpp#L1323-L1326
In the future it should be possible to add repos without having to compile the engine.

As to setting up your own instance, you need to expose an API that can talk to Godot. There is no official documentation yet as to how to do it, but you can check the code of the official asset library: GitHub - godotengine/godot-asset-library: PHP frontend for Godot Engine's asset library

Thanks ^^ I was curious how i would be able to do this, i’ll be sure to look into it

The_Duskitty | 2016-06-21 00:39