View Full Version : MCE_1024x768 - Where is the link to mce.lua?
NeoMorph
August 3rd, 2007, 03:11 PM
Does anyone know where the link to mce.lua is in this ccf file... I've spent ages trying to find it and can't...
I thought that the lua file was always the same name as the ccf name.
It's cases like this that SCREAM out for a search function!
theguywiththefunnyhair
August 4th, 2007, 06:01 AM
Hi NeoMorph,
Start-up Scripts
When a NetRemote Client loads a CCF file, it checks in the same directory for a file with the same name as the CCF file, but with the extension .lua rather than .ccf. If it finds such a file it compiles and runs it. Create or edit the Lua file associated with a CCF by right-clicking on the System node and taking Edit Lua Script File.
This script can provide start-up processing including installing Lua functions and NR Variables which are then available for use by Actions in the CCF.
Rob H
August 4th, 2007, 06:35 AM
Further to that, NR specifically strips off any suffix that looks as though it describes the resolution so that you can use the same .lua file for a range of CCFs at different resolutions.
NeoMorph
August 4th, 2007, 06:57 AM
I had read about the lua being the same name as the ccf in the docs and thought it should have opened mce_1024x768.lua and not mce.lua. That's what was confusing me about it. It assumed that something in the ccf specified a different lua and spent a good hour or so going through each line of the ccf looking for mce.lua... DOH!
When a NetRemote Client loads a CCF file, it checks in the same directory for a file with the same name as the CCF file...
Obviously looking at it now anything after an underscore is ignored. That little quirk should be added to the documention.
It actually is pretty useful if it's a bug because you can specify a single lua file for several ccf's. Most likely though it's a feature that never got added to the documentation.
Thanks for the nudge though Guywiththefunnyhair.
Edit: DOH! Rob posted before I had entered mine heh....
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.