News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

[ex-15] Can't edit the schedule

Started by Ranran(retired), June 27, 2022, 09:18:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

When you close the schedule dialog, if it is sane, convoy will receive the changed schedule and will start working again, but now it will maintain an eternal "Schedule changing!" state when you close the dialog.

As reported in another thread this cannot be reproduced in last summer's ex-15 branch.

The following error log is emitted.
Message: nwc_tool_t::do_command:    id=24 init=1 defpar=g,113,5,0,0,0,1|2|170,19,4,0,0,0,1,1,42881,0,0,0,0,0,0|315,25,4,0,0,0,0,0,42882,0,0,0,0,0,0|414,6,4,0,0,0,0,0,42883,0,0,0,0,0,0|488,22,4,0,0,0,1,1,42884,0,0,0,0,0,0|414,7,4,0,0,0,0,0,42885,0,0,0,0,0,0|311,26,4,0,0,0,0,0,42886,0,0,0,0,0,0| flag=4
ERROR: schedule_t::sscanf_schedule():    incomplete string!



                if (schedule->sscanf_schedule(p) && scenario_check_schedule(welt, player, schedule, is_local_execution())) {
                    cnv->set_schedule(schedule);
                }
                else {
                    // could not read schedule, do not assign
                    delete schedule;
                }
In this part of simtool.cc, the above if statement should be executed, but the bottom is executed.
I wonder if the recent changes caused an error in the schedule structure.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

Thank you for this - I believe that I have fixed this. I should be grateful if you could re-test.
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.