Although posting logs help, being able to edit what caused it to fail is what's needed.
Printable View
I'm saying by letting a dev borrow your account that's in the random, we can fix the issues.
So
BoxRewards := ['Constitution'];
will get a lamp and use it on constitution, right? Or is it HP? Or Different captitalizations? Is this documented anywhere so I can make sure I'm doing it right?
Thanks.
Edit: no, that didn't work, I just watched it pick a mystery box
How about something where on a random failing the debug log is send to somewhere for us all to access? I could write something?
Edit:
This could be called on a random failing:
Simba Code:Procedure RandomSendLog;
Var
S, R, Name, Temp : String;
num : integer;
Succeeded : Boolean;
Names : array of String;
begin
if (SRL_DisableLogging) then
exit;
if (not directoryExists(SRL_SavePath)) then
forceDirectories(SRL_SavePath);
Name := 'SRL log ('+SRL_StartTime+').txt';
Name := replace(Name, '/', '-');
Name := replace(Name, ':', ' ');
Name := SRL_SavePath + Name;
if (FileExists(Name)) then
num := OpenFile(Name, False)
else
exit;
ReadFileString(num, S, FileSize(num));
CloseFile(num);
Names := ['Drill Demon', 'Maze', 'Evil Bob', 'Mordaut', 'Certers', 'Mime', 'Abyss', 'Frog', 'Pinball', 'Sandwich Lady', 'Pillory (Cage)', 'Cap''n Arnav', 'Quiz Master', 'Leo', 'Prison Pete', 'Freaky Forester', 'Beekeeper', 'Molly', 'Rewards'];
for num := 0 to high(Names) do
if(Pos(Names[num], S) > 0)then
begin
R := Names[num];
break;
end;
Succeeded := Pos('Solved Random', S) > 0;
While(Pos('Current player:', S) > 0)do //Removing usename:
begin
Temp := Copy(S, Pos('Current player:', S) + 13, Length(S));
S := Copy(S, 1, Pos('Current player:', S) + 13) + '**********' + Copy(Temp, Pos(#13#10, Temp), Length(Temp));
end;
S := Replace(S, #13#10, ',,'); //The double commas are replaced by <BR> tags when it is printed
S := Replace(S, #39, '');
S := Replace(S, '"', '');
if(S <> '')then
begin
num := InitializeHTTPClientWrap(False);
AddPostVariable(num, 'log', S);
AddPostVariable(num, 'random', R);
AddPostVariable(num, 'succeeded', BoolToStr(Succeeded));
PostHTTPPageEx(num, '...');//I have removed the website as I would assume you wouldn't want me hosting it, but it works on my site
FreeHTTPClient(num);
end;
end;
And the php:
And then so we can look at the logs:PHP Code:<?PHP
$user_name = "";
$pass_word = "";
$database = "";
$server = "";
$log = $_POST['log'];
$random = $_POST['random'];
$succeeded = $_POST['succeeded'];
$ip = $_SERVER['REMOTE_ADDR']; //This is saved incase of abuse, it can start rejecting posts based on IP
$db_handle = mysql_connect($server, $user_name, $pass_word);
$db_found = mysql_select_db($database, $db_handle);
if ($db_found) {
$SQL = "INSERT INTO `Random Event Logs` (`Random` ,`Succeeded` ,`Log` ,`IP`) VALUES ('".$random."', '".$succeeded."', '".$log."', '".$ip."')";
$result = mysql_query($SQL);
if($result)
print "True";
else
print "False";
}
else
print "DB not Found, please report this";
?>
The viewing could obviously be improved, with record deleting, and choosing to view only failed logs etc.PHP Code:<?PHP
$user_name = "";
$pass_word = "";
$database = "";
$server = "";
$random = $_GET['random'];
$username = $_GET['username'];
$password = $_GET['password'];
$db_handle = mysql_connect($server, $user_name, $pass_word);
$db_found = mysql_select_db($database, $db_handle);
if (($db_found) && ($username == "") && ($password == "")){//Just to keep it private
$SQL = "SELECT * FROM `Random Event Logs`";
$result = mysql_query($SQL);
while ($db_field = mysql_fetch_assoc($result)) {
if($db_field['Random'] == $random){
print "<b>ID:</b>";
print $db_field['ID'] . "<BR>";
print "<b>Random:</b>";
print $db_field['Random'] . "<BR>";
print "<b>Succeeded:</b>";
print $db_field['Succeeded'] . "<BR>";
print "<b>Log:</b>";
print str_replace(",,", "<BR>", $db_field['Log']) . "<BR><BR>";
}
}
}
else
print "Username of Password incorrect";
?>