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

What server data can CC access from within a server?

Started by rudolph, 05 September 2015 - 12:40 AM
rudolph #1
Posted 05 September 2015 - 02:40 AM
Hey there.

So I was wondering, can CC access server data from within a server? And if so, what data? This is for read-only purposes.

Like for example, say I was a player on server XXXX. Can I make a program that runs on a CC Computer in the server XXXX, where the program accesses stored data in XXXX that points to the current location/coordinates of each player? Or maybe even, the coordinates that each player has set their "/home" to?

If the said data is protected by the server or unaccessible by CC using conventional programming methods, perhaps some type of exploit could be used to bypass that in the program.
Lyqyd #2
Posted 05 September 2015 - 07:12 AM
You cannot access any files outside of the individual computer's save directory unless they are explicitly mounted for use by another mod on the server.
Bomb Bloke #3
Posted 05 September 2015 - 08:16 AM
That said, you may be able to get access to the information you're after anyway… depending on what it is. It may be worthwhile listing out what you actually want, as the full list of what you can get is rather extensive.

For example, command computers may be used to get player co-ords, though the process is hardly "conventional".
powerboat9 #4
Posted 23 May 2016 - 01:35 AM
You could go to your "real" computer (if this is single player or a server you own), find the directory that the computer uses as root, and substitute it with a hard link pointing to the server directory, the (minecraft) computer could edit server files.