Skip to main content
Topic: client crashes when changing lines names (Read 3386 times) previous topic - next topic

client crashes when changing lines names

I have a problem with change line names. My client crashes all the time. r3807

splitted from pak.german Network game 2 - game online ~ vilvoh

Re:client crashes when changing lines names

Reply #1
I guess the server now runs a little bit more smothly, but there are still the disconnects.

Regarding the renaming of lines, that's a bit tricky the line might be renamed or not. After entering the new name for the line I press "Enter" and the line-name should be changed in the line-menu, but it is not. Only after selecting the same line again, it's shown renamed in the list, but the name in the space at the right site over list of vehicles is changed back to the generic number. Clicking again and again it changes back and forth.

And it's really annoying to be kicked out of line-creation every time someone else connects. ;)

Re:client crashes when changing lines names

Reply #2
Regarding the renaming of lines, that's a bit tricky the line might be renamed or not. After entering the new name for the line I press "Enter" and the line-name should be changed in the line-menu, but it is not. Only after selecting the same line again, it's shown renamed in the list, but the name in the space at the right site over list of vehicles is changed back to the generic number. Clicking again and again it changes back and forth.
This should work in the line management window now (from rev 3814). Renaming lines in depot window is still broken should work as of rev 3815.

@Jonas: Could you run simutrans inside the gdb debugger and provide a bcktrace? (if you are using linux ofc).
Parsley, sage, rosemary, and maggikraut.

Re:client crashes when changing lines names

Reply #3
If I rename a line in the depot window I get:

Code: [Select]
(gdb) bt
#0  0x080a6df0 in werkzeug_t::get_id (this=0x7bdf3) at dataobj/../simmenu.h:162
#1  0x080a655f in nwc_tool_t::do_command (this=0x9e4b4c8, welt=0x92bf618)
    at dataobj/network_cmd.cc:585
#2  0x082094d2 in karte_t::interactive (this=0x92bf618, quit_month=2147483647)
    at simworld.cc:5412
#3  0x081c7a5f in simu_main (argc=1, argv=0xbffff434) at simmain.cc:1059
#4  0x08235ba8 in main (argc=1, argv=0xbffff434) at simsys_s.cc:718
r3807
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

Re:client crashes when changing lines names

Reply #4
@Jonas: this should be fixed in rev 3816. Please retest. The bug afffected all renaming actions, please test if renaming cities, halts, labels, etc does work. Renaming of convois in depots over network is not implemented imho.

@Frank / Moderators: Could someone please split the bug report from the discussion here? Thanks!

done -- vilvoh
Parsley, sage, rosemary, and maggikraut.

Re: client crashes when changing lines names

Reply #5
Renaming works for all.
Renaming cities, stops, labels, convois (in convoi window), lines ("Linienverwaltungsfenster" and in the depot).
Renaming of convios in depots doesn't work.

But I have found another bug.
Call a vehicle "Opel?". Send it back to depot. The name shown in the depot windows is only "?".
This is on both server and client.

Re: client crashes when changing lines names

Reply #6
Renaming of convios in depots doesn't work.
This is not implemented yet.
Quote
But I have found another bug.
Call a vehicle "Opel?". Send it back to depot. The name shown in the depot windows is only "?".
This is on both server and client.
Should be fixed with rev 3819.
Parsley, sage, rosemary, and maggikraut.