Jump to content




Idea Exchange

networking lua command networking pocket wireless networking

720 replies to this topic

#681 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 23 February 2017 - 05:51 PM

Yeah, LyqydOS has theme files that can change many aspects of its appearance. I know there are a few GUI frameworks out there that can do similar things as well.

#682 CodeWeaver

  • Members
  • 4 posts

Posted 23 February 2017 - 08:52 PM

View PostTheOddByte, on 05 January 2017 - 10:09 PM, said:

Connect Four with a twist, the "board" rotates 90 degrees every turn.

I can see it now. "Connect for ..."
That's a really fun idea, actually. Good exercise for CC networking, too (for multiplayer).

#683 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 23 February 2017 - 09:11 PM

View PostCodeWeaver, on 23 February 2017 - 04:10 AM, said:

Working on a massive project right now involving a GUI, and developed a means for a fully-user-customizable color scheme. Was wondering if anyone else has ever done/seen this in CC, and if so, how it was implemented!

store you colours in a table, even better, load this table from a file so that the user just has to change the file
local theme = {}
theme.labelTextColour = colours.red
theme.labelBackgroundColour = colours.black
theme.progressBarColour = colours.green
-- etc..

local function writeLable(text)
  term.setTextColour(theme.labelTextColour);
  term.setBackgroundColour(theme.labelBackgroundColour);
  term.write(tostring(text))
end



#684 JerryWester

  • Members
  • 9 posts
  • LocationThe Internet

Posted 17 March 2017 - 04:36 PM

I had the idea of using a Redstone torch on the side/top of a computer to notify a user of said computer that something's going on. I plan on using this for a To-Do List application (where it will open a notification program in another shell using the multishell API), but feel free to use this for anything.

EDIT: Also, can anyone suggest a way to read the names of variables as a string?

Edited by JerryWester, 17 March 2017 - 04:38 PM.


#685 DubbelSoftware

  • Members
  • 62 posts

Posted 19 March 2017 - 12:42 PM

Hello,


I dont know what i wil make. Do someone needs something?

I can make it for you! Reply it:


Example:

Program / OS name

What it need to can do

Features

Programs from others that wil be installed with the program / OS

Inbuild programs / utilities




The program wil be with a license be released!



#686 ObloxCC

  • Members
  • 38 posts

Posted 19 March 2017 - 03:50 PM

Well, if you really want to make something... Could you make me a coroutine manger that can easily allow me to run other programs in windows (mine is too slow, so its probably better to just get it rewritten)

#687 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 19 March 2017 - 04:47 PM

Make 8-ball pool. You can get a reasonable resolution if you use blittle.

#688 DubbelSoftware

  • Members
  • 62 posts

Posted 19 March 2017 - 06:39 PM

View PostObloxCC, on 19 March 2017 - 03:50 PM, said:

Well, if you really want to make something... Could you make me a coroutine manger that can easily allow me to run other programs in windows (mine is too slow, so its probably better to just get it rewritten)

Coroutine is very simple. I wil make one, but it wil take some time.
If you do, can you post your own manager. So i can see what you exactly want to have in the manager.
Then i can make it.

View PostKingofGamesYami, on 19 March 2017 - 04:47 PM, said:

Make 8-ball pool. You can get a reasonable resolution if you use blittle.

I think that that is too hard, i can try it

Edited by DubbelSoftware, 19 March 2017 - 06:43 PM.


#689 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 20 March 2017 - 12:51 AM

View PostDubbelSoftware, on 19 March 2017 - 06:39 PM, said:

View PostKingofGamesYami, on 19 March 2017 - 04:47 PM, said:

Make 8-ball pool. You can get a reasonable resolution if you use blittle.

I think that that is too hard, i can try it

It's not *that* hard, if you want take a look at the `eball` script from my project Riko4, it's basically 8ball pool, just I haven't added pockets yet. You can find it here
It produces something like this:
Spoiler


#690 FuzzyLitchi

  • Members
  • 34 posts

Posted 30 March 2017 - 09:40 PM

View PostIncinirate, on 20 March 2017 - 12:51 AM, said:

View PostDubbelSoftware, on 19 March 2017 - 06:39 PM, said:

View PostKingofGamesYami, on 19 March 2017 - 04:47 PM, said:

Make 8-ball pool. You can get a reasonable resolution if you use blittle.

I think that that is too hard, i can try it

It's not *that* hard, if you want take a look at the `eball` script from my project Riko4, it's basically 8ball pool, just I haven't added pockets yet. You can find it here
It produces something like this:
Spoiler

When it's done you should make it work over rednet. :)

#691 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 26 July 2017 - 05:18 AM

Potentially already thought of before, but I'll give it a go..

Multi-layer OS.
Granted, the one shown below is only two layers, but basically what happens is the OS has 2 (or more) coroutines running - one which runs background processes like timers (like the clock), more important key pressses (like ones that handle "Home", "Back", "Task Manager" etc.), change variables in the background as needed (even things as simple as changing UI colours). This layer will be the BASE. The next layer up can be the OS layer. This is what you see and what you can do. It handles all on-screen UI interaction and handles all the functions that you would expect from a UI.
You click on "Control Panel" you expect the Control Panel to open, where you can change user details, UI colours, system options etc.
You click on "Create a window" and you can create a second window that has DJShell running in it.

It just works, and works better than the one coroutine trying to handle everything at once. Most real OS' use the same technique, you just don't notice it as an end-user because it's not meant to be noticed - it's just meant to work.
Plus, you can have a more constant feel with the OS, accessing windows, taskbar or a specific key from ANYWHERE in the OS, not just where the OS is listening. Because of the BASE layer, the OS will ALWAYS be listening to certain commands, as long as it is running.

Posted Image

"Home", "Back", "Forward" and "Task Manager" can be described as something like Android's Home, Back and Running Processes buttons. These (being on CC) are bound to specific keys, which can be accessed from anywhere in the OS.

Pretty nifty idea, though I've never seen an OS that utilises this layer system enough.

#692 Jummit

  • Members
  • 306 posts
  • LocationJulfander Squad Studio

Posted 17 August 2017 - 09:49 AM

A TV programm where you can make an own TV show or watch a with a GUI selected one. The videos would have support for character and pixels and could use different file formats.

#693 PwnCC

  • Members
  • 32 posts

Posted 18 August 2017 - 04:58 PM

What about a cloud system.

You have a

Server which can be connected to. Be pushed files to and fetched files from.

A user friendly client that can do those functions.
Be handy. And very cool if you can for example put it on a space station with any rocketry mod. Space secure clouds!

#694 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 24 August 2017 - 12:44 AM

I found a REALLY HARD project to do, it's fun but lots and lots of calculations. It's a pretty useless program, really, but could be fun for those who like this sort of thing. It's interesting and could be a bit educational for some who don't know much about the kind of thing it is.

I was so excited to share what I've done but I can't because it's a surprise and if I did say what it was then there would be others who would try and maybe even finish before me and I'd be crying because I wouldn't finish it because there's tonnes better ones out there..

Just know, it's pretty amazing and I haven't seen it in the list of ideas here (probably because we're all nerds and don't think about it..much).


Ma project is up! Still WIP but it's working decently!

Edited by Dave-ee Jones, 25 August 2017 - 01:14 AM.


#695 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 16 September 2017 - 03:04 PM

View PostDave-ee Jones, on 26 July 2017 - 05:18 AM, said:

-snip-
Multi-layer OS.
-snap-

This is actually something I'm working on right now. It uses multithreading and e.g. has a timer_task which is responsible for keeping up with the time(Using real time, which requires polling a server, so just getting the time every half second like what you do with os.time() is not really an option here) and is repsonible for handling timers of the multiple running apps(e.g. a background game will pause).

#696 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 18 September 2017 - 01:29 AM

Some way of registering shell auto-completions for custom programs. You can do it within the program, but then the program has to be run before the completions come into effect, and this doesn't persist across reboots (well, not without file editing magic). Not especially effective. However, if allowing straight up functions, writing to a file becomes an issue. Code snippets (ei strings) are rather difficult as well, simply because of the potential for malicious code.

#697 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 18 September 2017 - 06:15 AM

View PostKingofGamesYami, on 18 September 2017 - 01:29 AM, said:

Some way of registering shell auto-completions for custom programs. You can do it within the program, but then the program has to be run before the completions come into effect, and this doesn't persist across reboots (well, not without file editing magic). Not especially effective. However, if allowing straight up functions, writing to a file becomes an issue. Code snippets (ei strings) are rather difficult as well, simply because of the potential for malicious code.

Do you mean auto-completions for arguments or auto-completions for arguments that are programs? E.g.
edit <program>
OR
myprogram <true/false>
OR
myprogram <program>

With programs CC needs to check a directory for programs that can take programs as arguments, therefore allowing you to auto-complete.
With arguments it's a bit harder, but you can still do the same thing. Check a directory for a program config, inside the program config is all the arguments that can be taken and where they can be taken. E.g:
myprogram <expects true / false> <expects "test" / "dev">
So it would auto-complete for true / false as the first argument, but the second argument would only try and auto-complete for "test" or "dev".

This is possible with a custom 'bios.lua' through resource packs..

Edited by Dave-ee Jones, 18 September 2017 - 06:16 AM.


#698 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 18 September 2017 - 11:45 AM

For arguments. And ofc it is possible, shell.setCompletionFunction exists. It'd just be a hassle to get everything working. Heck, you could do this with a startup file - no need to go editing the bios!

#699 Exerro

  • Members
  • 801 posts

Posted 18 September 2017 - 07:30 PM

I've run into the issue KingOfGamesYami is asking for a solution to. I got around it by requiring that the program be run with `--init` first, which adds the autocompletion to the shell. With the multiple startup files in the latest CC (unless I'm mistaken), this could run automatically on startup. It's still quite a pain though. Designated 'autocomplete' files like myprogram.autocomplete.lua could be loaded once a program name has been typed, if there's not an autocompletion function for that program already? So once I've typed "myprogram ", `myprogram.autocomplete.lua` is run (sandboxed?), returning a function, that is the autocompletion function for the program.

#700 EnderVortex3

  • New Members
  • 0 posts

Posted 04 October 2017 - 07:08 PM

Can someone make a cc laboratory with a periodic table picture that's interactive. Also please make a few science pictures like a beaker or a piece of lab equipment. And 1 more thing a liquid and rf monitor.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users