View Full Version : Lua 5.1 Compatibility
Centauri Soldier
08-06-2009, 01:51 PM
I was wondering if anyone would mind giving me a rundown on how to include the lua 5.1 compat in a project. I have read the documentation but am having no luck properly implementing the files. I'm not entirely sure how to reference them or what to do with them.
Imagine Programming
08-06-2009, 03:07 PM
I was wondering if anyone would mind giving me a rundown on how to include the lua 5.1 compat in a project. I have read the documentation but am having no luck properly implementing the files. I'm not entirely sure how to reference them or what to do with them.
Does the Lua 5.1 compat system work in Vista? There were problems with 5.1 compat in vista or am I wrong here? (could be) :p
Centauri Soldier
08-06-2009, 03:52 PM
Of that I am not sure. I'm still at loss when attempting to implement it in XP Pro (x64).
ShadowUK
08-06-2009, 04:10 PM
-- Load compat for Lua 5.1 package proposal compatibility
require ("compat-5.1.lua");
package.cpath = _SourceFolder.."\\Data\\Scripts\\?.dll;"
Source: http://www.indigorose.com/forums/showthread.php?t=19965
Imagine is right, It doesn't work in Vista. Causing frequent or instant crashes.
Centauri Soldier
08-06-2009, 04:24 PM
Does the dll have to have a name instead of a question mark. The reason I ask is that I'm using a dll that requires 5.1 and I'm wondering if I need to list it in there somewhere.
Dermot
08-06-2009, 05:14 PM
Forget it. It will not work on Vista.
Dermot
08-06-2009, 05:16 PM
You load it like this, but like I said, don't even bother.
require ("compat-5.1.lua");
package.cpath = _SourceFolder.."\\AutoPlay\\Scripts\\?.dll;"
Just put the dll and the compatlua file in the Scripts folder.
Imagine Programming
08-06-2009, 05:44 PM
Yes,
package.cpath = _SourceFolder.."\\AutoPlay\\Scripts\\?.dll;"
Basicly loads all dynamic link libs in that folder doesn't it?
Centauri Soldier
08-06-2009, 07:26 PM
Cool! Thanks guys.
Imagine Programming
08-07-2009, 04:09 AM
Forget it. It will not work on Vista.
Will it work on Win7 ? I think we should wait for IR to include Lua 5.1 Centauri :p
ShadowUK
08-07-2009, 05:00 AM
Will it work on Win7 ? I think we should wait for IR to include Lua 5.1 Centauri :p
Windows 7 = Windows Vista.
You should know that.
Imagine Programming
08-07-2009, 06:15 PM
Windows 7 = Windows Vista.
You should know that.
Windows 7 is also improved alot, It's actually not windows vista completely:p So things could be diffirent, I'm not just going to assume that everything that doesn't work on Vista, doesn't work on Win7 either.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.