3 posts
Location
Toronto, Canada
Posted 14 December 2015 - 09:10 PM
I am designing a pack with ComputerCraft in it, and I have been informed that ComputerCraft has an "easy script downloading" feature, where the user can, ingame, choose to download a given script (such as a turtle mining program) from a respository such as GitHub or pastebin.
Given that I want to force players to "do their own thinking/design", as it were, rather than just copying someone else's work, how can I disable this? I would rather not disable all HTTP access (as per the config) since that could be used very innovatively.
3790 posts
Location
Lincoln, Nebraska
Posted 14 December 2015 - 11:05 PM
There's a few ways around this, but to be honest, without disabling the HTTP api, it's like holding water in your hands. Something is bound to slip through.
First you can do is edit the config whitelist, and disable pastebin and github domains. Alternatively, you can disable the pastebin program built into ComputerCraft by making your own version with a resource pack on the server.
724 posts
Location
Kinda lost
Posted 14 December 2015 - 11:29 PM
There also is/was a typer program that simply pasted in code in the edit program automatically. So even with http down people will find a way to copy stuff.
1080 posts
Location
In the Matrix
Posted 15 December 2015 - 12:52 AM
To be honest, there's just no way to stop people from taking scripts off the internet. It may take them longer to copy it over, but some people will just open up the webpage and start typing.
7083 posts
Location
Tasmania (AU)
Posted 15 December 2015 - 12:56 AM
Regarding Ctrl+V pasting, there's a limit to the amount of content CC will let you access from the clipboard. In later builds, it cuts you off at the first linebreak. If there are no linebreaks, then you still only get the first 512 characters.
Cranium's suggestions would cover "all reasonable precautions". With the http API available, even with some domains blacklisted, competent players won't be stopped; conveniently, those are the players most likely to be writing their own code anyway.
8543 posts
Posted 15 December 2015 - 12:57 AM
If you allow http at all, it's as simple as three or four lines in the Lua prompt to grab a script from online, so the task strikes me as being perhaps a little Sisyphean.
But if you're just interested in disabling the easiest method available, a
resource pack that replaces the pastebin script (at /rom/programs/http/pastebin) with a program that prints a message to explain to the user that the program has been disabled by the modpack would be the best bet. The built-in pastebin script is usually the thing used to "bootstrap" other downloading scripts onto the computer, so disabling it will head off all but the most determined users, I'd hope.