Ticket #185 (closed task: fixed)

Opened 10 years ago

Last modified 9 years ago

Object information database in xml

Reported by: b0rland_parpg Owned by: b0rland_parpg
Priority: major Milestone: Release: Techdemo 2
Component: scripts Version: trunk
Keywords: Cc:
Blocked By: Blocking:


We need to be able to store various attributes for each game object type. Currently the need arose to store inventory thumbnails for carryable objects, as well as weight and bulk values. We also want to store default values for some basic attributes like description text (and allow to optionally override them in map file as it's done now). In future we'll almost certainly need to add stats modifiers for carryable items too - various resistances added by armor, weapon and ammunition strength and quality, etc. For non-carryable items the attributes can include hardness and lock complexity (for crates), etc etc.

Currently existing storages don't allow such a freedom of extension, so a new one needs to be created. Afterwards we may possibly merge some of the old storages into the new one.

Suggested structure -- xml files, one per object, stored in well-known location (under objects/<object_category>/descriptions) directory). They should be easily extendable with new attributes. Please implement support for such descriptions database, read those descriptions on startup (along with object images) and publish them for use in parpg scripts.


Change History

comment:1 Changed 10 years ago by b0rland_parpg

  • Owner changed from parpg to b0rland_parpg

comment:2 Changed 10 years ago by b0rland_parpg

  • Milestone changed from Techdemo 1 to Techdemo 2

comment:3 Changed 10 years ago by beliar

(In [537]) - Added support for an "Object Information Database"

  • Database is a .yaml file
  • Added setting for the database file
  • Database will be loaded when the engine is initiated
  • Database contains attribute values for objects that will overwrite the hard coded default values
  • These values can themselves be overwritten in the map file
  • The database file itself currently only contains 2 objects refs #185

comment:4 Changed 9 years ago by beliar

  • Status changed from new to closed
  • Resolution set to fixed

Add a comment

Modify Ticket

as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.