Deutsches Simutransforum

Normale Version: Nettool kompilieren?
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Simutrans-Version:
112.1 (r 6212)

PAK-Set (+zusätzliche PAK-Dateien):
-

Betriebssystem:
Linux 64bit

Fehler (möglichst genaue Beschreibung):
Zitat:~/games/simutrans/SVN/trunk/nettools> make
===> CXX ../dataobj/freelist.cc
===> CXX ../dataobj/network_address.cc
===> CXX ../dataobj/network_cmd.cc
===> CXX ../dataobj/network_packet.cc
===> CXX ../dataobj/network_socket_list.cc
===> CXX ../dataobj/pwd_hash.cc
===> CXX ../simdebug.cc
===> CXX ../simmem.cc
===> CXX ../utils/memory_rw.cc
===> CXX ../utils/simstring.cc
../utils/simstring.cc: In function ‘char* ntos(int, const char*)’:
../utils/simstring.cc:20:6: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]
===> CXX ../utils/fetchopt.cc
===> CXX ../utils/sha1.cc
===> CXX ../utils/log.cc
../utils/log.cc: In member function ‘void log_t::fatal(const char*, const char*, ...)’:
../utils/log.cc:267:6: warning: unused variable ‘n’ [-Wunused-variable]
../utils/log.cc: At global scope:
../utils/log.cc:377:1: warning: unused parameter ‘syslogtag’ [-Wunused-parameter]
===> CXX ../dataobj/network.cc
===> CXX ../dataobj/network_file_transfer.cc
===> CXX nettool.cc
nettool.cc: In function ‘int main(int, char**)’:
nettool.cc:473:41: error: too few arguments to function ‘void init_logging(const char*, bool, bool, const char*, const char*)’

In file included from ../dataobj/../tpl/slist_tpl.h:14:0,
from ../dataobj/network_cmd.h:5,
from nettool.cc:20:
../dataobj/../tpl/../simdebug.h:39:6: note: declared here
make: *** [../build/default/nettool/nettool-nettool.o] Error 1

Verhalten (Absturz, Einfrieren, ...):
s.o.
OT:

Was bringen die nettools einem eigentlich??

Dwachs

Bitte nehme mal die aktuellen Quellen.

Wener: das hier kann nettool:
Code:
nettool for Simutrans 112.1.1 Nightly and higher

  Usage:

      nettool [options] <command> [command argument]

    Options:
      -s <server[:port]> : Specify server to connect to (default is localhost:13353)
      -p <password>      : Set password on command line
      -P <filename>      : Read password from file specified (use '-' to read from stdin)
      -q                 : Quiet mode, copyright message will be omitted

    Commands:
      announce
        Request server announce itself to the central listing server

      clients
        Receive list of playing clients from server

      companies
        Receive list of running companies from server

      info-company <company number>
        Show detailed info for company

      lock-company <company number> <new password>
      lock-company <company number> -F <filename>
        Set password, read from file if specified (use '-' to read from stdin)

      unlock-company <company number>
        Clear password of company, effectively unlocking it for all clients

      remove-company <company number>
        Immediately remove company and all its belongings

      kick-client <client number>
      ban-client  <client number>
        Kick / ban client (use clients command to get client number)

      ban-ip   <ip address>
      unban-ip <ip address>
        Ban / unban ip address

      blacklist
        Display list of banned clients

      say <message>
        Send admin message to all clients (maximum of 512 characters)

      shutdown
        Shut down server

      force-sync
        Force server to send sync command in order to save & reload the game
Kann nuetzlich sein, wenn man einen server laufen hat.
Zitat:Original von Dwachs
Bitte nehme mal die aktuellen Quellen.

Das nettool von der letzten Simutrans stable ist nicht aktuell?

Dwachs

Scheinbar laesst es sich ja nicht kompilieren. Bei nettool ist es mit den Versionen nicht so kritisch, du kannst aktuellen Code nehmen, kompilieren, und damit mit der 112.1 kommunizieren.
Ok, 6315 kompiliert Smile