FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Blackbox Inno Setup Script (https://fileforums.com/showthread.php?t=94425)

Kurutucu 20-05-2013 12:47

@skakmatch

Open Main.iss.

1. Add this under #defines:

Code:

#define Publisher "Ubisoft"
2. Find DefaultDirName={{#Dir}}\{#AppName} then change with this

Code:

DefaultDirName={{#Dir}}\{#Publisher}\{#AppName}

Razor12911 20-05-2013 12:48

@skakmatch
{pf}\UbiSoft\FarCry 3

Quote:

Originally Posted by Shanilka (Post 418237)
How to add Compact View Option to my setup :cool:

[Types]
Name: full; Description: Full installation; Flags: iscustom

D4rkSp4wn 21-05-2013 04:20

Hi, iam compressing my game with -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8

using Freearc 0.67 alpha, i have included the arc.ini in the script and theres only one file called Data-1.bin

The decompressionj line is
Code:

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data-1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
all seems to be normal but when it starts the extraction i got the following errors

http://imageshack.us/a/img819/3221/error1i.png

when i press ok i get

http://img199.imageshack.us/img199/7880/error2g.png

i am kinda stuck, any help will be much appreciated.

Razor12911 21-05-2013 04:32

1 Attachment(s)
@D4rksp4wn

Use this unarc.dll

download and extract attachment, copy and replace the unarc.dll in include folder

D4rkSp4wn 21-05-2013 13:20

Quote:

Originally Posted by Razor12911 (Post 418325)
@D4rksp4wn

Use this unarc.dll

download and extract attachment, copy and replace the unarc.dll in include folder

Thank you very much for the fast reply but unfortunately it didnt worked for me, i am still getting the same error.

Thank you in advance.

Razor12911 21-05-2013 13:26

by the way. What method did you use?

y_thelastknight 21-05-2013 13:39

i think its precomp error..try without precomp..

D4rkSp4wn 21-05-2013 16:47

Quote:

Originally Posted by Razor12911 (Post 418347)
by the way. What method did you use?


The compression method i used is
Code:

-mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
i have also tried copying the unarc.exe and arc.exe from my Freearc bin folder to the include folder but unfortunately it did not helped.

they way i am doing it is:

i browse the main game folder, select all files and folders by pressing Alt+A then right clicking it and cascade menu Freearc===> Add to Archive

during the compression process i have noticed that the precomp version used by Freearc is the 0.42 so i have defined it in the decompression script header as 0.42.

Weird thing is that if i extract the file using the right click options==>Freearc==>Extract Here all works fine and the file get extracted with no error.

Also noticed that selecting all files and folders and using the -m0 then srep (default settings) then Freearc -mx works if i define the decompression lines in the script but the compression ratio is not good as if i use the
Code:

-mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
compression chain.

Also if i use the precomp(default settings) before srep compressing manually it seems srep cant do anything with the precomp file so looks like doing it manually is not an option for me.

i am used to scripting but this one is really cracking my head with this error, i have been compressing games since 2001 and i have experience with a lot of compression algorithms (like darkcomp paq*,uha etc) i still use the setup.bat thingy but since it can get some users in trouble because of windows user permissions and UAC and bla bla bla i am moving to Inno and the best stuff i got till now is this script (Faster,Easier etc.).

Anyway, the game i am doing final size is 15gb and compressed i got it to 2.12gb using audio conversion and file injection so i am happy with the size itself hehe, i just need to get rid of this damn error lol.

Best Regards

Zocky 22-05-2013 05:09

Problem Decompress :confused:

Code:

if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\Setup-1.srep'),ExpandConstant(' {app}\Setup-1.pcf'), true) then break;
if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\Setup-1.pcf'), ExpandConstant('{app}\Setup-1.bin'), true) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-2.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\Setup-2.srep'),ExpandConstant(' {app}\Setup-2.pcf'), true) then break;
if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\Setup-2.pcf'), ExpandConstant('{app}\Setup-2.bin'), true) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-2.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-3.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\Setup-3.srep'),ExpandConstant(' {app}\Setup-3.pcf'), true) then break;
if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\Setup-3.pcf'), ExpandConstant('{app}\Setup-3.bin'), true) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-3.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;


Razor12911 22-05-2013 07:16

@D4rkSp4wn

i see, this script has a lot of bugs which i can fix and make them disappear but my hands are tied.

Try that method using the converter, program i created. If it fails, then there's nothing i can do.

Razor12911 22-05-2013 07:19

@Zocky,

first error is the progress, read up the tutorials i did on the previous page.

D4rkSp4wn 22-05-2013 07:28

Quote:

Originally Posted by Razor12911 (Post 418384)
@D4rkSp4wn

i see, this script has a lot of bugs which i can fix and make them disappear but my hands are tied.

Try that method using the converter, program i created. If it fails, then there's nothing i can do.

what converter? can you please link me to it?

Razor12911 22-05-2013 09:43

fileforums.com/showthread.php?t=94435 there. And almost forgot, the problem might be arc.ini too.

D4rkSp4wn 22-05-2013 14:45

thank you very much, downloading and testing your code right now, once tested will let you know my thoughts.

all the best from Brazil.

foo8088 23-05-2013 00:46

ops sry i found the answer


All times are GMT -7. The time now is 10:57.

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