View Single Post
  #21  
Old 27-03-2018, 09:58
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 696 Times in 191 Posts
rinaldo is on a distinguished road
Quote:
Originally Posted by artag View Post
hi rinaldo: newbie question here:

Let's say i have my game packed on 3 arc files: main.arc sound.arc videos.arc

where on the script should i put the name of the files?

thanks
EXAMPLE:

Code:

#define Data1 "main.arc"
#define Data2 "Video.arc"
#define Data3 "Sound.arc"
#define Data4 "LanguageEN.arc"
#define Data5 "LanguageDE.arc"
#define Data6 "LanguageIT.arc"
#define Data7 "LanguageRU.arc"
#define Data8 "LanguageFR.arc"
#define Data9 "LanguageES.arc"
#define Data10 "LanguageCA.arc"


if not ISArcExtract    ( 0, 55, ExpandConstant('{src}\{#Data1}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data2}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data3}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data4}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data5}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data6}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data7}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data8}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data9}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data10}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

EXAMPLE2 for 3 packed:

Code:
#define Data1 "main.arc"
#define Data2 "Video.arc"
#define Data3 "Sound.arc"


if not ISArcExtract    ( 0, 90, ExpandConstant('{src}\{#Data1}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data2}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract    ( 0, 5,  ExpandConstant('{src}\{#Data3}'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
__________________
if you understand read more

Last edited by rinaldo; 27-03-2018 at 10:04.
Reply With Quote
The Following User Says Thank You to rinaldo For This Useful Post:
Simorq (27-03-2018)