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

Non CC programs

Started by Wing, 19 April 2013 - 07:46 AM
Wing #1
Posted 19 April 2013 - 09:46 AM
I keep seeing these links to download something from lua.org
and people making these independent programs with lua. So I began wondering,
how would I do this??? Can someone fill me in on how this works, can I make a window (desktop window) and have things be written, pictures and ect, just like I would with CC?
All information is much appreciated!
Sammich Lord #2
Posted 19 April 2013 - 09:57 AM
There are a few Lua libraries that allow you to make standalone Windows applications. You can use Love2D to make games too. You could probably also use Love2D to make some applications but I am not sure.
Wing #3
Posted 19 April 2013 - 10:05 AM
Would it be this?
https://love2d.org/
Looks cool! Although, I've gotten quite accustomed to CC and is there anyway I can import the APIs folder inside the zip of CC into the engine?
Sammich Lord #4
Posted 19 April 2013 - 10:07 AM
If the API's are in plain Lua then you can. But a lot of the API's(Such as the FS API) are made in Java.
Wing #5
Posted 19 April 2013 - 10:11 AM
It's the one I wanted lol, dat file editing ya know :D/>
But you think this would work for rather simple things?
Doyle3694 #6
Posted 19 April 2013 - 10:12 AM
I think the closest to that would be cc emulator then, but it's still not what you desire fully
spyman68 #7
Posted 19 April 2013 - 10:12 AM
And also, alot of the APIs won't work unless it's
in CC
Bubba #8
Posted 19 April 2013 - 10:42 AM
You can do graphics outside of CC using GUI wrappers such as wxLua. It can be complex at times though, so I'd recommend sticking with Love, which is less so. A lot of functions in ComputerCraft are specific to ComputerCraft only: especially the term library. It is possible to emulate these functions in a regular Lua environment, but it would probably not be easy.
Wing #9
Posted 19 April 2013 - 12:07 PM
Well thanks for the feed back guys! I shall try this Love2D thingy… Good day!