HI ChronoCross Nice idea and a litle complicated for me

the first Idea is awesome, but i can't help you

.
I started to read LUA and looks easy to undertand.
Quote:
Originally Posted by ChronoCross
well another problem here (help) you need to run the bat two times.
the first is an error like data.arc is not a valid fa next file.
because the code first create data.arc with 0b.
but the second time you run the bat, fa next extract correctly because the program found a joining data in data.arc.
If someone have an idea to fix this or help to the first idea please go on!
|
let me help you in this part.
add some lines in your fa.ini code
repeat and until ~=
Code:
onProgramStart(function ()
repeat
a = "none"
f = command.arcname
f = io.open(f, "a")
f:write()
f = io.open("data.arc", "r+b")
f1 = io.open("data.part1", "rb")
f2 = io.open("data.part2", "rb")
f3 = io.open("data.part3", "rb")
f4 = f1:read("*all")..f2:read("*all")..f3:read("*all")
t = io.output (f:write(f4))
until f ~= assert ( io.open("data.arc", "r"))
f:close()
end)
Now can join and extract the files correctly.