Bwa-hahahaha!

Any developer realated stuff
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

Darendor wrote:Which memory locations on the disk did you change "This" to "Here", exactly?
I edited bt1_dung.d64 at the following address:

Code: Select all

0008e20: 6dfd 98fd 20fd 20fd 20fd 20fd 20fd d4e8  m... . . . . ...
0008e30: e9f3 a0e9 f3a0 f4e8 e5a0 f7e9 eee5 a0e3  ................
I changed four bytes; d4e8 at the end of the top line to c8e5, and e9f3 at the start of the second line to f2e5. So it then those lines read:

Code: Select all

0008e20: 6dfd 98fd 20fd 20fd 20fd 20fd 20fd c8e5  m... . . . . ...
0008e30: f2e5 a0e9 f3a0 f4e8 e5a0 f7e9 eee5 a0e3  ................
Then of course I have 'xxd -r', saving it as dungmod.d64.
Death and drek? WTF?
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

So drag and drop all dungeon files out of the DUNGEON disk into a folder then?
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

Horpner wrote:
Darendor wrote:Which memory locations on the disk did you change "This" to "Here", exactly?
I edited bt1_dung.d64 at the following address:

Code: Select all

0008e20: 6dfd 98fd 20fd 20fd 20fd 20fd 20fd d4e8  m... . . . . ...
0008e30: e9f3 a0e9 f3a0 f4e8 e5a0 f7e9 eee5 a0e3  ................
I changed four bytes; d4e8 at the end of the top line to c8e5, and e9f3 at the start of the second line to f2e5. So it then those lines read:

Code: Select all

0008e20: 6dfd 98fd 20fd 20fd 20fd 20fd 20fd c8e5  m... . . . . ...
0008e30: f2e5 a0e9 f3a0 f4e8 e5a0 f7e9 eee5 a0e3  ................
Then of course I have 'xxd -r', saving it as dungmod.d64.
Check your e-mail as I've sent you my disk. See for yourself.
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

So far I've been unsuccessful in copying out nma0.prg, editing it, and then writing the modified file back onto the disk image. The game refuses to enter the dungeon successfully using the altered disk image.
Death and drek? WTF?
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

Darendor wrote:Check your e-mail as I've sent you my disk. See for yourself.
The bytes at $8e2e and up aren't modified on the image you sent me. Are you sure it's the one you modified?
Death and drek? WTF?
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

Horpner wrote:
Darendor wrote:Check your e-mail as I've sent you my disk. See for yourself.
The bytes at $8e2e and up aren't modified on the image you sent me. Are you sure it's the one you modified?
I resent it. :?
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

I want to try to figure out whether the special text size is pre-set or if we can modify them to make them longer/shorter.

We still need to figure out where the pointer code is for when the party steps on a special square.
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

Darendor wrote:I want to try to figure out whether the special text size is pre-set or if we can modify them to make them longer/shorter.

We still need to figure out where the pointer code is for when the party steps on a special square.
A limitation of modifying the disk images directly is that we'll be stuck with whatever file sizes are originally stored on the disk. You can re-arrange the special text messages so that they had different lengths, but all the messages must add up to less (or peharps exactly the same) as the full set of messages for that level. So far.
Death and drek? WTF?
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

Darendor wrote:I resent it. :?
Nope. What commands are you using to write your modifications to a disk image?
Death and drek? WTF?
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

Horpner wrote:
Darendor wrote:I resent it. :?
Nope. What commands are you using to write your modifications to a disk image?
Notepad.exe...

The .txd file generated by XXD.EXE is what I'm editing then reversing back into binary.
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

For some reason your attempts to edit the text portion aren't getting saved.

So far, Star Commander is the only program I've found that will let me edit a file on a disk image directly, and with a minimum of fuss. Unfotunately, on Windows XP it seems to crash often. However, when I run it from within DOSBOX it works fine.

I'm going to try messing with the compatibility settings on XP to see if I can get it to stop crashing.
Death and drek? WTF?
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

Horpner wrote:For some reason your attempts to edit the text portion aren't getting saved.
I think I figured out what's going wrong, because it just happened to me.

Make sure the disk image you are modifying is not running in the emulator when you xxd -r over the top of it. You can't write to a file when Vice has it open.
Death and drek? WTF?
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

Success.

Image

I dub our project "The Bard's Tale 8-Bit Builder Kit", version zero, alpha build.

Do you concur? 8)
User avatar
Horpner
Posts: 224
Joined: Thu Jan 08, 2009 11:53 pm
Location: New England
Contact:

Post by Horpner »

Darendor wrote:Success.

Image

I dub our project "The Bard's Tale 8-Bit Builder Kit", version zero, alpha build.

Do you concur? 8)
That's awesome!

So far, you just need tons of arcane knowledge, a bunch of weird programs, massive patience, and then it doesn't even do that much. But hey, release early and often, as they say.. :wink:
Death and drek? WTF?
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

I think what we need to do is write, within the C64, a user-friendly interface that lets people edit the Wine Cellar map.
Post Reply