Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 21, 2017 7:27 pm

All times are UTC




Post new topic  Reply to topic  [ 32 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Head2Head play
PostPosted: Sun Mar 29, 2009 1:14 am 
Offline
Tycoon
Tycoon

Joined: Thu Dec 20, 2007 12:49 pm
Posts: 3653
Based on an old patch by TrueBrain, I present you (again) head2head play. I'll write a more detailed explanation later. What this patch does:
If you start a new game the world is copied and pasted to the SE side of the map. You now have two exact same halves. The first company can play on the NW half, the second company on the SE half. This way you can play competitive without industry stealing/blocking etc. Just get two teams ready and see who can make the most money.

Download here: http://www.openttd.org/en/download-head-to-head
Repository here: http://hg.openttd.org/developers/yexo/head-to-head.hg/


Last edited by Yexo on Sun Mar 29, 2009 7:58 pm, edited 1 time in total.

Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 1:25 am 
Offline
Engineer
Engineer

Joined: Sun May 11, 2008 12:07 am
Posts: 13
Only the first two companies are restricted in which map they can build in. Companies beyond #2 can build in both.

Nice patch, was fun playing. :D

Also, helicopters can fly to oil rigs in the opposite map.

Screenshot at the break between maps:


Attachments:
Yex0 Transport, 13th Mar 1954.png [122.19 KiB]
Downloaded 541 times


Last edited by andyp on Sun Mar 29, 2009 2:00 am, edited 2 times in total.
Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 7:27 am 
Offline
Engineer
Engineer

Joined: Sun Mar 15, 2009 11:41 am
Posts: 19
This is cool. Hopefully in future there should be able to play up to 4 players against, and a options to enable/disable this in advance settings or in map generator. Thx :).


Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 10:46 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Aug 25, 2007 5:03 pm
Posts: 2167
Location: ~/
I've just made my own Head2Head server.
It is 512x512 and uses a few ingame content download newGRFs. :)

Edit: Oh, crap.. I think that I have got some technical problems here.. Does anyone see it in the list?
Edit2: No you can't.. I also found openttdcoop's server, so there is no need for mine anyway. :)

_________________
Image


Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 3:36 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
Nice multiplayer approach! And very suitable for an idea I came up with a long time ago: Allow each player to have exactly one train. Every player starts at town X and the first who gets his train to town Y wins. These seperate maps make the challenge a little more fair without players obstructing one another.
(Ofcourse, for this challenge to work, you should have far less money than the amount needed to buy a train and construct a railway between X and Y.)


Yexo wrote:
It's possible to 'steal' goods if an industry is near the edge where the two halves connect, this shouldn't be possible.

Maybe add a few extra tiles of water between each halve?

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 3:43 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
FooBar wrote:
Yexo wrote:
It's possible to 'steal' goods if an industry is near the edge where the two halves connect, this shouldn't be possible.

Maybe add a few extra tiles of water between each halve?


Judging from the commit logs, this problem is already solved now ;)

_________________
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage


Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 3:47 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
Come to think of it, water might be a bit odd in case of a map with land at all edges...
So better ignore that suggestion!

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 3:55 pm 
Offline
Tycoon
Tycoon

Joined: Thu Dec 20, 2007 12:49 pm
Posts: 3653
Roujin wrote:
Judging from the commit logs, this problem is already solved now ;)
The logs can be deceiving :p
I thought I fixed it, but the problem is still there.


Top
   
 Post subject: Re: Head2Head play
PostPosted: Sun Mar 29, 2009 7:58 pm 
Offline
Tycoon
Tycoon

Joined: Thu Dec 20, 2007 12:49 pm
Posts: 3653
Ok, most know bugs fixed.
Download here: http://www.openttd.org/en/download-head-to-head
Repository here: http://hg.openttd.org/developers/yexo/head-to-head.hg/

There is a setting under constructions->number of head-to-head ares. This must be set to a multiple of 2! Valid values are thus: 1, 2, 4, 8, 16. Failure to do so will result in a crash during map generation. Also make sure that mapsize_y * number-of-areas <= 2048. Again, failure will result in a crash.

Todo / known bugs:
Don't crash but handle the above cases nicely.
Make AIs aware that not all towns/industries/tiles are valid.
Make it possible to have the areas not only in NE<>SW direction, but also inthe NW<>SE direction.


Top
   
 Post subject: Re: Head2Head play
PostPosted: Tue Mar 31, 2009 1:39 pm 
Offline
Chief Executive
Chief Executive

Joined: Sun Nov 11, 2007 12:06 pm
Posts: 658
hi will you be bring out a patch file for this

_________________
For Community Integrated Version http://code.google.com/p/civopenttd/


Top
   
 Post subject: Re: Head2Head play
PostPosted: Tue Mar 31, 2009 1:46 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 6918
why make a patch when you have the repository right there? it's just unnecessary time spent for the developer that he could spend much more usefully.

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
 Post subject: Re: Head2Head play
PostPosted: Tue Mar 31, 2009 2:07 pm 
Offline
Chief Executive
Chief Executive

Joined: Sun Nov 11, 2007 12:06 pm
Posts: 658
so to make a patch on this i have to add them bits all togiver and it should work :)

_________________
For Community Integrated Version http://code.google.com/p/civopenttd/


Top
   
 Post subject: Re: Head2Head play
PostPosted: Tue Mar 31, 2009 2:45 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 6918
no, you check out the repository and tell it to make a diff between "tip" and the last "sync from trunk" commit. you can find out which revision that is by using the log.

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
 Post subject: Re: Head2Head play
PostPosted: Tue Mar 31, 2009 5:12 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4532
Location: /home/sweden
Really cool idea. I see you use the OpenTTD binaries server, so I've added Last Head-to-head as a target option in OpenTTD Auto Update.

To users (who are not aware of how Cargodest was hacked into OpenTTD Auto Update): The OpenTTD Auto Update client don't know how hg versions look like, so it will look like nothing is installed in "more info", but the server side knows how to interpret the raw version string from openttd.exe. And it is the OTTDAU server that decides if there is an update available or not, so it will work, just don't look as pretty as it could do.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
 Post subject: Re: Head2Head play
PostPosted: Tue Mar 31, 2009 5:28 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 6918
Zuu wrote:
so I've added Last Head-to-head as a target option in OpenTTD Auto Update.
sounds like you have to do that manually, can't you autodetect any added lines in the finger output?

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
 Post subject: Re: Head2Head play
PostPosted: Tue Mar 31, 2009 5:58 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4532
Location: /home/sweden
Eddi wrote:
Zuu wrote:
so I've added Last Head-to-head as a target option in OpenTTD Auto Update.
sounds like you have to do that manually, can't you autodetect any added lines in the finger output?


Sure with a bunch of work I could do that. But that would need me to autodetect hg-versioning too, which I don't at them moment. Also I would probably need to restrict it to nightlies/* and custom/*, but what if in future there will be something using */* that is interesting to have, while extra/openttd-usefull is not really interesting to have. In addition there is some additional information I keep that is not on fingers. Such as which letters should be upper case in the GUI etc. (this could be made good enough by an algorithm, but would require a design change)

So yes, not impossible, but would require quite some changes here and three to make it automatic.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
 Post subject: Re: Head2Head play
PostPosted: Thu Apr 02, 2009 11:03 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9019
Location: Sol d
In the hope of the availability of updated binaries (nudge @ truebrain) we're planning a tournament on Friday night, starting at 20h CEST (= 18h UT). The map will be 128 x 512 tiles per company with 15 company slots available. Have a look at our blog for more information and join us on #coopetition where also the competition server will be based.

Download links will be the usual branch download links; they will also be available within the IRC channel.

Hope to see you this Friday!

_________________
Image
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


Top
   
 Post subject: Re: Head2Head play
PostPosted: Thu Apr 02, 2009 5:48 pm 
Offline
President
President
User avatar

Joined: Sun Jun 18, 2006 6:18 pm
Posts: 953
Location: Switzerland
We are currently "BETA" testing for tomorrow evening:

on h518233e5 (svn r15907M)

quite many desyncs, which we can't reproduce and following assert:

After try to prospect a industry:
src/industry_cmd.cpp:1470: void DoCreateNewIndustry(Industry*, TileIndex, int, const IndustryTileTable*, byte, const Town*, Owner, Owner): Assertion `founder == OWNER_NONE || GetAreaByTile(tile) == founder + 1' failed.

_________________
Image
Town Names: Image Portuguese Image Belarusian Image French Image Swiss · Image Temperate Lumber Mill
Still work in progress: OpenGFX or/and OpenSFX - Please help!


Top
   
 Post subject: Re: Head2Head play
PostPosted: Thu Apr 02, 2009 8:32 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9019
Location: Sol d
The output in my xterm was when desyncing:

Code:
dbg: [misc] Nested widgets give different results
dbg: [net] Sync error detected!

_________________
Image
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


Top
   
 Post subject: Re: Head2Head play
PostPosted: Thu Apr 02, 2009 8:49 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Sat Jan 03, 2009 5:55 pm
Posts: 301
Yes, I played on #OpenTTDCOOP Coopetition Server and there were unnormal much desyncs...
...but i really love this way to play! No one who blocks your industries ;)

I hope in the next H2H release is less desync. :bow:


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 32 posts ]  Go to page 1 2 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.