Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:51
    Build #3432 passed
  • 16:51
    Build #3432 passed
  • May 17 09:53
    Build #3430 passed
  • May 17 09:53
    Build #3430 passed
  • May 13 18:07
    Build #3429 passed
  • May 13 18:07
    Build #3429 passed
  • May 13 16:37
    Build #3428 passed
  • May 13 16:37
    Build #3428 passed
  • May 13 14:45
    Build #3427 passed
  • May 13 14:45
    Build #3427 passed
  • May 13 11:11
    Build #3423 passed
  • May 13 11:11
    Build #3423 passed
  • May 13 10:14
    Build #3422 passed
  • May 13 10:14
    Build #3422 passed
  • May 12 15:34
    Build #3418 passed
  • May 12 15:34
    Build #3418 passed
  • May 12 15:13
    Build #3417 passed
  • May 12 15:13
    Build #3417 passed
  • May 12 13:22
    Build #3416 passed
  • May 12 13:22
    Build #3416 passed
Prisision
@Prisision
ok i try
i come back if i Know Something
Ardhenis Muhammad Aflah
@sayaPintar
yeah, im very beginner too in this section, and sorry for bad english.
Prisision
@Prisision
Where Are u actually from?
Ardhenis Muhammad Aflah
@sayaPintar
indonesia
Prisision
@Prisision
ok
Prisision
@Prisision
The Converter Dont Work.....
Do You Have A Other Converter?
Ardhenis Muhammad Aflah
@sayaPintar
i dont have idea with that, map vmdk and insert bmp file instead.
Prisision
@Prisision
BUT I CANT DO THAT I NEED TO DO THIS IN THE CODEEEEEEEEEEEEEEEEEE
Kudzu
@czhower

@Nik300 @MishaTY I think @czhower has ownership of the channel. If you guys want to make tutorials, we can for sure put them on the channel.

i might like to do some, but i am not the most skilled c# guy, and not sure if id use my voice

We will be happy to feature tutorials and we can promote them on our fb page, youtube channel and other places.

wakko
@octaviousrex
https://pastebin.com/QTWcP1Pd
the title is my error, any advice/help?
napalmtorch
@napalmtorch
That means the function you're in is supposed to return something(int, byte, etc) but you're not returning anything
Ardhenis Muhammad Aflah
@sayaPintar
@Prisision hey how about you make resource file and insert bmp file and convert to byte array bitmap and display that in draw image
maybe another can give alternative idea or what you wanted to do..
wakko
@octaviousrex

That means the function you're in is supposed to return something(int, byte, etc) but you're not returning anything

ok, thanks, ill check that out :-)

Prisision
@Prisision
@sayaPintar Yeah But How Id Do That?
Ardhenis Muhammad Aflah
@sayaPintar
you can add a new item resource
Ardhenis Muhammad Aflah
@sayaPintar
sorry if you don't mind, can i add my os in cosmos wiki list?
Deniz-seckin55
@Deniz-seckin55
Hey can someone send me a simple gui class?
I forgot its name.
Quajak
@quajak

sorry if you don't mind, can i add my os in cosmos wiki list?

Sure, feel free to also add a show and tell post to discussions.

YoshiFan100
@YoshiFan100
Hey, newbie here, I've written multiple small oses using cmd line functionalities similar to linux. But I wanted to up a notch by using GUI elements. I tried out a mouse, and it was slow, and as expected when I tried to draw a taskbar you could see it flicker. The approach I'm using is draw, clear, draw in each run function, is this not good? Should I try something else?
Deniz-seckin55
@Deniz-seckin55
How can I make an image variable? Image img = new Image() doesn't work.
Deniz-seckin55
@Deniz-seckin55
or how can I convert a file to Cosmos OS Image?
Deniz-seckin55
@Deniz-seckin55
Anyone?
napalmtorch
@napalmtorch
@YoshiFan100 To create a GUI you will need to figure out which graphics driver you want to use. If you go with VGA, you will be stable and work on real hardware, but limited to 320x200. If you choose VMWare, you will have much faster and higher resolution graphics, but much less stable and doesn't work on real hardware. Once you've picked which device you want to use, You can look at mine or @nifanfa github for a good VMWareSVGA driver or VGA driver. To prevent the flickering, you will need to implement a double buffer which mine and nifanfas driver has built in, but if you want to do it yourself its not very difficult. Basically create an array/memory block of pixels, and draw that entire array to the screen at once instead of directly drawing to the screen
https://github.com/napalmtorch/Napalm_OS - Is an example of an OS using VGA driver
https://github.com/napalmtorch/PurpleMoonOS_Old - Is an example of an OS using the VMWare SVGA driver
Hopefully that helps
wakko
@octaviousrex

How can I make an image variable? Image img = new Image() doesn't work.

what error did you get

Quajak
@quajak

How can I make an image variable? Image img = new Image() doesn't work.

Currently only Bitmaps are supported see https://cosmosos.github.io/api/Cosmos.System.Graphics.Bitmap.html

RecursiveDescent
@RecursiveDescent
Will cosmos ever support paging?
YoshiFan100
@YoshiFan100
@napalmtorch That helps, I thought you didn't need a graphics driver, you could just use the cosmos one. I'll look into this driver stuff
Quajak
@quajak
@YoshiFan100 the cosmos built in drivers have improved in the devkit and should be almost as good
YoshiFan100
@YoshiFan100
I'll give both a spin and see if it works.
Ardhenis Muhammad Aflah
@sayaPintar
@Deniz-seckin55 you can a convert to bitmap array before in Image, this work for me.
napalmtorch
@napalmtorch
@YoshiFan100 You don't technically need an external graphics driver, but if you use the ones built-in you will need to create a back buffer yourself
I would recommend against using Canvas though as it as slow as hell xD
Ardhenis Muhammad Aflah
@sayaPintar
hi!, i need trouble to display a bmp file with VMWareSVGA by @nifanfa but if i want do display a image its make blank screen, btw i following the code and still use Setvram
if i changed vMwareSVGAII.DoubleBuffer_SetVRAM(); with draw image still blank too
Prisision
@Prisision
Is There A Way To draw Bitmaps with Cosmos Canvas???
nifanfa
@nifanfa
DrawImage
bitmap b = new bitmap(@"0:\yourbitmap.bmp"); but first,register your file system and. add your bitmap
nifanfa
@nifanfa
QQ截图20210411133713.png
QQ截图20210411133254.png
Converting Windows Fonts To Cosmos
BlitzWolfMatthew
@BlitzWolfMatthew
Nice, make comic sans, I'm curious :)
nifanfa
@nifanfa
QQ截图20210411152016.png
nifanfa
@nifanfa

os.png

will your system will crash for no reason? just like mine #1659