25 posts
Posted 16 November 2012 - 03:41 PM
As you may or may not know, anytime you break a computer and replace it, it generates a whole new computerID.
Well here is my suggestions for this:
a.) Keep the computer id for the computer you pick up. (when you move a computer in real life it doesn't lose all its files)
b.) Simply erase the data for that computer and reuse its id before generating a new one. (this makes it easier to know how many ACTIVE computers there are in a server)
My reason is fairly simple, eventually the computer id will get too high. Especially if you are running an old server. Not to mention your real computer holds all that data for every single computer(even ones that have been broken and are no longer available). This is a waste of real computer space and it is pointless to generate a new id when an old one can be used.
671 posts
Location
That place over there. Y'know. The one where I am.
Posted 16 November 2012 - 03:43 PM
*cough* labels *cough*
1054 posts
Posted 16 November 2012 - 05:10 PM
*cough* labels *cough*
To elaborate on that: setting labels on a computer will keep its files intact, even after breaking and placing again.
In the CC terminal; to set the label:
label set <label name>
To get the label that's currently set:
label get
3790 posts
Location
Lincoln, Nebraska
Posted 16 November 2012 - 05:17 PM
This is not necessary. If you want to keep the ID but get rid of the files, you can just use the lua prompt like this:
for i,v in ipairs(fs.list("/")) do fs.delete(v) end
1054 posts
Posted 16 November 2012 - 05:46 PM
This is not necessary. If you want to keep the ID but get rid of the files, you can just use the lua prompt like this:
for i,v in ipairs(fs.list("/")) do fs.delete(v) end
Wouldn't that error while trying to delete the rom directory?
Anyway, a solution on both problems. :)/>/>
3790 posts
Location
Lincoln, Nebraska
Posted 16 November 2012 - 05:49 PM
It would error out, but it's the easiest and fastest way to delete all the files. I use it when I just want to wipe a computer.
25 posts
Posted 16 November 2012 - 06:38 PM
No I am saying even if you break a computer, and replace it, the id is lost and a new one is CREATED and the old data is not cleared so you just keep getting more files added to your real computer.
1214 posts
Location
The Sammich Kingdom
Posted 16 November 2012 - 08:24 PM
This is not necessary. If you want to keep the ID but get rid of the files, you can just use the lua prompt like this:
for i,v in ipairs(fs.list("/")) do fs.delete(v) end
Wouldn't that error while trying to delete the rom directory?
Anyway, a solution on both problems. :)/>/>
To not error:
for k,v in pairs(fs.list("/")) do
if not fs.isReadOnly(v) then
fs.delete(v)
end
end
715 posts
Posted 17 November 2012 - 12:22 AM
No I am saying even if you break a computer, and replace it, the id is lost and a new one is CREATED and the old data is not cleared so you just keep getting more files added to your real computer.
Well, if you
replace a computer with a new one, then that is the expected behaviour.
Whereas when you give it a label (e.g. "set label Jimmy"), pick up that computer and place THIS picked up computer (not place a new one, look at the item-label!), then all your files will still be on that computer and
no new directory is created.
If that isn't working for you, then you either aren't placing a labeled computer, or something is wrong with your particular Minecraft setup.
514 posts
Location
Over there
Posted 17 November 2012 - 02:53 AM
No I am saying even if you break a computer, and replace it, the id is lost and a new one is CREATED and the old data is not cleared so you just keep getting more files added to your real computer.
Well, if you
replace a computer with a new one, then that is the expected behaviour.
Whereas when you give it a label (e.g. "set label Jimmy"), pick up that computer and place THIS picked up computer (not place a new one, look at the item-label!), then all your files will still be on that computer and
no new directory is created.
If that isn't working for you, then you either aren't placing a labeled computer, or something is wrong with your particular Minecraft setup.
Or you're still using an outdated version of CC.
2447 posts
Posted 17 November 2012 - 11:26 PM
Starting from the next version, a folder for the ID is only created if something is written to it.
514 posts
Location
Over there
Posted 18 November 2012 - 02:43 AM
Starting from the next version, a folder for the ID is only created if something is written to it.
Is that a new feature? It used to create a new folder once you start a new computer.
2447 posts
Posted 18 November 2012 - 03:44 AM
Starting from the next version, a folder for the ID is only created if something is written to it.
Is that a new feature? It used to create a new folder once you start a new computer.
Hence why I said starting from the
next version :)/>/> though it looks like we don't need to update for MC 1.4.5 as the obfuscation didn't change.
14 posts
Posted 18 November 2012 - 07:06 AM
Came here to suggest this because using this program from Turtle programs caused the files to sack up really quick.
http://www.computercraft.info/forums2/index.php?/topic/5241-14-the-lazy-mans-way-to-clear-a-chunk/
1243 posts
Location
Indiana, United States
Posted 18 November 2012 - 09:22 AM
Came here to suggest this because using this program from Turtle programs caused the files to sack up really quick.
http://www.computerc...-clear-a-chunk/
Cloudy, one of the CC devs, stated one post above you that the feature would be implemented in the next version of CC. -.-
Can't people read?
14 posts
Posted 18 November 2012 - 10:48 AM
Nope i can read just fine thanks. Wasn't saying anything like "OMG is there anyway to fix this!!!" just stated that I came here to suggest something because of what I saw. Nothing more, nothing less. Happy its being fixed.