SRL Archive - MSI Suggestions

Use Anon stats account


Harry

2011-11-14 20:32:33

I'm not sure when this was done, but right now it calls:
SetupSRLStats(21, MSI_Settings[SETUP_STATS_ID], MSI_Settings[SETUP_STATS_PASS]);

I know stats.simba asks the user to setup an account if they don't already have one, however if the user declines that, all their stats are being "wasted", as far as I can tell.

The include tries to define the anonymous account in http://git.villavu.com/srl-opendev.git/blob/SRL/misc/stats.simba , however it's done after the Exit, so it does nothing. Should either include it into the script, or fix the include to do that before exiting? :) Wasted stats make me sad!

Kyle Undefined

2011-11-14 20:41:15

Doh! I didn't even notice that when I wrote that. This should work, no?


begin
case MessageBox('Would you want to disable this dialog from showing again in the future? (Not Recommended)', 'Disable this dialog?', mbYesNoCancel) of
mrYes: SetSettingValue(stats_ShowStatsDialog, 'FALSE');
mrNo, mrCancel :
begin
stats_Username := 'Anonymous';
stats_UserPass := 'anon1337';
Exit;
end;
end;
end;

Coh3n

2011-11-14 21:57:13

^ No, because if they hit yes, they still don't have an account and username/password isn't set. I think this works:

mrNo:
begin
case MessageBox('Would you want to disable this dialog from showing again in the future? (Not Recommended)', 'Disable this dialog?', mbYesNoCancel) of
mrYes: SetSettingValue(stats_ShowStatsDialog, 'FALSE');
end;

if (stats_username = '') then
begin
stats_Username := 'Anonymous';
stats_UserPass := 'anon1337';
end;
end;
E: Committed.