In principle yes. But you'll confuse the hell out of the poor AI players if you force it on them. They don't know about infrastructure sharing.neob wrote:does 'Infrastructure sharing' allows single player gameplay with bot's?
Infrastructure sharing 2.1.1
Moderator: OpenTTD Developers
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Infrastructure sharing 2.1.1
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: Infrastructure sharing 2.1.1
i would love to have a little sandbox game with bots managing things i dont like road & sea transportation for example.planetmaker wrote:In principle yes. But you'll confuse the hell out of the poor AI players if you force it on them. They don't know about infrastructure sharing.neob wrote:does 'Infrastructure sharing' allows single player gameplay with bot's?
but i was thinking about city owned infrastructure and with few newgrf can look very nice, like:
http://www.tt-forums.net/download/file.php?id=117211
http://www.tt-forums.net/download/file.php?id=89311
Re: Infrastructure sharing 2.1.1
If someone could add some functions to the NoAI API, then AI developers might be able to make a start.planetmaker wrote:In principle yes. But you'll confuse the hell out of the poor AI players if you force it on them. They don't know about infrastructure sharing.neob wrote:does 'Infrastructure sharing' allows single player gameplay with bot's?
PathZilla - A networking AI - Now with tram support.
Re: Infrastructure sharing 2.1.1
I was thinking of trying to make an AI that copies profitable trains in IS game, but I have no time now to try.
Anyone knows if this is possible without API changes?
Anyone knows if this is possible without API changes?
Re: Infrastructure sharing 2.1.1
IIRC you can't get information about vehicles of other companies in the current NoAI API. So that at least would need to be made possible. An AIList for stations, depots of other companies would also be nice to have. Though, if you just can get hold of trains and then copy their orders and hope that they contain at least one depot then you just need the vehicle index of the vehicle as well as a change to make non-own vehicles valid.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Infrastructure sharing 2.1.1
There isn't an AI that is made for Infrastructure Sharing (eg Connects to your tracks, leaves open spaces on tracks), but you could probably use the move company cheat to move between companies and use the AI's track.neob wrote:does 'Infrastructure sharing' allows single player gameplay with bot's?
Re: Infrastructure sharing 2.1.1
Thanks, Zuu. I reached the same conclusion, but I was not sure.
Re: Infrastructure sharing 2.1.1
I do not expect AI writers to make their AIs compatible with a patch that is used mostly in multiplayer, without any AIs. Writing and improving AIs is already hard enough, without having to support ever-changing patches.Zuu wrote:IIRC you can't get information about vehicles of other companies in the current NoAI API. So that at least would need to be made possible. An AIList for stations, depots of other companies would also be nice to have. Though, if you just can get hold of trains and then copy their orders and hope that they contain at least one depot then you just need the vehicle index of the vehicle as well as a change to make non-own vehicles valid.
On my side, to make InfraSharing work for AIs I'd have to do a lot of patching to the AI code, which takes precious coding time. Also, it may break assumptions of other AIs and their compatibility with trunk. Therefore I have decided to leave out any specific AI support. See also http://dev.openttdcoop.org/issues/6
However, if you wish to make your AI somewhat compatible, it's possible to read the values of the advanced settings related to sharing (sharing.sharing_rail etc) You can use these values to do whatever you want, basically.
Create your own NewGRF? Check out this tutorial!
Re: Infrastructure sharing 2.1.1
Is it possible to implement block construction of stations and bus stops in cities that already have stopped another user? When I first built a stop or station in the city or at the source of resources, other users can only use only my stations and bus stops and as a result of paying rent



- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Infrastructure sharing 2.1.1
That's neither possible nor intended to implement and would be totally out of scope. Both towns and industries are not owned by any player - you're offering transport services only.Segment wrote:Is it possible to implement block construction of stations and bus stops in cities that already have stopped another user? When I first built a stop or station in the city or at the source of resources, other users can only use only my stations and bus stops and as a result of paying rent![]()
You might try to buy the exclusive transport rights; then goods and pax would only be transported to your stations; mind that it is considered bad behaviour on a number of hosts.
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: Infrastructure sharing 2.1.1
The idea is good when you play with friends and people who will not conduct an aggressive policy, and are configured to share resources. In general, the idea was born when I was thinking about how you can divide the map into sections (areas) where in each plot your boss (mini-state).
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Infrastructure sharing 2.1.1
Well, I consider this one of the principle admin tasks: setting house rules, making sure scenario rules are obeyed. Social problems cannot be overcome by technical means.Segment wrote:The idea is good when you play with friends and people who will not conduct an aggressive policy, and are configured to share resources. In general, the idea was born when I was thinking about how you can divide the map into sections (areas) where in each plot your boss (mini-state).
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: Infrastructure sharing 2.1.1
How do you actually get to the Infrastructure Sharing window in-game?
Re: Infrastructure sharing 2.1.1
It was taken out in the latest version(s), 2.1 and on. Now you should use the Infrastructure Sharing settings in Advanced Settings -> Competitors -> Infrastructure Sharing.
Re: Infrastructure sharing 2.1.1
So there's no longer an ability to have fare wars where people compete to have the cheapest networks to run on?
Re: Infrastructure sharing 2.1.1
No, it's globally set by the server. I think Hirundo might re-implement it later, but it was a lot of code to take care of before.
Re: Infrastructure sharing 2.1.1
I am just posting to say that the latest SVN patch on the devzone does not apply to current trunk.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
- jonty-comp
- Tycoon
- Posts: 2542
- Joined: 22 Oct 2005 16:05
- Location: Chesterfield, England
- Contact:
Re: Infrastructure sharing 2.1.1
Well that's hardly surprising, otherwise they wouldn't need to update it to match trunk revisions!
I had a crash on my server the other day, but it doesn't look all that related to IS2 (disclaimer: it could well be, I have no idea about this stuff):
More info available on demand!
I had a crash on my server the other day, but it doesn't look all that related to IS2 (disclaimer: it could well be, I have no idea about this stuff):
Code: Select all
Crash reason:
Signal: Aborted (6)
Message: Assertion failed at line 1177 of /home/openttd/is2/2.1.1/src/openttd.cpp: memcmp(&v->cargo, buff, sizeof(VehicleCargoList)) == 0
OpenTTD version:
Version: IS2.1.1 (1)
NewGRF ver: 100048eb
Bits: 32
Endian: little
Dedicated: yes
Build date: Dec 31 2009 09:41:19
Stacktrace:
[00] /home/openttd/is2/2.1.1/bin/openttd(_ZNK12CrashLogUnix13LogStacktraceEPcPKc+0x43) [0x82511d3]
[01] /home/openttd/is2/2.1.1/bin/openttd(_ZNK8CrashLog12FillCrashLogEPcPKc+0xaf) [0x8193fdf]
[02] /home/openttd/is2/2.1.1/bin/openttd(_ZNK8CrashLog12MakeCrashLogEv+0x9c) [0x81940ec]
[03] /home/openttd/is2/2.1.1/bin/openttd [0x825112b]
[04] /lib/libc.so.6 [0xb7d1c5f8]
[05] /lib/libc.so.6(gsignal+0x46) [0xb7d1c556]
[06] /lib/libc.so.6(abort+0x188) [0xb7d1dd78]
[07] /home/openttd/is2/2.1.1/bin/openttd [0x8241f9e]
Re: Infrastructure sharing 2.1.1
Could you provide an (auto)savegame that causes this crash within a finite amount of time? Also, if it was created, crash.sav would be appreciated.
I tend to agree that it is not IS-related, but taking a look shouldn't hurt.
I tend to agree that it is not IS-related, but taking a look shouldn't hurt.
Create your own NewGRF? Check out this tutorial!
- jonty-comp
- Tycoon
- Posts: 2542
- Joined: 22 Oct 2005 16:05
- Location: Chesterfield, England
- Contact:
Re: Infrastructure sharing 2.1.1
It would seem that the most recent autosave I have doesn't reproduce the error, but here's the crash.sav.
- Attachments
-
- crash.sav
- (911.55 KiB) Downloaded 109 times
Who is online
Users browsing this forum: No registered users and 9 guests