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.

QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Featured Replies

  • Author
  • Localization

z4ruz, posted Wed Jun 02, 2021 9:01 pm (64448)


Thank you.

Readme:

Links on cstring:
http://msdn.microsoft.com/en-us/library ... 80).aspx - redirects to Download Visual Studio 2005 Retired documentation
http://www.acm.uiuc.edu/webmonkeys/book ... e/1.1.html - dead
Archive.org can be used, but there might be more actual resources.

line # 3046: saepos OFFSET

I think readme can be more handy, like the .chm help files with bookmarks, indexing; or pdf/md with TOC; html. There might be separate tool for interaction with readme and navigation.

---

\x00 doesn't shows in the end of dump; breaks print of reversed dstring 0H

getdstring var 4
string var1 0H var
print "%var1%"
string var2 r var
string var2 0H var2
print "%var2%"
print "%var|dump%"

\x03\x00\x02\x00
\x03
03 00 02 ...

Also I was surprised getdstring ignores endian.

So far I ended up with this: helper.bms. Would be glad and interested to see alternative solutions, in C as well.

---

while printing as hex, number of characters is always same
get var long;
print %var|1h% # 0x00010203 -
print %var|1% # 6 # also works with -x switch

---

Some examples on using String VAR S *, please?
  • Replies 671
  • Views 51
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
  • Localization

spiritovod, posted Thu Jun 03, 2021 1:12 am (64451)


@z4ruz: Consider all string operations in quickbms as operations with null-terminated string, with all consequences. Not really a bug, but if you're converting strings with zero bytes and expecting them to still be there, you should use "0" to escape all bytes. So, in your example "string var2 r var" -> "string var2 0r var" will do. As for dump, I think the problem is around the same, but for example, you can use something like [math SIZE = 4, getdstring var SIZE, ... , print "%var|dumpSIZE%"].
  • Author
  • Localization

johnz1, posted Fri Jun 11, 2021 4:24 pm (64620)


Hello

I just upgraded QuickBMS from 0.10.1 to 0.11. I'm running into a problem with reimport (the original, not reimport2 or reimport3). 9 out of 743 files that used to be able to be reimported are now failing because the compressed size is too big. If I switch back to 0.10.1, they all can be reimported without an error. I'm using "nbajamfire.bms" 0.2.3a with QuickBMS to reimport texture files.

I don't see anything in the 0.11 release notes about changing the compression algorithms. I've also noticed that the reimport in 0.11 is much faster than 0.10.1 - which is nice!

Thanks
  • Author
  • Localization

z4ruz, posted Sat Jun 12, 2021 1:02 pm (64639)


Thanks, spiritovod, worked like a charm.

1) xmath issues with array elements.

The sample:
01 00 00 00 02 00 00 00

The script:
Code:
for i = 0 < 1
get ts[i] long
get to[i] long
xmath off_max "ts[i] to[i]"
next i

The result:
1 2 = -1047988322

Options to get correct result:

a. Use math instead
Code:
math ts[i]   to[i] 
# OR:
set off_max ts[i]
math off_max to[i]

b. Operate xmath on non-array values
Code:
set a1 ts[i]
set a2 to[i]
xmath off_max "a1 a2"

c. Exotic:
Code:
goto to[i]
goto ts[i] 0 SEEK_CUR
savepos off_max

2) Print array elements as hex issues:

Code:
print "%ts[i]% | hex: %ts[i]|x%" # 1 | hex: 31

3) log size is output as decimal even with -x

4) readme typo at line 4049:
Quote:
MYFUNCTION_ARG1 amd MYFUNCTION_ARG2.
  • Author
  • Localization

aluigi, posted Mon Jun 14, 2021 9:00 am (64675)


@z4ruz

1/2) ok I will check if I can fix them in next release

3) not sure if this is an error, you mean the visualization, right?
Like " 00000000 123 test.txt" to " 00000000 7b test.txt"?

4) ok
  • Author
  • Localization

aluigi, posted Mon Jun 14, 2021 9:04 am (64677)


@johnz1
Interesting. I did change the level of compression for zlib data but I limited it to reimport2 only, using a faster less compressed solution.
Since you are experiencing that problem I guess I did a mistake and so reimport uses the same feature.
I will check and fix in next version.
  • Author
  • Localization

GarryOlsen, posted Tue Jun 22, 2021 7:38 am (64838)


Hi all,

Has anyone else been having some issues getting the "Sacred 3" QuickBMS script to work properly? I'd be happy to upload some samples if required. I should mention my machine has 56gb of memory, so I don't think lack of memory is the issue.
  • Author
  • Localization

aluigi, posted Wed Jun 23, 2021 12:28 pm (64859)


@GarryOlsen
Probably the script is not fully compatible with that version of the game.
I guess there are better tools for Sacred 3, I can't help much.
Please note that you are off-topic here because this topic is only for bugs and errors in the quickbms tool (not the scripts)
  • Author
  • Localization

GarryOlsen, posted Wed Jun 23, 2021 3:23 pm (64863)


aluigi wrote:
@GarryOlsen
Probably the script is not fully compatible with that version of the game.
I guess there are better tools for Sacred 3, I can't help much.
Please note that you are off-topic here because this topic is only for bugs and errors in the quickbms tool (not the scripts)


Ah sorry, I posted that at 3am in my timezone, wasn't thinking straight, I'll be sure to post it in another topic! I only came here because unfortunately the "Sacred 3" community is practically non-existent, and this is the only script/tool I could find that is capable of unpacking "Sacred 3"'s archives.
  • Author
  • Localization

falta, posted Thu Jun 24, 2021 9:51 am (64879)


Image

is there any solution?
  • Author
  • Localization

aluigi, posted Thu Jun 24, 2021 11:08 am (64880)


@falta
Yes, the solution is posting in the topic viewtopic.php?f=9&t=1005 because you are off-topic here...
  • Author
  • Localization

falta, posted Thu Jun 24, 2021 1:52 pm (64885)


aluigi wrote:
@falta
Yes, the solution is posting in the topic viewtopic.php?f=9&t=1005 because you are off-topic here...



I didn't see any explanation about it there.
  • Author
  • Localization

spiritovod, posted Sat Jun 26, 2021 10:22 am (64920)


It seems there is an issue with allocation in latest quickbms. Attached script is producing access violation error for this file. Previous version (0.10.1) doesn't produce this error and it can be also avoided by commenting second putvarchr.

DragonRajaUnpacker.bms

  • Author
  • Localization

spiritovod, posted Sat Jun 26, 2021 10:04 pm (64930)


And another access violation error issue - if you'll extract this package and run get_content.bat from it. Previous version (0.10.1) doesn't produce this error. Also, you'll run the script in a usual way (by opening quickbms, etc), this error will not pop up either.
  • Author
  • Localization

ticky, posted Sun Jul 11, 2021 7:48 pm (65146)


Currently seeing errors building 0.11.0 on either Linux or macOS, where it can't find symbols from libtcc. I suspect there's potentially a step missing from the Makefile as it stands?
Code:
gcc-11 quickbms.c -m32 -s -O2 -fstack-protector-all -fno-unit-at-a-time -fno-omit-frame-pointer -fno-pie -fPIC -w -o quickbms \
\
-D_7ZIP_ST -DE_INVALIDARG=-1 \
\
-Ilibs/zlib libs/zlib/*.c compression/*.c* encryption/*.c* libs/lzma/LzmaDec.c libs/lzma/Lzma2Dec.c libs/lzma/Bra86.c libs/lzma/LzFind.c libs/lzma/LzmaEnc.c libs/lzma/Lzma2Enc.c libs/mspack/*.c libs/ppmd_7zip/*.c libs/ppmd/*.cpp libs/aplib/src/depacks.c libs/aplib/lib/coff/aplib.lib -Ilibs/brieflz/include libs/brieflz/src/depacks.c libs/brieflz/src/brieflz.c compression/jcalg1_static.lib libs/zziplib/*.c libs/bcl/*.c libs/szip/*.c libs/lzhl/*.cpp libs/tdcb/*.c extra/mem2mem.c libs/libkirk/*.c libs/7z_advancecomp/*.cc libs/iris/*.cpp libs/old_cabextract/lzx.c libs/mrci/*.cpp libs/lz4/*.c libs/snappy/snappy.cc libs/snappy/snappy-c.cc libs/snappy/snappy-stubs-internal.cc libs/snappy/snappy-sinksource.cc libs/mmini/mmini_huffman.c libs/mmini/mmini_lzl.c libs/clzw/lzw-dec.c libs/clzw/lzw-enc.c libs/lzlib/lzlib.c libs/blosc/blosclz.c libs/blosc/fastcopy.c libs/gipfeli/*.cc libs/liblzg/src/lib/decode.c libs/liblzg/src/lib/encode.c libs/liblzg/src/lib/checksum.c libs/doboz/*.cpp libs/sphlib/c/*.c libs/shadowforce/*.cpp libs/zstd_aluigi/common/*.c libs/zstd_aluigi/compress/*.c libs/zstd_aluigi/decompress/*.c libs/zstd_aluigi/dictBuilder/*.c libs/zstd_aluigi/legacy/*.c -Ilibs/zstd_aluigi -Ilibs/zstd_aluigi/common -Ilibs/zstd_aluigi/legacy libs/azo/unAZO.cpp libs/azo/Decoder/MainCodeD.cpp libs/azo/Common/x86Filter.cpp libs/nintendo_ds/*.c libs/ctw/*.c libs/grzip/libgrzip.c libs/heatshrink/heatshrink_decoder.c libs/heatshrink/heatshrink_encoder.c libs/libzling/*.cpp -Ilibs/ecrypt/include -Ilibs/libcsc -D_7Z_TYPES_ libs/libcsc/csc_dec.cpp libs/libcsc/csc_default_alloc.cpp libs/libcsc/csc_filters.cpp libs/libcsc/csc_memio.cpp -DDENSITY_FORCE_INLINE=inline -Drestrict=__restrict__ libs/density/src/*.c libs/density/src/algorithms/*.c libs/density/src/algorithms/chameleon/core/*.c libs/density/src/algorithms/cheetah/core/*.c libs/density/src/algorithms/lion/core/*.c libs/density/src/algorithms/lion/forms/*.c libs/density/src/buffers/*.c libs/density/src/structure/*.c libs/spookyhash/*.c -Ilibs/brotli/include libs/brotli/dec/*.c libs/brotli/enc/*.c libs/brotli/common/*.c libs/libbsc/adler32/adler32.cpp libs/libbsc/bwt/bwt.cpp libs/libbsc/coder/coder.cpp libs/libbsc/coder/qlfc/qlfc.cpp libs/libbsc/coder/qlfc/qlfc_model.cpp libs/libbsc/filters/detectors.cpp libs/libbsc/filters/preprocessing.cpp libs/libbsc/libbsc/libbsc.cpp libs/libbsc/lzp/lzp.cpp libs/libbsc/platform/platform.cpp libs/libbsc/st/st.cpp libs/shoco/shoco.c libs/ms-compress/src/*.cpp libs/lzjody/lzjody.c libs/lzjody/byteplane_xfrm.c disasm/disasm.c disasm/cmdlist.c disasm/assembl/assembl.c -DMYDOWN_SSL -DMYDOWN_GLOBAL_COOKIE libs/mydownlib/mydownlib.c libs/TurboRLE/trlec.c libs/TurboRLE/trled.c libs/TurboRLE/ext/mrle.c libs/lhasa/lib/*_decoder.c libs/lhasa/lib/crc16.c libs/dipperstein/*.c libs/liblzf/lzf_d.c libs/liblzf/lzf_c_best.c libs/zopfli/*.c libs/lzham_codec/lzhamcomp/*.cpp libs/lzham_codec/lzhamdecomp/*.cpp libs/lzham_codec/lzhamlib/*.cpp -Ilibs/lzham_codec/include -Ilibs/lzham_codec/lzhamcomp -Ilibs/lzham_codec/lzhamdecomp -DLZHAM_ANSI_CPLUSPLUS libs/dmsdos/*.c libs/tornado/Tornado.cpp libs/tornado/Common.cpp libs/PKLib/*.c extra/mybits.c libs/lz5/lz5*.c libs/lizard/*.c libs/ppmz2/*.c* libs/libdivsufsort/*.c libs/xxhash/*.c extra/xalloc.c libs/lzfse/src/*.c libs/hsel/myhsel.cpp libs/hsel/HSEL.cpp libs/glza/GLZAmodel.c -Ilibs/lzo/include libs/lzo/src/*.c -Ilibs/ucl -Ilibs/ucl/include libs/ucl/src/n*.c libs/ucl/src/alloc.c libs/liblzs/lzs-compression.c libs/liblzs/lzs-decompression.c libs/bzip2/*.c libs/zlib/contrib/infback9/*.c libs/lzw-ab/lzw-lib.c libs/cryptohash-sha1/*.c -Ilibs/capstone/include libs/capstone/*.c -DCAPSTONE_X86_ATT_DISABLE -DCAPSTONE_USE_SYS_DYN_MEM -DCAPSTONE_HAS_ARM -DCAPSTONE_HAS_ARM64 -DCAPSTONE_HAS_MIPS -DCAPSTONE_HAS_X86 -DCAPSTONE_HAS_POWERPC -DCAPSTONE_HAS_SPARC -DCAPSTONE_HAS_SYSZ -DCAPSTONE_HAS_XCORE libs/capstone/arch/AArch64/*.c libs/capstone/arch/ARM/*.c libs/capstone/arch/Mips/*.c libs/capstone/arch/PowerPC/*.c libs/capstone/arch/Sparc/*.c libs/capstone/arch/SystemZ/*.c libs/capstone/arch/X86/*.c libs/capstone/arch/XCore/*.c libs/lua/src/*.c extra/quickrva.c libs/tiny-regex-c/re.c \
\
 \
\
-static-libstdc -lstdc -lm -lpthread -static-libgcc -lssl -lcrypto -DDISABLE_MCRYPT -DDISABLE_TOMCRYPT -ldl
ld: /tmp/cc56sg2y.o: in function `os_tmpname':
loslib.c:(.text 0x1e6): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
ld: /tmp/ccDr1osw.o: in function `TCC_libtcc_symbols':
quickbms.c:(.text 0x4b117): undefined reference to `__ashldi3'
ld: quickbms.c:(.text 0x4b12a): undefined reference to `__ashrdi3'
ld: quickbms.c:(.text 0x4b13d): undefined reference to `__divdi3'
ld: quickbms.c:(.text 0x4b150): undefined reference to `__lshrdi3'
ld: quickbms.c:(.text 0x4b163): undefined reference to `__moddi3'
ld: quickbms.c:(.text 0x4b176): undefined reference to `__udivdi3'
ld: quickbms.c:(.text 0x4b189): undefined reference to `__umoddi3'
ld: /tmp/ccDr1osw.o: in function `perform_compression':
quickbms.c:(.text 0x61e31): undefined reference to `packfire'
ld: quickbms.c:(.text 0x61e94): undefined reference to `DMSUNP'
ld: quickbms.c:(.text 0x61ee2): undefined reference to `LhDecode'
ld: quickbms.c:(.text 0x61f15): undefined reference to `UTSQ80'
ld: quickbms.c:(.text 0x61f48): undefined reference to `UTSQ61'
ld: quickbms.c:(.text 0x64a0a): undefined reference to `crunchmania_FastDecruncherHuff'
ld: quickbms.c:(.text 0x64a55): undefined reference to `crunchmania_FastDecruncher'
ld: quickbms.c:(.text 0x64a9a): undefined reference to `UCRMAS'
ld: quickbms.c:(.text 0x64ae2): undefined reference to `stonecracker403'
ld: quickbms.c:(.text 0x64b3d): undefined reference to `stonecracker3'
ld: quickbms.c:(.text 0x64ba5): undefined reference to `stonecracker2'
ld: quickbms.c:(.text 0x64c0f): undefined reference to `pp_DecrunchBuffer'
ld: quickbms.c:(.text 0x64c58): undefined reference to `crunchmania_17b'
ld: quickbms.c:(.text 0x64cb1): undefined reference to `ByteKiller2'
ld: quickbms.c:(.text 0x64d2d): undefined reference to `DeCr00'
ld: quickbms.c:(.text 0x64da9): undefined reference to `UPHD'
ld: quickbms.c:(.text 0x64e15): undefined reference to `UPCOMP'
ld: quickbms.c:(.text 0x64e5c): undefined reference to `ISC3P'
ld: quickbms.c:(.text 0x64ea3): undefined reference to `ISC2P'
ld: quickbms.c:(.text 0x64eea): undefined reference to `ISC1P'
ld: quickbms.c:(.text 0x64f4a): undefined reference to `IAMATM'
ld: quickbms.c:(.text 0x64fa7): undefined reference to `IAMICE'
ld: quickbms.c:(.text 0x64feb): undefined reference to `UFLSP'
ld: quickbms.c:(.text 0x6503b): undefined reference to `BYTUNP'
ld: quickbms.c:(.text 0x65400): undefined reference to `UTETR'
ld: quickbms.c:(.text 0x65447): undefined reference to `USPIKE'
ld: quickbms.c:(.text 0x6548e): undefined reference to `PACIT'
ld: quickbms.c:(.text 0x654d5): undefined reference to `UMEGA'
ld: quickbms.c:(.text 0x65518): undefined reference to `MAX12'
ld: quickbms.c:(.text 0x6555b): undefined reference to `UMAST31'
ld: quickbms.c:(.text 0x655a1): undefined reference to `LIGHT15'
ld: quickbms.c:(.text 0x655fc): undefined reference to `UNDIMP'
ld: quickbms.c:(.text 0x65641): undefined reference to `TRY101'
ld: quickbms.c:(.text 0x65686): undefined reference to `time_decrunch'
ld: quickbms.c:(.text 0x656cc): undefined reference to `UTUC'
ld: quickbms.c:(.text 0x6bcc5): undefined reference to `UCMAT'
ld: /tmp/ccDr1osw.o: in function `amiga_unsquash':
quickbms.c:(.text 0x2a71a): undefined reference to `UnSquash'
collect2: error: ld returned 1 exit status
make: *** [Makefile:54: all] Error 1


On aarch64 macOS, specifically, there are some issues caused by the way architectures are detected in at least two files (I have yet to successfully compile due to a similar issue to that above), where compression/prelude.h line 93 should be changed to
Code:
#if (defined (__64BIT__) || defined (__x86_64__) || defined (__aarch64__))
and libs/tornado/Common.h line 30 should be changed to
Code:
#if defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__)|| defined (__aarch64__)
to properly detect this architecture. With those files patched, the error becomes as follows:
Code:
Undefined symbols for architecture arm64:
  "___ashldi3", referenced from:
      _TCC_libtcc_symbols in ccN7ge8i.o
  "___ashrdi3", referenced from:
      _TCC_libtcc_symbols in ccN7ge8i.o
  "___divdi3", referenced from:
      _TCC_libtcc_symbols in ccN7ge8i.o
  "___lshrdi3", referenced from:
      _TCC_libtcc_symbols in ccN7ge8i.o
  "___moddi3", referenced from:
      _TCC_libtcc_symbols in ccN7ge8i.o
  "___udivdi3", referenced from:
      _TCC_libtcc_symbols in ccN7ge8i.o
  "___umoddi3", referenced from:
      _TCC_libtcc_symbols in ccN7ge8i.o
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status
make: *** [all] Error 1


Hoping you can help! :)
  • Author
  • Localization

aluigi, posted Tue Jul 13, 2021 10:11 am (65175)


@spiritovod
Thanks, added to the list of things to check.

@ticky
Yeah the Makefile is still far from being universal but it worked very well here on Linux, MacOSX, and Android, obviously it's enough that some settings or compiler versions differ to raise compatibility issues.
So for amiga it should be enough to enable it in the Makefile.

While for the __* references it's caused by src/utils.c at 4205 where the "#if defined(i386)" and relative "#endif" should include the whole libtcc.a section (which I will do in next version).
  • Author
  • Localization

ATIMKOS, posted Sun Jul 18, 2021 12:59 pm (65246)


I have this error when try unpack GAME8.DAT from Lego Marvel Super Heroes 2
Image
  • Author
  • Localization

Shokoniraya, posted Thu Jul 22, 2021 10:51 pm (65309)


hello sir aluigi, i want to report two problem


1) reimporting a file again with same name
normally, there is no such problem at all in normal using, but i attached a file in this comment to show the problem

extract zip file and put quickbms_4gb_files.exe in folder and click on run.bat
as you can see, last printed filesize is 0, but why? this happens only if a name like TEXT_SLOT used before in same operation (by operation i mean same running process)

now, import_again.bin file is corrupted, right? well extract from zip again. and open import_again.bms and goto line 38 and remove that append command (anyway, you can left other append command in line 40, no problem with that. maybe not?)
and click on run.bat again, see? it works, but why? this command shouldn't involved with current procces because it is in a else<>endif that not used, i think it's a bug




2) replacing with putdstring
i'm not going to say that it's a problem, let me explain

for example, we have a binary file, binary is "123456789"
and this is script file wity -w option
Code:
goto 0
append -1
putdstring "NEW_DATA" 4


result is "NEW_123456789"
it can inject bytes as well in real file or MEMORY_FILE, no problem with that
but what about removing or replacing some bytes? i mean not just inject them with append -1
i have a idea, maybe you should change it to get such result "NEW_DATA56789", i think current way is totally wrong, maybe you should make a repdstring "NEW_DATA" 4 to do the job or you can use negative number like putdstring "NEW_DATA" -4 to get "NEW_DATA56789" if append -1 used, otherwise there will be a allocation problem and i know it, that's way that i said if append -1 used

reimport_a_file_again.zip

  • Author
  • Localization

Nameless, posted Fri Aug 06, 2021 9:52 pm (65567)


Using array bigger than 4092 bytes in a C function throws error:
tcc: error: undefined symbol '__chkstk'

Example:
Code:
set MEMORY_FILE binary "
void test()
{
   char huh[8192] = {0};
}"

calldll MEMORY_FILE "test" "tcc" ""
  • Author
  • Localization

mbc07, posted Mon Aug 23, 2021 4:44 am (65837)


(deleted)
  • Author
  • Localization

mandogy, posted Thu Sep 02, 2021 10:52 am (66108)


Is there an issue with the script for 1KAP (Run Sackboy Run)?
I attempted running it on both the 1.01 file as well as the latest update file, neither work.
(The obb is the 1kap file)
I never found a 1.00 OBB download, only the APK.
Image

Sorry if this is a stupid error, I couldn't find anything when googling.
  • Author
  • Localization

aluigi, posted Sat Sep 18, 2021 3:46 pm (66519)


@ATIMKOS
Does it happen with quickbms 0.10.1 too?

@Shokoniraya
Maybe it's something I will check when I will work on new version but it takes too much time to understand if there is any problem at all... definitely something I want to avoid

@mandogy
Please open a topic in the Game Archive section and upload/link that file, if the obb file is too big (over 500Mb) it's better if you upload only the two files generated by the filecutter script http://aluigi.org/bms/filecutter.bms
  • Author
  • Localization

aluigi, posted Sat Nov 27, 2021 7:22 pm (67723)


@spiritovod
I was trying to access two files you linked above months ago but I get a "Sign-in" request, could you please make them available again?
https://drive.google.com/file/d/1_0b2DE ... sp=sharing
https://drive.google.com/file/d/15_wCEG ... sp=sharing

(I'm slowly trying to check some quickbms bugs for a possible beta, yeah)
  • Author
  • Localization

spiritovod, posted Sat Nov 27, 2021 10:44 pm (67725)


aluigi: I'm afraid those uploads can't be restored. I've updated link for the second issue, but for the first one I can't remember which package caused such issue and currently there are 5 games with this package format, so it will take a while to find problem one. Sorry for the inconvenience.
  • Author
  • Localization

aluigi, posted Sun Nov 28, 2021 8:48 am (67730)


*edit* I was totally wrong, checking the bug again...

So bad for the other file.
The script is quite simple and the only compression algorithms are zlib, lz4 and lzma that usually don't cause crash.
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.