Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable asset store for Godot 3.0 #12778

Merged
merged 1 commit into from
Nov 9, 2017
Merged

Enable asset store for Godot 3.0 #12778

merged 1 commit into from
Nov 9, 2017

Conversation

Chaosus
Copy link
Member

@Chaosus Chaosus commented Nov 9, 2017

I enabled it and allow loads only 3.0 assets from site - This is simple fix in http request line, I wonder why nobody touches this...

fix for #7147

image

@Chaosus
Copy link
Member Author

Chaosus commented Nov 9, 2017

And why its printed ERROR in the description of each asset - its a subject of another issue, if I remove filter it loads 2.1 with that bug for each assets, my PR does nothing with it - it just enabled asset store and make it use 3.0 filter. Installation and searching worked as expected..

@@ -867,6 +867,8 @@ void EditorAssetLibrary::_search(int p_page) {
}
args += String() + "sort=" + sort_key[sort->get_selected()];

args += "&godot_version=3.0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we grab version number from somewhere, instead of hard code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looking for possible solution...

repository->add_item("godotengine.org");
repository->set_item_metadata(0, "https://godotengine.org/asset-library/api");
*/
repository->add_item("localhost");
repository->set_item_metadata(/*1*/ 0, "http://127.0.0.1/asset-library/api");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should leave localhost, it is useful when testing the assetlib (also, uncomment the 1 there).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Member Author

@Chaosus Chaosus Nov 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check ? Im done

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you write uncommenting "1" ? Ok..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not be commented out, it should be active, with id 1 instead of 0.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Member Author

@Chaosus Chaosus Nov 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repository->set_item_metadata(0, "https://godotengine.org/asset-library/api");

should also be 1 instead 0 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be:

repository->add_item("godotengine.org");
repository->set_item_metadata(0, "https://godotengine.org/asset-library/api");
repository->add_item("localhost");
repository->set_item_metadata(1, "http://127.0.0.1/asset-library/api");

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah.. ok

@Chaosus
Copy link
Member Author

Chaosus commented Nov 9, 2017

Ok, I squashed these commits into one

repository->add_item("localhost");
repository->set_item_metadata(/*1*/ 0, "http://127.0.0.1/asset-library/api");

/* reserved */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not needed, it doesn't say much and the scope of localhost is quite obvious by itself.

@akien-mga akien-mga merged commit d7add01 into godotengine:master Nov 9, 2017
@Chaosus Chaosus deleted the enableassetstore branch November 9, 2017 15:38
@aaronfranke aaronfranke added this to the 3.0 milestone Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants