News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Pull request: Fix desyncs caused by pakset settings not being loaded

Started by freddyhayward, July 01, 2021, 06:20:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freddyhayward

All sorts of desyncs are now occurring immediately since the recent merger. They can be reliably reproduced by joining a headless server game with a graphical client. The desync will differ depending on the save, but it almost always happens on developed maps.
edit: this has been fixed by https://github.com/jamespetts/simutrans-extended/pull/406. The problem was that pakset settings were not loaded by headless servers. This was extremely tricky to find, so I recommend that all future large pull requests are tested using headless servers and graphical clients. Could this pleased be moved to the pull requests section?

jamespetts

Thank you for this - now incorporated. I have not had a chance to look at these issues in detail this week as I have been very busy at work.
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.

Matthew

Quote from: freddyhayward on July 01, 2021, 06:20:08 AM
This was extremely tricky to find

That indeed looks a nightmare to find, a single missing line loading an environment variable. Thank you for putting in the time to find and fix this. And thank you James for integrating it.
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。

Ranran(retired)

Thank you for finding that one needed line.

Indeed even though the surrounding code is pretty much the same as standard, that line that doesn't exist in standard is just a nightmare. I don't want to suffer from such nightmares anymore, so I won't do this after r9919. (´・ω・`)
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

prissi

I added the same line in standard, as it will not do any harm to have it there. So no future worries about merging.

freddyhayward

Quote from: prissi on July 02, 2021, 01:27:00 PM
I added the same line in standard, as it will not do any harm to have it there. So no future worries about merging.
Which line do you mean? I can't see anything added on github.

ceeac

The mirror is only updated every 6 hours, so the commit will only be visible on github in about an hour from now.