How to edit files luac :hmmm:...I would like to transform files slow_mo.luac ....without mute sound
(sorry for my english)
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.
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 :-)
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.![]()
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 :-)
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.
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.
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.
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.
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.
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
I'm totally new to scripting. Where are the .luac files located?
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.
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.
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.
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.
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.