Downloads

Free downloads for BGDatabase package.

# Name Type Version Description Download
1 2D example Example 1.0-12/12/2018 2D variant of our 3D game prototype link
2 Inventory example Example 1.0-12/12/2018 Inventory system, built with BGDatabase link
3 Excel file monitor for Editor Editor tool 1.0-22/07/2019 Editor monitor for excel file link
4 Excel file monitor for Runtime (PC/Mac/Linux only) Runtime extension 1.0-22/07/2019 Runtime monitor for excel file link
5 Save/Load actions for Playmaker/Bolt Runtime extension 1.0-05/08/2019 Save/Load actions for Playmaker/Bolt Playmaker | Bolt v1 | Bolt v2

1. 2D example

2D variant of our 3D game prototype, shipped with the package (level=beginner).

Video tutorial for this 2D example is available here

How to run:
  1. Create an empty project
  2. Import BGDatabase asset
  3. Import downloaded example project
  4. Run example scene (under Game/Scene)

2. Inventory system

Inventory system, built with BGDatabase (level=advanced).

How to run:
  1. Create an empty project
  2. Import BGDatabase asset
  3. Import downloaded example project
  4. Run example scene (under Game/Scene)

3. Excel file monitor for Editor

Features:
  1. Monitor and auto import Excel file in Unity Editor
Setup:
  1. Import BGDatabase package and create your own database as described here
  2. Import BansheeGzExcelEditor package
  3. Export required data to Excel file as described here
  4. Open up Window->BansheeGzExcelTools window
  5. Set "File" parameter to excel file path
  6. Turn "On" parameter on.
  7. Open exported excel file, change some data and save the file (Ctrl+s)
  8. Data will be imported to BGDatabase.

4. Excel file monitor for Runtime

Features:
  1. Update database data at runtime (in builds) with data from Excel file (PC/Mac/Linux only)
  2. Monitor excel file and auto-import the data if file changes (PC/Mac/Linux only)
Setup:
  1. Import BGDatabase package and create your own database as described here
  2. Move (not copy!) Assets\BansheeGz\BGDatabase\Editor\Libs\NPOI folder to Assets\Libs (or to any other folder, which is not under Editor folder)
  3. Import BansheeGzExcelRuntime package
  4. Add Assets\BansheeGzExcelRuntime\BGExcelImportGo.cs to your scene
  5. Export required data to Excel as described here
  6. Run your scene
  7. Click to "Excel>>" button to access settings
  8. Set "File" parameter to previously exported excel file location
  9. Optionally set "monitoring" to true to auto monitor the file
  10. Optionally set "importOnStart" to run import on scene load
  11. Optionally press "Save Settings" to save the settings
  12. Open excel file, change the data and save the file (Ctrl+s)
  13. BGDatabase data should be updated. All binders in the scene will be executed after that.
Example:

Example scene is available in Assets\BansheeGzExcelRuntime\Example\ folder. It works with default database, shipped with BGDatabase package. This example shows, how to update Player.gold field with excel at runtime.

Example setup and run:
  1. Create empty project
  2. Import BGDatabase package
  3. Move (not copy!) Assets\BansheeGz\BGDatabase\Editor\Libs\NPOI folder to Assets\Libs (or to any other folder, which is not under Editor folder). Select all dlls under Assets\Libs\NPOI, and in the inspector toggle "Standalone" on and click "Apply"
  4. Import BansheeGzExcelRuntime package
  5. Open Assets\BansheeGzExcelRuntime\Example\BGDatabaseExcelRuntimeExample.unity scene
  6. Run the scene
  7. Click on "Excel>>" button, and set "File" parameter to full testData.xls file path. (file is located here: Assets\BansheeGzExcelRuntime\Example\testData.xls, but the parameter should be set to full path, for example: c:\MyProject\Assets\BansheeGzExcelRuntime\Example\testData.xls
  8. Click on "Save Settings" button
  9. Now open testData.xls file in Excel/OpenOffice/LibreOffice, change Player.gold value, and Save the file (Ctrl+s)
  10. Value in the database and text on the screen will be changed

5. Save/Load actions for Playmaker/Bolt

Custom actions for Playmaker and Bolt to support SaveLoad addon. Actions allow you to save/load game to/from file(s), located in the Unity's persistent folder.

Following actions are available:
  1. SaveGame: save a game to a file.
  2. LoadGame: load a game from a file.
  3. ListSaves: load all file names to string array (without path and extension)
  4. DeleteSave: delete saved file.
Additional information:
  1. All files have ".sav" extension.
  2. SaveGame/LoadGame/DeleteSave have optional fileName parameter (default is "game"). fileName parameter format is a file name without path and extension.
  3. All actions have "debug" parameter- if it's turned on, information about files is printed to Unity console.