Rick
2011-08-28 20:31:38
I've been working on making an account manager which is integrated into Simba.
I'm not sure where to start, so here's a picture:

This adds a new option to the Tools menu. Tools -> Account Manager
When clicked it will ask you for a key. This is used to encrypt and decrypt the passwords of the accounts (uses rijndael). Make sure you remember this.
All account info is stored in 'accounts.xml' in the same directory as Simba's executable.
Heres an example of how to load the accounts into SRL's Player Array:
The replacement executable file can be downloaded here: http://www.sendspace.com/file/2bci4x
For those of you who wish to look at the source code or compile it yourself: https://github.com/bentzilla/Simba/tree/AccountManager
Feedback and suggestions would be appreciated :)
I'm not sure where to start, so here's a picture:

This adds a new option to the Tools menu. Tools -> Account Manager
When clicked it will ask you for a key. This is used to encrypt and decrypt the passwords of the accounts (uses rijndael). Make sure you remember this.
All account info is stored in 'accounts.xml' in the same directory as Simba's executable.
Heres an example of how to load the accounts into SRL's Player Array:
program AccountManagerTest;
{$I SRL\SRL.scar}
const
SALT = 'salt'; // Salt used to encrypt/decrypt passwords
procedure DeclarePlayersAccountManager(Salt: String);
var
p: T2DStringArray;
i: Integer;
begin
p := LoadAccounts(Salt);
HowManyPlayers := Length(p);
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
for i := 0 to High(p) do
begin
with Players[i] do
begin
Name := p[i][0];
Pass := p[i][1];
Nick := p[i][2];
Pin := p[i][3];
Member := StrToBool(p[i][4]);
Active := StrToBool(p[i][5]);
end;
end;
end;
begin
SetupSRL;
DeclarePlayersAccountManager(SALT);
end.The replacement executable file can be downloaded here: http://www.sendspace.com/file/2bci4x
For those of you who wish to look at the source code or compile it yourself: https://github.com/bentzilla/Simba/tree/AccountManager
Feedback and suggestions would be appreciated :)