Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Monday, December 21, 2009

Debug notifications and complete Alias list

I've written a small console application that, if present in the plugins directory, will pop up and notify us that there was an error, and what the error contained. Probably useful for developers only and probably not that useful except that it'll save us time looking at the log. I added a function available from Lua to access the debug notifier DebuggerLog(string s);

Expect to find the application in the Dev Center once 0.9.0.0 comes out. Also speaking of the Dev Center I've updated the Lua Specific Functions file so it should be easier to browse, out with 0.9.0.0 as well.

Full List of Aliases

_guc() = GetURLCached()
_gu() = GetURL()
_gur() = GetURLxR()
_gux() = GetURLX()
_guxr() = GetURLXxR()
_sr() = str_replace()
_sp() = str_split()
_sf() = str_find()
_sfl() = str_findlast()
_se() = str_escape()
_su() = str_unescape()
_she() = str_html_encode()
_shd() = str_html_decode()
_sst() = str_strip_tags()
_sgb() = str_get_between()
_sgba() = str_get_between_a()
_st() = str_trim()
_vr() = VideoResource()
_vrx() = VideoResourceX()
_ar() = AudioResource()
_ir() = ImageResource()
_ct() = ConvertTime()
_vf() = VirtualFolder()
_dvf() = DynamicVirtualFolder()
_rx() = ResolveXML()
_srx() = SpecialResolveXML()
_v() = Version()
_l() = Log()
_dl() = DebuggerLog()
_sm() = ShowMsg()

Thursday, December 17, 2009

Thoughts

First up, the next update probably won't come out until after the holidays. I've gotten a request to expand VideoResource() and instead of stupidly trying to cram more xml into the description I'm just going to add a function called VideoResourceX() (which, by the way, I spent several agonizing hours thinking of the name). It'll look like this:

VideoResourceX(string title, string path, string description, string thumbnail, string datetime, long duration, int bitrate, string resolution, string genre, string rating, int sortIndex)

The new function will accept a table containing the data it needs.

VideoResourceX(table data)

I'm also probably going to add a FormatRTMP() function seeing as we do format the rtmp string a lot in our scripts. Keep an eye on the Dev Center for explanations for the new code.

There has been some confusion with the Script Options window, so I'm going to rework that to make it less confusing.

Finally, we're coming up to a 1.0.0.0 release which will be a milestone release. Hopefully it will also represent a feature freeze, where no more features will be added. After the 1.0 release future version will come out a lot more slowly as I'll be mainly focusing on bug fixes and code tweaks. I don't want the plugin getting any bigger and to be honest I feel as if it is very mature in its current state. I'm seeing some amazing stuff coming out and I'm seriously impressed in both the creativity shown by script writers and that I was able to make something so versatile.