-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autorun a program (1.6.0.4) #2171
Comments
You can edit the motd program for your end goal. It's /etc/motd.lua iirc?
Something like that
…On Sat, Dec 10, 2016, 12:47 ExDomino ***@***.***> wrote:
Hello, I would like to have a program that is automaticaly executed at the
computer startup, but autorun.lua (either placed in "/" or in "home/")
doesn't work. My goal is to have a program that runs at the startup and
shows every print and allow user interaction, like a normal program
executed manually, and if the program only does something like
print("test"), the "test" would be printed between the greetings frame and
the prompt. Thank you in advance!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2171>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AEFMuNPQKWNr1c878Bxd-mQm5fz5cmJDks5rGj0CgaJpZM4LJkU2>
.
|
There is also |
I think I should make a ocdoc page specifically talking about boot scripts and similar needs. But briefly here I'll list your options. I'll save the more detailed howto for each of these to an ocdoc page
|
You could make that "/autorun.lua" is executed after the prompt? ComputerCraft has an easy way to autorun a program, why not OpenComputers? |
@ExDomino When OpenOS mounts a drive, it checks if there is an If you want to run something every time the shell is started, use |
I recommend editing |
how can I write to.shrc or etc/profile..its all readonly |
@Joapfel, you need to install OpenOS to a hard drive first. Then you should be able to write files... |
a reasonable stub: http://ocdoc.cil.li/tutorial:autorun_options |
Sadly there is no way to have an autorun program in OpenComputers, except if you are an expert! I wanted a computer that is always on, always loaded (by a chunker loader) but it is simply impossible to do so. Only robots can chunk load, they has no screen to debug, and it is just too complicated because the lot of "DRM" in the mod to keep it complicated for no reason. This mod only exists because the stupid decision of ComputerCraft's authors to make their computers too easy to craft and without any need of power. |
No. Just change to root directory / and create a file autorun.lua . Worked for me. My question: does it run in /home/ too? |
/autorun.lua is not executed for rootfs! And we cannot put a chunkloader into a microcontroller... because of a DRM. |
And just a question: someone is supposed to tell me how to run the main script of a robot, that is located on the floppy disk, if the robot cannot autorun the file autorun.lua? Humm? Nobody? |
write a Lua program, call it |
autorun on the rootfs is run, just like all the others. what code does your autorun have? |
I dont know nothing about this mod but I want to install and run this program. |
@SlimeGenX, that is not directly related to the issue. For more direct help, consider asking for help in the IRC channel or Discord Group. |
Hello, I would like to have a program that is automaticaly executed at the computer startup, but autorun.lua (either placed in "/" or in "home/") doesn't work. My goal is to have a program that runs at the startup and shows every print and allow user interaction, like a normal program executed manually, and if the program only does something like print("test"), the "test" would be printed between the greetings frame and the prompt. Thank you in advance!
The text was updated successfully, but these errors were encountered: