FORUMS
Remove All Ads from XDA

[UTILITY] Lua 5.1 tools: compiler, decompiler, snippets & extendable lua.dll with SDK

1,061 posts
Thanks Meter: 877
 
Post Reply Email Thread
23rd February 2009, 07:00 PM |#81  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by NisseDILLIGAF

aha .. of course

But if I have a lua script file and want to compile it to a functioning manila file...
...how do I do that?

use luac, that is shipped with luadec0.4

run "luac -s filename.lua" and you will get a luac.out file, which is a compiled ascii lua file. Convert it to unicode (I prefer the outdated luacconv for this ), and you're ready
 
 
23rd February 2009, 07:01 PM |#82  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by 6Fg8

I removed luaconv because its outdated. You may use the "convert to ANSI" function in m9editor for embedded scripts to accomplish that (export script ANSI converted for standalone scripts).

thank god I have it DL'ed... without it I can't batch process scripts
23rd February 2009, 07:02 PM |#83  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by smotrs

Ok, maybe I missed something somewhere. Whats the 128E8.luac on the end of the file?

It was an embedded script in a mode9 file. m3editor uses this filename format to extract those scripts

Quote:
Originally Posted by smotrs

Also, you typo'd your instruction, minor as I knew what you menat and probably most people using your tools knew what you menat as well. But you say,You obviously meant run luadec not run luadecguess.

Oh, yep
23rd February 2009, 07:11 PM |#84  
NisseDILLIGAF's Avatar
Senior Member
Thanks Meter: 31
 
Donate to Me
More
Quote:
Originally Posted by sztupy

use luac, that is shipped with luadec0.4

run "luac -s filename.lua" and you will get a luac.out file, which is a compiled ascii lua file. Convert it to unicode (I prefer the outdated luacconv for this ), and you're ready

Thanx...

I found an old .zip file from 6Fg8 with luacconv
This worked fine...

Thanx for the help
23rd February 2009, 07:11 PM |#85  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by 12aon

Ok I now have a script that seem fully decompiled to me but when I try to import it into the m9editor (I know, but it's easier for now) it complains about the the invalidness of the lua signature, I attached the file with the changes I made. Is this file compilable or is it not fully decompiled yet, 12

It compiles, but not into the original file, so it needs some tweaking. I'll look at it.
23rd February 2009, 07:52 PM |#86  
bedoig's Avatar
Senior Member
Thanks Meter: 119
 
More
Would someone mind uploading luaconv? I seem to have erased my copy when moving to a new version of m9editor.

sztupy - maybe you could add it to your latest zip? I find it more convenient not to have to use m9editor if I'm working with standalone scripts.

Thanks!
23rd February 2009, 08:21 PM |#87  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by sztupy

It compiles, but not into the original file, so it needs some tweaking. I'll look at it.

Here you go. Took a while, but this will recompile to the original.
Attached Files
File Type: zip 5a19374f_manila_working.zip - [Click for QR Code] (3.7 KB, 1 views)
23rd February 2009, 08:25 PM |#88  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by bedoig

Would someone mind uploading luaconv? I seem to have erased my copy when moving to a new version of m9editor.

sztupy - maybe you could add it to your latest zip? I find it more convenient not to have to use m9editor if I'm working with standalone scripts.

Thanks!

added to the 0.4 zip file. hope 6fg8 doesn't mind it
23rd February 2009, 08:31 PM |#89  
bedoig's Avatar
Senior Member
Thanks Meter: 119
 
More
Quote:
Originally Posted by sztupy

added to the 0.4 zip file. hope 6fg8 doesn't mind it

Thanks! You and 6fg8 are making this too easy
23rd February 2009, 08:39 PM |#90  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by 12aon

EDIT: I attached the file with a couple of my edits in it already

looking at the correctly decompiled file I found some lines like this:
Code:
"\\Windows\\Gecko.lnk\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
I don't think this was made by HTC, so it might be caused by the edits... Can you summarize what did you change and what not?
23rd February 2009, 08:43 PM |#91  
6Fg8's Avatar
Retired Senior Moderator
Flag Vienna
Thanks Meter: 7
 
More
Quote:
Originally Posted by sztupy

I usually use the bundled luac (because it handles Q16.16 numbers), then use your (outdated) luaconv utility to convert it back to unicode. This never failed for me.

Ah now i understand why i failed a few days before; i used the offical lua compiler and got weird results. Ok i'll add it to the m9editor thread again, be cautious though.
Post Reply Subscribe to Thread

Tags
lua, manila, mod, tf3d, touchflo

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes