Head2Head play

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Head2Head play

Post by planetmaker »

EDIT: sorry, the assert is fixed, but not in the binaries. So... forget about this :)
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Head2Head play

Post by planetmaker »

Seems like there are more asserts ahead:

Code: Select all

openttd: src/station_cmd.cpp:514: void GetAcceptanceAroundTiles(uint*, TileIndex, int, int, int): Assertion `_head_to_head == 0' failed.
User avatar
Narc
Engineer
Engineer
Posts: 12
Joined: 16 May 2008 20:47

Re: Head2Head play

Post by Narc »

I've been digging for the desyncs a little bit and seem to have managed to narrow them down to town growth -- namely, the server tends to decide to grow a town long before the clients do, for some reason (about 200-ish net frames of difference have been observed).

I've put up a bunch of pastes of diffs from server and client logs with desync-debugging enabled, and they are:
http://pastebin.com/m3c9391b2
http://pastebin.com/m2d8193e6
http://pastebin.com/md100b0f
and
http://paste.openttd.org/181334
[Edit: I can also make most of the original files available, on request]

Note the pastes in question also feature extra debugging of the TownTickHandler, specifically the grow counter defined in there.

I've recommended to Ammler to turn off town growth (by setting town_growth_rate to 0), and this seems to have succeeded in killing the desyncs for now (run for over an hour so far with no desyncs).
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Head2Head play

Post by Yexo »

Narc wrote:I've been digging for the desyncs a little bit and seem to have managed to narrow them down to town growth -- namely, the server tends to decide to grow a town long before the clients do, for some reason (about 200-ish net frames of difference have been observed).

I've put up a bunch of pastes of diffs from server and client logs with desync-debugging enabled, and they are:
http://pastebin.com/m3c9391b2
http://pastebin.com/m2d8193e6
http://pastebin.com/md100b0f
and
http://paste.openttd.org/181334
[Edit: I can also make most of the original files available, on request]

Note the pastes in question also feature extra debugging of the TownTickHandler, specifically the grow counter defined in there.

I've recommended to Ammler to turn off town growth (by setting town_growth_rate to 0), and this seems to have succeeded in killing the desyncs for now (run for over an hour so far with no desyncs).
Thanks a lot for the hard work narc, with this information fixing it will be a lot easier.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Head2Head play

Post by Yexo »

planetmaker wrote:Seems like there are more asserts ahead:

Code: Select all

openttd: src/station_cmd.cpp:514: void GetAcceptanceAroundTiles(uint*, TileIndex, int, int, int): Assertion `_head_to_head == 0' failed.
Thanks, the assert was wrong, fixed now.
Narc wrote:I've been digging for the desyncs a little bit and seem to have managed to narrow them down to town growth
That was exactly what I needed to know, with this information fixing the bug was only a matter of a few minutes. Thanks a lot.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Head2Head play

Post by planetmaker »

Hi,

I've got a feature request for this patch:
- town and industry directories should get a switch which allows to show only those which are in your own territory as for most purposes (as I use them at least) a list of things which is cluttered with inaccessible items is not desired. It doesn't mean though, that the possibility to see all should be removed.

- (not my idea, but to note it down in this thread, as proposed yesterday in IRC by tneo(?)): Jump to the map of the company you joined upon connect. I'm not sure about what to do, if a person changes the company.

Regards & two thumbs up,
pm
Timmaexx
Transport Coordinator
Transport Coordinator
Posts: 301
Joined: 03 Jan 2009 17:55

Re: Head2Head play

Post by Timmaexx »

Hello,

I'm very Sorry for bumping this thread, but I have a important question!
In this hg-Repository the Branch has been updated two weeks ago, but on openttd.org/en/download-head-to-head there is a version of April. Will there ever an newer H2H-Nightly available?

Greets Tim
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Head2Head play

Post by Yexo »

Just made an update to r18920 and new binaries are also available.
planetmaker wrote: - town and industry directories should get a switch which allows to show only those which are in your own territory as for most purposes (as I use them at least) a list of things which is cluttered with inaccessible items is not desired. It doesn't mean though, that the possibility to see all should be removed.
That is still on my todo list, but at this moment the whole h2h project is pretty low on that list.
- (not my idea, but to note it down in this thread, as proposed yesterday in IRC by tneo(?)): Jump to the map of the company you joined upon connect. I'm not sure about what to do, if a person changes the company.
It's a good idea, but see above
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Head2Head play

Post by petert »

Yexo wrote:Just made an update to r18920 and new binaries are also available.
Will there be a game soon on #coopetition?
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Head2Head play

Post by Yexo »

petert wrote:Will there be a game soon on #coopetition?
I'm not aware that anyone is organizing a game. If you want to, go ahead.
Timmaexx
Transport Coordinator
Transport Coordinator
Posts: 301
Joined: 03 Jan 2009 17:55

Re: Head2Head play

Post by Timmaexx »

Yexo wrote:Just made an update to r18920 and new binaries are also available.
Cool! Thanks :bow:
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Head2Head play

Post by petert »

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 23 guests