Bwa-hahahaha!

Any developer realated stuff
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

I've confirmed that memory location $fd20 stores the first special encountered in any dungeon.

Now all I need to do is load a dungeon that has a teleporter or some non-text special that occurs first...
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

It seems that $fd20 only holds the first TEXT string. When entering Mangar's Tower level 1 it stores the text containing the poem found at 4N,4E...

I suppose this means that another memory location will hold the teleportation specials, another for preset encounters, and so on.
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

I found at $d722 on the Dungeon disk:

Code: Select all

The  Tower
This is obviously the caption text for Mangar's Tower. If I can find the rest of the caption texts maybe I can figure out how to alter them via my program.
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

Update: I found "The Tower" not once, but five times on the disk. This means that each dungeon level has its own title.

This further means that each dungeon level is self-contained, which the possible exception of teleports and/or stairs/portals.

I think what happens when a dungeon level 1 is loaded, it scans the remaining dungeons that have the same caption title and finds the byte regarding shielding vs APAR/PHDO.

I also think these bytes are located just before the physical layout code begins. I've leard a thing or two about 1541 diskette layout.
As I have said elsewhere, each dungeon level is spread across two disk sectors (blocks). The first half of each level starts at byte #4 (Position 4) and reads to 255, leaving only the first four bytes of the disk unread (from 0 to 3). Byte 0 contains the Track #, so that leaves bytes 2, 3, and 4.

I'm going to examine Mangar's levels under Disk Doctor and see if I can't find differences between level 3 and level 4.
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

Shielding data is not contained with the physical layout data.

Time to look at the setup data for Wine Cellar...
User avatar
Darendor
Posts: 1503
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Post by Darendor »

I've matched some of the files on the Dungeon Disk:

DUNGEON SPECIALS
NM1F.PRG - Stairs long way up (16N 17E Sewers L3)
NM20.PRG
NM21.PRG
NM22.PRG
NM23.PRG - Bashar Kavilor (12N 12E Catacombs L2)
NM24.PRG
NM25.PRG
NM26.PRG
NM27.PRG
NM28.PRG
NM29.PRG
NM2A.PRG - (9N 9E Harkyn's L2)
NM2B.PRG
NM2C.PRG
NM2D.PRG
NM2E.PRG
NM2F.PRG
NM30.PRG
NM31.PRG
NM32.PRG
NM33.PRG
NM34.PRG
NM35.PRG
NM36.PRG
NM37.PRG
NM38.PRG
NM39.PRG
NM3A.PRG
NM3B.PRG
NM3C.PRG
NM3D.PRG
NM3E.PRG
NM3F.PRG
NM40.PRG
NM41.PRG
NM42.PRG
NM43.PRG
NM44.PRG - Mangar (20N 10E Mangar L5)

DUNGEON LEVELS
NMA0.PRG - Contains "The Cellar"
NMA1.PRG - Sewers L1
NMA2.PRG - Sewers L2
NMA3.PRG - Sewers L3
NMA4.PRG - Catacombs L1
NMA5.PRG - Catacombs L2
NMA6.PRG - Catacombs L3
NMA7.PRG - Harkyn's L1
NMA8.PRG - Harkyn's L2
NMA9.PRG - Harkyn's L3
NMAA.PRG - Kylearan's
NMAB.PRG - Mangar's L1
NMAC.PRG - Mangar's L2
NMAD.PRG - Mangar's L3
NMAE.PRG - Mangar's L4
NMAF.PRG - Mangar's L5
- 9 blocks each - 2 blocks for layout, 2 blocks for specials/traps/etc...5 blocks for ??? -

54files
Post Reply