Skip to content

Memory Bank v1.0

The image of GV Memory Bank

Differences

An element that can store data. Its Ports Definition is the same as the vanilla version. The differences are as follows:

  • You must manually set width and height to initialize the memory bank before store data. The width and height cannot be modified after initialization. (But may be overwritten by other operations.)
  • The row and column count limits are raised to 232-1, and the product of width and height cannot exceed 232-1.
  • If only the top is connected, it outputs its ID.
  • When you edit the data in string mode, you should separate every data with,and separate every line with;. If the data is very much, it is recommended to edit the exported image and import the image again.
  • You can import/export data in the edit dialog. The exported file is PNG format image.
  • You can import not only PNG format image, but alsoWAVformat audio file encoded inPCM, and other files. Details are in the following section.

This is a failed online editor:https://xiaofengdizhu.github.io/GVMBEditor
In addition,Gigavolt.Expand mod has Volatile Memory Bank, which does not need initialization.

Import & Export

Export

Gigavolt Memory Bank stores and exports data in lossless PNG image, for storing the data which is much more than the vanilla version. And this is why you need to set the length and width before editing, and you cannot modify it after setting. It is recommended not to set the width and height too big, because modification of data requires a long time to encode when saving, and it will cause lag.

When being saved or exported, every data will be stored in the image pixel in ABGR color mode. From the highest bit to the lowest bit, every 8 bits will be stored in the Alpha Channel, Blue Channel, Green Channel, Red Channel. For example0xFFDD6655will be stored as a pixel with 0xFF alpha, 0xDD Blue, 0x66 Green, 0x55 Red.

🛠️ Voltage Color Converter
Voltage:
HEX
A
B
G
R

Import PNG Format Image File

Every pixel of the importing image will be converted to data in ABGR color mode, then the data will be stored in the memory bank. The width and height of the memory bank will be overwritten by the width and height of the importing image.

Import WAV Format Audio File

Requirements:

  • Codec:PCM
  • Channels:2
  • Sample Rate:8000 ~ 48000 Hz
  • Bit Depth:16 bits

Only WAV format audio files meet the requirements can be imported. If the check is passed, thedata chunkof the WAV file will be stored in the memory bank. For example, if thedata chunkhas 6 16-bit data,0x00010x00020x33330x45670xBA980xCDEF, the data in the memory bank will be 0x000100020x333345670xBA98CDEF.

The data imported successfully can be used with Sound Generator

Import Other File

将从开头直接 32 位、32 位……地读取数据并写入存储器中 It will read data from the beginning of the file in order and store every 32 bits to the memory bank.

If you import aUTF8encoded text file, you can use it with Sign.