|
SDuke524Join Date: 2008-07-29 Post Count: 6267 |
e - mail.
~Vote For SDuke524 2012~ |
|
bloccoJoin Date: 2008-08-14 Post Count: 29474 |
base 64 |
|
LocalChumJoin Date: 2011-03-04 Post Count: 6906 |
base16 |
|
|
Free Models. Save the script as a model and change it to [NAME].lua and do the same thing? |
|
dmaster7Join Date: 2008-09-16 Post Count: 1536 |
What exactly is Base64? |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
"Free Models. Save the script as a model and change it to [NAME].lua and do the same thing?'
Except that a Plugin is more than just a script, it's a collection of many script and image files. |
|
bloccoJoin Date: 2008-08-14 Post Count: 29474 |
But there's no use for tons of image files. Yet. If and when they add support for resource integration, I predict image file counts will increase. |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
"If and when they add support for resource integration"
What I would suggest as an API:
local res = Plugin:GetResourceString("image / mesh / script / sound")
Where "res" contains a string that can be used like any other asset-id. It does this by creating a new copy of the asset in the asset-cache directory with a name based on a hash of the name/contents of the original. |
|
bloccoJoin Date: 2008-08-14 Post Count: 29474 |
So... perhaps they'd create a new protocol also, except they'd create a hash linked to a cached asset that is your resource? Like rbxres://hashHere |
|
|
EMAN381Join Date: 2007-11-27 Post Count: 4300 |
Just say the script outloud. |
|
|
@Quenty
yesh :3
~Big brother is watching~ |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
@blocco
It would have to be done with some AP{I of the Plugin like I described. They couldn't do something like "plugin://filename.ext", because that way the resource loader would have no idea which plugin is being referred to. The implementation is already there to push an asset into the cache (It used to be used by the things when you used a file-path, rather than an asset-id), so it would likely be trivial to make a function to access that implementation in the Plugin object. |
|
|
@XLEGOX
You're forgetting that all the plug-ins are in one folder.
So you could have
plugres://WeldPlugin/Icon.png
or something like that. |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
That's an ugly solution, both because it makes the code in the plugin dependent on the name of the plugin, and because it makes it so that the "built in" plugins have to be treated differently than the normal ones. |
|