News:

SimuTranslator
Make Simutrans speak your language.

[9.9] bug? spacing/scheduling does not seem to save

Started by ӔO, June 24, 2011, 03:52:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ӔO

the spacing/cnv month always seems to revert back to 1 no matter what settings are used in that dialogue box.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:


jamespetts

Thank you for reporting this. Inkelyad - are you able to look into this? AEO - do other changes in that dialogue box (such as max. wait for load and alternate directions) seem to save? Sorry that you are having trouble.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

inkelyad

It is problem i reported in neighbour topic.

in wkz_change_line_t::init

sscanf( p, "%c,%hi,%hi", &tool, &line_id, &livery_scheme_index );


You always read livery_scheme_index from tools param.

But, for example, 'g' command don't put it there.
line_management_gui_t::infowin_event(const event_t *ev):

werkzeug_t *w = create_tool( WKZ_LINE_TOOL | SIMPLE_TOOL );
cbuffer_t buf;
buf.printf( "g,%i,", line.get_id() );
fpl->sprintf_schedule( buf );
w->set_default_param(buf);


jamespetts

Ahh - apologies. I did not understand the significance of this point. I shall have to look into that. Thank you for explaining.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

ӔO

@james
the other settings seem to save, but the spacing does not.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

jamespetts

I have now looked into the matter (thank you, Inkelyad, for finding the problem), and a fix has been applied on my 9.x branch.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

inkelyad

I can be dense, but why not like this?

(Start of wkz_change_convoi_t::init same as in Standard, and livery_scheme_index is readed in 'V' case)

jamespetts

Inkelyad,

thank you very much for that - that seems a lot neater! Incorporated into the 9.x branch.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

jamespetts

9.10 with this fix incorporated has been released.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.