31 posts
Posted 19 March 2013 - 03:31 AM
I like cc very much, and I think it is the most potential mod for automation , so I have written thousands lines of code for turtle , which can deal with various kinds of special situations . But when I'm playing with my team. It's hard for me to persuade them to use the 'based on robot solution' for automatic production. Why? because they don't like to input any command.
So I think of usb flash disk, a plug and play device. In the game , a player right clicks the mouse toward the turtle with a usb flash disk in hand will start the turtle to process the codes in the usb flash disk. This will make more normal player(without knowledge about computer command) tend to solve problems using a robot.
And I also hope that a usb flash disk can have some 'executable only' copies(which can't be copied anymore). So the players who spends most of his/her time on coding can get some benefit via selling their program. which can be great encouragement for 'programers' in game.
It will be perfect if a 'deployer' (from RedPower2 mod) can process a usb flash disk to start a robot.
1214 posts
Location
The Sammich Kingdom
Posted 19 March 2013 - 03:35 AM
Place a disk drive with a disk with a file called 'startup' on it and restart the turtle or computer.
3790 posts
Location
Lincoln, Nebraska
Posted 19 March 2013 - 03:37 AM
We alerady have floppy disks, and turtles can run automatically using code in those disks. Do just as Sammich Lord posted. Place a disk drive next to your turtle, with a file labelled startup, then reboot the turtle. Simple as that.
31 posts
Posted 19 March 2013 - 04:06 AM
Place a disk drive with a disk with a file called 'startup' on it and restart the turtle or computer.
I tried this steps , and it doesn't work , my cc mod version is 1.481.
1214 posts
Location
The Sammich Kingdom
Posted 19 March 2013 - 04:06 AM
How does it not work?
2217 posts
Location
3232235883
Posted 19 March 2013 - 04:10 AM
- place a computer
- place a disk drive next to it
- insert a disk into that drive (shift-click)
- edit disk/startup
- eject the disk
- place a disk drive next to the turtle
- insert the disk from before into that drive
- reboot the turtle
31 posts
Posted 19 March 2013 - 04:17 AM
I'm sorry , it works , I typed "turtle.forward()" in the startup file. and reboot it without refuel..
but what about the 'executable only' copies ?
1214 posts
Location
The Sammich Kingdom
Posted 19 March 2013 - 04:18 AM
There were already suggestions about read-only files and they were denied.
2217 posts
Location
3232235883
Posted 19 March 2013 - 04:19 AM
you will have to have a nsh like thing where it streams the result of the program but not the actual code
31 posts
Posted 19 March 2013 - 04:33 AM
you will have to have a nsh like thing where it streams the result of the program but not the actual code
I can't keep up with your mind . you means that i can publish a 'code generator' instead of the source code ? but the 'code generator' is executable and can be copied unlimited.
31 posts
Posted 19 March 2013 - 05:00 AM
We alerady have floppy disks, and turtles can run automatically using code in those disks. Do just as Sammich Lord posted. Place a disk drive next to your turtle, with a file labelled startup, then reboot the turtle. Simple as that.
I think it is simple enough for me . but not for everybody. We should
make a distinction between the programer and the normal user .In my opinion, simpler and more convenient won't be bad anyway , and that is also why Apple succeed . If you think that add a new type of memory medium is redundancy , a turtle with disk driver will be enough . just a simple suggestion , consider it please.
3790 posts
Location
Lincoln, Nebraska
Posted 19 March 2013 - 05:09 AM
That's the thing, though. I don't think the devs are going to add anything that might be considered redundant into the mod.
2217 posts
Location
3232235883
Posted 19 March 2013 - 05:10 AM
I can't keep up with your mind . you means that i can publish a 'code generator' instead of the source code ? but the 'code generator' is executable and can be copied unlimited.
no, you send the raw terminal output of a program from a server with the software
31 posts
Posted 19 March 2013 - 05:29 AM
I can't keep up with your mind . you means that i can publish a 'code generator' instead of the source code ? but the 'code generator' is executable and can be copied unlimited.
no, you send the raw terminal output of a program from a server with the software
you mean make it an internet service ? but the programs can't work as well as the local code especially when the Internet environment is instable.
2217 posts
Location
3232235883
Posted 19 March 2013 - 05:32 AM
well then nope :P/>
you cant have files you cant edit / copy because something nasty could be hidden on them
31 posts
Posted 19 March 2013 - 05:38 AM
well then nope :P/>
you cant have files you cant edit / copy because something nasty could be hidden on them
what about via the rednet ? B)/>
but im not sure if the delay of the rednet is acceptable , since I wrote code only for single turtle :unsure:/>
2217 posts
Location
3232235883
Posted 19 March 2013 - 06:00 AM
*facepalm*
i meant rednet the first time i suggested it
rednet has little to no deley on good servers
2447 posts
Posted 19 March 2013 - 08:11 AM
You can do this via floppy disks or rednet. I don't see how this would be any more convenient.
As for execute only files - it isn't possible. Computers need to read the content of the files to execute them - and if the computer needs to do it, then so can anyone else.