One idea I was toying around with is when we get the account system, most people will want to use it to start storing data on their players. So far the only way I'd be doing it is modifying the binary to do some of my dirty work. But this is sort of beyond the realm of most people, and what if you wanted it hosted on BE or GV where you can't access the server binary?
Therefore I was thinking of making an ACS plugin that allows mods to store information for the players. It would be very simple, and be integer driven.
Let us use some gun game for example, I envision it as follows:
ACS addons:
// Gets the index from the main database of their login number (each account has a single login number associated with it)
GetPlayerLoginID(int playerNumber);
// Don't know what to call this, but retrieves a string from a file you write to
GetData(int playerID, str dataName);
// Writes the data to a file on the host machine
WriteData(int playerID, str dataName, int value);
So for example, if your mod saves money, you could run a script like this:
Code: Select all
script 123 (void) {
int loginID = GetPlayerLoginID(PlayerNumber()); // Made this two lines for easy reading
WriteData(loginID, "money", moneyVariableHere);
}
On your machine it'd just be stored like an .ini file
Code: Select all
[1]
money=158234
kills=12
deaths=666
[5]
money=182385
[1235]
money=153
kills=-1
Haven't thought it fully through yet, but if anyone has suggestions on what could possibly be available via ACS or such, you may just shape the future of this possibly added feature