PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Themaster on 06 October, 2004, 16:48:10

Title: need to ask
Post by: Themaster on 06 October, 2004, 16:48:10
if i wont to make my script compiled how can i do it...i just wonder how to do i can't fine how to do it ...

and im happy off all the help i get on my script it work great now...

thx too you all
Title:
Post by: bastya_elvtars on 06 October, 2004, 17:11:07
http://www.plop.nl/lua_tools/luac_4.0.zip

use this
Title:
Post by: Themaster on 06 October, 2004, 17:12:31
how do i use it???
Title:
Post by: bastya_elvtars on 06 October, 2004, 17:26:48
start a commandline and run this

it has a help screen
Title:
Post by: Themaster on 06 October, 2004, 17:29:27
i have trued but it just pop up af window not more
Title:
Post by: bastya_elvtars on 06 October, 2004, 17:34:27
what  if you ran a cmd before? there u will have a static console

or assign a shortcut to it and set its properties

u have never run dos programs?
Title:
Post by: Psycho_Chihuahua on 06 October, 2004, 17:36:48
usage luac [options] [filename]

Available Options are:

-   process stdin
-l   list
-o file   output file (default is luac.out)
-p   parse only
-s   strip debug information
-t   test code integrity
-v   show version information



use through cmd not through windows
Title:
Post by: Themaster on 06 October, 2004, 17:38:22
i can try to do it....just a little bit i have work with dos
Title:
Post by: Themaster on 06 October, 2004, 17:39:44
ok....i will try it
Title:
Post by: bastya_elvtars on 06 October, 2004, 17:48:11
QuoteOriginally posted by Psycho_Chihuahua
usage luac [options] [filename]

Available Options are:

-   process stdin
-l   list
-o file   output file (default is luac.out)
-p   parse only
-s   strip debug information
-t   test code integrity
-v   show version information



use through cmd not through windows

he has 2 learn using commandline imho ;)
Title:
Post by: Themaster on 06 October, 2004, 17:51:34
yes me 2
Title:
Post by: Themaster on 06 October, 2004, 18:04:32
hmmm i can't get it work :s...and if i get it work do i uncompiled agian
Title:
Post by: Herodes on 06 October, 2004, 18:28:42
1st question :  Why compile ?

QuoteOriginally posted by Themaster
hmmm i can't get it work :s...and if i get it work do i uncompiled agian
2nd question : Why compile if you want to uncompile afterwards ?
Title:
Post by: Themaster on 06 October, 2004, 18:34:05
i sad if i wont to how can i do it.. i did not say i want i will just see if i can do it
Title:
Post by: Herodes on 06 October, 2004, 19:03:08
I have never even try but I suppose u navigate to the dir where luac.exe is and then u do a

luac -o compiledfilename.lua filename.lua

and it should present a ' copmiledfilename.lua ' in the same dir unless u tell it otherwise ...
Title:
Post by: Themaster on 06 October, 2004, 22:07:24
ok...i have try that now and i can't get it work wright
Title:
Post by: Themaster on 07 October, 2004, 17:55:13
now i got it work...how can i get it not compiled if i only have compiled ??
Title:
Post by: Herodes on 08 October, 2004, 00:11:41
Presently there is no way to decompile a compiled lua script and keep the scripts intergrity at the same time ..

so a short answer is : It is impossible ...