#1
Posted 05 January 2013 - 04:08 PM
so Basically the Raspberry pi Os would be running on Linux at start up
How hard would this be?
and How would I do this?
I hope I have made my idea clear
ps. and yes i understand that somethings would become usless like anything to do with rednet of monitor etc.
#2
Posted 05 January 2013 - 05:03 PM
Furthermore, an OS is a really - really - really complicated thing to do, as far as I know, Computercraft OS in not really an OS but more like a shell
#3
Posted 05 January 2013 - 05:31 PM
There is only an extremely stripped down "Java SE" version, which does not work with either Minecraft nor the ComputerCraft emulator.
The only Java runtime currently available is OpenJDK 6. Minecraft unfortunately does not work with this particular JDK/JRE
Also, there is a Java library called LWJGL (the Light Weight Java Game Library) which is required by both Minecraft and the Computercraft Emulator.
I've not found a ready-made version of this for OpenJDK 6 on Arm, which means you'll need to compile it yourself (which took me ages to get working 'properly', although it still has a lot of issues - and it wouldn't compile at all for OpenJDK 7)
Another note - compiling anything on a single rasp pi is an exercise in patients and pain. This really needs a cross-compiler setup on another faster computer to produce arm binaries. Setting up such an environment is a good 6+ hours of work in and of itself.
Those two issues together pretty much rule out the Computercraft Emulator.
About the closest thing you will get is to install the Lua interpreter. There will be nothing at all Computercraft specific in there, only pure Lua.
You can install it with: apt-get install lua5.1 lua5.1-doc
This will let you run .lua scripts, but it is very unlikely any Computercraft program will work without heavy modification and the removal of any/all commands using the CC APIs.
With the state of Java on ARM at the moment, you really are better off sticking to a normal x86 based computer.
#4
Posted 05 January 2013 - 05:34 PM
#5
Posted 05 January 2013 - 05:51 PM
luanub, on 05 January 2013 - 05:34 PM, said:
They are porting Minecraft Pocket edition, not the full version of the game.
CC would need completely rewritten from the ground up to run on that.
#6
Posted 05 January 2013 - 06:02 PM
dissy, on 05 January 2013 - 05:51 PM, said:
luanub, on 05 January 2013 - 05:34 PM, said:
They are porting Minecraft Pocket edition, not the full version of the game.
CC would need completely rewritten from the ground up to run on that.
It is based on PE, not a port. It focus is to help get kids into programming. Hopefully porting mods over will not be to difficult.
#7
Posted 05 January 2013 - 06:12 PM
luanub, on 05 January 2013 - 06:02 PM, said:
Mojang says otherwise.
http://www.mojang.co...e-raspberry-pi/
Quote
The current ComputerCraft mod is written to use Forge.
The new pi port will have it's own API, specifically created to give it one. By definition, that means it will be different.
I guess it just depends if someone doesn't mind creating supporting and maintaining a completely different fork of CC.
#8
Posted 05 January 2013 - 06:24 PM
#9
Posted 05 January 2013 - 06:26 PM
The only three API commands right now are getBlock, setBlock, and movePlayer. Nothing yet to add in additional blocks nor interact with them.
#11
Posted 01 February 2013 - 12:44 PM
#12
Posted 02 February 2013 - 07:14 PM
#13
Posted 06 February 2013 - 07:52 AM
So they let the user select if they wanna run their OS or the regular CraftOS, Since if I've installed an OS then most of the time I like the regular
better since I can do what I want it to do at the startup.
#14
Posted 06 February 2013 - 01:02 PM
Hellkid98, on 06 February 2013 - 07:52 AM, said:
So they let the user select if they wanna run their OS or the regular CraftOS, Since if I've installed an OS then most of the time I like the regular
better since I can do what I want it to do at the startup.
Which aspect do you mean? Most all languages and OSes have a startup method, they just go by different names.
The Windows startup routines are probably the worst example to go by. There are around 50 locations that can start programs in various ways (most due to legacy reasons, some for flexibility, etc) but the fact there are so many is why it's so easy to get infected under Windows and be unable to clear out the malware program. We definitely don't need more of that ;}
If you are referring to CraftOS specifically, then ironically not only does it already have a startup feature, but the file is literally named "startup"!
If you want a menu system to select different OSes, just install the OS and rename its "startup" file to "startup_osname", so you have multiple "startup_blahblah" files.
Keep a "startup_menu" file and copy it back to "startup" after any OS install, and make that your boot menu program.
(There are a few of those around on the forums)
#15
Posted 06 February 2013 - 01:52 PM
dissy, on 06 February 2013 - 01:02 PM, said:
while that is a good way to have multiple startup scripts, it doesnt prevent path collisions between OSs
until people agree to partition their OSs based on name or the CC devs implement partitioning, i wouldnt recommend multiple OS installs
#16
Posted 11 February 2013 - 05:32 PM
#17
Posted 11 February 2013 - 06:39 PM
why bring this back?
#18
Posted 16 February 2013 - 07:48 PM
Quote
Wise words from a spambot.
#19
Posted 16 February 2013 - 10:18 PM
Just write an application in C/++, which adds the functions that CC adds, and then just runs the Lua file with the native Lua libraries?
And maybe even add some graphics with OGL ES.
Then you could just add it to your path, or cd to the desired directory, and run the executable file. That sounds simple enough.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











