lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


windows 11 (64bit)
 .../Program Files/LUAC/5.1/  contain the downloads of luac from lua-5.1.5_Win64_bin files and luac.out

I want to get the bytecode listing from: "C:/ProgramData/Calico Pie/Family Historian/Plugins/!!XPcall.fh_lua"
and output it to                                  : "C:/ProgramData/Calico Pie/Family Historian/Plugins/IRP/5.1//!!XPcall.irp" *****file may or may not exist the direcory structure does.
it is not occurring

in every case _err = ''

-- output file not created, _err = ''
_IRP= "C:/Program Files/LUAC/5.1/luac5.1.exe" -l -o "C:/ProgramData/Calico Pie/Family Historian/Plugins/!!XPcall.fh_lua" "C:/ProgramData/Calico Pie/Family Historian/Plugins/IRP/5.1//!!XPcall.irp"

-- output file not created, _err = ''
_IRP= "C:/Program Files/LUAC/5.1/luac5.1.exe" -l "C:/ProgramData/Calico Pie/Family Historian/Plugins/!!XPcall.fh_lua" -o "C:/ProgramData/Calico Pie/Family Historian/Plugins/IRP/5.1//!!XPcall.irp"

-- output file not created, _err = ''
_IRP= "C:/Program Files/LUAC/5.1/luac5.1.exe" -l "C:/ProgramData/Calico Pie/Family Historian/Plugins/!!XPcall.fh_lua" > "C:/ProgramData/Calico Pie/Family Historian/Plugins/IRP/5.1//!!XPcall.irp"

--output file not created, err = '' !!XPcall.fh_lua trashed
_IRP= "C:/Program Files/LUAC/5.1/luac5.1.exe" -l > "C:/ProgramData/Calico Pie/Family Historian/Plugins/!!XPcall.fh_lua" "C:/ProgramData/Calico Pie/Family Historian/Plugins/IRP/5.1//!!XPcall.irp"

local handle = io.popen(_IRP)
err = handle:read('*a')
handle:flush()
handle:close()

I also intend to compile objects from  various Plugins subfolders and install the compiled object in the Plugin folder itself:

_OBJ = "C:/Program Files/LUAC/5.1/luac5.1.exe" -t -s -o "C:/ProgramData/Calico Pie/Family Historian/Plugins/QSYS_HDR.lua"  "C:/ProgramData/Calico Pie/Family Historian/Plugins/QSRC/QSYS_HDR.lua"
where the source file is intended to be     :  "C:/ProgramData/Calico Pie/Family Historian/Plugins/QSRC/QSYS_HDR.lua"
and the compiled object is intended to be:  "C:/ProgramData/Calico Pie/Family Historian/Plugins/QSYS_HDR.lua"

thank you in advance.  Ron