FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Tutorial using CI 8.0.0 (https://fileforums.com/showthread.php?t=92805)

NiTroViouSiX 02-07-2012 11:33

yeaaaah ...thanks dude ,,, its done
really thanks for you and Joe Forster/STA
if i face any other problem i will inform u:D
(sorry for bad english ):D
thanks :)

NiTroViouSiX 02-07-2012 15:49

mate sorry,,

but there are some points

Quote:

-> Compress Data.arc in Data.pcf
-> Compress Data.pcf in Data.srep
-> Compress Data.srep in Data.cab
i have compressed data to " .arc"
but how to compress it to (pcf-srep-cab)
also by rename them?

- i need too , to know how to attach direct x - c++ ?

Quote:

[LauncherSettings]
InstallRedist=1

Launch1=DirectX
Launch164=0
Launch1BeforeInstall=1
LaunchCom1=support\DirectX\DXSETUP.exe
LaunchArg1=/silent

Launch2=OpenAL
Launch264=0
Launch2BeforeInstall=1
LaunchCom2=support\OpenAL\OpenALwEAX.exe
LaunchArg2=/s

Launch3=Rapture3D
Launch364=0
Launch3BeforeInstall=1
LaunchCom3=support\Rapture3D\rapture3d.exe
LaunchArg3=/silent
i do'nt understand it well?

best regards,,thank you

Born_inSANE 11-07-2012 06:54

I am facing the same problem as "NiTroViouSiX" is facing i.e; even after renaming *.zip -->*.cab there were no images showing during images(Zero images + No sound).So started compressing game files and renaming Data1.arc---->Data1.cab,then started setup after changing few things in Setup.ini and Installer.iss.
Then the game wasn't there but only uninstallation files were present and a shortcut was show on desktop.


So it would be good to hear from the experts for the solution for this


Compress all files in Data.arc
-> Compress Data.arc in Data.pcf
-> Compress Data.pcf in Data.srep
-> Compress Data.srep in Data.cab

I think just renaming isn't the thing so I am expecting someone to explaining the above process.I am a nOOb so don't say that "Can't you even do this simple process by yourself,you'r a noob".Please help out this poor person.

BAMsE 11-07-2012 09:29

NiTroViouSiX, Born_inSANE you don't need to
Code:

Compress all files in Data.arc
 -> Compress Data.arc in Data.pcf
 -> Compress Data.pcf in Data.srep
 -> Compress Data.srep in Data.cab

This process is used to gain better compression ratio.

If you really need it, so, here you go:
1. compress files with freearc and zero compression (output file i.e. data321.arc)
2. compress data321.arc with precomp (output file: data321.pcf)
3. compress data321.pcf with srep (output file: data321.srep)
4. compress data321.srep with freearc and some strong compression (output file: data321.cab)

Remember to modify setup.ini
Code:

FreeArcFile321={src}\Data321.cab;DestDir:{app};Disk:1;PrecSrep:1
NiTroViouSiX it's easy:

Code:

Launch1=My program                            ---> name of the redist program shown near the checkbox in installer 
Launch164=0                                  ---> 32/64 bit application switch
Launch1BeforeInstall=1                        ---> should be redist program installed before or after main installation
LaunchCom1=redist\MyProgram\myprogram.exe    ---> path to the exe
LaunchArg1=/silent                            ---> additional arguments i.e. for silent installation (usually you can get it by executing myprogram.exe with /? argument


Born_inSANE 11-07-2012 09:36

Thanks got it,will work on it.

mikey26 11-07-2012 09:37

BAMsE what would be the best settings for precomp and srep for max compression.i created a bat fie for precomp eg : precomp -intense -oData1 Data1.arc and for srep eg:srep -m2 Data1.pcf Data1.srep ant other tips would be much appreciated.

Born_inSANE 11-07-2012 09:46

Getting some good compression ratios by this way,thanks for helping out.

BAMsE 11-07-2012 09:53

mikey26 use
Code:

precomp -intense -v -c- -oData1 Data1.arc
-c- means zero compression for output file (better srep results)
-v means debug mode (if something goes wrong you can see problematic position and start precomping once again but with -i######### parameter; ######### means problematic position)

Born_inSANE 11-07-2012 09:58

Quote:

Originally Posted by mikey26 (Post 404247)
BAMsE what would be the best settings for precomp and srep for max compression.i created a bat fie for precomp eg : precomp -intense -oData1 Data1.arc and for srep eg:srep -m2 Data1.pcf Data1.srep ant other tips would be much appreciated.

Can u give the complete command for running max compression using .bat file,include everything,I tried echo Command didn't work,so that it help me out.

mikey26 11-07-2012 10:13

thx BAMsE's info was great understand it much better now.very easy now.

@ Born_inSANE

Make a precomp.bat inside the bat file paste : precomp -intense -v -c- -oData1 Data1.arc (replace data1 with what eva your arc file is called)

Srep : make bat file again paste inside bat file srep -m2 Data1.pcf Data1.srep (u can switch m2 for m3 for more compression.

also read futher up what Bamse wrote about problematic areas using precomp to use the switch -i

BAMsE 11-07-2012 10:50

You can use drag'n'drop function :D
precomp042.bat
Code:

precomp042 -intense -v -c- %1
pause

srep30.bat
Code:

srep30 -m3f %1
pause

Now drag'n'drop any file on these bats in explorer :D
Remember to change extension of output files (blablabla.pcf.srep ---> blablabla.srep)

mikey26 11-07-2012 14:51

Problem Event Name: APPCRASH
Application Name: precomp042.exe
Application Version: 0.0.0.0
Application Timestamp: 4e7f8c91
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7600.16385
Fault Module Timestamp: 4a5bdb3b
Exception Code: c0000005
Exception Offset: 0002e23e
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 7177
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789


any idea why this happens: i did u this command in my bat as u said : precomp -intense -v -c- -oData1 Data1.arc

BAMsE 11-07-2012 16:02

1 Attachment(s)
mikey26 don't bother with windows error window. You need to have pause command after precomp -intense -v -c- -oData1 Data1.arc to avoid cmd window disappearance and to see position of faked header. So find last "found at position" text and use this sequence of numbers with -i parameter
Attachment 3590

mikey26 11-07-2012 16:12

cool stuff mate....very painful getting almost to end and error and have to restart again thank god for my spare converting pc goes fairly quick..

Born_inSANE 12-07-2012 05:33

Running those commands off bat files made 35MB file to 36MB after running both precomp and srep.
After that I just used drag'n'drop on precomp.exe and srep.exe,then those files went from 35MB to 15.8MB after running precomp and it stayed the same after srep using both .exe.
Was everything right there ?And what next if everything is right ?

After using bat method I got a file close to 11Mb but is this right ?
http://imagebay.us/images/4o0rxnq0smu4cfsezyu_thumb.png

And the version made using .exe is this http://imagebay.us/images/8uqkxcjl8aifri9g0xi5_thumb.png and I believe that its right,So which one is right ?


Sorry for so many posts though.

BAMsE 12-07-2012 11:35

Born_inSANE if you're running process with -c- parameter, the output file will be bigger and better srepped due to using no compression.
If you're running process via drag'n'drop on exe it uses default -cb compression on output file so it'll be smaller but worse srepped
the right choice is -c- and bigger output

BTW: when I told about drag'n'drop few posts above I mean drag'n'drop to bat file, not exe :)

Born_inSANE 12-07-2012 20:35

Thanks BAMse.Now I compressed the Data1.srep using freearc,and after compression the Data1.arc had few files that are meant to be compressed and the Data1.srep in it ,so should I delete Data1.srep or not ?

BAMsE 13-07-2012 03:57

Born_inSANE data1.srep must be compressed to data1.cab not data1.arc.
Your directory probably contains both data1.arc and data1.srep while compressing srep file, so it was added to existed data1.arc.

Finally data1.cab must contain data1.srep ONLY

mikey26 13-07-2012 04:21

Hi BAMse thanks again for all the help got it working perfect (precomp and srep). just one thing after precomp finishes running it giving a suggestion on commands to use in srep should they be used eg: -zl11,68 -d1.other than that i have yener's awesome script and precomp with srep working perfect for me.


Dont worry sorted it out stupid mistake

BAMsE 13-07-2012 13:27

Quote:

Originally Posted by mikey26 (Post 404290)
commands to use in srep should they be used eg: -zl11,68 -d1

No no. These parameters are for precomp if you are precomping THIS file once again. Using them speeds up the process

Born_inSANE 13-07-2012 22:04

How to compress Data.srep to Data.cab ?
And I tried putting few images(Resized and renamed) in setup.cab but they aren't showing up,is this because of wrong compression(I compressed them using freearc and renamed to*.cab)

pakrat2k2 13-07-2012 22:19

the setup.cab is used by CI 8*, to display the images etc, NOT for your game archives.

you create a m0 ( no compression archive, for your game ) then you precomp that file, which will end up bigger then original archive, then srep the output file from precomp, finally re-archive the output srep file with whatever compression you want. ALL filenames must have same prefix, IE use data.arc then data. - - - for both precomp & srep. At the very end you can specify the final filename output as either *.arc/cab/bin whatever you want to call it, could even be mnbvhgoewe... the name + extension is up to you. Just make sure that the script knows what filename+extension its supposed to look for.

As for the images NOT showing up its because the setup.cab file MUST use either winrar or 7-zip to add / replace images in it. First lines on page 1 of this topic.

Here is a big tutorial for my CI (C Custom I Installer) 8:
Required files for the installation..... ( next line ) tells you what setup.cab is & how to edit it.

Born_inSANE 14-07-2012 01:52

I have compiled the script and got mygame.exe , couple of setup.bin files at 2.01GB and at first run its asking for disc 1,did I make any mistake ?

mikey26 14-07-2012 02:51

@Born inSANE edit your setup.ini it should look something like this if your used precomp and srep.

[InstallOptions]
ApplicationName=Dirty Showdown
Publisher=Codemasters
MyExecutableName=showdown.exe
MyExecutablePath=
SaveGameFolder=
GameSize=9646
Lang=de,en,es,fr,it
LangUI=0
PrecompVer=0.42
Editor=yener90

[InstallSettings]
GDFBinary=game_gdf.dll

[ExtractSettings]
FreeArcFile1 = {src} \ Data1.bin; DestDir: {app}; Disk: 1; PrecSrep:1
FreeArcFile1 = {src} \ Data2.bin; DestDir: {app}; Disk: 1; PrecSrep:1

Leave out PrecSrep:1 if your just used freearc

Born_inSANE 14-07-2012 03:31

Got this error IsDone.dll.I compressed this way data.arc---->data.pcf------>data.srep,and at last compressed data.srep with winzip and renamed it asa data.cab and compiled it.

Born_inSANE 14-07-2012 05:01

I just removed
[ExtractSettings]
FreeArcFile1 = {src} \ Data1.bin; DestDir: {app}; Disk: 1; PrecSrep:1
FreeArcFile1 = {src} \ Data2.bin; DestDir: {app}; Disk: 1; PrecSrep:1

from the script and and ran .exe, it extracted the Data1.arc and Data2.arc which had srep files in them.

mikey26 14-07-2012 05:11

@Born_inSANE u need to compress the data.srep with freearc not winzip.use the setting
[ExtractSettings]
FreeArcFile1 = {src} \ Data1.bin; DestDir: {app}; Disk: 1; PrecSrep:1
FreeArcFile1 = {src} \ Data2.bin; DestDir: {app}; Disk: 1; PrecSrep:1

just replace data1.bin with what eva your cab file is called.

Born_inSANE 14-07-2012 06:35

Now it installed but the o/p folder has Data.arc with Data.srep in it,what happened exactly ?

mikey26 14-07-2012 08:02

are u using yener's script post the iss and setup.ini let me have a look and what version of precomp and srep are u using?

Born_inSANE 14-07-2012 09:26

I'll do it soon.

BAMsE 14-07-2012 13:53

Born_inSANE you probably messed up with archives. Make some small archive for testing and try to do it correct way.
Remember 1: compress srep file directly to cab not arc (and changing its extension to cab)
Remember 2: cab containing game files (also srep) is freearc archive, cab containing setup files (backgrounds, music) is winrar/7-zip/winzip archive (zip compressed with deflate algorithm and renamed to cab)

Born_inSANE 14-07-2012 22:38

Here is the link for .iss and .ini files I used.
Link:http://www.mediafire.com/download.php?4a26a3ddd7sz6ht.
Please check it.

Now I have got the difference,but can you help me out in compressing srep directly to cab.Because I got error while directly compressing srep to cab.

BAMsE 15-07-2012 00:40

1 Attachment(s)
Damn Born_inSANE! Sorry man, but you're not nØØb, you're NØØB.

First. Use built-in attachement systen instead of mediafire.

Second. In your setup.ini
Code:

FreeArcFile1={src}\Data1.cab;C:\Program Files (x86)\Ubisoft:{app};Disk:1;PrecSrep:1
should be
Code:

FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1;PrecSrep:1
What the hell for you changed DestDir to C:\Program Files (x86)\Ubisoft? DestDir is a variable and {app} is its value! Moreover, {app} means the path defined during installation.
So if someone want to install your Far Cry 2 to E:\Any_folder\Another_folder and type it during installation, then {app} means E:\Any_folder\Another_folder and Data1.cab will be extracted to E:\Any_folder\Another_folder
If Data1.cab should be extracted to any subfolder of installation path, i.e. Movies, then
Code:

FreeArcFile1={src}\Data1.cab;DestDir:{app}\Movies;Disk:1;PrecSrep:1
will extract content of Data1.cab to E:\Any_folder\Another_folder\Movies

Third.
Quote:

Originally Posted by Born_inSANE (Post 404337)
I got error while directly compressing srep to cab.

:)
:D
<facepalm>

Here is solution for your... ekhem... error
Attachment 3596

I give up. Over and out.

Born_inSANE 15-07-2012 01:36

Sorry for all the trouble BAMsE.

REV0 27-07-2012 05:41

Is anyone have stable version of precomp ?

They got stuck after 48 percent..

mikey26 27-07-2012 06:00

1 Attachment(s)
Hi revo this is the version i am using and its working perfect so far for me i included the version of srep also hope this helps u out.

REV0 27-07-2012 07:35

Thanks for upload, however it's also stucked on 45 percent and 13..

We're just dragging data.arc file over precomp.exe right ?

No additional steps

mikey26 27-07-2012 08:05

yeah i made a bat file for both srep and precomp thx to Bamse for the help on that.i just used that version of precomp and srep that i uploaded on mafia 2 to get it down to single dvd5 worked like a dream.the bat files are for max compression.drag the data.arc on the precomp.bat should work perfectly.

REV0 27-07-2012 08:12

Just dragged 5.5GB of arc to PCF then SREP, in the end i have 49MB..

Can it compress that much or it's an error:eek:

mikey26 27-07-2012 09:54

wat u trying to precomp anf srep i will give it a go and see what happens if i have the game that is.but that does not sound right.


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

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