Skip to main content
Matched title to contents. Clarified grammar. Removed topic of "standard" or "accepted" solutions, as popular choices aren't necessarily the right choices.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

Storing How should I store grid-based character storage informationinventories in the database?

Is there a standard way or the best way to store storage/inventory data in the database?

The one I used to do is encode the whole inventory data into binary but I'm thinking of doing something different now.

The inventory has a 8x8 slots. 64 total spacesslots in an 8×8 grid. ItemsLarge items like weapons fillsfill up 6 to 8 vertically rectangular slots in a vertical rectangle, while potions fills uptake 1 slot.

How would you store this data in thea database?

Storing character storage information

Is there a standard way or the best way to store storage/inventory data in the database?

The one I used to do is encode the whole inventory data into binary but I'm thinking of doing something different now.

The inventory has a 8x8 slots. 64 total spaces. Items like weapons fills up 6 to 8 vertically rectangular slots while potions fills up 1 slot.

How would you store this data in the database?

How should I store grid-based character inventories in the database?

I used to encode the whole inventory data into binary but I'm thinking of doing something different now.

The inventory has a 64 slots in an 8×8 grid. Large items like weapons fill up 6 to 8 slots in a vertical rectangle, while potions take 1 slot.

How would you store this data in a database?

Tweeted twitter.com/#!/StackGameDev/status/478804580201816064
Source Link
majidarif
  • 241
  • 3
  • 15

Storing character storage information

Is there a standard way or the best way to store storage/inventory data in the database?

The one I used to do is encode the whole inventory data into binary but I'm thinking of doing something different now.

The inventory has a 8x8 slots. 64 total spaces. Items like weapons fills up 6 to 8 vertically rectangular slots while potions fills up 1 slot.

How would you store this data in the database?