You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be quite simple (programming wise, at least), and we could add tests to make sure that new URLs are never (directly) added to the mod. One big downside is that getAsset could never be called before the JSON file is downloaded, which means we'd have to be very careful with onLoad() code:
functiononLoad()
spawnModel({
-- Error: assets.json has not been downloaded yet.mesh=getAsset("oneMeshyBoi")
})
end
The text was updated successfully, but these errors were encountered:
Based on an idea by @dicewrench, would close #342.
Right now we directly refer to assets by the (steam) CDN URL:
This is all fine and dandy, but if that URL is ever deleted (it happens!), the mod is effectively broken until it's re-published.
What if instead, we published an
assets.json
file:And we referred to stuff indirectly, i.e.
This would be quite simple (programming wise, at least), and we could add tests to make sure that new URLs are never (directly) added to the mod. One big downside is that
getAsset
could never be called before the JSON file is downloaded, which means we'd have to be very careful withonLoad()
code:The text was updated successfully, but these errors were encountered: