LargoLaGrande Posted June 5, 2009 Share Posted June 5, 2009 Hi, does anybody know if there is a possibility to edit the Lua scripts in EMI? I can decompile them using EMI Resource Viewer and a Lua Decompiler, or simply using a newer ScummRev Version, where the decompiler is included. The next step would be editing the scripts and put them back into the game to change the original source code. But how do I get the lua-files back into the m4b-packages? Any ideas? Link to comment Share on other sites More sharing options...
LargoLaGrande Posted June 5, 2009 Author Share Posted June 5, 2009 I just found this very nice LAB file Creator/Dumper from bgbennyboy (thanks!): http://lucasforums.com/showthread.php?t=108860 Now I theoretically could load Lua-Files into the m4b package. BUT: To edit the lua scripts I have to decompile them (I use luadump, can be downloaded on LucasHacks). To bring them back into the package, I would have to compile them again... Link to comment Share on other sites More sharing options...
Benny Posted June 7, 2009 Share Posted June 7, 2009 Aye you'd have to try and compile them using the correct version of lua for the compiler. From distant memory I think it was 3 or 4. I doubt it'd compile the decompiled scripts anyway. From what I remember they dont decompile to 'true' lua. There are other Lua decompilers though so they might produce more clean Lua code. The only way is to try I suppose. Link to comment Share on other sites More sharing options...
Serge Posted June 13, 2009 Share Posted June 13, 2009 Aye you'd have to try and compile them using the correct version of lua for the compiler. From distant memory I think it was 3 or 4. I doubt it'd compile the decompiled scripts anyway. From what I remember they dont decompile to 'true' lua. There are other Lua decompilers though so they might produce more clean Lua code. The only way is to try I suppose. I can add to that by saying that (also from distant memory - don't have any of my old SCUMMRev resources around) for Grim, the version was something like lua 3.1 alpha. The decompiler in SCUMMRev 5 (or 3?) was, again AFAIR, written from scratch in Delphi, so not likely to be even remotely correct :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.