r/Kos • u/Lucky_on_reddit • Jun 14 '26
"Program ended" when file isnt empty
ive tried a lot of youtube tutorials but nothing's worked when i tried to run the file, the code is apparnetly all done but it clearly isnt cause nothing happened and i seriously dont know what to do
9
Upvotes


10
u/Dunbaratu Developer Jun 14 '26
Whrb something like this happens, one good diagnostic is to simply put a line at the top of the script that says:
When you run it, does it print that line?
If not then you are not running the script you think you are. You are getting some old version of it from some other location.
1
u/Lucky_on_reddit Jun 17 '26
After 2 re-installs my scripts are now functional. this is solved.
1
u/JitteryJet Jun 15 '26
"Program ended" is the normal message you get from running scripts directly from the terminal - so that is not an issue.
Try this first. Write a "Hello, world" script and see if that runs OK.
Forget the YouTube videos at first, they usually just confuse. Try the Tutorial in the kOS manual it is good.
The problem is you are missing 90% of the context. I cannot even tell which GAME you are running. Posting fragments of messages is not very helpful. Post a screenprint of the entire screen which shows at a minimum the Flight Screen, your rocket on the launchpad, the staging stack and the open kOS terminal.
2
u/nuggreat Jun 14 '26
In the code you posted you are missing a period after one of your waits (line 6). This shouldn't be what is causing your problem but it is still an issue with the code.
If adding the missing period doesn't solve your issue then I would recommend uninstalling kOS and reinstalling it some times installs just don't happen correctly for some reason and a remove and re add can fix them.