New console - Can't see how you activate it

All your MAngband related technical questions answered. Problems compiling or running the game/server? No problem! Ask here.
Post Reply
PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

New console - Can't see how you activate it

Post by PowerWyrm » Mon 03.03.2008, 13:13

The console (mangconsole.exe) has been recently replaced by some text protocole. The question is... how do I send console commands without the exe?

Jug
King Lich
Posts: 342
Joined: Sat 26.10.2002, 15:00
Location: UK
Contact:

Post by Jug » Tue 04.03.2008, 09:34

The server listens on the standard console port with a straightforward text based protocol, like SMTP or NNTP for example. You can connect to it in many different ways, just open a socket connection to the port. Perhaps the most straightforward manual way is with netcat:

Code: Select all

nc localhost 18347
Then enter the console password.

- Jug

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Post by PowerWyrm » Tue 04.03.2008, 13:03

I tried to connect using Telnet with "open localhost 18347"... I correctly obtain the connection (I see "Connected" appear in the console), but as soon as I type something I get a failure message from the Packet_scanf() routine (failure = 3).

Jug
King Lich
Posts: 342
Joined: Sat 26.10.2002, 15:00
Location: UK
Contact:

Post by Jug » Tue 04.03.2008, 16:01

Try netcat instead, telnet sends some other control codes which confuse the (fragile) console interface.

- Jug

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Post by PowerWyrm » Tue 04.03.2008, 21:47

Ok it works thanks...

Post Reply