Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 13, 2008, 6:33:05 PM (16 years ago)
Author:
landauf
Message:

telnet remote control works

type "source remote.tcl" into the ingame shell
connect with tcl to port 2560
login with "orxonox rocks"
type any command you like… it will be executed in orxonox ;)
of course server-admins will change the password (and the port)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/TclBind.cc

    r1255 r1267  
    3939{
    4040    ConsoleCommandShortcutGeneric(tcl, createExecutor(createFunctor(&TclBind::tcl), "tcl", AccessLevel::None));
     41    ConsoleCommandShortcutGeneric(bgerror, createExecutor(createFunctor(&TclBind::bgerror), "bgerror", AccessLevel::None));
    4142
    4243    TclBind::TclBind()
     
    147148    }
    148149
     150    void TclBind::bgerror(std::string error)
     151    {
     152        while (error.size() >= 2 && error[0] == '{' && error[error.size() - 1] == '}')
     153            error = error.substr(1, error.size() - 2);
     154
     155        COUT(1) << "Tcl background error: " << error << std::endl;
     156    }
     157
    149158    bool TclBind::eval(const std::string& tclcode)
    150159    {
Note: See TracChangeset for help on using the changeset viewer.