400 lines of code GONE!!!
rogue poser
2009-05-28 21:32:43
CGHSDAJFHsdfkjsdhj;kadshf'dslnsa
dVADSSADFNJADSKFNJSSA
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
i was making a script and i had it running decently, i had it saved and i had a backup! i want to save the file and didnt realize my script was running, it gave me an error saying it couldnt save, so i stopped it and saved to my backup, SAME ERROR, went to open the backup and it was empty!!!!!! tried to save again and it FROZE
400 lines of code, my morning and evening yesterday, GONE GONE GONE. i want to kick someone in the mouth right now
HyperSecret
2009-05-28 21:37:01
The more you script the more it will happen, sorry to say. That sucks though. You will look back someday and be like, geez I fussed over that crap code, haha.
Pure1993
2009-05-28 22:10:34
it's only 400 lines, if you get further into scripting, you will code 400 lines in 30 minutes ^^
From: Pure1993
it's only 400 lines, if you get further into scripting, you will code 400 lines in 30 minutes ^^
Ye i agree.. I'v lost over 2500 Lines of coding..
I was like.. FUCK THIS SHIT!
~Home
Dynamite
2009-05-28 22:19:55
I lost 1000 lines before! it sucked!
T~M
Naike
2009-05-29 00:13:14
Happend to me when I was a junior aswell, was so pissed.
But amazingly i remade it, and guess what?
I did it 2 times better.
My point, Go for it.
Runescapian321
2009-05-29 00:49:59
Ouch, that sucks :(. Most I've ever lost is like 10 lines, usually because Scar stops responding every once in a while when I try to run a script. Ever since I lost those 10 lines I always remember to click Save before clicking Play :p
Harry
2009-05-29 01:18:24
Protip: How to run SCAR scripts to test:
Ctrl + S
Ctrl + F9
F9 once Ctrl + F9 says it compiled.
I have never lost code via this method.
Smartzkid
2009-05-29 04:08:43
That's SCAR alright.
#1 reason why I don't script much anymore.
senrath
2009-05-29 04:19:14
Huh. I've never had any problem saving a script while it was running.
JPHamlett
2009-05-29 06:03:52
well i dont know how to do any of this stuff but my dad told me once when i lost a speech that i was in the iddle of by crashing that is saved to the hard drive somewhere dont know if its true or not but maybe you could figure out how to accesst if i s there
Smartzkid
2009-05-29 06:42:43
From: J_Pizzle
well i dont know how to do any of this stuff but my dad told me once when i lost a speech that i was in the iddle of by crashing that is saved to the hard drive somewhere dont know if its true or not but maybe you could figure out how to accesst if i s there
Completely possible (most office programs do it), but thus far, Freddy has refused to do it. If I remember right, it was because of the 'wasted' disk space?
rogue poser
2009-05-29 18:34:08
i rewrote most of it…. yay…. i do think it is better now than it was, because while i couldnt write it while i was at work, i thought about it and the procedures are more smooth
Nava2
2009-05-31 08:59:22
Listen to Harry he is right. Just click the blue disk frankly.
P1nky
2009-05-31 09:36:53
everytime you finish writing a func/proc go ahead press CTRL-S , it's a habit now for me. Though dont worry , it happens; Just get your hands back to coding :)
G()()|) L|_|Ck
everytime you finish writing a func/proc go ahead press CTRL-S , it's a habit now for me. Though dont worry , it happens; Just get your hands back to coding
G()()|) L|_|Ck
Thats what I do.
Just wrote 500 lines of code within 3 hours. About another 500-1000 before my fisher is done though.
Floor66
2009-05-31 11:51:14
From: ~~Joker~~
everytime you finish writing a func/proc go ahead press CTRL-S , it's a habit now for me. Though dont worry , it happens; Just get your hands back to coding :)
G()()|) L|_|Ck
I press it neurotically. When I see that little star next to the filename I just have to press it xD
So after every change I save it, 1 line or 100 lines.
ShowerThoughts
2009-05-31 16:06:42
I click that save button like every 10 ms, I can script very fast but that is what slows me down :p.
Pure1993
2009-05-31 18:44:41
From: Floor66
I press it neurotically. When I see that little star next to the filename I just have to press it xD
So after every change I save it, 1 line or 100 lines.
+1!
You have just quoted me IRL… said that like 2 days ago when a friend of mine lost an 8 page essay, because he exited the word window and accidentally pressed "no", when it asked him "Do you want to save before exiting?", and he hadn't saved it before… at first I rofled IRL, and then I gave him the advice, that whenever he notices the little star (forgot that Word doesn't have a start… SCAR addict ftw xD), or takes a little 5 second break to think of what he is going to type next, to press the freaking ctrl+s buttons… it's a reflex for me… almost as strong as breathing… :rolleyes:
Shuttleu
2009-05-31 18:52:24
happened to me loads of times
everytime i go to see if the script is working or will compile i always press CTRL+S before i press CTRL+F9
but most of the time i loose it is due to crashes while i am halfway through a function :/
~shut
Wizzup?
2009-05-31 20:03:23
From: HyperSecret
The more you script the more it will happen, sorry to say. That sucks though. You will look back someday and be like, geez I fussed over that crap code, haha.
It shouldn't happen. Editors should not crash…
I've never had that problem with vim.
Smartzkid
2009-06-01 07:22:25
Pure editors, no - never, but a mixed IDE like SCAR deserves a bit of leniency in this area. The unforgivable part is that it doesn't make any sort of pre-run backup.
P1nky
2009-06-01 07:31:18
From: Floor66
I press it neurotically. When I see that little star next to the filename I just have to press it xD
So after every change I save it, 1 line or 100 lines.
Yeah lol , I forgot about the star. That will always remind me lol ;)
Nadeem
2009-06-01 07:40:17
This is the reason why I always save like every 3 seconds xD My two fingers are always on ctrl + s while the other hand is typing. I got into this habbit after once I lost a 2500 word English final year essay :(
~NS
I press Ctr + s after every line.
EpicProject
2009-06-03 06:32:25
Owned. =J
NxTitle
2009-07-16 05:20:58
400 lines? eh, that's nothing.
I once went to a store and bought an external drive so I could backup all the code I have created. And I had alot, since I've been coding many many things since I was at least 8 years old. So I copy everything over and delete it on my main hard drive to save space. Guess what happened? Click of death. I had lost every single script, code, program, everything that I had made since I was 8. At the time I was 16. I couldn't believe it, it was so much of my time down the drain.
JPHamlett
2009-07-16 05:36:19
grave dig much
Daniel
2009-07-16 06:00:15
Never ever had it happen to me :)
And i rarely save backups as-well ;)
legendaryhero90
2009-07-17 08:50:56
lol kinda grave dig but hey i can sympathize with the TC here.
only i didnt exactly lose the 500+ lines of coding but rather 300+ of it went obsolete when RS updated right after i finished the script.
SOooo… yeah it stinks…
Macro_FTW
2009-07-17 09:09:11
In a different module: (meaning running off of a different .exe; an outdated version of SCAR works fine for this)
program New;
var
i: Integer;
procedure SaveC;
begin
keydown(17); //Ctrl key
keydown(GetKeyCode('s')); //Ctrl+S
wait(20);
keyup(17);
end;
begin
repeat
for i:=0 to 6000 do
begin
wait(100);
if(IsFKeyDown(11) and IsFKeyDown(12))then
Exit;
end;
SaveC;
until(false);
end.
Autosaves once every 10 minutes, and stops when you press F11 and F12 at the same time. ;)
Works well for me; I get too caught up to remember to save at times. XD
~Macro_FTW
legendaryhero90
2009-07-17 09:27:56
From: Macro_FTW
In a different module: (meaning running off of a different .exe; an outdated version of SCAR works fine for this)
program New;
var
i: Integer;
procedure SaveC;
begin
keydown(17); //Ctrl key
keydown(GetKeyCode('s')); //Ctrl+S
wait(20);
keyup(17);
end;
begin
repeat
for i:=0 to 6000 do
begin
wait(100);
if(IsFKeyDown(11) and IsFKeyDown(12))then
Exit;
end;
SaveC;
until(false);
end.
Autosaves once every 10 minutes, and stops when you press F11 and F12 at the same time. ;)
Works well for me; I get too caught up to remember to save at times. XD
~Macro_FTW
wouldnt that kill most people's CPU?
i know that would kill my desktop.
might as well write on paper. :p
Pure1993
2009-07-17 19:08:43
From: legendaryhero90
wouldnt that kill most people's CPU?
i know that would kill my desktop.
might as well write on paper. :p
how would that kill a pc? ^^
saves once every 10 minutes… (right? :o) actually, that could still make me lose 500 lines of code, (IF I were making a form) but yeah… ;)
Macro_FTW
2009-07-18 20:24:16
From: legendaryhero90
wouldnt that kill most people's CPU?
i know that would kill my desktop.
might as well write on paper. :p
100MS waits? No.
You could make it 600 of 1000MS waits to stress the CPU even less, or just have it wait 600,000ms and stop it manually. :P
I run this and notice absolutely no change in my computer; the CPU usage doesn't spike either. :P
My desktop only runs at 2.66GHz…