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

[lua] Create "real" file

Started by MetalMiner, 30 October 2012 - 06:33 PM
MetalMiner #1
Posted 30 October 2012 - 07:33 PM
Hi there.

Is it possible to open/edit a "real" file sommwhere on my "real" computer?
I searched through the forum, but I didn't found something…

Tanks!
zekesonxx #2
Posted 30 October 2012 - 07:55 PM
.minecraft/saves/[world name]/computer/[in-game computer ID]/

There you are.
MetalMiner #3
Posted 30 October 2012 - 08:12 PM
No, sorry, i asked not good…
I want to create a file on my desktop (e.g.) with a lua program on my ingame-computer.
remiX #4
Posted 30 October 2012 - 08:16 PM
You can't :P/>/>
zekesonxx #5
Posted 30 October 2012 - 08:17 PM
Nope, that isn't possible. Sorry. Why would you want that anyways?
remiX #6
Posted 30 October 2012 - 09:12 PM
Nope, that isn't possible. Sorry. Why would you want that anyways?

I'd guess to have 2 computers that have use the same program for something (i.e. a door (a pc on both sides to control it)) and so it saves the status of the door – open or closed. It will then save to the one and which both and read and write to :P/>/> That is what I wanted to use it for but then was disappointed that you can't write files onto your actual computer.
zekesonxx #7
Posted 31 October 2012 - 12:46 AM
Oh oh oh oh oh! You were searching for the wrong things. See this tutorial.
ChunLing #8
Posted 31 October 2012 - 07:34 AM
Um…you can have a shortcut on your desktop that opens a file in your minecraft world save using an lua interpreter, if you want.
MetalMiner #9
Posted 31 October 2012 - 10:27 AM
Nope, that isn't possible. Sorry. Why would you want that anyways?

I didn't mean something specific…
But i think there were some interesting things to do… :P/>/>
Cruor #10
Posted 31 October 2012 - 10:31 AM
do some fancy symbolic links! :P/>/>, like link c: to a computer ID :P/>/> (i take no responibility for killing your pc)
Mads #11
Posted 31 October 2012 - 02:41 PM
Or modify the mod to not use a sandbox(terrible idea).
MetalMiner #12
Posted 31 October 2012 - 06:46 PM
Or print a file/program with your real printer (create a vb script or something like that wich prints t) :P/>/>