Results 1 to 17 of 17

Thread: Files Luac ??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Files Luac ??

    How to edit files luac :hmmm:...I would like to transform files slow_mo.luac ....without mute sound

    (sorry for my english)
    Last edited by Daro69; March 01, 2009 at 11:36 AM.

  2. #2
    DeadlyBlowfish's Avatar Tiro
    Join Date
    Feb 2009
    Location
    South East, United Kingdom
    Posts
    218

    Default Re: Files Luac ??

    bump, this is impotant to factions unlocking.
    IMPORTANT:
    If you wish to use, modify, build on or do just about anything to or with any of my mods, feel free to do whatever you want. All I ask is to have my name in the credits somewhere :-)

  3. #3

    Default Re: Files Luac ??

    They're text files, they're easy to edit. They're just scripts. The problem is that the scripts are calling ETW's custom API, so unless CA documents their API or some clever guy reverse engineers it from existing scripts and the game executable, we can only stumble around in the dark. We can easily remove existing scripting though.

  4. #4
    DeadlyBlowfish's Avatar Tiro
    Join Date
    Feb 2009
    Location
    South East, United Kingdom
    Posts
    218

    Default Re: Files Luac ??

    Indeed.

    I have a slight suspicion that one or two of the the luac files for the UI (ui\frontend ui\common) are currently what is preventing us from selecting these factions (filtering in the selectable factions)
    IMPORTANT:
    If you wish to use, modify, build on or do just about anything to or with any of my mods, feel free to do whatever you want. All I ask is to have my name in the credits somewhere :-)

  5. #5

    Default Re: Files Luac ??

    Luac is something done to a Lua file, which is the language used to make Empire: Total War. Sorry for being vague but what the something I'm not really sure. Best bet is to try and find a program that can read and edit lua files and try from there, it shouldn't be to hard to find one as STALKER is built on Lua and I believe Company of Heroes is as well, both have a strong modding community. http://www.lua.org/download.html is the best place to start I think.

  6. #6

    Default Re: Files Luac ??

    The c suffix probably indicates a compiled script which can be loaded and run faster by the script engine. I'm not familiar with Lua, but perhaps there is a decompiler.

  7. #7
    Decanus
    Join Date
    Mar 2009
    Location
    Baguette ?
    Posts
    512

    Default Re: Files Luac ??

    Maybe...

    http://luadec51.luaforge.net/

    I'm trying, i'll tell you.

    -edit- damn, for using it you need to compile it first. So i try to use GCC BUT NOW TO INSTALL GCC YOU NEED TO COMPILE IT. WITH WHAT TOOL GODAMN IT ? :p
    Last edited by L'Ost; April 07, 2009 at 01:18 PM.

  8. #8

    Default Re: Files Luac ??

    Champers is close, did a little digging on the internet and found this. http://www.lua.org/manual/5.1/luac.html I'll do a little more digging tonight and tomorrow, finish unpacking the files and see if I can jump in and help figure this out.

  9. #9
    JohnHamm's Avatar Civis
    Join Date
    Mar 2009
    Location
    Oklahoma
    Posts
    136

    Default Re: Files Luac ??

    Quote Originally Posted by Cougar109 View Post
    Champers is close, did a little digging on the internet and found this. http://www.lua.org/manual/5.1/luac.html I'll do a little more digging tonight and tomorrow, finish unpacking the files and see if I can jump in and help figure this out.
    Yeah I looked this up as well and found the same thing, not very user friendly
    John W. Hamm

    If you like what I post +REP
    and I'll do the same for you!!

  10. #10
    Tom Servo's Avatar Semisalis
    Join Date
    Nov 2006
    Location
    Cyprus
    Posts
    418

    Default Re: Files Luac ??

    The game wasnt made in LUA its just a scripting language used for game settings and AI and other things like that. I dont have previous experience with LUAC but from that website it seems like a compiled version of LUA, and similar to C++ compiled source code it cant be edited. The only way is to get the original LUA which can easily be edited in notepad and compile it into LUAC.

  11. #11
    Ketzerfreund's Avatar Domesticus
    Join Date
    Nov 2006
    Location
    Berlin, Germany
    Posts
    2,233

    Default Re: Files Luac ??

    I can confirm that the *.luac files are indeed files of LUA 5.1. I had tried luadec on one of them, but, while it did identify it as a LUA file, it complained about the version, because luadec is aimed at 5.0.2.

    Unfortunately, luac.exe complains about a "bad header in precompiled chunk" when trying the '-l' parameter (used, according to the docs, to "produce a listing of the compiled bytecode for Lua's virtual machine").


    Still, I can heartly recommend everyone who's interested in scripting to download and fiddle with LUA to get acquainted to it.
    Last edited by Ketzerfreund; March 06, 2009 at 07:27 AM.
    "Oh, to be truly happy! To be an imbecile." - Wobbly Headed Bob

  12. #12

    Default Re: Files Luac ??

    I'm totally new to scripting. Where are the .luac files located?

  13. #13

    Default Re: Files Luac ??

    I compiled it (Visual C++ Express is a free download) and played around but didn't finish. It's going to take some more customization of the luadec to get it to work. For one thing, the ETW luac files use floats instead of doubles as the numeric type, so that was different than the default luadec was compiled for. I changed that and it got past "bad header in precompiled chunk" but crashed later on. I may look more at it later.

  14. #14
    Decanus
    Join Date
    Mar 2009
    Location
    Baguette ?
    Posts
    512

    Default Re: Files Luac ??

    I'm too much a noob (now err... 5 years without C++). I used to have Dev++ instead of the GCC only compiler. :p

    Anyway, now I isntalled it, I can't compile luadec. Maybe I'm dumb or something, or too noob (must be all 3 :p). Got strange compilation errors.

  15. #15

    Default Re: Files Luac ??

    You need to get the lua source (www.lua.org) as well and set it up as a second project which the luadev project depends on (right click on the project in solution explorer and hit 'project dependencies'). That will take care of the linker errors.

  16. #16

    Default Re: Files Luac ??

    I got a bit further than i did... i opened an empty project... but now it's telling me some files don't exist... grr.
    Last edited by Cursisanafou; April 07, 2009 at 07:34 PM.

  17. #17

    Default Re: Files Luac ??

    The luac files have alot of nice stuff in them, well as far as I can tell from what I have been able to pull apart by hand.

    Alot of the stuff deals with UI and button clicks, which we should be able to make new buttons and tie abilities to them

    I doubt Ca will provide us with the tools and orignal source, unlike with other things they have promised, alot of the luac files control the actual menus and such.

    This would be a big boon if we could get this stuff un compiled and then compiled after editing.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

Posting Permissions

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