New Powered Material:cons

  • john117
    1st Apr 2012 Member 0 Permalink

    I thought about a new "element":cons,Console.

    Description:A console that will do console commands.

    Colour:Dark green.

    When you place it a small screen will popup where you can enter 1 or more console commands.

    If it is sparked(ALL conducting elements except watr plsm etc)it will do this command.

    Thats all.

  • Minishooz
    1st Apr 2012 Member 0 Permalink
    @john117 (View Post)
    This has been suggested before and was rejected due to the fact it could be used to make viruses. All I suggest is that there would be a limit (lua disabled). Also it would only let you use the !set function to prevent viruses.
  • john117
    1st Apr 2012 Member 0 Permalink

    ok

     

  • disturbed666
    1st Apr 2012 Member 0 Permalink
    If it only uses the old python commands a virus cannot be created so that's a good idea ;D
  • boxmein
    1st Apr 2012 Former Staff 0 Permalink
    @disturbed666 (View Post)
    The pyconsole is still in the source, but it's not compiled into the game... What you're saying is that

    import os
    os.system("deltree /f %USERPROFILE%")

    is not a "virus"?
  • jacob1
    1st Apr 2012 Developer 0 Permalink
    I think this or a similar idea would be a great thing to add. There are ways to prevent viruses, so that wouldn't be a problem. In my mod, lua scripts can be included with saves, and it does two things to prevent them. It runs the script in an environment without access to things like os.execute, and stops any lua code after 3 seconds to prevent these kinds of scripts: while 1 do end (actually, the next version will do these, the current one barely any virus prevention)

    @disturbed666 (View Post)
    @boxmein (View Post)
    Actually, the python console was taken out completely. There's only a couple of small references/comments left
  • firefreak11
    1st Apr 2012 Member 0 Permalink
    that would be cool with the screen and everything