News:

SimuTranslator
Make Simutrans speak your language.

r2144, crash when using MAGLEV line tools

Started by phantom25, November 27, 2008, 12:06:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

phantom25

Althorough experimental, and must be enabled first by a "hack"...

When trying to click on a line, Simutrans crashes. Everytime. Both SDL and GDI versions

Here is a log of the SDL version. Hence, the line dialog needs a little rework (altohorough the whole MAGLEV feature is behaving pretty stable already).

Just to mention, this was done with the hack, that MAGLEV was added under monorail, and not the more complicated separate menu version...

phantom25

#1
The same happens, when clicking with the mouse on a maglev stop.

BTW:
The same error like in http://forum.simutrans.com/index.php?topic=883.0 still seems to exist (altorough this is non-fatal)...



phantom25

#2
Never mind. Was not an error after all ;)

After further investigation and manually adding symbol.MaglevStop.pak both problems disappeared, and in line selection dialog, now MAGLEV is substituted by a dummy monorail symbol... No more crashes.

VS

Just out of curiosity, since this is a pak error, which version of pak do you use?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

phantom25

It is the one currently available on nightly page used in conjunction with the current development MLM maglevs pack (PAK128 Version: 243).

In PAK128, there does not seem to be the representative graphic for MAGLEV (this filename is missing), which is a new Simutrans nightly function, anyway.

As it seems, Simutrans tries to access this file when opening Line managment or clicking on a MAGLEV station. When the code cannot find the file, an exception occurs and Simutrans crashes. Interesting, the Line managment tools will open, and only the text MAGLEV will be displayed. When (mouse)clicked on any MAGLEV line, crash occurs. With the added single .pak file, an icon (a duplicate of monorail) is shown, an line clicking (also other functions) works.

AFAIK, Pak128 developers already said that this file would be included in the feature... I have no clue, if it is already in PAK64...
Other solution would be for Simutrans code, to make the content of this pak optional (which is probably a bad idea)...

So, actually, this is not directly a Simutrans bug, (sorry ;) ), so maybe this whole discussion can be moved to solved bugs for reference in the feature for this nightly and this PAK128 version combined...

Otherwise, Simutrans new magnetic levitation trains feature (in combination with corresponding graphic and waytype maglev definitions) seems to work very well, have not (yet) found any other way to crash Simutrans or misbehave ;) So, it would already be possible to include the menu coonfiguration (proper, or the hacked variant) officialy into nighlies... ;)

VS

#5
It is some kind of bug - I added maglev symbol in r 133 (already!) and if it isn't there, something broke. No idea now if it's about pakset or game.

The source data are there.
Compiling the set here works and creates symbol.MaglevStop.pak.
It is merged into _gui.64.pak.
Ditto with nightly.

So... wtf? It seems I must install the maglev addon.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

phantom25

Anyhow, in r2153 with pak128-255, there is no problem with crashing.

After a clean install of r2153 and pak128, then MLM and modifing menuconf.tab (to enable MAGLEV), everything is working, so problem is solved definetely.

prissi

Well, it crashes without maglev szmbol< then this is a bug, as it is not intended to do.

phantom25

#8
Just to clearify, I ment after deleting everything (then creating new simutrans 100.x game directory, r2153 and pak128-255, without anything additional, the maglev stop simbol does not seem to be required separately) no crash anymore in r2135.

The crash seems not to happen in the same form anymore.
So, hence, it is solved.