[Ohrrpgce] [ohrrpgce:bugs] #2035 Missing/corrupt data in-game while using Test Game

TeeEmCee teeemcee at users.sourceforge.net
Tue Aug 28 03:27:41 PDT 2018


Just found a comment by Foxley: "Uh oh, the game just crashed when I went to the Sell menu in a shop"
No additional information, don't know whether he was using Test Game.


---

** [bugs:#2035] Missing/corrupt data in-game while using Test Game**

**Status:** open
**Milestone:** OHRRPGCE
**Labels:** test game shops 
**Created:** Tue Aug 28, 2018 09:06 AM UTC by TeeEmCee
**Last Updated:** Tue Aug 28, 2018 09:06 AM UTC
**Owner:** nobody


Wobbler reported once:
> ...while testing my game, I went into a shop to sell some items and every option was blank. It still showed the correct sell price and I could sell stuff, but I couldn't see any of the item names. I closed the game, opened it again, and everything was back to normal

SwordPlay also said he'd seen something like it, but couldn't remember anything at all.

While Custom is writing a lump it locks it to ensure that Game doesn't simultaneously try to read it. However, our load/save code often opens and closes a file multiple times, or writes multiple files, and there's no synchronisation around such operations to prevent Game from seeing inconsistent state. So I think there are a lots of weird things you might see if you get very unlucky.

In the case of item names note we don't cache those, and instead open .ITM to read the name of each item in a shop. But the names of the things in a shop are taken from STF, not ITM. The real item names are used on the right-hand-side info pane. The STF records for a shop are read/written all at once, so I don't know how what Wobbler saw could happen.

This bug report isn't specifically about shops though.


---

Sent from sourceforge.net because ohrrpgce at lists.motherhamster.org is subscribed to https://sourceforge.net/p/ohrrpgce/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/ohrrpgce/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20180828/fb1b2c6d/attachment-0001.html>


More information about the Ohrrpgce mailing list