ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => Endless Nights' Script Library => Topic started by: Endless Night on October 16, 2010, 05:32:07 PM

Title: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 16, 2010, 05:32:07 PM
EN's EUO2LUA Converter
I have been working on this script since shortly after Cheffe killed EUO, prior to resurrection.  It has helped me learn alot about LUA and alot about EUO !!!

About this script:
Converts EUO script into LUA script.  The resulting script needs 'ENs_EUOCommandsLibrary.Lua'. Thier are of course limitations, not everything is convertable. The main issues that are unconvertable via automated processes at this time are:
 - gotos and goto lables.
 - execute
 - Continue
The Script output needs to be examined.. a number of commands are now obsolete or unconvertable, after conversion search for --ERROR: for known issues and examine the script in general for correctness. (Many features of EUO although converted can be better written in native LUA - the Library file just allows for automated conversion not nessacarily the best way to structure your code.. but only a human can make those decisions.)
 
How To Use:
Edit the last line of the script, repalceing the dummy filename with the filename of the script you want transalted (instructions in script). The transalted script will have the same name with the addition of .LUA

What it does
- Saves you masses of edit time.(Translates an 8500 line script in under 15 seconds.)
- Produces real lua code that will run  (exceptions below)
- Converts all EUO commands and variables except listed below.
- Converts EUO wait times to LUA wait times. (*50)
- Auto fixes split lines (+)
- Auto adjustment for code after a condtion not in a code block{}, ie a single line.  Commands applies to IF,For,While, CMPPIX,OnHotKEy (Does not fixed nested bad blocks.. ie if x=y  if x=z if x=q  set x=0 but EUO didnt function correctly on this anyway.
- Moves code pre first function definition to buttom of script
- Add comment blocks for library includes, function definitions and script body
- Correctly translates multi-return subs.
- * Vars translated as  setatom, getatom (Not as registry entries)- under assumption that this is mainly used for inter-script communication. (note no persistence)
- ERROR marks goto statments so you can manually fix (GOTO GotoLabels:).
- Removal of final (function end) returns that have no return value.
- Automatic conversion of non-numeric data to strings.

NOTES/TODO List
NO OpenEUO Equivalents Commands: Probable Obsoleteness to be determined by Cheffe
   shutDown, execute, Menu HideEUO, PLAYCD, STOPCD, #LPC, LinesPerCycle
CURRENTLY NOn-functional until Cheffe implements commands:(empty library functions created)
   EUO_Send, EUO_Sound, EUO_UOXLNew
No OpenEUO Equivalent Vars: Initializied in Library but hold no real meaning.(EUO_varname)
   #CurPath, #PathSCR, #PathLIB, #PathTMP, #PathEXE, #PathDAT, #OPTS, #OSVer, #EUOVer
ENs EUO Command Library--unCompleted functions
  #findmod, EUO_NameSpace(6 Commands), EUO_menu(37 Commands)
Other Issues yet to be addressed:
-processing of    % . !xx      % . test      56 % 78  
-concatination of strings via ,  (not working inside gosub xx dfd , fdfd ,dfd ,dfdf  also
       if "Lower" .. " " .. "Reagent" .. " " .. EUO_In( "Cost", EUO_Property) then
-- Call ... <> dofile  as parameters can be passed thierfor untranslatable.
-set !Parameters     transaltes as Parameters =        should be nil
-repeat .. until .. use of {} inside... this creates an extra end prior to the until.
-no support for if x=y 2
-Every Function is called with EUO_Result = function(), even if the function returns no value.
-Most command Executes used are to store data .. this can be replaced with file handle commands. (execute and echo )
- GOTO exception: if one goto per lable and both reside in the same space as if were - potentially convertable
-examine saving * vars in an ini file .. for reading/writing to make persistent.
- ABS not correcly converting in every scenario  if  abs ( x -y )  results in if math.abs( () x - y )
- issue with finditem translation and "C_ ," translating as "C_",..,
- Test TerminateEUO function for correctly working if UO clients still open.
-DisplayResult - results are in capitals theirfor if #DisRes = yes  .. converts to displayresult = 'yes'  never true as returns 'YES' not 'yes'

Major(Bold)/Minor Beta Testers
SuperSlayer, Dixie Wrecked, Chrome
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 16, 2010, 05:32:24 PM
* reserved *
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Masscre on October 16, 2010, 05:54:48 PM
OK the salivating glands have kicked in !!
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: NObama on October 16, 2010, 06:17:11 PM
Drool.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Scrripty on October 16, 2010, 06:37:59 PM
I'll love you if it works. :)  Will help a ton with some "problem" scripts I'm working on. heh
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 16, 2010, 07:07:13 PM
I'll love you if it works. :)  Will help a ton with some "problem" scripts I'm working on. heh


quote ow it works... post me a script here you want me to test...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 16, 2010, 07:38:50 PM
My scripts will probably break things.  You're welcome to use my namespace conversion routines.  I've vetted those pretty well with the CLAw conversion.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Scrripty on October 16, 2010, 07:40:21 PM
How about the monster id gatherer?  If it converts that it works great... got the list subs in it...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 16, 2010, 07:51:06 PM
My scripts will probably break things.  You're welcome to use my namespace conversion routines.  I've vetted those pretty well with the CLAw conversion.

I dont know we will have to see .. 

I was going to ask if i could include some of your converted work into the coverter..
it it using a menu   dofile(tms_menu) at top then auto generate your function code.
finditem , journal etc...

this way 98% conversion can be achieved...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 16, 2010, 08:37:12 PM
You betcha!  Use away!
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 16, 2010, 08:39:08 PM
You betcha!  Use away!

cheers :)   -- alot of work done on this already.. getting thier
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Tidus on October 16, 2010, 09:56:22 PM
So let me get this straight (because i'm lost.. as usual) you run this script and it converts the file you want to LUA from EUO?

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 16, 2010, 10:31:21 PM
Quote
So let me get this straight (because i'm lost.. as usual) you run this script and it converts the file you want to LUA from EUO?


yes .. when i post the LUA script you will be able to run it .. point to a EUO file and it will convert it to LUA. not 100% but as close as i can get to minimize editing.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 17, 2010, 04:18:26 AM
Here's a few subs to try out and share here!

Code: [Select]
Sub Open_Container
; %1 = container Id
; %2 = gumpwait arg 2
; %3 = gumpwait arg 3
; %4 = contpos X
; %5 = contpos Y
set %ContId %1
Reopen:
set #lobjectid %ContId
event macro 17 0
GoSub gumpwait NULL %2 %3
if #result = #False
  goto Reopen
contpos %4 %5
Return


; %1 = GumpWait
; %2 = Gumpname 1
; %3 = Gumpname 2
Sub GumpWait
  wait %Mwait
  set %timedelay #SCNT
GumpWait_loop1:
  if #CONTNAME = %2 || #CONTNAME = %3
    Return #true
  if #SCNT > %timedelay + 7
    Return #false
  goto GumpWait_loop1
Return
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 17, 2010, 06:51:23 AM
The Translation at the current level of working

Code: [Select]
dofile('EN's_EUOCommandLibrary.lua')

function Open_Container()
 -- %1 = container Id
 -- %2 = gumpwait arg 2
 -- %3 = gumpwait arg 3
 -- %4 = contpos X
 -- %5 = contpos Y
g_ContId=arg[1]
Reopen:  
UO.LObjectID=g_ContId
UO.Macro(   17, 0)
gumpwait(NULL, arg[2], arg[3])
if #result== false then
  --GOTO Reopen  --ERROR: GOTO -not supported:  
EUO_ContPos( arg[4], arg[5])
return  
end


 -- %1 = GumpWait
 -- %2 = Gumpname 1
 -- %3 = Gumpname 2
function GumpWait()
  wait( g_Mwait)
  g_timedelay=#SCNT
GumpWait_loop1:  
  if UO.ContName== arg[2] or UO.ContName == arg[3] then
    return true
end
  if #SCNT> g_timedelay + 7 then
    return false
end
  --GOTO GumpWait_loop1  --ERROR: GOTO -not supported:  
return  
end

#Scnt - currently untransaltable.. but i will write a function for it. GOTO never transalateble must be replaced with a repeat..until, while or for structure.

NOTE: multiple returns in the sub... eventually i will have code that spews errors on this..  currently it produces bad code..  multi returns convert to return - end .. which will make you code not function as intended.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Scrripty on October 17, 2010, 08:13:03 AM
You can't use multiple returns in a sub in lua?  I thought this was possible...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 17, 2010, 08:45:07 AM
You can't use multiple returns in a sub in lua?  I thought this was possible...

You Can use multi-returns in LUA.... but thier can be only one END to a function.

Its a difference between euo and lua... in lua .. return just defines the result vars that are returned when the function ENDS.   In EUO return is a combo statment in lua = 'return <vars> End'

Thierfor transalating

sub xx
   if x=y return x
   set x  x*100
  if x < y return y
return what
 
function xx()
   if x == y then  return x  end
   x = x*100
   if x<y return y
return what
end

in euo this = 3 possible different return values x y and what
In lua it only = what as thats the last return values set before final end statment.


Thierfore transalting subs with multiple returns will end up with code that doesnt represent the true meaning of the original sub.  as you can only only exit a function at one point where as you can exit a sub form many points .. the 3 big problems break./continue  gotos multi returns. all un auto translatable...


EDIT :  INCORRECT .. multiple returns are allowed in LUA .. i was wrong and my test code had an error in it. so malfunctioned  DURRRR....

Give me another bigger one to translate... one of the biggest things it will acheive is pure time in replacing standard stuff...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Tidus on October 17, 2010, 09:35:58 AM
YOu can try to translate my Leather Farmer. http://www.scriptuo.com/index.php?topic=280.0
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: NObama on October 17, 2010, 09:47:15 AM
If you want a real challenge, get OMG's permission to convert his AutoTamer.  That script is so useful...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 17, 2010, 10:19:18 AM
If you REALLY want your script to cry for it's Mamma, throw the CLAw at it.  ;)
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Scrripty on October 17, 2010, 10:22:00 AM
If you REALLY want your script to cry for it's Mamma, throw the CLAw at it.  ;)

No no, EN you have access to my private library... try a version of the plant tender... the menu for it is basically informational only.  Might be a nice one to have a full conversion of. :)  I think I only have one goto in there... not sure.  I'll send you my latest version to try too. heh  Save me a ton of work I've only started on.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 17, 2010, 06:14:19 PM
Where should i post your claw conversion TM
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 17, 2010, 06:34:07 PM
I got it already, EN.  thanks.  I'll post up a howto so you can convert the namespace stuff to working code.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 17, 2010, 07:49:48 PM
I got it already, EN.  thanks.  I'll post up a howto so you can convert the namespace stuff to working code.

I thourhgt i had posted it but then like magic it was gone .. so decided not to do it again... i just finided including in notin target and converting Wait times from EUO to OpenEUO....

Even if i do say so myself .. its getting pretty dam sick and slick....
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 17, 2010, 07:59:04 PM
I wasn't sure who had access to your section so I snagged it before anyone else did.

This should make converting things a bit easier.  Still a lot of work, but I can see how it will help.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Paulonius on October 18, 2010, 04:46:08 AM
This is huge EN.  I am going to take some scripts apart sub by sub, re-write them to conform, and then convert them. Should give me a HUGE leaning tool and translate some scripts at the same time.

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Cerveza on October 18, 2010, 05:28:21 AM
This is truly awesome. I like the fact that we have it here and they don't heh.... Not that I'm like that :P

And since I have long voiced the evils of GOTO's, few of the things I've ever done use them.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 18, 2010, 04:33:30 PM
This is huge EN.  I am going to take some scripts apart sub by sub, re-write them to conform, and then convert them. Should give me a HUGE leaning tool and translate some scripts at the same time.

want me to hit up the bodrunner ?
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Paulonius on October 18, 2010, 05:47:24 PM
The BOD runner has a huge pile of gotos in it. I was going to use this sub by sub to help me work the translation. If you want to do the whole project it would stunt my growth as a lua programmer.... But then my Mom said something about that with coffe when I was six and I am only three feet tall now...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 19, 2010, 09:44:51 AM
This Thread has been moved out of the Elite section into public view so if its an elite script conversion required just post the link and ill post the conversion in the link.

Welcome non elites.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Cerveza on October 20, 2010, 04:15:27 AM
Could you port over my Honor and Attack script from HERE (http://www.scriptuo.com/index.php?topic=587.0).

I'd like to see it working in OEUO.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 20, 2010, 07:38:07 AM
Could you port over my Honor and Attack script from HERE (http://www.scriptuo.com/index.php?topic=587.0).

I'd like to see it working in OEUO.

Postd back in your thread.  that was a very easy to convert script.. unfortunatly it need my library file which i havent finished yet opps.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 20, 2010, 06:49:44 PM
Fixed conversion of these 2 trickys...

- Auto fixes split lines (+)
- Auto adjustment for code after a condtion not in {}, ie a single line. this is auto corrected (end added increases lines in file)
    ie   for !x 1 5  set %y %y + 1      translates as for x=1,5 do  y=y+1   NO end
    Commands applies to IF,For,While, CMPPIX,OnHotKEy
   (Doesnt not fixed nested bad blocks.. ie if x=y  if x=z if x=q  set x=0
- Auto Removal of blank lines left by { no longer needed.
- Added comment blocks for library function definition, script body and moved script body to end of file.

(Note: Bascailly only the menu commands and a few unsuported vars left to translate,, and of course finish writing the library functions)
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 21, 2010, 06:09:50 PM
I am working on a fix that will transalte multiple returns from a sub correctly... the number of things untranslatable has been reduced to  bascially gotos (except whre you have a single goto refrering to a single lable in the wask working space ie no jumping in out of subs). 

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 23, 2010, 02:08:38 PM
OK fixed issue with mulitple returns from a sub.  It now error codes all returns except the final return, it no longer add's addiitional ends.

Proof below that multiple returns while allowed do not work as they did/do in EUO. In EUO a Return = Return END in LUA.  In LUA a return statment just sets the value returned it does not end the function

In EUO the below code would print  1 2 999
Run it you will see in lua it prints  999 999 999  

Code: [Select]
function test(x)
  if test == 1  then return 1 end
  if test == 2 then return 2 end
  return 999
end

print(test(1))
print(test(2))
print(test(3))
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 23, 2010, 02:14:47 PM
OK fixed issue with mulitple returns from a sub.  It now error codes all returns except the final return, it no longer addes addiition ends.

Proof below that multiple returns while allowed do not work as they did/do in EUO. In euo a Return = Return END in LUA.  In LUA a return statment just sets the value returned it does not end the function

In EUO the below code would print  1 2 999
Run it you will see in lua it prints  999 999 999 

Code: [Select]
function test(x)
  if test == 1  then return 1 end
  if test == 2 then return 2 end
  return 999
end

print(test(1))
print(test(2))
print(test(3))


Isn't the code doing what it's supposed to do, as "test" never has a value, only "x" has a value when the function is called?  I changed the code to:
Code: [Select]
function test(x)
  if x == 1  then return 1 end
  if x == 2 then return 2 end
  return 999
end

print(test(1))
print(test(2))
print(test(3))

and it worked correctly, so I'm not sure if your example may be wrong or if I am not understanding something else (which is very possible, as I am just beginning to grasp OEUO as it is).
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 23, 2010, 02:16:49 PM
Also, as a further test, I changed the code as follows:
Code: [Select]
function test(x)
  if x == 1  then return 3 end
  if x == 2 then return 4 end
  return 999
end

print(test(1))
print(test(2))
print(test(3))

and it now prints 3, 4, 999, so I believe that return does function as it did in EUO.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 23, 2010, 03:13:05 PM
ow %^%&% your rigth dixie... i couldnt figure out why i previously stated multiple returns were allowed... so i ran a test.. and blow me if i borked the test..

LOL ill fix my code to now allow multiple returns. 


EDIT: Translator now Correcty processes Multiple Returns...  Changing the final return to = Return <value if exists> end.  All other returns stay as return.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 23, 2010, 03:26:39 PM
To Highlight how the script has progressed.... SS sample code below now translates as this ...


Code: [Select]
-------------------------------------------------------------------------
-- Load Librarys
-------------------------------------------------------------------------
 
-------------------------------------------------------------------------
-- Function Definitions Start Here
-------------------------------------------------------------------------
 
function Open_Container(...)
-- %1 = container Id
-- %2 = gumpwait arg 2
-- %3 = gumpwait arg 3
-- %4 = contpos X
-- %5 = contpos Y
g_ContId=arg[1]
Reopen:
UO.LObjectID=g_ContId
UO.Macro(17,0)
EUO_Result=gumpwait(NULL,arg[2],arg[3])
if EUO_Result== false then
  --GOTO Reopen  --ERROR: GOTO -not supported:
  end
EUO_ContPos(arg[4],arg[5])
return
end  -- End Of Function: Open_Container


-- %1 = GumpWait
-- %2 = Gumpname 1
-- %3 = Gumpname 2
function GumpWait(...)
  Wait(g_Mwait * 50) -- Converted to Milliseconds
  g_timedelay=EUO_GetScnt()
GumpWait_loop1:
  if UO.ContName== arg[2]  or  UO.ContName == arg[3] then
    return true
    end
  if EUO_GetScnt()> g_timedelay + 7 then
    return false
    end
  --GOTO GumpWait_loop1  --ERROR: GOTO -not supported:
return
end  -- End Of Function: GumpWait
 
 
------------------------------------------------------------
-- Script Body
------------------------------------------------------------




Here's a few subs to try out and share here!

Code: [Select]
Sub Open_Container
; %1 = container Id
; %2 = gumpwait arg 2
; %3 = gumpwait arg 3
; %4 = contpos X
; %5 = contpos Y
set %ContId %1
Reopen:
set #lobjectid %ContId
event macro 17 0
GoSub gumpwait NULL %2 %3
if #result = #False
  goto Reopen
contpos %4 %5
Return


; %1 = GumpWait
; %2 = Gumpname 1
; %3 = Gumpname 2
Sub GumpWait
  wait %Mwait
  set %timedelay #SCNT
GumpWait_loop1:
  if #CONTNAME = %2 || #CONTNAME = %3
    Return #true
  if #SCNT > %timedelay + 7
    Return #false
  goto GumpWait_loop1
Return
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 24, 2010, 05:19:31 AM
Odd issue, but probably me, after the script was converted, and I straightened out all the hanging errors, I was unable to run the first function.  All function definitions are open and more-or-less ready, no libraries to load needed.  When I get to the line with the function to execute, the error says:"attempt to call global 'SS_Var_Config' (a nil value)"

This line reads:
Quote
EUO_Result=SS_Var_Config(...)
the function reads:
Quote
function SS_Var_Config(...)

Running the function alone in a separate tab works just fine.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 24, 2010, 12:23:18 PM
That's a good idea how you handled the function arguments.  ;)
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 24, 2010, 04:28:03 PM
That's a good idea how you handled the function arguments.  ;)

Ive tried to emulate EUO were at all possible and i discovered that defineing functions with '...' allows any number of arguments that can be accessed almost identically to EUO  0%   %1... %0  LUA   arg.n   arg[1]...arg[arg.n]  how could i resist :)



As to your issue SS.. im going to have to do some investigation on that one.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 24, 2010, 04:48:36 PM
I've tried loads of stuff. since that first function passes and returns no parameters, I removed the ... in the parentheses, changed the function name, moved it to other parts of the script, skipping that function and trying to run a different one but with the same results.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 24, 2010, 05:44:54 PM
try   (not sure why the ... in the parameter passing)
EUO_Result=SS_Var_Config()

im beat tongiht but ill take a look tommorrow when i can.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 24, 2010, 05:59:44 PM
Ya, same result, no go. Get some rest, I'm sure your head is about to explode
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 24, 2010, 06:45:13 PM
Odd issue, but probably me, after the script was converted, and I straightened out all the hanging errors, I was unable to run the first function.  All function definitions are open and more-or-less ready, no libraries to load needed.  When I get to the line with the function to execute, the error says:"attempt to call global 'SS_Var_Config' (a nil value)"

This line reads:
Quote
EUO_Result=SS_Var_Config(...)
the function reads:
Quote
function SS_Var_Config(...)

Running the function alone in a separate tab works just fine.

I don't know if I can be of any assistance, but even as a learning tool, would it be possible to actually post the function that isn't working correctly?  If not, I understand, but sometimes a new pair of eyes can be of great value, especially if they don't know what is supposed to happen and can possibly see something that just doesn't make sense (hopefully that sentence actually makes sense!). 
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 24, 2010, 06:55:00 PM
Sure. This is the executing line:
Quote
EUO_Result=SS_Var_Config()

and the function to go with it:

Code: [Select]
function SS_Var_Config()
pause()
  Swait=5
  Mwait=10
  Lwait=15
  LLwait=25
  stock=nil
--   Root=C:\
  ScreenMountRefresh=false
  first_run=true
  IdocLib=nil
  EmptyIdocLib=nil
  homes_marked=0
  spellbook=MPF_ZMF
  HKVar= hotkey
  moongates=OTF_NTF_QTF_PTF_AUF_KEF_JEF_EEF_DEF_GEF_
--   Run_facet=
  MarkHomes=true
  first_mark=true
  Emptyrbooks=0
  Idocbooks=0
  homecnt=0
 --  housestatus=
  Idocsfound=0
  Grtlysfound=0
  laps=0
  doors=NJC_PJC_ZOC_XOC_XMC_ZMC_HQC_JQC_
  allmounts=HNO_GKM_YFO_NRM_ZNO_KJO_FJM_RJM_NNO_SJR_MJR_CG_JG_ZGB_SF_MG_SG_OF_EG_QC_KG_WJ_JJ_HMB_SH_TJ_UJ_SC_HH_YJ
  ethies=HNO_GKM_YFO_NRM_ZNO_KJO_FJM_RJM_NNO_SJR_MJR_CWO_MJR
  Corpsetype=YFM_FEX_QEX_
  wait_to_stock=nil
  EvenSlots='2_4_6_8_10_12_14_16_'
  regs=KUF_KZF_JUF_MZF_JZF_WZF_RZF_SZF_
  securetypes=CKF_UXM_TXM_AUD_CUD_HKF_SPF_GRL_FRL_KUD_LKF_HIF_IKF_VNF_PNF_ZJF_ELN_KIF_WMF_UMF_BUD_EIR_VMF_
  instrument=OQF_LQF_KRF_PRF_QRF_MQF_PGP_RPS_NRF_RGP_
  rscrolls=WTL
--   rbooklibrary=
  rnbkrechrglib=nil
  MSLrbook=nil
--  Lhealerlocs=
  healercnt=0
  shrinetypes=ZC_AD_TC_UC_
  Null_BPitems=FIM_AIM_ZHM_KDM_JDM_YDM_LDM_WDM_VDM_ODM_CIM_BIM_NDM_XDM_SDM_RDM_
  housesigns=AKE_ALE_ARE_AOE_CRE_CKE_COE_CLE_EKE_ERE_ELE_EOE_GNE_GRE_GLE_GOE_GKE_INE_ILE_IKE_IRE_IOE_KOE_KLE_KRE_KKE_MOE_MRE_MKE_MLE_MLK_OLE_ONE_OJE_OKE_QNE_QJE_QKE_QLE_SME_SLE_SNE_SJE_SKE_ULE_UKE_UNE_UJE_WJE_WNE_WKE_WLE_YJE_YNE_YLE_YKE_YQE_
  PrvtHm="This Is A Private Home"
  slot=100+( charslot*40)
  ParaCastingMobs=SKM_HIO_ZIO_YIO_JKM_VJM_LGO_GGO_IOO_QKM
  username='********'
  Bandaidtype=ZLF
  Lorable=RQM_CRM_BRM_YQM_ARM_CJO_BJO_EJO_AJO_UDY_XQM_GKM_ZQM_PKM_IJO_MKM_HKM_OKM_FKO_SFO_DRM_XPM_UQM_SQM_XJM_IKM_YPM_KKM_PQM_GQM_PIO_EQM_YPM_VJO_EIO_FKM_LGO_RIO_ERM_XFO_IGO_HGO_KGO_JGO_QFO_LKM_WPM_HIO_DKM_GIO_SKM_KOO_NKM_LJO_XOO_IOO_JIO_PRM_BKO_NRM_CKO_ENO_DNO_YMO_ZIM_VJM_JKM_FQM_GGO_FGO_QGO_PGO_SGO_RGO_MGO_GZ_MG_PG_QE_SF_BE0
--return
end 
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 24, 2010, 07:22:54 PM
OK, I might be looking at this wrong, but your calling line is assigning the value of the function SS_Var_Config() to the variable EUO_Result.  However, as I believe you stated, SS_Var_Config() doesn't return a value (and my viewing of the code indicated this as well), so EUO_Result would receive a value of 'nil' (and it did when I ran the function as a test script myself - I did have to assign a numeric value to charslot, but that was trivial to make the function complete).  Anyway, the error message seems to reflect this with EUO_Result being 'nil'; so, does this simply need to be called as follows:
Code: [Select]
SS_Var_Config()rather than as:
Code: [Select]
EUO_Result=SS_Var_Config()
?

Also, the test code I used to get the 'nil' result was this:
Code: [Select]
charslot=1
test=SS_Var_Config()
print(test)

Edit: I ran a test with the following code and it ended with the printed message:
Code: [Select]
charslot=1
SS_Var_Config()
print('Done!!!')
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 24, 2010, 07:36:49 PM
Running that function alone is indeed fine, with charslot assigned anything but nil. I'm finding that there's something else in the script body that's causing a ruckus. There's no way I'll consider posting the script anywhere, but to get an idea of what it is, check out my sig and look at what the WIT script is.

Anyhows.. the layout of my script is as follows:

Code: [Select]
function huh()
function what()
function where()
function SS_Var_Config()  <-- the one in question
function other()
function this()
function that()

EUO_Result=SS_Var_Config()

All the functions preceding the SS_Var_Config are NOT commented out. All the function following SS_VAR_Config ARE commented out. The issue is somewhere after the actual "function SS_Var_Config()" and before the "EUO_Result=SS_Var_Config()". ..but where I'm not sure yet.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 24, 2010, 08:02:14 PM
I completely understand about not posting the full script, and that was before knowing all that the WIT could actually do (the name itself gave me that info, but the extras in just the opening paragraphs really does make it an amazing script!). 

I tested the function by calling is as either
Code: [Select]
EUO_Result=SS_Var_Config()
--or
SS_Var_Config()
and they both executed fine.  I also tried printing a bunch of the variables and only the numeric ones would print, due to the rest assigning EUO itemtypes instead of OEUO types (they all returned 'nil' as their values), so I am wondering if all of the variables getting old values assigned to them rather than OEUO's numbers might be causing a problem as well?
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 24, 2010, 08:10:13 PM
Well, for some reason, I hammered through the remaining commented functions, straightened out the remaining "end expected to close function at line **" errors, and all is well so far, minus what you are pointing out Dixie.

I must admit, I'm impressed and grateful for your 'jumping in' and helping with OEUO debugging for many script across this forum. I hope you remain on board with us here at SUO, your input is, imo, invaluable!

By the way, your name reminds me of a Howard Stern bit! hehe.

Rep to you sir!
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 24, 2010, 09:35:23 PM
Thank you much!!!  I hope that the EUO id types are the problem, so that you'll be able to progress with the rest of the script.  And I am glad that I can "finally" be a part of a scripting community and plan on being here for the long haul.  I also like that I can actually contribute more now, whether debugging or actual script writing, since it seemed almost everything was already written for EUO, besides the massive projects like your WIT, but with so few public OEUO scripts actually existing right now, I am hoping to be able to contribute, including hopefully have a holiday gift gatherer (that uses your logging script!) ready for release before the 13th anniversary gifts come out (long, setup-intensive version is complete, but another version for people with the same number of characters on all shards and accounts will also be written, which will be pretty much plug-and-play after entering account name and password info). 

As for my name, I wouldn't be surprised if it's been used on Howard Stern, although I have occassionally used it since the early 90s (a friend used to wear a shirt with "My" in front of the name whenever he played gigs); I also like how some people think I am female because the name does have a feminine ring to it, or at least the first name does!

Anyway, I better be heading to bed, but I hope to be of much greater service in the coming weeks and available to test, debug, or attempt to break any script there is, as well as even publish some of my own in the very near future!!! 

Oh yeah, I might as well ask it here...does anyone have an easy script for finding items that I can review to try understanding how it works in oEUO?  I've been looking at it off and on, and whenever I think I understand it, I have to stop reading and start all over, so I'm not sure on how actually use all of what it scans?  And as I am sure there are multiple ways to do it correctly, if there is any difference (or possibility) to only scan for one item or types (such as a specific plant type or types on the ground) as opposed to scanning everything on the screen and/or ground, I'd love to see how it seems best to do either or both of them.  Any help on this is greatly appreciated and I'm sure would go a long way to helping me to write and/or convert some of my existing scripts!
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 24, 2010, 11:53:29 PM
I wish I had a bit more time to play around with this, EN.  I'm still taking a break from OEUO and I'm gonna be headed to Germany for two weeks coming up pretty soon, so I won't have much time.  Hopefully you'll get it to a point soon where we can play with it ourselves.  ;)
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 25, 2010, 05:26:39 AM
I wish I had a bit more time to play around with this, EN.  I'm still taking a break from OEUO and I'm gonna be headed to Germany for two weeks coming up pretty soon, so I won't have much time.  Hopefully you'll get it to a point soon where we can play with it ourselves.  ;)

Yea hopefully .. but i would be doing people a disservice releasing it when it doesnt produce accurate translations.  Every time i think im getting close to a release i realize ive created some new issues to address the list although much reduced is still significant.. leaving the hardest issues for last... I also dont like some of the bits of code ive done to get this far... i perhaps should have analysed better before jumping right inthier lol.  But it is moving formaward  '*' vars are now handeled.


EDIT: Dixie W... if your script isnt ready for the gifts.. and EUO still works can always use my charactertoolbox script... it does all that and more.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 25, 2010, 11:03:40 AM
EDIT: Dixie W... if your script isnt ready for the gifts.. and EUO still works can always use my charactertoolbox script... it does all that and more.

Thanks, EN.  I actually have a working version for gathering gifts in EUO (basically a hacked-up BOD collecting script that has a lot of gotos, at the very least), but I am hoping to finish an oEUO version (which I think is done, but I wanted to test a couple things with it before releasing it for further testing and hopefully some much needed improvements).  I will have to check the charactertoolbox out though, as I didn't realize it could be used for more than just creating characters, and it might even help me learn a little more just by looking at the code (even though it's for EUO rather than oEUO, but every bit helps!).
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 25, 2010, 11:10:20 AM
OK, here is a short script that I had written for moving the small pieces of blackrock into a bag for chopping it later on (since it doesn't decay and takes up so many lockdowns if I don't keep on top of it with up to 3 miners running at a time!).  Anyway, the script is rather simple, but includes a couple things that I am still trying to learn, so hopefully the conversion can help me learn a few things rather quickly.  Thanks for your help!!!

Code: [Select]
display ok please target your source container
set #targcurs 1
while #targcurs = 1
  wait 0
set %source_bag #ltargetid

display ok please target your bag to be karate chopped!
set #targcurs 1
while #targcurs = 1
  wait 0
set %target_bag #ltargetid

set %move UVF_EWF_FWF_GWF

finditem %move c_ , %source_bag
for #findindex 1 #findcnt
   {
   exevent drag #findid
   wait 10
   exevent dropc %target_bag
   wait 10
   }

display ok DONE!!!

halt
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 25, 2010, 11:34:49 AM
found an interesting lua slowdown.

Processing SS script went from 15mins .. to 15seconds... very strange .. to do with referencing nil values in a table.. a simple if prior checking for nil values fixed it (i had presumed if didnt exist would return nil thus not meeting condition with it did but took ages to do so).  

It took me ages to disover this logic flaw
offending code
Code: [Select]
 if tEUO[LineOn].Words[1] == '+' thenfix
Code: [Select]
 if table.maxn(tEUO[LineOn].Words) > 0 then
     if tEUO[LineOn].Words[1] == '+' then
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 25, 2010, 11:42:02 AM
OK, here is a short script that I had written for moving the small pieces of blackrock into a bag for chopping it later on (since it doesn't decay and takes up so many lockdowns if I don't keep on top of it with up to 3 miners running at a time!).  Anyway, the script is rather simple, but includes a couple things that I am still trying to learn, so hopefully the conversion can help me learn a few things rather quickly.  Thanks for your help!!!

Code: [Select]
display ok please target your source container
set #targcurs 1
while #targcurs = 1
  wait 0
set %source_bag #ltargetid

display ok please target your bag to be karate chopped!
set #targcurs 1
while #targcurs = 1
  wait 0
set %target_bag #ltargetid

set %move UVF_EWF_FWF_GWF

finditem %move c_ , %source_bag
for #findindex 1 #findcnt
   {
   exevent drag #findid
   wait 10
   exevent dropc %target_bag
   wait 10
   }

display ok DONE!!!

halt


Converted code (needs unreleased library file - not finished)
Code: [Select]

dofile('ENs_EUOCommandLibrary.lua')

EUO_DisplayResult=EUO_Display("ok","please target your source container")
UO.TargCurs=1
while UO.TargCurs== 1 do
  Wait(0 * 50) -- Converted to Milliseconds
  end -- for while
g_source_bag=UO.LTargetID

EUO_DisplayResult=EUO_Display("ok","please target your bag to be karate chopped!")
UO.TargCurs=1
while UO.TargCurs== 1 do
  Wait(0 * 50) -- Converted to Milliseconds
  end -- for while
g_target_bag=UO.LTargetID

g_move='UVF_EWF_FWF_GWF'

EUO_FindItem(g_move,'c_,',g_source_bag)
for EUO_FindIndex=1,EUO_FindCnt do
   UO.Drag(EUO_Find[EUO_FindIndex].ID)
   Wait(10 * 50) -- Converted to Milliseconds
   UO.Dropc(g_target_bag)
   Wait(10 * 50) -- Converted to Milliseconds
   end

EUO_DisplayResult=EUO_Display("ok","DONE!!!")

stop()
 
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 25, 2010, 11:55:53 AM
Have you taken a stab at the math functions yet? Reason I ask is that in the example script, the wait time is converted to milliseconds. All good and all, but, the actual arithmetic results in a zero amount. 

Another thing about using the wait command, when oeuo comes to the line and it's spelled: Wait(100), the script will assume there is a function to go to. Reason being, the word 'Wait' is capitalized. I found that out after about 30 minutes of banging my head the other night. 'Wait(100)' will not work as a genuine wait command, 'wait(100)' will though.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 25, 2010, 12:27:45 PM
Have you taken a stab at the math functions yet? Reason I ask is that in the example script, the wait time is converted to milliseconds. All good and all, but, the actual arithmetic results in a zero amount. 

Another thing about using the wait command, when oeuo comes to the line and it's spelled: Wait(100), the script will assume there is a function to go to. Reason being, the word 'Wait' is capitalized. I found that out after about 30 minutes of banging my head the other night. 'Wait(100)' will not work as a genuine wait command, 'wait(100)' will though.

well the wait time resulting in zero is converted exactly as it should be... note the original script has wait times of 0.

Good catch on the Wait wait ... if corrected that all future conversion will have a fixed wait.  Capitization is one of the annoying things about lua .. ive made more mistakes on that than anything else i think.

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 25, 2010, 07:42:14 PM
A big thank you superslayer for teh enourmous feedback you provided.. all issues on that list should now be cleared up.
I will send you a fresh translation.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Superslayer on October 25, 2010, 08:49:01 PM
Your welcome Endless, it's a great way to learn the language a bit better especially when you have the original script to compare with, and understand what it being accomplished.

I got the updated script now and am going through it. There are some hanging issues that I had previously just fixed out myself because I saw a better way to do it in my original script. There shouldn't be any hardcore problems, but maybe just some translations that will actually save time in the conversion. I'll do as before and send them over when I finish with your latest and greatest conversion.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 26, 2010, 12:49:36 PM
Discovered new error with set atom... fixed....  fix two break one :)

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Dixie Wrecked on October 26, 2010, 01:03:31 PM
Converted code (needs unreleased library file - not finished)
Code: [Select]

dofile('ENs_EUOCommandLibrary.lua')

EUO_DisplayResult=EUO_Display("ok","please target your source container")
UO.TargCurs=1
while UO.TargCurs== 1 do
  Wait(0 * 50) -- Converted to Milliseconds
  end -- for while
g_source_bag=UO.LTargetID

EUO_DisplayResult=EUO_Display("ok","please target your bag to be karate chopped!")
UO.TargCurs=1
while UO.TargCurs== 1 do
  Wait(0 * 50) -- Converted to Milliseconds
  end -- for while
g_target_bag=UO.LTargetID

g_move='UVF_EWF_FWF_GWF'

EUO_FindItem(g_move,'c_,',g_source_bag)
for EUO_FindIndex=1,EUO_FindCnt do
   UO.Drag(EUO_Find[EUO_FindIndex].ID)
   Wait(10 * 50) -- Converted to Milliseconds
   UO.Dropc(g_target_bag)
   Wait(10 * 50) -- Converted to Milliseconds
   end

EUO_DisplayResult=EUO_Display("ok","DONE!!!")

stop()
 

Thank you so much for the conversion!  Since the Command Library is unfinished, I obviously can't actually test the script, but it does give me an idea of how this will work.  And since it seems like you are probably going to have a lot of functions in your library, given the Wait/wait issue, you might just want to have a function called Wait, which I assume could be as simple as:

Code: [Select]
function Wait(a)
 wait(a)
end

This way, if there is a missed 'Wait' rather than 'wait', or if there is a lot of extra coding necessary to make them all be lower case waits, I would think that it would let you use your time much more constructively? 


Also, after seeing this line:
Code: [Select]
g_move='UVF_EWF_FWF_GWF'and seeing the problems that it initially caused for SuperSlayer, perhaps a conversion from the EUO formatted lists would be beneficial?  I don't know how oEUO handles these lists yet, but I am more than willing to learn (and will be looking this info up shortly tonight), so if I can be of any help in this possibility, please let me know and I will do waht I can to help (I know there are a TON of item id's to find and cross-reference, but it can be a somewhat on-going exercise).
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 26, 2010, 01:54:58 PM
In the latest version your code Dixes transaltes as bellow.   As far as i am aware thier is no wait issue (desides an accidental capitalization now fixed)...   your original code has a wait 0  thierfor the transalted code has a wait(0)  actually wait (0*50)=wait(0)

whhy the *50 you say .. becuase EUO waits are by 1/20ths where as OEUO are 1/1000's

anyways your code.. and i know abuot the bad formed finditem command.. ", . "  are probably my next target item...  once dealt with will also fix the display  .. which works but is ugely.

Code: [Select]
EUO_DisplayResult=EUO_Display("ok","please".."target".."your".."source".."container")
UO.TargCurs=1
while UO.TargCurs == 1 do
  wait(0 * 50) -- Converted to Milliseconds
  end -- for while
g_source_bag=UO.LTargetID

EUO_DisplayResult=EUO_Display("ok","please".."target".."your".."bag".."to".."be".."karate".."chopped!")
UO.TargCurs=1
while UO.TargCurs == 1 do
  wait(0 * 50) -- Converted to Milliseconds
  end -- for while
g_target_bag=UO.LTargetID

g_move="UVF_EWF_FWF_GWF"

EUO_FindItem(g_move,"c_",..,g_source_bag)
for EUO_FindIndex=1,EUO_FindCnt do
   UO.Drag(EUO_Find[EUO_FindIndex].ID)
   wait(10 * 50) -- Converted to Milliseconds
   UO.Dropc(g_target_bag)
   wait(10 * 50) -- Converted to Milliseconds
   end

EUO_DisplayResult=EUO_Display("ok","DONE!!!")

stop()  
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on October 27, 2010, 08:48:31 AM
Might be helpful to recommend that someone run the ScriptUO syntax checker before running the converter.  My guess is that a properly structured script will convert easier.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Scrripty on October 27, 2010, 08:49:57 AM
Might be helpful to recommend that someone run the ScriptUO syntax checker before running the converter.  My guess is that a properly structured script will convert easier.

*cough* manwinc *cough* :)
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 28, 2010, 01:05:35 PM
Might be helpful to recommend that someone run the ScriptUO syntax checker before running the converter.  My guess is that a properly structured script will convert easier.

for sure for sure.. the translator script just converts commands from one format to another... if the original script is borked the resulting translation will be equally borked...  I may throw in some free additional borking just as a bonus in the transalted version. :)

Thierfor as TM suggested i highly reckonmend you fix issues found by TMs ScriptUo project in your original script prior to any translations.

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 29, 2010, 08:51:44 PM
UPDATE
Knocked out alot of the unfinished library code.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on December 02, 2010, 06:32:03 PM
Doesnt time fly .. over a month since i looked at this... the project might have gotten a bit forgotten but its not dead.

Implemented into Library file  EUO compatible Journal Commands.

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: _C2_ on December 02, 2010, 06:50:39 PM
yay
when they finally get the almost done version.. i want to convert stuff and learn
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on December 10, 2010, 01:28:27 PM
yay
when they finally get the almost done version.. i want to convert stuff and learn

err it is almost done.. lol needs some testers to get me kick started again...
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Scrripty on December 10, 2010, 02:51:30 PM
You post it up and I'll test the hell out of it. :)
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: _C2_ on December 10, 2010, 04:04:58 PM
same ill test
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Paulonius on December 17, 2010, 05:53:18 AM
Count me in too EN
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: camotbik on August 08, 2011, 05:10:05 PM
I would like to join the tests.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Crome969 on August 08, 2011, 10:34:42 PM
yay
when they finally get the almost done version.. i want to convert stuff and learn

err it is almost done.. lol needs some testers to get me kick started again...

I heard "Testers" and would help as much i can. Maybe you can try to convert that thing i sendet you? would be interesting how it would be looking as oeuo Code compared to my own translated parts yet.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Crome969 on August 31, 2011, 11:38:22 PM
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on October 12, 2011, 06:48:10 AM
Posted required subs on 1st post

File: ENs_SUB_EUO_Commands.lua


This is needed to execute any conversions made by the translator.  It can also be used by itself for anyone manually transalting EUO-LUA.  You do not need to include the code in your lua file .. just load it via a Do file command. such as below.

Code: [Select]
-------------------------------------------------------------------------
-- Load Librarys
-------------------------------------------------------------------------
-- UnComment which ever is the dir its saved in.
-- dofile(getinstalldir()..'/lib/ENs_Subs_EUO_Commands.Lua')
-- dofile(getinstalldir()..'/Scripts/lib/ENs_Subs_EUO_Commands.Lua')
-- dofile(getinstalldir()..'/Scripts/ENs-Subs/ENs_Subs_EUO_Commands.Lua')
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on August 29, 2012, 07:09:00 AM
FIRST RELEASE OF THE CONVERSION SCRIPT ITSELF

Currenlty this script is not 100%, So why am i posting ?    
   This script has sat in 80%+ completion status for over 2 years, as i have not found the time to work on it.   Its not the prettiest code but it does work, and will spit out 1000s of lines of usealbe LUA script saving you unending amounts of time in a transaltion.  Thierfor im releasing it now as otherwise it will goto waste... Enjoy.

IF you have issues -- post them here and you never know i might even fix em ;)

Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: TrailMyx on August 29, 2012, 07:25:11 AM
That's a whole lotta lua code!
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on August 29, 2012, 07:37:09 AM
That's a whole lotta lua code!

LOL 30-40% of it is just my funkily designed transaltion table. I wrote this while learning lua so im sure alot of it could be done more efficently but that said it does actually work and fast so what the hell.
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Crome969 on August 29, 2012, 10:13:31 AM
Thank you for mention me as Tester, and as you already know, your code is the best :) Thank you for releasing the Code after so many time moved, even if its sad you dont were be able to finish it. But instead of waste the code , commit it to Community. Thanks a lot Endless Night!
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Endless Night on August 29, 2012, 10:52:23 AM
Thank you for mention me as Tester, and as you already know, your code is the best :) Thank you for releasing the Code after so many time moved, even if its sad you dont were be able to finish it. But instead of waste the code , commit it to Community. Thanks a lot Endless Night!

you know i could probably use this same code to convert to pascal as well. -- matter of adjusting the datatable and tweaks
Title: Re: ENs - EUO to LUA Converter written in LUA
Post by: Crome969 on August 29, 2012, 11:46:21 AM