Search found 89 matches

by Caracas
Mon Dec 19, 2011 4:42 pm
Forum: Developer's Heaven
Topic: Decode Bard's Tale Huffman files
Replies: 31
Views: 26960

hmm, hmm, might still work out :)

I am now able to build all the nodes and the leaves of the Huffman tree...
next up: assigning "0"'s and "1"'s where appropriate.

Not going to spam the forum with every progress that I made... I'll hold the code until it's finished.
by Caracas
Sat Dec 17, 2011 12:41 am
Forum: Developer's Heaven
Topic: msdos dissasembly
Replies: 101
Views: 83603

Are you sure about the hit points?
No difference between classes or races?
It would mean a starting HP range of 15-29, are you sure 15 is indeed the lowest? I thought I have seen lower then 15, but not sure.
by Caracas
Sat Dec 17, 2011 12:33 am
Forum: Developer's Heaven
Topic: Tool for expansion and compression of the Huffman files
Replies: 15
Views: 14914

Would be fun to recreate some places from other fantasy worlds... Like a level with only a few rows of pillars like in Moria... with a balrog encounter somewhere :) Or a chamber with pools of lava and a bridge, like the bridge of Khazad-dum There's a pool of lava on the 5th floor of Mangars tower. I...
by Caracas
Thu Dec 15, 2011 1:05 pm
Forum: Developer's Heaven
Topic: Tool for expansion and compression of the Huffman files
Replies: 15
Views: 14914

Creating forced encounters with 255 monsters didn't give me any issues. I created a group of 255 skeletons and let my wizard(s) use DRBR, REDE, my bard used a horn on them, my pet dragon sneezed on them, my monk smashed bones.. all without issues
by Caracas
Thu Dec 15, 2011 1:01 pm
Forum: Developer's Heaven
Topic: Decode Bard's Tale Huffman files
Replies: 31
Views: 26960

lol, so not only you want me (or someone else) to do your homework, but you also want me to explain it to you? :) tbh, the first part (script above) is easy enough to understand. If you can't figure that out yourself, then maybe you should try and get another assignement. As for the rest of the scri...
by Caracas
Fri Dec 09, 2011 3:46 pm
Forum: Developer's Heaven
Topic: Decode Bard's Tale Huffman files
Replies: 31
Views: 26960

hmm.. interesting.
They seem to first build the tree with all the leaves and nodes and then traverse it from root down to assign 1's and 0's as appropriate.

Not sure how this can be scripted. not sure how to 'store' the tree and then traverse it... yet :)

still looking
by Caracas
Fri Dec 09, 2011 8:44 am
Forum: Developer's Heaven
Topic: Tool for expansion and compression of the Huffman files
Replies: 15
Views: 14914

Yes, you're right. I'm sorry, I should have mentioned it. It's just that it's the first time that I'm realy looking into the LEVS file. As in the c64 version, there are 8 possible forced encounters. For Catacombs lvl 3, I can find in the LEVS file: 01 00 03 09 04 0D 07 11 08 05 10 0D 12 0E 15 00 3C ...
by Caracas
Thu Dec 08, 2011 10:04 am
Forum: Developer's Heaven
Topic: Tool for expansion and compression of the Huffman files
Replies: 15
Views: 14914

I've been checking the code in the LEVS file for the special events. Each level can have up to 8 special events. In the LEVS file there are 16 bytes available for coordinates of these special events for each level -- 2 bytes per coordinate (x,y), followed by a specific event code. I've been looking ...
by Caracas
Wed Dec 07, 2011 3:10 pm
Forum: Developer's Heaven
Topic: Tool for expansion and compression of the Huffman files
Replies: 15
Views: 14914

Every byte in the citymap uses bits 3-7 for anything special and bits 0-2 to specify the house type. So, e.g. for Mangars tower the special bits are 0xA1>>3=20 and the house type is 0xA1 & 0x07 = 1 (white with thatched roof). Now, I just changed the lower three bits to 4, making the code for &q...
by Caracas
Wed Dec 07, 2011 2:16 pm
Forum: Developer's Heaven
Topic: Tool for expansion and compression of the Huffman files
Replies: 15
Views: 14914

Works like a charm now, thanks
by Caracas
Wed Dec 07, 2011 1:16 pm
Forum: Developer's Heaven
Topic: Tool for expansion and compression of the Huffman files
Replies: 15
Views: 14914

Hi Desmet Irkm

I was able to expand the citymap file and modify it, but was unable to compress it again.
I'm getting: ValueError: non-hexadecimal number found in fromhex() arg at position 60

also, in you example of the citymap, you used 94 and A4 for the 2 towers.
Shouldn't that be 91 and A1?
by Caracas
Tue Dec 06, 2011 4:44 pm
Forum: Developer's Heaven
Topic: BT1 clone in Python
Replies: 21
Views: 18758

I can't seem to attach files to a pm.
maybe I can upload it in Github? or you pm me a mailaddress where I can send it.
by Caracas
Tue Dec 06, 2011 3:57 pm
Forum: Developer's Heaven
Topic: msdos dissasembly
Replies: 101
Views: 83603

I've been checking the bard.exe file a bit closer. It starts with a lot of offsets into itself: 4D 5A 30 01 65 01 80 04 22 01 F8 05 FF FF 28 31 00 04 00 00 DC 10 66 03 1E 00 00 00 01 00 8F 03 00 00 82 03 00 00 75 03 00 00 6D 03 00 00 54 03 00 00 3B 03 00 00 22 03 00 00 00 03 00 00 ED 02 00 00 E5 02 ...
by Caracas
Tue Dec 06, 2011 1:08 pm
Forum: Developer's Heaven
Topic: BT1 clone in Python
Replies: 21
Views: 18758

btw Desmet Irkm (where did Daem go?)

I was browsing Github and I noticed in the msdos file list that you are still looking to decompress bard.exe?
I used pklite112.exe for that. Original bard.exe is 83Kb, decompressed it's about 215Kb

Not sure if you still needed that.
by Caracas
Mon Dec 05, 2011 1:35 pm
Forum: Developer's Heaven
Topic: Decode Bard's Tale Huffman files
Replies: 31
Views: 26960

btw Tomas,

you wrote that you use static Huffman coding?
That means you already have a Huffman tree?