Infrastructure Sharing
Moderator: OpenTTD Developers
Re: Infrastructure Sharing
Confirmed and fixed.
Updated patches in the original post.
Updated patches in the original post.
Re: Infrastructure Sharing
Maybe it's better to post updates in the current post if you're not the thread owner.Aali wrote:Confirmed and fixed.
Updated patches in the original post.
Re: Infrastructure Sharing
"Here is win binary with last fix
"
edit: new version, old removed.

edit: new version, old removed.
Last edited by Tvel on 11 Feb 2009 16:15, edited 1 time in total.
Re: Infrastructure Sharing
So fast ! you rocks !Aali wrote:Confirmed and fixed.
Updated patches in the original post.
and it works perfectly.Tvel wrote:Here is win binary with last fix
thanks
-
- Engineer
- Posts: 44
- Joined: 06 Sep 2008 12:41
- Location: Hamburg, Germany
Re: Infrastructure Sharing
I tested your binary, but I still can't see the income or costs for tracksharing in the financial window. I compiled the patch myself, but it seems, that it is still the old version for openttd revision 15416 in Aali's post
Re: Infrastructure Sharing
Even though I had the same problem Deepblue had, I'd very much like to say: Thanks for that! It worked very well, though I did not test extensively. Would it be impolite to request a version including ITiM and passenger reduction? Perhaps that would lead to conflicts, I don't know.Tvel wrote:Here is win binary with last fix
On a gameplay related note: I played around a bit on a small map, against AdmiralAI, and it was a fun experience. However, the only real interaction I could have with it was through airports (it hadn't built RVs yet). There's was no way to connect to a train station, and connecting a local bus network to one of their airports was also impossible. I'd say connecting your own loading bay to one of their stations/airports should be possible. It should still count as an opponent's station, him/her being the one who's able to destroy it etc.
Re: Infrastructure Sharing
deepblue2k8, Aali only fixed the bug, he didn't tweak the finance window. I support your request too, but It may be not too easy to do. Aali is just updating the old patch to the new nightlies and we can't force him to do the finance improvement. 
el koeno, I was thinking the same, this patches with ITiM and passenger reduction will be great. I will see what i can do, but I have little free time these weeks.

el koeno, I was thinking the same, this patches with ITiM and passenger reduction will be great. I will see what i can do, but I have little free time these weeks.
Re: Infrastructure Sharing
I've decided to drop the non-cargodest version of this patch to make it easier for me to make updates.
Most of my work should be on the new IS patch after all
The finances window has been fixed to include IS, both standard and grouped version.
For some reason road stop and harbour fees were not copied to the company-specific settings but deliberately set to 0, this has also been fixed.
Most of my work should be on the new IS patch after all

The finances window has been fixed to include IS, both standard and grouped version.
For some reason road stop and harbour fees were not copied to the company-specific settings but deliberately set to 0, this has also been fixed.
- Attachments
-
- infrastructure_sharing_cargodest_r15447.patch
- (134.83 KiB) Downloaded 162 times
Last edited by Aali on 11 Feb 2009 20:32, edited 1 time in total.
Re: Infrastructure Sharing
wich source I have to use to compile the patch from Aali. I`m very interested in the new finance window.
Re: Infrastructure Sharing
Nice work Aali 

Last edited by Tvel on 11 Feb 2009 21:04, edited 1 time in total.
-
- Engineer
- Posts: 44
- Joined: 06 Sep 2008 12:41
- Location: Hamburg, Germany
Re: Infrastructure Sharing
First of all, thanks for the awesome work of maintaining the old patch Aali
.
I think IS is one of the most useful features that should be added to OpenTTD.
@Tvel, of cause we can't force him
. But the shared infrastructure income line was already in the old patch, so I missed it a bit 
I tried to apply the current nightly 15447 with the cargodest_patch Aali attached in his last post, but TortoiseMerge (Windows) aborts with an error message, that "The patch seeems outdated" on various files..
I dont know if I did it correctly. Is cargodest already included in your patch, Aali, or do I have to apply the cargodest patch before for this patch to work?
OK, i just tried it on my own
. Applied first cargodest_patch and it worked...
So nevermind
But I still can't compile, because the file <boost/graph/adjacency_list.hpp> is missing in my source folder.?
Again, thanks for the work and @Tvel, thanks for the binary

I think IS is one of the most useful features that should be added to OpenTTD.

@Tvel, of cause we can't force him


I tried to apply the current nightly 15447 with the cargodest_patch Aali attached in his last post, but TortoiseMerge (Windows) aborts with an error message, that "The patch seeems outdated" on various files..
I dont know if I did it correctly. Is cargodest already included in your patch, Aali, or do I have to apply the cargodest patch before for this patch to work?
OK, i just tried it on my own

So nevermind

But I still can't compile, because the file <boost/graph/adjacency_list.hpp> is missing in my source folder.?
Again, thanks for the work and @Tvel, thanks for the binary

Re: Infrastructure Sharing
@deepblue2k8,
Aali uses "boost library" to make cargodest work, so you need to download them and put them into the library directories
you need only some header files, you don't have to compile boost.
@Aali
got a crash, tried to repeat it but no luck, still here is some info:
i was checking an airport with other company plane landing and got a crash
openttd.exe!GetTileOwner(unsigned int tile=40807744) Line 136 + 0x30 bytes
openttd.exe!OnSharedClose(Owner old_company=1, unsigned int close_bits=0) Line 984 + 0x26 bytes
openttd.exe!SharedSettingDelay() Line 382
Aali uses "boost library" to make cargodest work, so you need to download them and put them into the library directories

you need only some header files, you don't have to compile boost.
@Aali
got a crash, tried to repeat it but no luck, still here is some info:
i was checking an airport with other company plane landing and got a crash
openttd.exe!GetTileOwner(unsigned int tile=40807744) Line 136 + 0x30 bytes
openttd.exe!OnSharedClose(Owner old_company=1, unsigned int close_bits=0) Line 984 + 0x26 bytes
openttd.exe!SharedSettingDelay() Line 382
Re: Infrastructure Sharing
Yet another bad assumption about aircraft that doesn't hold with freeform map edgesTvel wrote: got a crash, tried to repeat it but no luck, still here is some info:
i was checking an airport with other company plane landing and got a crash
openttd.exe!GetTileOwner(unsigned int tile=40807744) Line 136 + 0x30 bytes
openttd.exe!OnSharedClose(Owner old_company=1, unsigned int close_bits=0) Line 984 + 0x26 bytes
openttd.exe!SharedSettingDelay() Line 382

The patch has been updated.
Re: Infrastructure Sharing
New binary with the fix:
- Attachments
-
- Cargodest_IS.zip
- (3.29 MiB) Downloaded 163 times
-
- Engineer
- Posts: 2
- Joined: 24 Jan 2009 13:30
- Skype: retroip
- Location: Košice, Slovakia
- Contact:
Re: Infrastructure Sharing
Hi guys,
Last Changed Author: peter1138
Last Changed Rev: 15447
Last Changed Date: 2009-02-11 08:17:39 +0100 (Wed, 11 Feb 2009)
I have problem with compiling
I have clean 15447 just with this patch (infrastructure_sharing_cargodest_r15447.patch) ,compilling on FreeBSD 7.0-STABLE Sun Jun 1 02:30:04 CEST 2008 i have this error:
Any experience someone else ?
Last Changed Author: peter1138
Last Changed Rev: 15447
Last Changed Date: 2009-02-11 08:17:39 +0100 (Wed, 11 Feb 2009)
I have problem with compiling
I have clean 15447 just with this patch (infrastructure_sharing_cargodest_r15447.patch) ,compilling on FreeBSD 7.0-STABLE Sun Jun 1 02:30:04 CEST 2008 i have this error:
Code: Select all
[SRC] Compiling aircraft_cmd.cpp
/usr/home/retro/openttd/src/aircraft_cmd.cpp: In function 'StationID FindNearestHangar(const Vehicle*)':
/usr/home/retro/openttd/src/aircraft_cmd.cpp:108: error: 'SharedAirports' was not declared in this scope
/usr/home/retro/openttd/src/aircraft_cmd.cpp: In function 'CommandCost CmdBuildAircraft(TileIndex,
DoCommandFlag, uint32, uint32, const char*)':
/usr/home/retro/openttd/src/aircraft_cmd.cpp:260: error: 'SharedAirports' was not declared in this scope
/usr/home/retro/openttd/src/aircraft_cmd.cpp:441: error: 'SharedDepotProvision' was not declared in this scope
/usr/home/retro/openttd/src/aircraft_cmd.cpp: In function 'void AircraftEventHandler_Flying(Vehicle*,
const AirportFTAClass*)':
/usr/home/retro/openttd/src/aircraft_cmd.cpp:1639: error: 'SharedAirports' was not declared in this scope
/usr/home/retro/openttd/src/aircraft_cmd.cpp:1656: error: 'SharedStationFee' was not declared in this scope
gmake[1]: *** [aircraft_cmd.o] Error 1
gmake[1]: Leaving directory `/usr/home/retro/openttd/objs/release'
gmake: *** [all] Error 2
Re: Infrastructure Sharing
First of all, that patch doesn't apply to clean r15447, it needs the cargodest patch (the name of the patch is a less than subtle hint)
But your errors suggest you didn't fix all those rejects you got when applying the _incompatible_ patch, ignored all the warnings and just went ahead and compiled it anyway.
But your errors suggest you didn't fix all those rejects you got when applying the _incompatible_ patch, ignored all the warnings and just went ahead and compiled it anyway.
-
- Engineer
- Posts: 2
- Joined: 24 Jan 2009 13:30
- Skype: retroip
- Location: Košice, Slovakia
- Contact:
Re: Infrastructure Sharing
o man, im lama, sorry I did not red it carefully , uh.. 

Re: Infrastructure Sharing
It's a standalone patch you released Aali ?
or do i need to put another patch before this one ?
i tried to patch with r15447 from trunk, but patch failed.
Thanks for continuing this patch ^^
or do i need to put another patch before this one ?
i tried to patch with r15447 from trunk, but patch failed.
Thanks for continuing this patch ^^
Re: Infrastructure Sharing
"it failed" is not a problem report.
is it so hard to copy-paste the error message in here?
is it so hard to copy-paste the error message in here?
Re: Infrastructure Sharing
Well, he didn't even have time to read the other posts in this thread to find his answer so obviously he's in some kind of hurry.
Who is online
Users browsing this forum: No registered users and 10 guests