Jump to content




Owner in NBT


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

#1 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 26 March 2013 - 11:45 AM

Hello,

Could it be part of core ComputerCraft to store the user that either first placed or crafted the Computer/Turtle in both the Item NBT and TileEntity NBT.
This would be helpful for something I'm writing where I can Start/Stop/Reboot CC Computers from a Web Console, much like virtual machines. I want to provide a login for a user so that they cannot shutdown important computers that belong to other players ( Such as those controlling locks or Nuclear Cooling ).

In the chance that this request is rejected, can someone who knows their way around Forge offer another solution, perhaps an event hook for when a computer/turtle is placed? I'll attach the NBT entry myself.

- NC

#2 Tiin57

    Java Lunatic

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

Posted 26 March 2013 - 12:06 PM

View PostNeverCast, on 26 March 2013 - 11:45 AM, said:

Hello,

Could it be part of core ComputerCraft to store the user that either first placed or crafted the Computer/Turtle in both the Item NBT and TileEntity NBT.
This would be helpful for something I'm writing where I can Start/Stop/Reboot CC Computers from a Web Console, much like virtual machines. I want to provide a login for a user so that they cannot shutdown important computers that belong to other players ( Such as those controlling locks or Nuclear Cooling ).

In the chance that this request is rejected, can someone who knows their way around Forge offer another solution, perhaps an event hook for when a computer/turtle is placed? I'll attach the NBT entry myself.

- NC
I could do it, but I doubt that it'll be included.

#3 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 26 March 2013 - 12:13 PM

Eh... Not too fond doing this until there's a method in place to protect areas using forge.

#4 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 26 March 2013 - 12:57 PM

Make the user store a per-computer password in a file with a certain name (eg .password where the . hides it from ls).
To access a computer through the web, enter a password matching the one in the file.
Computers without password files can't be accessed through the web.

#5 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 26 March 2013 - 01:15 PM

View PostCloudy, on 26 March 2013 - 12:13 PM, said:

Eh... Not too fond doing this until there's a method in place to protect areas using forge.
I would like that feature also in Forge, but makes sense that there needs to be more focused reasons to implement 'owning' a computer.

View Postimmibis, on 26 March 2013 - 12:57 PM, said:

Make the user store a per-computer password in a file with a certain name (eg .password where the . hides it from ls).
To access a computer through the web, enter a password matching the one in the file.
Computers without password files can't be accessed through the web.
That'll work, Thanks immibis.


View Posttiin57, on 26 March 2013 - 12:06 PM, said:

I could do it, but I doubt that it'll be included.
As a patch maybe?

#6 Simon

  • Members
  • 58 posts
  • LocationSeattle

Posted 26 March 2013 - 05:55 PM

View Postimmibis, on 26 March 2013 - 12:57 PM, said:

Make the user store a per-computer password in a file with a certain name (eg .password where the . hides it from ls).
To access a computer through the web, enter a password matching the one in the file.
Computers without password files can't be accessed through the web.
Hmm, like this?
http://www.computerc...page__p__101502





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users