Quote:
Originally Posted by artag
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.
|