Category:Pluggy

From the Oblivion ConstructionSet Wiki
Revision as of 13:10, 14 February 2008 by imported>Haama (Bolden name)
Jump to navigation Jump to search

Pluggy (latest version is Beta v30) is a plugin for OBSE that provides functions to create, store, and manipulate single-dimension arrays.

Download and Discussion Thread

Pluggy in the Bethesda Forums (Oblivion Mods)

What is an array?

You can think of a single-dimension array as an expandable piece of lined paper. Each line contains a bit of information. In Oblivion's case, the line can either be empty, a reference, an integer (long), or a float. Each line is called an index, and they start with 0.

An example array:

Index Info in index Type of info in index
Index 0 --- Empty
Index 1 0000000F (Gold) Reference
Index 2 658 Long
Index 3 4.563 Float

Where are the arrays stored?

  • The arrays are stored in separate .pluggy files.
  • A .pluggy file is created whenever the game is saved and there are arrays in use.
  • Each .pluggy file corresponds to it's save game file.
  • If all arrays are destroyed, or all mods that use the arrays are deactivated, the .pluggy file will be deleted.
  • The files are incredibly small - only 9 bytes per non-empty array index.

How much space and memory do the arrays take?

  • Memory (in-game) - 4 bytes per empty array index and 9 bytes per filled array index
  • HDD space - 9 bytes per filled array index

How fast are the functions?

  • Not fully tested, but running 900 Pluggy "Find" calls only took half a second while 900 GetInventoryObject calls took 10 seconds. In short, these are incredibly fast functions.

Subcategories

This category has the following 5 subcategories, out of 5 total.

A

F

H

S