UI isn't working, the text side of Cosmos OS, is working, the UI/Canvas isn't working, i write my code always but I legitimately got ChatGPT to write code, but it just goes black, even canvas.clear into yellow shows absolutely nothing, it doesn't work across all UI, not just the one project, i tested. I AM LOSING MY MIND #2966
Replies: 6 comments 3 replies
-
that is very weird, i dont see anything wrong with that code |
Beta Was this translation helpful? Give feedback.
-
also what hypervisor are you using to run your OS on? vmware, vbox, qemu... |
Beta Was this translation helpful? Give feedback.
-
I am using VMWare Player and I updated it, and Visual Studio 2022. It will only work in Administrator as well, the whole Cosmos thing and it stopped working, but even before the update as well |
Beta Was this translation helpful? Give feedback.
-
For anyone going to ask me, No, again to reiterate, this is system Wide, I have tried other things in other projects. I am just met with a black screen |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem. Copying the code from the graphics section of the documentation(I'm not surprised it didn't work, it said devkit only,) at ONE POINT resulted in a white screen with the first 8 or so rows of pixels being red, with the next half row being red. Now it just results in a black screen and an immediate crash to VMWare. The code is functionally identical, sans the fact it's written in VB.NET instead and skips the image drawing because I had a non-baked image I wanted to load and use. Imports System
Imports System.Collections.Generic
Imports System.Drawing
Imports System.Text
Imports Cosmos.Core
Imports Cosmos.System.FileSystem.CosmosVFS
Imports Cosmos.System.Graphics
Imports Cosmos.System.Graphics.Extensions
Namespace Emulated_Operating_System
Public Class Kernel
Inherits Cosmos.System.Kernel
Dim theCanvas As Canvas
Public Overrides Sub Start()
MyBase.Start()
End Sub
Protected Overrides Sub BeforeRun()
theCanvas = FullScreenCanvas.GetFullScreenCanvas()
' This will clear the canvas with the specified color.
theCanvas.Clear(Color.Blue)
End Sub
Protected Overrides Sub Run()
Try
theCanvas.DrawPoint(Color.Red.ToPen(1), 69, 69)
theCanvas.DrawLine(Color.GreenYellow.ToPen(1), 250, 100, 400, 100)
theCanvas.DrawLine(Color.IndianRed.ToPen(1), 350, 150, 350, 250)
theCanvas.DrawLine(Color.MintCream.ToPen(1), 250, 150, 400, 250)
theCanvas.DrawRectangle(Color.PaleVioletRed.ToPen(1), 350, 350, 80, 60)
theCanvas.DrawRectangle(Color.LimeGreen.ToPen(1), 450, 450, 80, 60)
'theCanvas.DrawImage(Bitmap, 100, 150);
theCanvas.Display()
Console.ReadKey()
Cosmos.System.Power.Shutdown()
Catch ex As Exception
Console.ReadKey()
Cosmos.System.Power.Shutdown()
End Try
End Sub
End Class
End Namespace |
Beta Was this translation helpful? Give feedback.
-
Same thing happens with me |
Beta Was this translation helpful? Give feedback.
-
Output:
In Cosmos.System.Kernel..ctor
Starting kernel
HW Bootstrap Init
Creating Console
Creating Keyboard
HW Init
Creating Primary ATA IOGroup
Creating Secondary ATA IOGroup
Before Core.Global.Init
PCI Devices
ACPI Init
PS/2 Controller Init
ATA device with speclevel ATA found.
Creating Secondary ATA IOGroup
ATAPI: Primary controller: False Bus postion: IsMaster: True
ATA device with speclevel ATAPI found
Network Devices Init
Done initializing Cosmos.HAL.Global
Network Stack Init
KeyboardManager.AddKeyboard
Cls
Before Run
Run
Not yet stopped
I REALLY NEED HELP. PLEASE
Beta Was this translation helpful? Give feedback.
All reactions