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

Unstable Code :/

Started by Hydrotronics, 09 October 2016 - 09:37 AM
Hydrotronics #1
Posted 09 October 2016 - 11:37 AM
Ok. I'm currently doing a complete re-write of HydrOS as the old one was ugly, unfinished and buggy.
I've recently been working on the login program, but there's a problem.
Well, there are multiple problems.

List of problems [
You have to double click the text boxes to enable typing.
Time flickers.
Can flicker between day mode and night mode at random intervals for short periods of time.
I can't break the loop via "break" or "shell.run" which means a few programs break :/
Edit: I forgot to mention the main reason. The login button doesn't work at all
]

Could someone aid in debugging it?
Edit2:I got rid of the screen flicker :)/>

Edit3: basic API, ks API
Edited on 09 October 2016 - 09:59 AM
Sewbacca #2
Posted 09 October 2016 - 11:54 AM
Yeah, it is really buggy…
So buggy like a program with the error:
'login:24: attempt to index ? (a nil value)'.
I downloaded it via pastebin into login and started it and it errors.
Edited on 09 October 2016 - 09:55 AM
Hydrotronics #3
Posted 09 October 2016 - 11:56 AM
Yeah, it is really buggy…
So buggy like a program with the error:
'login:24: attempt to index ? (a nil value)'.
I downloaded it via pastebin into login and started it and it errors.
Oh. I forgot I used APIs. Lemme go upload those quick
Cross_Sans #4
Posted 12 October 2016 - 04:26 PM
Yeah, it is really buggy…
So buggy like a program with the error:
'login:24: attempt to index ? (a nil value)'.
I downloaded it via pastebin into login and started it and it errors.
Oh. I forgot I used APIs. Lemme go upload those quick

I fixed your code to make it executable to all the community
Code:

pastebin get Cz0pvFXA login
Larry84 #5
Posted 12 October 2016 - 05:34 PM
I fixed your code to make it executable to all the community
Code:

pastebin get Cz0pvFXA login
Thanks Redall

I've found another bug :rolleyes:/>
It actually takes the cursor to x=1 y=2 if you click twice anywhere out of the text boxes after selecting both (one by one). It won't make you write anything, thought.
It will also make it other times, but that's the most stable way I've found.
Image:
Spoiler
Edited on 12 October 2016 - 03:36 PM
Hydrotronics #6
Posted 14 October 2016 - 02:51 PM
could you guys help with that, too?
Larry84 #7
Posted 14 October 2016 - 04:31 PM
I'm not really good at programming, but I'll certainly try to help ;)/>
Cross_Sans #8
Posted 13 November 2016 - 06:07 PM
could you guys help with that, too?

If I would have had the time, I could help you, but actually tomorrow I will be at School.