Jump to content




Computer ID


  • You cannot reply to this topic
15 replies to this topic

#1 CoderJohn

  • Members
  • 28 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.

#2 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 16 November 2012 - 03:43 PM

*cough* labels *cough*

#3 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 16 November 2012 - 05:10 PM

 Shnupbups100, on 16 November 2012 - 03:43 PM, said:

*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


#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, 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


#5 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 16 November 2012 - 05:46 PM

 Cranium, on 16 November 2012 - 05:17 PM, said:

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. :)/>

#6 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, 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.

#7 CoderJohn

  • Members
  • 28 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.

#8 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 16 November 2012 - 08:24 PM

 Orwell, on 16 November 2012 - 05:46 PM, said:

 Cranium, on 16 November 2012 - 05:17 PM, said:

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


#9 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 17 November 2012 - 12:22 AM

 CoderJohn, on 16 November 2012 - 06:38 PM, said:

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.

#10 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 17 November 2012 - 02:53 AM

 Espen, on 17 November 2012 - 12:22 AM, said:

 CoderJohn, on 16 November 2012 - 06:38 PM, said:

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.

#11 Cloudy

    Ex-Developer

  • Members
  • 2,543 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.

#12 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 18 November 2012 - 02:43 AM

 Cloudy, on 17 November 2012 - 11:26 PM, said:

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.

#13 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 18 November 2012 - 03:44 AM

 Leo Verto, on 18 November 2012 - 02:43 AM, said:

 Cloudy, on 17 November 2012 - 11:26 PM, said:

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 EntombedJester

  • New Members
  • 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.computerc...-clear-a-chunk/

#15 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 18 November 2012 - 09:22 AM

 EntombedJester, on 18 November 2012 - 07:06 AM, said:

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?

#16 EntombedJester

  • New Members
  • 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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users