The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ronnie89b on January 25, 2009, 07:55:29 pm

Title: Line management window
Post by: ronnie89b on January 25, 2009, 07:55:29 pm
There is a bug in the line management window. Some of my busses are wrong place in this window after i load my saved game. I'm using the latest nightly and pak128.
Title: Re: Line management window
Post by: VS on January 25, 2009, 09:40:15 pm
OK. How exactly wrong place? Different order? Image moved away?

And Dirk is going to eat you alive... "latest" :D
Title: Re: Line management window
Post by: ronnie89b on January 25, 2009, 09:52:53 pm
My bus (line9,keisei bus) moving another line in the line management window, but it's keeping the right schedule.
http://simutrans-germany.com/files/upload/1.sve
Title: Re: Line management window
Post by: VS on January 25, 2009, 09:56:43 pm
Then it must a program bug, not pak bug.
Title: Re: Line management window
Post by: ronnie89b on January 25, 2009, 10:09:47 pm
Yes, I didnt want to write it to this topic, sorry
Title: Re: Line management window
Post by: VS on January 25, 2009, 10:40:55 pm
No problem. I think you are both reporting something similar, so it can be all moved at once.
Title: Re: Line management window
Post by: IgorEliezer on January 25, 2009, 10:41:33 pm
And Dirk is going to eat you alive... "latest" :D

Thanks for making my day happier. :D

Moved to Bug Reports board.
Title: Re: Line management window
Post by: DirrrtyDirk on January 26, 2009, 12:32:37 am
And Dirk is going to eat you alive... "latest" :D

He's lucky - I'm not hungry right now.  :-X

And I'm not that hard on first time "offenders" - I just ask them for the exact numbers. Only when that is (repeatedly) ignored, I start ripping heads off.  ;D

But I might even change that behaviour and simply ignore incomplete help requests and bug reports - after all, it's not like there's nobody else around here, able and willing to help - and with a little more patience as well. ;) 8) You see, it's just that I'd rather spend my time on the real problem, instead of spending it on getting the necessary information to even begin solving the problem...
Title: Re: Line management window
Post by: Spike on January 26, 2009, 10:11:51 am
I'm using the latest nightly and pak128.

While your message carries the posting date, so we can deduce which "latest" night you might mean (****uming the one of previous night to your posting date), it definitely is better to tell the version and revision number, since "latest nightly" is a different thing each day ;)
Title: Re: Line management window
Post by: ronnie89b on January 26, 2009, 01:32:05 pm
Ok, I don't forget it!  ;D
Title: Re: Line management window
Post by: z9999 on January 26, 2009, 09:21:35 pm
When I made a new line, id is always 12345.

Quote
Message: simlinemgmt_t::add_line():   id=2
ERROR: simlinemgmt_t::add_line():   Line id 0 doubled! (0x1)
Please report all errors to

Message: simlinemgmt_t::add_line():   new line id 12345!
Message: simline_t::prepare_for_update():   line 12345 (05C05768)


[attachment deleted by admin]
Title: Re: Line management window
Post by: prissi on January 27, 2009, 10:11:02 pm
Please retest.
Title: Re: Line management window
Post by: z9999 on January 28, 2009, 10:56:52 am
Tested in r2266.

First, if I delete a line and save this game, restart simutrans and load this game, make a line, line number will be duplicate.

How to reproduce:
- Load attached savegame
- Make a line

Result:
(6) Line is duplicated.

And also deleted line number is not be re-used.

Second, after reading a game without restart simutrans, line number isn't initialized.

How to reproduce:
- Make 2 lines and save this game.
- Load this game and made a line.

Result:
In this case, new line number is 5.
I think this should be 3.

Title: Re: Line management window
Post by: prissi on January 29, 2009, 10:59:41 am
The problem was, that old ID and internal handle IDs are different. But I changed set_id routine to update also the name.
Title: Re: Line management window
Post by: squeaky on February 01, 2009, 10:52:54 pm
Other line management win problem.

Populated lines break window buttons (though it may be just pak96) in the 26 Jan 09 river patched windows one at least. (It may have been fixed since though I guess)

Example: amend existing line - no buttons (as pictured)
create a new line - buttons disappear as soon as a station is added.

Also, no buttons in any windows if any line management windows with a populated line is open.

EDIT: only in windows that are opened since. Or maybe only the buttons with curved corners - the square cornered ones pictured seem fine?
Title: Re: Line management window
Post by: prissi on February 02, 2009, 09:56:02 am
Maybe this is still the error with the crosscompiled nightly?
Title: Re: Line management window
Post by: wernieman on February 03, 2009, 07:57:59 pm
Cloud be ....

I see that I compile with the mingw32-4.3.1, that was bad in the past
Change to mingw32-3.4.6 today .. so look tomorow

P.S. I don't know the time, the server change the compiler