- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal


Wattana
Members-
Content Count
16 -
Joined
-
Last visited
About Wattana
-
Rank
Junior Member
- Birthday 03/16/2004
Profile Information
-
Gender
Male
-
Location
Thailand
Contact Methods
-
Minecraft
WattanaGaming
-
GitHub
WattanaGaming
Recent Profile Visitors
775 profile views
-
Wattana started following What to I need for a custom OS to run?, OCLinux cooperative multitasking, You'll never guess what this piece of code do and 2 others
-
I've finally gathered enough motivation to actually make the kernel functional. New thread/coroutines can be created by doing this: system.kernel.thread.new(func, "thread name(optional)") All threads are resumed automatically by the kernel but the error handling is a bid dodgy at the moment. You can add as many threads as you want with minimal performance impact until you start using stuff like computer.beep() or computer.pullSignal() in your thread at which point everything slows down significantly. If you need to pull signals, please use 0 as timeout. Repo https://github.c
-
The game crashed with the Index Out Of Bound error
-
Ahhhh yes, Index out of bound
-
as far as i know, nope
-
Zoidburg once said something similar and blew my sanity lol
-
I am looking forward to adding this feature in my OCLinux kernel but I am not sure how to do it. Just in case you need to take a look at the function that control filesystem components: https://github.com/WattanaGaming/OCLinux/blob/master/boot/kernel/OCLinux.lua#L83
-
I originally create this kernel as a small software to provide basic functions for reading file, control components, etc. so I can create my custom OS. I decided to make it modular so it would be easy to debug and be like Linux. But I realized it can be used to make any custom OS I(or you)'d like. The kernel currently have few functions along with some useful variables. The functions include: gpuInvoke() Control the GPU and any attached displays. printStatus()/writeStatus() Low-level print() and io.write(). fs() Low-level filesystem controller. Can control a
-
How to implement filesystem related functions in my custom OS?
Wattana posted a question in Programming
I am making a custom Linux-like kernel named "OCLinux" many functionalities are still missing, such as loading file, etc. How do I do this? Here is the kernel: https://github.com/WattanaGaming/OCLinux/blob/master/boot/kernel/OCLinux.lua -
This is the image of my kernel(Loaded up using OpenLoader as init) booting successfully. The print function is the first thing I need to implement so I ripped the status() function and some other important parts from OpenLoader and rename status() to print(). The next thing I need to do is to load init or bash(same concept as Linux kernel) and handle if init or bash exits
-
I already took a look at it but I have to clues how to implement some useful functions like print() or to run another program from init.lua. I am completely clueless
-
Assuming I need to write init.lua first, what should I put in for it to do something useful?