Arma 3
Nincs elegendő értékelés
ArmaRAMDb
 
Értékelés  
Kedvenc
Kedvenc
Törlés
Data Type: Mod, Server
Címkék: Content Review
Fájlméret:
Közzétéve:
Frissítve:
0.291 MB
2015. nov. 30., 9:07
2016. jan. 14., 8:11
4 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
ArmaRAMDb

Feliratkozva
Leiratkozás
Leírás
This is a lightweight Arma 3 RAM Database with XML Support for export/import.
It can save/load more than the Arma 3 callExtension buffer limit due to split save/load.

NOTE: List Functions can only work within buffer limit!

XML File import:

_file = String of XML Path and Filename (like: "@ArmaRAMDb\export.xml" or "C:\Iamafolder\blabla.xml")
_return = Boolean return of successfull import

_return = [_file] call RAMDb_fnc_import; ( Server or Singleplayer only )


XML File export:

_file = String of XML Path and Filename (like: "@ArmaRAMDb\export.xml" or "C:\Iamafolder\blabla.xml")

[_file] call RAMDb_fnc_export; ( Server or Singleplayer only )


Save to RAMDb:

_key = String to your saved data ( Case sensitivity )
_data = Array of your data you wanna save

[_key, str _data] spawn RAMDb_fnc_save; ( Server or Singleplayer only )
or
[_key, str _data] remoteExec ["RAMDb_fnc_save", 2, false]; ( Multiplayer only )


Load from RAMDb:

_key = String to your saved data ( Case sensitivity )
_data = Array of your data
_obj = Target to return data can be Object, Array of Objects, Owner ID ( 0 = All and 2 = Server only ), Side or Group ( Multiplayer only )
_fnc = String name of function to return your data( Multiplayer only )
_call = Boolean for call true or false. Default false. ( Multiplayer only )

_data = [_key] call RAMDb_fnc_load; ( Server or Singleplayer only )
or
[_key, _obj, _fnc, _call] remoteExec ["RAMDb_fnc_load", 2, false]; ( Multiplayer only )


Add List (or pushBack Element to List) to RAMDb:

_key = String to your saved data ( Case sensitivity )
_data = Array of your data you wanna save

[_key, _data] spawn RAMDb_fnc_listadd; ( Server or Singleplayer only )
or
[_key, _data] remoteExec ["RAMDb_fnc_listadd", 2, false]; ( Multiplayer only )


Load List from RAMDb:

_key = String to your saved data ( Case sensitivity )
_data = Array of your data
_obj = Target to return data can be Object, Array of Objects, Owner ID ( 0 = All and 2 = Server only ), Side or Group ( Multiplayer only )
_fnc = String name of function ( Multiplayer only )
_call = Boolean for call true or false. Default false. ( Multiplayer only )

_data = [_key] call RAMDb_fnc_listload; ( Server or Singleplayer only )
or
[_key, _obj, _fnc, _call] remoteExec ["RAMDb_fnc_listload", 2, false]; ( Multiplayer only )


Delete List from RAMDb:

_key = String to your saved data ( Case sensitivity )

[_key] call RAMDb_fnc_listdel; ( Server or Singleplayer only )
or
[_key] remoteExec ["RAMDb_fnc_listdel", 2, false]; ( Multiplayer only )


Get List Element from RAMDb:

_key = String to your saved data ( Case sensitivity )
_index = Number of Index in your List
_data = Array of your data
_obj = Target to return data can be Object, Array of Objects, Owner ID ( 0 = All and 2 = Server only ), Side or Group ( Multiplayer only )
_fnc = String name of function ( Multiplayer only )
_call = Boolean for call true or false. Default false. ( Multiplayer only )

_data = [_key, _index] call RAMDb_fnc_listget; ( Server or Singleplayer only )
or
[_key, _index, _obj, _fnc, _call] remoteExec ["RAMDb_fnc_listget", 2, false]; ( Multiplayer only )


Get Set List Element from RAMDb:

_key = String to your saved data ( Case sensitivity )
_index = Number of Index in your List
_getset = Number/Array/String/Boolean of your new Value
_data = Array of your data return
_obj = Target to return data can be Object, Array of Objects, Owner ID ( 0 = All and 2 = Server only ), Side or Group ( Multiplayer only )
_fnc = String name of function ( Multiplayer only )
_call = Boolean for call true or false. Default false. ( Multiplayer only )

_data = [_key, _index, _getset] call RAMDb_fnc_listget; ( Server or Singleplayer only )
or
[_key, _index, _getset, _obj, _fnc, _call] remoteExec ["RAMDb_fnc_listget", 2, false]; ( Multiplayer only )


Set List Element in DB to new Value:

_key = String to your saved data ( Case sensitivity )
_index = Number of Index in your List
_data = Number/Array/String/Boolean of your new Value

[_key, _index, _data] spawn RAMDb_fnc_listset; ( Server or Singleplayer only )
or
[_key, _index, _data] remoteExec ["RAMDb_fnc_listset", 2, false]; ( Multiplayer only )


Remove List Element from RAMDb:

_key = String to your saved data ( Case sensitivity )
_index = Number of Index in your List you want to remove

[_key, _index] spawn RAMDb_fnc_listrem; ( Server or Singleplayer only )
or
[_key, _index] remoteExec ["RAMDb_fnc_listrem", 2, false]; ( Multiplayer only )