The International Simutrans Forum

 

Author Topic: [nettool] Using "announce" crashes Simutrans server  (Read 1697 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael 'Cruzer'

  • Devotee
  • *
  • Posts: 206
  • Founder of pak192.comic
    • Marktplatz für Parkplätze
  • Languages: DE, EN
[nettool] Using "announce" crashes Simutrans server
« on: September 29, 2014, 11:39:45 AM »
Simutrans revision:
7332 (POSIX build)

Nettool revision:
7332

Issue:
Sending "announce" to server always crashes the server. (Even if you use the wrong password!)

Crash log (Simutrans):

Code: [Select]
Warning: network_check_activity(): received cmd id=11 nwc_service_t from socket[6]
sim-r7331: simworld.cc:6930: void karte_t::announce_server(int): Assertion `env_t::server && env_t::server_announce' failed.
« Last Edit: September 29, 2014, 06:54:09 PM by Michael 'Cruzer' »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10828
  • Languages: De,EN,JP
Re: [nettool] Using "announce" crashes Simutrans server
« Reply #1 on: September 30, 2014, 09:08:35 PM »
nettool overrides the no annoucement setting. I removed the assertion and allowed this.

However, I would like to have a comment from people using private servers, if that is what they really want.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5695
  • Languages: EN, NO
Re: [nettool] Using "announce" crashes Simutrans server
« Reply #2 on: October 01, 2014, 04:35:11 AM »
It doesn't sound nice that it is possible to get as far as the reported assert without a correct password in any case.

Offline Michael 'Cruzer'

  • Devotee
  • *
  • Posts: 206
  • Founder of pak192.comic
    • Marktplatz für Parkplätze
  • Languages: DE, EN
Re: [nettool] Using "announce" crashes Simutrans server
« Reply #3 on: October 01, 2014, 02:27:27 PM »
nettool overrides the no annoucement setting. I removed the assertion and allowed this.

However, I would like to have a comment from people using private servers, if that is what they really want.
I'm sorry, I don't have any idea why I should manually call "announce" when it does automatically anyway (or not if I don't want so).