FrÕzÑ_§ÕµL
2008-03-09 00:59:34
Hi,
my problem is that chr(13) isn't being written to files. I believe this may be due to srl changing chr(13) to chr(10) when using SMART. So I'll shove some code in for you to see what I'm writing…
So yea, get some ideas from that if you like, but anyway, the .txt turns out as:
Yea ok that looks normal now, but in notepad it only looks like that if you compress the sides. What if I want it normal when maximized?! Two chr(13)s? 3?! wtf there must be a way!
Thank you to all who read my ramblings and participate in my problem.
my problem is that chr(13) isn't being written to files. I believe this may be due to srl changing chr(13) to chr(10) when using SMART. So I'll shove some code in for you to see what I'm writing…
//In Setup;
if FileExists(ScriptPath + 'Forest Frostbite Report.txt') then
Begin
x := OpenFile(ScriptPath + 'Forest Frostbite Report.txt', false);
ReadFileString(x, s, FileSize(x));
CloseFile(x);
end;
Fr0znFile := RewriteFile(ScriptPath + 'Forest Frostbite Report.txt', false);
if s <> '' then
WriteFileString(Fr0znFile, s + CHR(13));
WriteFileString(Fr0znFile, TheDate(1) + ', ' + TheTime + CHR(13));
//In PlayerReport (unfinished)
WriteFileString(Fr0znFile, CHR(13));
WriteFileString(Fr0znFile,'<> <****************************************>' + CHR(13));
WriteFileString(Fr0znFile,'<> <* Forest Frostbite <***> by FrÕzÑ_§ÕµL *>' + CHR(13));
WriteFileString(Fr0znFile,'<> <****************************************>' + CHR(13));
WriteFileString(Fr0znFile,'<> <* Gained ' + IntToStr(LevelsGained) + ' Levels' + CHR(13));
WriteFileString(Fr0znFile,'<> <* Done ' + IntToStr(LoadsDone) + ' Loads of ' + Tree + #39 + 's' + CHR(13));
WriteFileString(Fr0znFile,'<> <* Chopping ' + IntToStr(Round(LoadsDone*100*27/(GetTimeRunning*100/3600000))) + ' ' + Tree + ' Logs Per Hour' + CHR(13));
WriteFileString(Fr0znFile,'<> <* ' + IntToStr(ActivePlayers) + ' Players Active After ' + TimeRunning + CHR(13));
WriteFileString(Fr0znFile,'<> <****************************************>');
//gap
for i := 0 to HowManyPlayers - 1 do
if (Players[i].Rand <> '') and Not(Players[i].Active) then
Begin
WriteFileString(Fr0znFile,'<> Players' + #39 + ' Status : ');
Writeln('<> Players' + #39 + ' Status : ');
Break;
end;
for i := 0 to HowManyPlayers - 1 do
if Not(Players[i].Active) and (Players[i].Rand <> '') then
Begin
WriteFileString(Fr0znFile, '<> ' + Capitalize(Players[i].Name) + ' - ' + Players[i].Rand + '. (Level ' + IntToStr(Players[i].Integers[2]) + ' Woodcutting)');
Writeln('<> ' + Capitalize(Players[i].Name) + ' - ' + Players[i].Rand + '. (Level ' + IntToStr(Players[i].Integers[2]) + ' Woodcutting)');
end;So yea, get some ideas from that if you like, but anyway, the .txt turns out as:
From: Making a Liar of Me
March 9th, 2008 06:37:11 PM
<> <****************************************>
<> <* Forest Frostbite <***> by FrÕzÑ_§ÕµL *>
<> <****************************************>
<> <* Gained 0 Levels
<> <* Done 1 Loads of Willow's
<> <* Chopping 450 Willow Logs Per Hour
<> <* 6 Players Active After 3 Minutes and 48 Seconds
<> <****************************************>
From: The Reality
March 9th, 2008 06:37:11 PM<> <****************************************><> <* Forest Frostbite <***> by FrÕzÑ_§ÕµL *><> <****************************************><> <* Gained 0 Levels<> <* Done 1 Loads of Willow's<> <* Chopping 450 Willow Logs Per Hour<> <* 6 Players Active After 3 Minutes and 48 Seconds<> <****************************************>
Yea ok that looks normal now, but in notepad it only looks like that if you compress the sides. What if I want it normal when maximized?! Two chr(13)s? 3?! wtf there must be a way!
Thank you to all who read my ramblings and participate in my problem.