Jump to content

Home

Edit EMI's Lua-Scripts


LargoLaGrande

Recommended Posts

Posted

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? :raise:

 

Any ideas?

Posted

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.

Posted
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 :-)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...