Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534

    Grin Lua 5.1 Compatibility

    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.
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by Centauri Soldier View Post
    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)
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    Of that I am not sure. I'm still at loss when attempting to implement it in XP Pro (x64).
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  4. #4
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Code:
    -- 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.

  5. #5
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    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.
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  6. #6
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Forget it. It will not work on Vista.
    Dermot

    I am so out of here

  7. #7
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    You load it like this, but like I said, don't even bother.

    Code:
    require ("compat-5.1.lua");
    package.cpath = _SourceFolder.."\\AutoPlay\\Scripts\\?.dll;"
    Just put the dll and the compatlua file in the Scripts folder.
    Last edited by Dermot; 08-06-2009 at 04:18 PM.
    Dermot

    I am so out of here

  8. #8
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Yes,

    Code:
    package.cpath = _SourceFolder.."\\AutoPlay\\Scripts\\?.dll;"
    Basicly loads all dynamic link libs in that folder doesn't it?
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  9. #9
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    Cool! Thanks guys.
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  10. #10
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by Dermot View Post
    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
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  11. #11
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by Imagine Programming View Post
    Will it work on Win7 ? I think we should wait for IR to include Lua 5.1 Centauri
    Windows 7 = Windows Vista.

    You should know that.

  12. #12
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by ShadowUK View Post
    Windows 7 = Windows Vista.

    You should know that.
    Windows 7 is also improved alot, It's actually not windows vista completely 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.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts