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.

oodle compression crashes

Featured Replies

  • Author
  • Localization

Bleech Studios, posted Mon Feb 08, 2021 12:16 pm (62067)


im in cpp (compiling as 64bit) and ive loaded the oo2core 4 win64 library:

Code:
typedef int (*OodleLZ_Decompress)(unsigned char* in, int insz, unsigned char* out, int outsz, int a, int b, int c, 
void* d, void* e, void* f, void* g, void* h, void* i, int j);
OodleLZ_Decompress decompressor; // on getprocaddress it works fine without error


When I call the following

Code:
uncompr_chunk_size = decompressor(buf, (int)chunk_size, outbuf, (int)uncompr_chunk_size, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3);


It crashes the program. The stream is valid (correct header 0x8C06 kraken.. with a bit of the uncompressed data at the header, i think!), it must be the calling of the function. Any ideas what the problem is? The buffers are initialized too

EDIT: The stream is valid, I created a BMS script to extract the compressed stream and it worked fine.
  • Author
  • Localization

aluigi, posted Mon Feb 08, 2021 3:41 pm (62069)


Oodle on Win64 uses 64bit integers instead of 32bit ones of the 32bit library.

There is a comment in src\included\oodle.c of quickbms:
Code:
// int is 64bit in Oodle64

so if you replace int with long it may automatically switch to 64bit, otherwise go with long long.
  • Author
  • Localization

Bleech Studios, posted Mon Feb 08, 2021 4:55 pm (62070)


Didnt work, Im using oo2core_7_win64.dll now, I checked the version its 2.5.5 or do I need the version from your bms source? The oodle_dll says its version 2.7.3 but the oodle.c says 2.3.0. Im using:

Code:
typedef long long (*OodleLZ_Decompress)(void* in, long long insz, void* out, long long outsz, long long a, long long b, long long c, void* d, void* e, void* f, void* g, void* h, void* i, long long j);


I tried with size_t too. Im using oodle 2.7.3 and I have tried all versions for win64 too
  • Author
  • Localization

Bleech Studios, posted Mon Feb 08, 2021 9:27 pm (62075)


You were right! Thanks so much.
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.