mbbsemu / MBBSEmu

The MajorBBS Emulation Project is an Open Source, Cross-Platform emulator for easily running The MajorBBS & Worldgroup Modules
https://www.mbbsemu.com
MIT License
132 stars 14 forks source link

Mutants! - Creatures & Items missing their Names #4

Closed enusbaum closed 4 years ago

enusbaum commented 4 years ago

Overview

When you enter a room in Mutants! that contains a monster or items on the floor, they can appear without their names.

Details

The game loads the base names for Items & Monsters from the Btrieve files (MJWMUTI.DAT & MJWMUTM.DAT). I'm able to confirm these files are being loaded correctly but I suspect there's an issue with the pointer to the given Btrieve record after a query is being performed.

image

I discovered recently that if a null pointer is passed in for the result record on a Btrieve Operation through MAJORBBS.H (such as GABBTV()), that it sets the result record pointer only in the current BTRIEVE struct. Need to verify that this logic is consistent across all Btrieve Query/Retrieval operations as I suspect Mutants! is getting a null/bad pointer for the record if it's looking in the BTRIEVE struct and it's not being set properly.

enusbaum commented 4 years ago

Verified Fixed