This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
GudPiggeh's profile picture

Program automatically closing

Started by GudPiggeh, 21 October 2015 - 01:18 AM
GudPiggeh #1
Posted 21 October 2015 - 03:18 AM
After certain things happen like textulis.slowWrite or os.startTimer and os.pullEvent are in the same program the program automatically quits. pls help
Lyqyd #2
Posted 21 October 2015 - 04:12 AM
Please post your code.
GudPiggeh #3
Posted 21 October 2015 - 04:37 AM
Please post your code.
1.
textutils.slowPrint("hehehehehehehhehehehehe"),200); –automatically ended after finished??
print("this text does not appear");
2.
os.startTimer(3); – dissapears instantly before starts
os.pullEvent();
print("does not appear");
Bomb Bloke #4
Posted 21 October 2015 - 09:10 AM
dissapears instantly before starts

What appears in its place?
GudPiggeh #5
Posted 22 October 2015 - 01:47 AM
nothing
Edit:
It does show up (for the second one, instantly though.)
I was doing it in test mode. it automatically ends in test mode. is there a way to stop this?
Edited on 21 October 2015 - 11:54 PM
TYKUHN2 #6
Posted 22 October 2015 - 02:04 AM
Test mode should end when the program is finished (I believe) so you would have to make sure the program doesn't finish.
Slowprint is printing so fast you cannot see the end product
pullEvent is not pulling the timer event (it is pulling something completely random)
Edited on 22 October 2015 - 12:08 AM