Metastruct/metastruct.net

Automating referenced addons

Earu opened this issue · 1 comments

Earu commented

Here's the idea, we make the server post the add-ons inside https://gitlab.com/metastruct/srvaddons/blob/master/metastruct_specific/lua/autorun/automount_addons.lua upon server restart to the website API, so its always updated. For the description of these we could maybe just get the description from the related workshop page (scrapping?).

We could do the same for caddons (https://gitlab.com/metastruct/srvaddons/blob/master/ClientsideAddons/lua/autorun/sh_caddons.lua) supposing that the URL field becomes optional and we wouldn't have to do scrapping this time because these already have a description.

Furthermore since currently add-ons on the website do not have a way to differentiate each others I propose the following solution:

Have a string that for workshop add-ons will be the workshop id and for external add-ons, just a arbitrary string (a name whatsoever). This allows us to update existing add-ons instead of adding new ones every time we are posting to the API.

Earu commented

@Techbot121 maybe we could that now with metaconcord ? So we have a list of proper addons that the server have for players?