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.

[Help] The King of Fighters 98 UM (PS2)

Featured Replies

  • Author
  • Localization

Hiro_Tex, posted Fri Apr 19, 2019 8:56 pm (47125)


Hi all, i need help in decompressing the format .grc, because i don't know how to make scripts for QuickBMS, i already have a compressed and decompressed file if you need examples. The algorithm is as follows:
- Read one byte at the time
- If the byte is less than 0xC0, export it.
- If the byte is 0xC0, end the decompression.
- If the byte is 0xC1, export the next byte directly
- if the byte is more than 0xC1 (0xC2, 0xC3...), subtract 0xC0 and you have the number of bytes that will be exported (for example, if you have 0xC3, 3 bytes will be exported), and read the next byte, this byte contains the number from where you have to start exporting, for example, if you have "00 00 00 C3 03", you will have in the exported file "00 00 00 00 00 00", and if you have 08 08 00 00 00 C2 05, you will have in the exported file "08 08 00 00 00 08 08".

Image

I have attached the 2 files.

If anyone can make a script for this or tell me how to do it, I will be very thankful!
  • Author
  • Localization

aluigi, posted Sat Jun 01, 2019 6:41 pm (48213)


This algorithm already exists in quickbms and it's called grc:
Code:
comtype grc
get ZSIZE asize
xmath SIZE "ZSIZE * 10"
get NAME basename
clog NAME 0 ZSIZE SIZE
  • Author
  • Localization

nonokyo, posted Tue Jul 07, 2020 9:21 pm (57491)


Hello
I need your help please. I need to get the artworks from de the PS2 SNK games and the files are *.GRC

I don't know how to get them with quickbms (I'm a very noob ^^), someone can help to extract the pictures from these files ?

Thanks a lot
  • Author
  • Localization

emir, posted Wed Oct 07, 2020 9:40 pm (59090)


Code:
int GrcEncrypt(char* GrcBug, char* DecBug, int GrcSize)
{
        int i=0;
        int k=0;
        int len;
        int dat;
        int declen;
       
        do
        {
                dat = GrcBug[i ] & 0xff;

                if( (dat & 0xc0) == 0xc0)
                {
                        len = dat & 0x3F;

                        if(len == 1)
                        {
                                DecBug[k ] = GrcBug[i ] & 0xff;
                        }
                        else
                        {
                                declen = GrcBug[i ] & 0xff;

                                if(len <= 0) continue;

                                do
                                {
                                        DecBug[k ] = DecBug[k - declen];
                                }
                                while(--len != 0);
                        }
                }
                else
                {
                        DecBug[k ] = dat;
                }
        }
        while ( i < GrcSize );

        return k;
}
  • Author
  • Localization

aluigi, posted Thu Oct 08, 2020 9:31 pm (59107)


@nonokyo
Simple, copy the script I posted in a text file, then double-click on quickbms.exe, select the text file, select the grc file and then a folder where extracting the files.

@emir
That's the same algorithm used in quickbms with "comtype grc":
Code:
int ungrc(u8 *in, int insz, u8 *out) {
    u8  *inl = in insz;
    u8  *o = out;
    u8  c, back;
    while(in < inl) {
        c = *in ;
        if(c < 0xc0) {
            *o = c;
        } else if(c == 0xc0) {
            break;
        } else if(c == 0xc1) {
            *o = *in ;
        } else if(c > 0xc1) {
            back = *in ;
            for(c -= 0xc0; c > 0; c--) {
                *o = *(o - back);
                o ;
            }
        }
    }
    return o - out;
}
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.