FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   [GSERIES] Custom Installer Ultimate V2g (https://fileforums.com/showthread.php?t=99345)

vollachr 19-03-2018 07:36

Quote:

Originally Posted by vollachr (Post 469280)
Quote:

Originally Posted by KaktoR (Post 469261)
Maybe diskspan is not compatible with uelr? Try to pack/unpack a single file

Nope, no diskspan related, just tested without diskspan and same unarc.exe crash, it seems to always happen after the 5th file extracted, always same file as well.

I'll run a test of UELR alone to see if it's UELR related or one of the other compressors in my method.

Nope, I just finished an UELR only compression and the unpack.bat produces the following at the exact same place as unarc.exe crashed before:

Code:

ERROR: archive data corrupted (decompression fails)
Exit code: 2

Just for knowledge sake I also ran the game files through Razor12911's Game File Scanner, didn't want to wait till it finished, took way too long but in the time I let it run it found 272 zlib counts and over 18000 LZO counts.

So I can't figure out why it happens.

KaktoR 19-03-2018 07:37

I will report back soon with more info.

Give me some time ^^

KaktoR 19-03-2018 08:48

Testfile: \DLC\Marigold\Compat\Textures\CharTextures_marigol d.tfc

uelr:uv+srep+delta+lzma
=> stucks on 100% (i am sure there will follow a error if i wait some time)

uelr:uv+srep+lzma
=> Unpacking was fine

So the problem here was delta (and delta archive was ~1.5mb bigger than without btw)

Would be good if you could name the exact file where error appear so i can test this file too

vollachr 19-03-2018 09:47

Well, I didn't compress any specific files, just the entire game folder in one go. The error always appears to be after or at a file named LICENSE, I think it's in one of the binaries\redist sub folders.

I don't believe it's a uelr file as well, it appears to be one of the files that are not uelr compressed.

Optimally I would like to use uelr+srep+lzma+bpk since there are also a little over 1gb of bik files.

Anyway, as I mentioned, I get an error when using uelr alone as well, no delta or any other compressors involved.

I thought it might be related to using a upx compressed uelr executable but it wasn't, I tested.

KaktoR 19-03-2018 10:13

\Binaries\Redist\MCPP\LICENSE is a normal file without any file extension (you can open it with n++, some license shit in it for MCPP obviously).

Anyway, *.upk and *.tfc contains lzo streams. Unfortunatelly diskspan only allow a single archive and - what's worst - not allow masked compression.

Sometimes it can be that a precompressor has a problem with unpacking a streamless file. But anyway streamless files should always be excluded when you packing with a precompressor (what DiskSpan can't handle). Another example is that sometimes ztool/pzlib3 has a problem restoring a zip archive (like in Sims 4 to name a example).

vollachr 19-03-2018 12:34

I know what that LICENSE file is, it appears uelr have some problems either with it or what comes right after, it is the last file shown before the error occurs.

Anyway, diskspan can actually handle file exclusions pretty well, it's just a matter of using the correct command line syntax, which I have figured out.

The problem is that you'll need to create multiple diskspan archives, each with a different first disk size, a function that my compression script currently don't have.

So I either need to avoid diskspan or avoid uelr, I'll have to run some tests before I decide which one to remove from my compression.

Alternatively, maybe moving redist to disk folders and exclude them from compression could also work.

Anyway, if I'll have any more problems related to this I'll let you know, thanks for the help.

vollachr 20-03-2018 03:19

Quote:

Originally Posted by vollachr (Post 469302)
I know what that LICENSE file is, it appears uelr have some problems either with it or what comes right after, it is the last file shown before the error occurs.

Anyway, diskspan can actually handle file exclusions pretty well, it's just a matter of using the correct command line syntax, which I have figured out.

The problem is that you'll need to create multiple diskspan archives, each with a different first disk size, a function that my compression script currently don't have.

So I either need to avoid diskspan or avoid uelr, I'll have to run some tests before I decide which one to remove from my compression.

Alternatively, maybe moving redist to disk folders and exclude them from compression could also work.

Anyway, if I'll have any more problems related to this I'll let you know, thanks for the help.

OK, it appears uelr in my case, even if I exclude the redists entirely, still produces the same error, it's always after the 5th file and always after a none lzo file (.bik file at last try).

So it's gonna give me a big headache using uelr, and considering that so far, even with uelr I couldn't get the game below 3 discs (just the 3rd disc size is much smaller with uelr) I don't see the point of pressing it any further, I just won't use it in this conversion.

vollachr 21-03-2018 07:35

OK, Still have issues with getting CIUv2.0.5g to unpack uelr and bpk created archives.

And now I'm talking archives that only include file types relevant to said compressors.

I get an unsupported method error when I try to install bpk created data.bin file, it was created using FreeArc with BPK CLS...

I have the cls-bpk.dll & bink_unpack.exe in the Include/Addon folder, I even have an entry in arc.ini, just in case, tried with the arc.ini entry and without it, always get unsupported method error.

Same thing happen with a Data.bin created with uelr+srep+lzma, I have the cls-uelr.dll in Include\Addon folder, no Arc.ini entry as it isn't needed, I also included the timer.exe, just in case, keep getting unsupported compression method error.

Any ideas?

Because I can unpack them manually without a problem, the archives are OK.

KaktoR 21-03-2018 08:14

Last try: Try with 2.0.3.9. If unpacking is ok, problem is 100% by 2.0.5g.

vollachr 21-03-2018 08:25

Quote:

Originally Posted by KaktoR (Post 469409)
Last try: Try with 2.0.3.9. If unpacking is ok, problem is 100% by 2.0.5g.

Does 2.0.3.9 have BPK support?

Otherwise it's only good to test the uelr problem.

KaktoR 21-03-2018 08:26

Yes, it has all of them

PS: You should only enable them in "External Compressor.ini" before compiling.

vollachr 21-03-2018 08:37

Quote:

Originally Posted by KaktoR (Post 469412)
Yes, it has all of them

PS: You should only enable them in "External Compressor.ini" before compiling.

Yeah, noticed that, just, I don't know, maybe I'm missing something, but where's the ExtractSettings in the 2.0.3.9 Setup.ini?

Or how do I tell it which data files to extract?

KaktoR 21-03-2018 08:41

2.0.3.9 only using ultraarc (no internal archive handling).

Just create a records.ini
Code:

[Record1]
Type=Freearc_Original
Source={src}\Data1.bin
Output={app}
Disk=1


vollachr 22-03-2018 02:48

Quote:

Originally Posted by KaktoR (Post 469418)
2.0.3.9 only using ultraarc (no internal archive handling).

Just create a records.ini
Code:

[Record1]
Type=Freearc_Original
Source={src}\Data1.bin
Output={app}
Disk=1


Worked perfectly with 2.0.3.9 and records.ini, so I guess it's CIUv2.0.5g problems.

Unfortunately, I hate using UltraArc and I rather avoid Records.ini file when I possibly can so I'll look into alternative solutions.

At least I now know it's not my compression's fault.

vollachr 25-03-2018 01:40

Quote:

Originally Posted by Gupta (Post 461191)
Editing Ini:
[Tasks]
EditIni1={src}\Codex.ini;Section:Settings;Key:Lang uage;Value:czech;Lang:czech
EditIni2={src}\Codex.ini;Section:Settings;Key:Lang uage;Value:english;Lang:englishUS
EditIni3={src}\Codex.ini;Section:Settings;Key:Lang uage;Value:Default

multiple languages can be separated by ','
EditIni2={src}\Codex.ini;Section:Settings;Key:Lang uage;Value:english;Lang:englishUS,englishUK

above tasks will be performed at ssPostInstall

Can't get the EditIni feature to work...

The ini I need edited is in a sub-folder in the game's installation (Binaries\Win32\), the ini file name is steam_api.ini

The section is [Settings], the key is Language, the available languages are:
English (EnglishUS)
German
French
Italian
Spanish (SpanishES)
Japanese
Korean
Russian

What I tried:

Code:

EditIni1={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:english;Lang:EnglishUS
EditIni2={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:german;Lang:German
EditIni3={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:french;Lang:French
EditIni4={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:italian;Lang:Italian
EditIni5={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:spanish;Lang:SpanishES
EditIni6={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:japanese;Lang:Japanese
EditIni7={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:korean;Lang:Korean
EditIni8={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:russian;Lang:Russian

Also tried the same with {app} instead of {src}

But nothing happens, the value in the ini file remains Language=english, no matter what.

Here's how the ini looks in the relevant section:

Code:

[Settings]

###
###
### Enter your name here
###
### Names with diacritic or cyrillic characters are supported but no garantee to work
###

UserName=MYNAME

###
### Select your language here if available
###

Language=english

Any help?

Thanks.

Gupta 25-03-2018 04:40

Quote:

Originally Posted by vollachr (Post 469573)
Can't get the EditIni feature to work...

The ini I need edited is in a sub-folder in the game's installation (Binaries\Win32\), the ini file name is steam_api.ini

The section is [Settings], the key is Language, the available languages are:
English (EnglishUS)
German
French
Italian
Spanish (SpanishES)
Japanese
Korean
Russian

What I tried:

Code:

EditIni1={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:english;Lang:EnglishUS
EditIni2={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:german;Lang:German
EditIni3={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:french;Lang:French
EditIni4={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:italian;Lang:Italian
EditIni5={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:spanish;Lang:SpanishES
EditIni6={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:japanese;Lang:Japanese
EditIni7={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:korean;Lang:Korean
EditIni8={src}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:russian;Lang:Russian

Also tried the same with {app} instead of {src}

But nothing happens, the value in the ini file remains Language=english, no matter what.

Here's how the ini looks in the relevant section:

Code:

[Settings]

###
###
### Enter your name here
###
### Names with diacritic or cyrillic characters are supported but no garantee to work
###

UserName=MYNAME

###
### Select your language here if available
###

Language=english

Any help?

Thanks.

Are you changing the language from autorun?

vollachr 25-03-2018 04:47

Quote:

Originally Posted by Gupta (Post 469575)
Are you changing the language from autorun?

Of course, I tested on German & Italian languages with same result, the ini isn't being changed, it stays with the default English value, even though I selected the correct language on autorun and performed the entire setup in selected language.

vollachr 25-03-2018 06:28

OK, finally figured the EditIni problem out...

It seems there should be an ending semicolon at the end of each line and it should be with {app}, like this:

Code:

EditIni1={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:english;Lang:EnglishUS;
EditIni2={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:german;Lang:German;
EditIni3={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:french;Lang:French;
EditIni4={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:italian;Lang:Italian;
EditIni5={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:spanish;Lang:SpanishES;
EditIni6={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:japanese;Lang:Japanese;
EditIni7={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:korean;Lang:Korean;
EditIni8={app}\Binaries\Win32\steam_api.ini;Section:Settings;Key:Language;Value:russian;Lang:Russian;

That finally worked, at least for the German language, will now test other languages. (Update: Worked for all languages)

It just doesn't work without that last semicolon, my guess is it needs it to "close" the Lang parameter in the line, but I'm no programmer.

vollachr 09-04-2018 08:09

1 Attachment(s)
I'm having a weird problem, I'm creating another of many conversions using the latest Compiler.exe (the one that supports Diskspan - 2.0.5g 180210).

So far, it worked perfectly for every conversion, but this time around I get an error when canceling the installation, see attached image.

I haven't changed any files in the include or include/addon folders compared to any of my other conversions, I'm even using same compression method that worked for most of my conversions so far.

And I can't find anything in Setup.ini that seems to be the reason.

I'd love some help with that, thanks.

Gupta 09-04-2018 08:21

you sure you're using correct cls-diskspan.dll

if you sure then send me the files, i'll try debug it...

vollachr 09-04-2018 08:24

Quote:

Originally Posted by Gupta (Post 470065)
you sure you're using correct cls-diskspan.dll

Yes, I do, the full uncompressed 1MB cls-diskspan.dll.

I remember having a similar issue before and you told me back then that it was that so I checked to make sure, beside, I have been using the original diskspan dll file ever since.

And I copy the same folder with the same files from conversion to conversion, changing only the design files and setup.ini.

That's why I can't understand it, same files with same simple compression method (m4b+diskspan) worked without a problem before.

Gupta 09-04-2018 08:31

if you sure then send me the files, i'll try debug it...

vollachr 09-04-2018 08:33

Quote:

Originally Posted by Gupta (Post 470067)
if you sure then send me the files, i'll try debug it...

I'm uploading the files to my cloud account, I'll PM you when ready.

Thanks.

pakrat2k2 09-04-2018 09:47

vollachr, had the same type issue, but not with CIUv2.0.5g, 2039 version. I have a base folder that I used & like you only changed design files & setup.ini, and use over & over again. Couple times for no apparent reason I was getting some kind of corruption, all I had to do was rename the bad setup.ini & copy of a new fresh one. But then DONT copy / paste from old to new, type each line in, & it seemed to fix whatever was causing the issue.

vollachr 09-04-2018 10:25

Quote:

Originally Posted by pakrat2k2 (Post 470069)
vollachr, had the same type issue, but not with CIUv2.0.5g, 2039 version. I have a base folder that I used & like you only changed design files & setup.ini, and use over & over again. Couple times for no apparent reason I was getting some kind of corruption, all I had to do was rename the bad setup.ini & copy of a new fresh one. But then DONT copy / paste from old to new, type each line in, & it seemed to fix whatever was causing the issue.

I'll try that, got nothing to lose.

UPDATE: Nope, didn't help, just did that, I renamed my setup.ini, copied the default CIUv2 Setup.ini file in it's place and manually typed everything into it, same problem.

Weird thing is, I sent Gupta the files and he couldn't re-create my problem, even with my files which had the original Setup.ini.

I can't figure it out, I'm pretty sure it's diskspan related though, I initially though maybe something else in the Addons folder causes it so I left only the diskspan dll file in there and the problem kept occurring. Maybe I'll try to replace the dll file again, might got corrupt or something.

Kitsune1982 01-06-2018 08:52

hey guys, since this is the thread for the CIU that gupta has been working on, i will post my query i made on kaktor's ciu thread here, since he has told me he isnt working on the script anymore.

riginally Posted by Kitsune1982 View Post
hey guys, i was digging through the ciu wiki but i am stumped on something. how do i make a full screen installer instead of having the little 498x431 little window? i tried to adjust the size in the setup.ini and resizing my wallpaper those being autorun.png and installer.png but i come across two problems. the first is it displays the wallpaper at the resolution i specified in the setup.ini but the actual installer window with the install/customize/cancel/etc buttons is in a small 498x431 window at the top left of the installer window. the second is that when i do specify the correct settings, and get a fullscreen installer image, the buttons fly off to the left of the installer, and whenever i adjust the actual installer template image in my image editor, i can never get the installer buttons to line up correctly. could someone help me with this? this is the only part i am having problems with. thanks. Catch you on the flip side.

ps, i should also mention i was wondering how to make those cool full screen set up pages like the 'Pillars of Eternity Royal Edition' autorun installers on this site. would love to know how to do that, too.

-Kitsune

Kaktor>>> Actually you can't. The CIU was not meant to be a fullscreen installer. The only fullscreen part of the installer is the background during file extraction.


Kaktor>>What installer do you mean? Please link it.

Kitsune1982>>Kaktor, this is the post i was looking at. http://fileforums.com/showthread.php?t=96922

also thank you for clarifying ciu isnt meant to be fullscreen except for the installation/extraction part - where you are actually installing the game and you have the slideshow of wallpaper images added to the project - that saves a lot of frustration knowing that ciu is not intended to be fullscreen. i still love it though and think its a lot better than some of the old custom installer tools i used in the past.


Kaktor>>The linked setup is not fullscreen (except for the installation process). It only has render png images (Autorun.png, Installer#.png, SmallInstaller.png) with bitmap mask (Autorun.bmp, Installer.bmp, SmallInstaller.bmp) which are required in any case. Except for SmallInstaller.png/bmp, when you remove them, installation process will not have fullscreen backgrounds,

However, adding fullscreen background pictures during Autorun/Setup procedure is possible, but needs script editing.

You mean something like this?
https://stackoverflow.com/questions/...-in-inno-setup

Kitsune1982>>something like that.

you said you can get fullscreen images during autorun/setup? could you please show me the inno script code i need to use to get the fullscreen images during autorun/setup? i dont mind playing around with the script and doing the work myself as thats how you learn. that being said, could you show me the inno script i need to insert into my .iss file to achieve the fullscreen pics im wanting? sorry if im not making a lot of sense been up all night so my grasp on the english language structure is a bit off.

sorry for the massive crosspost, i felt i should include everything that was said, so that maybe someone who reads this who knows inno script better than me can clarify for me what i need to do to get the background image to be full screen during the autorun/setup process. i know how to get the background to go into fullscreen when the actual install starts, just need to know what to do to have a fullscreen wallpaper background during autorun/setup - where i am choosing which folder to install to, etc etc.

hopefully one of you kind people on the forum will be able to help me.

Catch you on the flip side.

-Kitsune

Kitsune1982 01-06-2018 13:12

2 Attachment(s)
well guys, i did it!!!!!

i managed to make a full screen installer by experimenting on my own and spending about 3 hours playing with the ciu setup.ini and razor12911's graphicstudio program. razor bless you for such a wonderful tool, i was able to correctly align and accurately place the makeshift 'buttons' i made using the graphics studio then properly port over the correct top/left settings to correctly match and line up the buttons in the order i wanted! i would have been lost without that tool! :D heres my end result. hope you all like it. its simple, but im happy with it. =3


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

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