Head2Head play
Moderator: OpenTTD Developers
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Head2Head play
EDIT: sorry, the assert is fixed, but not in the binaries. So... forget about this
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Head2Head play
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.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Head2Head play
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).
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).
Re: Head2Head play
Thanks a lot for the hard work narc, with this information fixing it will be a lot easier.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).
Re: Head2Head play
Thanks, the assert was wrong, fixed now.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.
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.Narc wrote:I've been digging for the desyncs a little bit and seem to have managed to narrow them down to town growth
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Head2Head play
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
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
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Head2Head play
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
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
Re: Head2Head play
Just made an update to r18920 and new binaries are also available.
That is still on my todo list, but at this moment the whole h2h project is pretty low on that list.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.
It's a good idea, but see above- (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.
Re: Head2Head play
Will there be a game soon on #coopetition?Yexo wrote:Just made an update to r18920 and new binaries are also available.
Re: Head2Head play
I'm not aware that anyone is organizing a game. If you want to, go ahead.petert wrote:Will there be a game soon on #coopetition?
Re: Head2Head play
Cool! ThanksYexo wrote:Just made an update to r18920 and new binaries are also available.
Re: Head2Head play
We just got a server running at #coopetition:
http://www.openttd.org/en/server/25946
http://openttdcoop.org/index.php?page=servers&s=h2h
http://www.openttd.org/en/server/25946
http://openttdcoop.org/index.php?page=servers&s=h2h
Who is online
Users browsing this forum: No registered users and 23 guests