3 posts
Posted 01 May 2012 - 06:18 PM
Is it possible to create a script that could press a button? For example I'm launching a script, exiting a computer and it's pressing space button once a seccond, so my character jumps once a second. I know it is hard to understand what I am thinking about, but it's cause english is not my language and I cannot find words to describe it more clearly.
Any ideas how to make something like that??
1604 posts
Posted 01 May 2012 - 06:33 PM
You can't. Computers can't interact with the world (other thatn using redstone) or press buttons on your real computer.
It could be possible with a peripheral (mod that interacts with the computer), but I think there isn't one to do that yet.
3 posts
Posted 01 May 2012 - 06:45 PM
so it looks like i need some kind of "virtual keyboard" peripherial to get effect like that?? Too bad, but thanks anyway. I hope someone with more coding skill then me will release it someday. Imagine possibilites we would get. assign codes of keys in any mod we want to activate/controll (for ex. ctrl+a, alt+a, etc…) and then make a script that would actually controll someting… Like autopilot for zeppelin mod, fully automatized airport, railway station… All controlled by computercraft :)/>/>
436 posts
Posted 01 May 2012 - 08:56 PM
Weeeeeellllllll. . . . . With RP2 Frames, we can do a lot of the other stuff you listed. Not specifically Airship stuffs, but like the automized Airport could (grab a block next to an airplane, push airplane forward until in position, drop block. Same or similar for a Railway station, except you need to place minecarts between two blocks on a track to make it work correctly. Similarly, Railcraft has tracks that load/unload passengers and cargo with redstone.
A lot of what you want to do is fully possible with just ComputerCraft and RP2, though I don't know how much the latter is compatible with the others save Railcraft.
But yeah, the Zeppelin mod is a bit weird to begin with, as it introduces an entirely new state for blocks, and has no direct redstone control scheme. I think blakmajik thought about it, but figured it would be easier the way he had it. Similarly, the airplanes mod(s) mostly interact with the physical side of minecraft like a minecart, but with a preference for staying put when not in use. This also works with P-chan's airships.
But, so, yeah. Take a look at Frames. Just don't expect ComputerCraft to ever directly control the player. Too much meta there.
3 posts
Posted 02 May 2012 - 12:35 PM
I'll get rp2 installed as soon as i came back home, I need to know more about frames :)/>/> I started to play with zeppelin, because it allows to travel in your custom-built vehicle, unlike the others, and this is what I like best in it.