The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999+ on January 08, 2016, 06:11:24 AM

Title: Is type=dock not available yet ?
Post by: z9999+ on January 08, 2016, 06:11:24 AM
It seems that current code supports type=dock stations, but I cannot build it.
Is type=dock already available or not ? There is nothing about it in history.txt.

- I used makeobj 55.4.
- I used pak64 harbor .dat and changed type from "habour" to "dock".
- I tried both Dims=1,1,4 dock and Dims=1,4,4 dock.
- I also added "water" to climates.
- I added toolbar[6][11]=buildings(36,3) to menuconf.tab.

But I cannot build it on map at all. "No suitable ground" error happens.
Does anyone have a sample pak which works correctly ?
Title: Re: Is type=dock not available yet ?
Post by: Frank on January 08, 2016, 06:31:33 AM
Quote from: prissi on December 23, 2015, 03:10:44 PM... dock is obsolete, you would rather define it as waytype=water and type=stop


Title: Re: Is type=dock not available yet ?
Post by: Dwachs on January 08, 2016, 07:51:43 AM
The 'type=dock' is intended to be harbours that can be build on flat coast tiles. Not sure whether it *works* as intended.
Title: Re: Is type=dock not available yet ?
Post by: z9999+ on January 08, 2016, 09:00:19 AM
Thank you both.
Maybe "obsolete" means that it does not work.
Title: Re: Is type=dock not available yet ?
Post by: Dwachs on January 08, 2016, 09:29:59 AM
type=dock was added in r7519 to be able to build harbours on flat shores, which now appear as side-effect of the (not so new anymore) climate system.

I think, prissi meant the obsolete 'wharf' type.

So this bug report is that these harbours cannot be built at all (?)
Title: Re: Is type=dock not available yet ?
Post by: z9999+ on January 08, 2016, 11:29:58 AM
Can you build harbours on flat shores ?
Strange enough, I cannot build it. (120.1.2 and pak64)
Which harbor and which pakset are you using ?

I cannot build both harbour(haus_besch_t::dock) and dock(haus_besch_t::flat_dock) on flat shores.
Title: Re: Is type=dock not available yet ?
Post by: Dwachs on January 08, 2016, 12:59:37 PM
I have never tested it. As far as I know, there is no pakset that uses this feature. Will check tonight.

Edit: Here is a patch (apply with 'patch -p3'). Please test. I also attach a pak file for a harbour to be build on flat land (it is a remix of harbour and road graphics from pak64).

As the possible direction of flat-harbours are not uniquely determined by the landscape, there is the possiblity to ctrl-click on the icon to choose rotation (like for station extension buildings).

To get the icon for the dock add this line to pak64 menuconf.tab

toolbar[6][11]=buildings(36,3)

(toolindices might be different in different paksets)
Title: Re: Is type=dock not available yet ?
Post by: z9999+ on January 10, 2016, 09:10:33 AM
Thank you for testing and fixing.
Unfortunatelly, I do not have build environment on my current PC anymore.
So, I will try when it is released.

But, thanks again anyway.  :)
Title: Re: Is type=dock not available yet ?
Post by: Dwachs on January 10, 2016, 10:39:59 AM
I will not submit this to the svn as I do not know how the building of harbours on flat tiles was intended.
Title: Re: Is type=dock not available yet ?
Post by: prissi on January 10, 2016, 10:02:15 PM
SInce you could achieve something simular with a custom water factory producing nothing I would say why not. It is up to the pak set to have those.
Title: Re: Is type=dock not available yet ?
Post by: Dwachs on January 15, 2016, 04:56:53 PM
This is now incorporated in r7737-7739.

Some of the pak64 harbour graphics would also perfectly work as flat_dock objects, which do not require a sloped tile to build.
Title: Re: Is type=dock not available yet ?
Post by: prissi on January 15, 2016, 10:39:36 PM
You are invited to turn one of them into a dock then. I will be very busy this weekend.
Title: Re: Is type=dock not available yet ?
Post by: z9999+ on January 17, 2016, 11:21:05 AM
Thank you.
Quick test on r7742.

I can build on artificial slope.
Maybe it needs to check tile height difference.
Title: Re: Is type=dock not available yet ?
Post by: Dwachs on January 17, 2016, 01:39:10 PM
thanks for checking. Should be corrected in r7744. This also affected the harbour buildings that need to be built on a slope