Bookworm Adventures *COMPRESSED.TXT (Vol 1+2)
-
- Posts: 865
- Joined: Fri Apr 20, 2018 12:41 am
Bookworm Adventures *COMPRESSED.TXT (Vol 1+2)
Anyone willing to figure out the compression of the file and write a script too? It was already decompressed on http://www.dugongue.com/Games/PC/Bookwo ... rdlist.txt and a Lua script decompressing existed on "http://www.dugongue.com/disassembly/PC/Bookworm%20Adventures%20Deluxe/index.html/" but that page as of now or sometime before is no longer present, and no-one archived the site or the script at all, its a word list. More info: https://bookwormadvs.fandom.com/wiki/Ma ... ressed.txt
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Bookworm Adventures *COMPRESSED.TXT (Vol 1+2)
Code: Select all
math LAST_NUM = 0
set WORD string ""
for
get TMP line
getvarchr TMP0 TMP 0
if TMP0 >= '0' && TMP0 <= '9'
string TMP s "%d" NUM
else
math NUM = -1
endif
if NUM < 0
math NUM = LAST_NUM
putvarchr WORD NUM 0
else
math LAST_NUM = NUM
putvarchr WORD NUM 0
do
string TMP << 1
math NUM / 10
while NUM > 0
endif
string WORD + TMP
print "%WORD%"
next
-
- Posts: 865
- Joined: Fri Apr 20, 2018 12:41 am
Re: Bookworm Adventures *COMPRESSED.TXT (Vol 1+2)
Thanks so much.