Jump to content
  • entries
    20
  • comments
    16
  • views
    8,625

Store Display


Shawn Jefferson

298 views

About a year ago was the last time I touched the source of Moria, and at that time there was a nasty bug in some of the store code that I thought was causing the store items to be corrupted. After familiarizing myself again with the banking spaghetti that is my port to the Atari, I found the problem is only in the store_display code. A couple of debugging sessions later, I narrowed it down to the object description code. Moria builds the object descriptions sort of "on the fly" displaying the same object's description in different ways depending on various factors like if you are in the store, whether you've identified the item in the past, etc.... Short story, I fixed the display_store code and it appears to be working now.

 

blogentry-2472-0-60598400-1409625057_thumb.png

 

I've also begun working on porting ALL of the store code, which equals to almost 3 cartridge banks (~24k).

 

Attached is an Atarimax 8-mbit cartridge image you can run in Altirra that shows the progress on the store_display code. This is an older style (bank 127 startup) cartridge. It also requires VBXE for 80 column mode and also the extra memory. After rolling your character, the town is generated. Press a key and you will be taken to the store display. Each store (6 in total), is displayed in order. Pressing "b" allows you to browse the store's items if there is more than one page (you'll see -cont- displayed if so). ESC, goes to the next store. After the 6 stores are displayed, the store_maint code runs and turns over some of the items in the stores. Which you can look at again in an endless loop (try Altirra in Warp speed, no real optimization has been done yet.)

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...