Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 20-10-2016, 16:40
gozarck's Avatar
gozarck gozarck is offline
Registered User
 
Join Date: Nov 2013
Location: Argentina
Posts: 163
Thanks: 254
Thanked 495 Times in 114 Posts
gozarck is on a distinguished road
HI @ChronnoCross Thanks for the code. Well i was thinking and reading LUA code and maybe i resolve your request(with minimal knowledge).
--how to read parts without merge those files?
Well the only trick i made is send the data to Buffer.
Example:
FA Next request the file to extract, so the code create the file "data.arc" with 0MB(like a temp file but isn't)
and send the data of data.part1, data.part2 and data.part3 to buffer. FA Next read the collected data from buffer and extract the files.
the file data.arc always have 0MB because with the LUA code "flush" you flush the buffer.
Code:
onArchiveStart(function ()
        f =  io.open(command.arcname, "wb")   
	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")	
	io.output(f:write(f4)):setvbuf("full")	
end)

onArchiveDone(function ()
    f =  io.open(command.arcname, "wb")   
	f:flush()
end)
maybe we need to check the code or add some more lines
__________________
-the science of the useless-
Reply With Quote
The Following User Says Thank You to gozarck For This Useful Post:
RamiroCruzo (21-10-2016)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The ONLY Half-Life 2 Thread. Do Not Create New Threads JoyBoy PC Games 286 25-03-2005 06:49
Official Sims 2 Thread JoyBoy PC Games 229 25-10-2004 17:01
'Official' CM4 Thread - Do Not Create New Threads Fila PC Games 119 23-07-2003 07:33



All times are GMT -7. The time now is 13:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com