New map features
Moderator: OpenTTD Developers
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
Thanks for testing.
I found a bug and am fixing it now.
Don't send ships to depots.
It mixes up reservations!!
I found a bug and am fixing it now.
Don't send ships to depots.
It mixes up reservations!!
Re: New map features
Ok. Meanwhile I am trying to resolve a crash while loading a save game. Probably my fault. I may have saved while using the previous binary where the saved game still loads.HackaLittleBit wrote:Thanks for testing.
I found a bug and am fixing it now.
Don't send ships to depots.
It mixes up reservations!!

wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
wallyweb wrote:Ok. Meanwhile I am trying to resolve a crash while loading a save game. Probably my fault. I may have saved while using the previous binary where the saved game still loads

I have been looking at that, I had the same.
Tomorrow I will have another look, but I am not very hopeful.
Try this and see if it loads.
in file /src/saveload/station_sl.cpp
line 634 put "//"
like below
// SLE_VAR(Dock, reserved, SLE_BOOL),
and compile
now you should be able to load that old game.
But you have to revert that in order to use patch correctly. e.g. beeing able to save reservation data.
Below zip wit 3 patches.
1. dock_reservations_26118SL that you have already.
2. Cirdan-clone_26119_Fix depot_rest : This one fixes docks that stayed reserved while going to depot.
3. Cirdan-clone_26120park_on_axis : This one changes parking behaviour for ships at docks. Now they park (most of the time) along the axis.
see foto I need a newgrf with lots of docks
Any suggestions?
I also send you pm with my savegame.(new)
- Attachments
-
- cirdan.zip
- (4.66 KiB) Downloaded 210 times
Re: New map features
Except there was no reservation data. I had not yet built any ships. I did find that the previous save would load ok so I am going to add/save in small steps to see what breaks the game.HackaLittleBit wrote:wallyweb wrote:Ok. Meanwhile I am trying to resolve a crash while loading a save game. Probably my fault. I may have saved while using the previous binary where the saved game still loads![]()
I have been looking at that, I had the same.
Tomorrow I will have another look, but I am not very hopeful.
Try this and see if it loads.
in file /src/saveload/station_sl.cpp
line 634 put "//"
like below
// SLE_VAR(Dock, reserved, SLE_BOOL),
and compile
now you should be able to load that old game.
But you have to revert that in order to use patch correctly. e.g. beeing able to save reservation data.
Ok I've downloaded the patches and the save game. I'll test these tomorrow.
I'm not sure what you mean. There is only one dock available to a game. A GRF can alter it's graphics but it can't make a set of docks to chose from during a game.I need a newgrf with lots of docks
Any suggestions?
PaulC has a GRF where you set parameters to chose a dock style but once set, all docks are the same.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
Thanks those docks look nice.wallyweb wrote:I'm not sure what you mean. There is only one dock available to a game. A GRF can alter it's graphics but it can't make a set of docks to chose from during a game.
PaulC has a GRF where you set parameters to chose a dock style but once set, all docks are the same.
But in between I need a object dock thingy. see photos (3rd one photo shopped)
Maybe you know where to find it.

- Attachments
-
- 1.png (34.85 KiB) Viewed 5105 times
-
- 1a.png (36.87 KiB) Viewed 5105 times
-
- 1b.png (40.08 KiB) Viewed 5105 times
Re: New map features
Ok. I see now what you mean. You can use ISR and/or the ISR/DWE objects GRFs although you might find that MariCo offers a more elegant solution.HackaLittleBit wrote: ...in between I need a object dock thingy.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: New map features
Also, GarryG's AuzObjects, Andythenorth's CHIPS, maybe VAST?
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: New map features
kamnet wrote:Also, GarryG's AuzObjects, Andythenorth's CHIPS, maybe VAST?

Looks like we have lots of choices.

Thanks kamnet.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
Yohoho and a bottle of rum.....
Now we can start playing!
And let all those non buoy using pirates be hanged from the highest mast!!!!
Thanks wallyweb and kamnet.
Now we can start playing!
And let all those non buoy using pirates be hanged from the highest mast!!!!
Thanks wallyweb and kamnet.

Re: New map features
strike that... wally said marico first 

-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: New map features
This looks very interesting.
Would it eventually lead to "newharbours"?
regards
Michael
Would it eventually lead to "newharbours"?

regards
Michael
Re: New map features
Test Report #4
The .7z attached below contains:
Dock Test B.sav - a saved game
marico.grf - Thank you Michael
channels.grf - A set of extra buoys and channel limits as objects. Details are here. Hint: If you want to see the magic behind my channel limits, open the Transparency Options GUI and set objects to transparent.
For the sailors among you, the buoys are as accurate as possible considering having to draw in pixels.
Observations: For the ships to tie up alongside the docks rather than shoving a bow into a dock, they have to be able to approach the docks at an angle. You will see both effects in the saved game.
The .7z attached below contains:
Dock Test B.sav - a saved game
marico.grf - Thank you Michael

channels.grf - A set of extra buoys and channel limits as objects. Details are here. Hint: If you want to see the magic behind my channel limits, open the Transparency Options GUI and set objects to transparent.

For the sailors among you, the buoys are as accurate as possible considering having to draw in pixels.

Observations: For the ships to tie up alongside the docks rather than shoving a bow into a dock, they have to be able to approach the docks at an angle. You will see both effects in the saved game.
Last edited by wallyweb on 18 Feb 2018 23:50, edited 1 time in total.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
This image was taken from a game fromJuanjo's Branche.michael blunck wrote: Would it eventually lead to "newharbours"?
It shows the available tracks in the water.
I use it to illustrate that for me, most of the problems are solved in respect to harbour movement.
I can group the docks together and ships will move to dock when slot is available.
By strategically placing buoy's and object's in the water I can control the way ships behave.
It needs some practise.
But that ehhhh... is called playing I think.

Note that those towers simulate docks.
What would be nice is a set of newgrf's that seamlessly integrates dock, quay(object), and station tiles. and.. plain water tiles that are objects (man that would be awesome)
Disclaimer: I hardly have experience with newgrf so correct me if I am wrong.
Regards
P.S I did not have time to play with juano's branche but I will.
I am curious to see how that airport thing of him works.
- Attachments
-
- harb.png (177.7 KiB) Viewed 2188 times
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
This line in yapf_ship.cpp did that trick.wallyweb wrote: Observations: For the ships to tie up alongside the docks rather than shoving a bow into a dock, they have to be able to approach the docks at an angle. You will see both effects in the saved game.
Trackdir park_dir = DiagDirToDiagTrackdir(enterdir);
return ((trackdirs & TrackdirToTrackdirBits(park_dir)) != 0) ? park_dir : FindFirstTrackdir(trackdirs);

Wallyweb to make your channels.grf work I needed to create a folder _Mystuff and inside that a folder Dev and inside that folder I had to put your graf.
But I see that you got the hang of it.

Re: New map features
Wut?HackaLittleBit wrote:Wallyweb to make your channels.grf work I needed to create a folder _Mystuff and inside that a folder Dev and inside that folder I had to put your graf.

OpenTTD saves the location of a GRF? I did not know that. I organize my GRFs into folders so that I can keep track of who did what. I guess I'm going to have to move them out of the folders and up to the newgrf folder when I need to use them in a game saved for distribution.

Yuk!
Thanks for catching that for me.
Did you find the marico grf in the MB folder?
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
Yup.wallyweb wrote:Did you find the marico grf in the MB folder?
Another bug squash.
When ship went for service dock reservation was not released.
Just put on top of previous patches.
- Attachments
-
- Cirdan-clone_26121_service_bug.patch
- (1.76 KiB) Downloaded 218 times
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: New map features
That´s exactly what my goals are with MariCo and NewStations, see some pictures over here.HackaLittleBit wrote: What would be nice is a set of newgrf's that seamlessly integrates dock, quay(object), and station tiles. and.. plain water tiles that are objects (man that would be awesome)
O/c, the age-old problems are/were the limitations with TTD´s ships and docks. Many years ago, Richk67 started work on "new harbours", i.e. a full action0/1/2/3 implementation of docks and a state machine like that for airports. As for that old project, I´m ready today to provide any graphics needed for dock/harbour improvements.
regards
Michael
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
Ok Michael that is stunning.
Worst, now I realize what Cirdan s intending to do with his dockbuoy.
You do not need a very static state machine.
The solution is very simple.
You make with objects or stations your dock environment.
Then in the places (water) where you would like to load/unload you make a DockBuoy.
E voila things would work.(me stupid by not seeing this
)
So I only need to change some things in my patch to make this work.
I need some time to contemplate, but I think it is the right approach.
Thanks
Worst, now I realize what Cirdan s intending to do with his dockbuoy.
You do not need a very static state machine.
The solution is very simple.
You make with objects or stations your dock environment.
Then in the places (water) where you would like to load/unload you make a DockBuoy.
E voila things would work.(me stupid by not seeing this

So I only need to change some things in my patch to make this work.
I need some time to contemplate, but I think it is the right approach.
Thanks
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: New map features
Yes, I did understand when following the discussion. Initially, this was the idea behind Richk67´s plans for implementing customizable airports and harbours. Many years ago.HackaLittleBit wrote: You do not need a very static state machine. [...]
Meanwhile, for building harbours we can get away with a proper implementation of "multiple docks" per station, and a set of objects, showing harbour infrastructure. It´s not even needed to have different graphics for docks (which would require implementing a set of "actions"), but again, we could get away with one single general tile for the dock itself, and leave everything else for a set of objects.
regards
Michael
Re: New map features
Under TTDPatch the docking buoy was built by holding Ctrl while placing the navigation buoy.HackaLittleBit wrote:Then in the places (water) where you would like to load/unload you make a DockBuoy.
With New Map Features cirdan's solution is remarkably more simple ... Just build a dock directly on a water tile. The Ctrl function opens the Join Station GUI.
Perhaps an Alt or Shift function could be added: Hold Ctrl + Alt while building a dock on a water tile to open the Join Station GUI and produce HackaLittleBit's mooring buoy attached to a station.
Docking Buoy:
- Build dock on water ==> independent station
- Build dock on water + Ctrl ==> Joined station
Mooring Buoy:
- Build dock on water + Ctrl + Alt ==> Mooring buoy joined to station
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Who is online
Users browsing this forum: Google [Bot] and 9 guests