Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Format IDX

Featured Replies

  • Author
  • Localization

aluigi, posted Mon Nov 03, 2014 9:23 am (1443)


Name of the game?
  • Author
  • Localization

cover1995, posted Mon Nov 03, 2014 11:19 am (1446)


Thank you very much. but how to repack back?
  • Author
  • Localization

aluigi, posted Mon Nov 03, 2014 11:31 am (1447)


You can't reimport because the compression is applied on the whole data file, in fact the script uses MEMORY_FILE
  • Author
  • Localization

cover1995, posted Mon Nov 03, 2014 11:34 am (1448)


That is, you can not back pack?
  • Author
  • Localization

aluigi, posted Mon Nov 03, 2014 12:16 pm (1450)


No, you can't.
  • Author
  • Localization

cover1995, posted Mon Nov 03, 2014 12:26 pm (1451)


Then unpack it makes no sense((
  • Author
  • Localization

aluigi, posted Mon Nov 03, 2014 1:55 pm (1452)


In reality there is a solution.

It's not quick as using that script but it should work perfectly.

Step 1:
open data.cnt with 7-zip and unpack it, the output file will be just "data" without extension.

Step 2:
Use this script, it's just the same of the website but without automatic decompression of data.cnt
Code:
open FDDE "" 1
open FDDE "IDX"
set PATH string ""
set NAME string ""
math SUB_ENTRIES = 1
callfunction EXTRACT

startfunction EXTRACT
    string PATH = NAME
    string PATH = /
    math ENTRIES = SUB_ENTRIES
    for i = 0 < ENTRIES
        get TYPE long
        get NAME string
        if TYPE == 0
            get SUB_ENTRIES long
            callfunction EXTRACT
        else
            get OFFSET long
            get SIZE long
            set FNAME string PATH
            string FNAME = NAME
            log FNAME OFFSET SIZE 1
        endif
    next i
endfunction


Step 3
edit your files and delete those that have not been modified

Step 4
use reimport.bat

Step 5
use gzip on the modified "data" file.
If you don't have gzip or don't know how to use it, use this script:
Code:
comtype gzip_compress
get SIZE asize
get NAME basename
string NAME = ".cnt"
clog NAME 0 SIZE SIZE


Done, it should work perfectly.

Maybe the game is even able to use the extracted files without archive, have you tried it?

And remember that extracting the files makes EVER sense.
  • Author
  • Localization

cover1995, posted Mon Nov 03, 2014 2:21 pm (1454)


You will not believe what I just did not try .. I can give you a link to download the game, there's a lot of that has to be interesting for you, I'm already half a year I suffer to translated into Russian

The problem ?
Quote:
reomport.bms

Code:
comtype gzip_compress
get SIZE asize
get NAME basename
string NAME = ".cnt"
clog NAME 0 SIZE SIZE


This data are text files that I need to change, but there is no text at unpacking
  • Author
  • Localization

cover1995, posted Tue Nov 04, 2014 3:49 pm (1481)


I was given the text in binary form(
  • Author
  • Localization

aluigi, posted Wed Nov 05, 2014 11:35 am (1503)


As far as I remember the INI are compiled.
  • Author
  • Localization

cover1995, posted Thu Nov 06, 2014 2:12 am (1523)


I do not understand
  • Author
  • Localization

aluigi, posted Thu Nov 06, 2014 12:39 pm (1531)


Basically the INI files are not in clear text, they are in binary form.
If you open them with a hex editor you can see that each file is divided in at least two parts, one with numbers and one with text.
I can't help with decompilers.
  • Author
  • Localization

cover1995, posted Thu Nov 13, 2014 11:15 am (1771)


Thanks for the help, I would like to stop at the last as pack files back? You can be more specific?
  • Author
  • Localization

cover1995, posted Wed Nov 19, 2014 12:20 pm (1855)


UP
  • Author
  • Localization

aluigi, posted Wed Nov 19, 2014 12:26 pm (1858)


Personally I can't help further.
  • Author
  • Localization

cover1995, posted Wed Nov 19, 2014 12:36 pm (1860)


No, I mean to repack more back pack files
  • Author
  • Localization

cover1995, posted Wed Nov 19, 2014 4:05 pm (1863)


There is a problem if the file is large, then it does not repack
Image
  • Author
  • Localization

aluigi, posted Wed Nov 19, 2014 4:12 pm (1865)


That's a rule of the reimport feature, the file or re-compressed file must be the same or smaller than the original file.
  • Author
  • Localization

cover1995, posted Wed Nov 19, 2014 4:22 pm (1867)


And the other way?
And could you clarify at what point to use gzip?
  • Author
  • Localization

aluigi, posted Wed Nov 19, 2014 4:39 pm (1869)


With the first script you can't reimport at all.

With the second way you can and you are subject to the file size limits.

With the second method you must use gzip as last step to create the cnt archive, I posted a whole step-by-step for the operation.
  • Author
  • Localization

cover1995, posted Thu Nov 20, 2014 1:03 pm (1886)


I Thank Aluigi for help and cooperation! The unpack and repack of resources works perfectly, but the problem is that unpacked text files are unreadable for some reason.
Here is the example of such compressed file http://rghost.ru/59165766
Here is the example of the same unpacked txt file from the old version which was not compressed and is readable [http://rghost.ru/59166445

Is it possible to decompress this unreadable file as it was in the previous version?
  • Author
  • Localization

aluigi, posted Sat Nov 22, 2014 3:03 pm (1908)


As I already said some posts ago, those text files are not compressed but they are compiled (basically they are the binary representation of the original text).
I can't help with decompilers.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.