New map features
Moderator: OpenTTD Developers
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
Small patch to keep track of the ordering of the docks in the harbour. See foto.

- Attachments
-
- dock numbers_26124.patch
- (3.8 KiB) Downloaded 223 times
-
- dn.png (152.06 KiB) Viewed 2519 times
Re: New map features
First I successfully applied your Organise_ship_docking patch.HackaLittleBit wrote:Small patch to keep track of the ordering of the docks in the harbour.
Then I applied your dock numbers_26124.patch and got this:
and then I figured it out ... MinGW read the space in your patch name as a new line or some such.MinGW wrote:sh: dock: No such file or directory
Bad bad MinGW does not like spaces in it's lunch.
Adding an underscore worked: dock_numbers_26124.patch
MinGW is happy now.

Make is acookin' and lunch will be up within 30 minutes or so.
A Win32 binary lunch is ready: and a sampling from our kitchen:
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
Here is the binary with JGR's tracerestrict-cidan, Hackalitlebit's docks by the numbers and notafrog's favourite free bridge:
and some "what-you-see-is-what-you-get":
Enjoy,

and some "what-you-see-is-what-you-get":
Enjoy,

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
Waiting bouy ready!
Wally it is better to apply the 4 patches again.(zipfile below)
I hope you don't have problems with savegames.(I didn't)
Docks (yes the ones with 2 tiles) can only be used for loading and unloading.
Dockbuoy's can be transformed into a waiting buoy or for loading unloading.
You need to click on the label and press ctrl.
By doing so you will roll trough all possible states.
See below foto.
Patches included in zipfile.
Note that instead of using bool var (reserved) now a flag (dockstatus) is used!!
Wally it is better to apply the 4 patches again.(zipfile below)
I hope you don't have problems with savegames.(I didn't)
Docks (yes the ones with 2 tiles) can only be used for loading and unloading.
Dockbuoy's can be transformed into a waiting buoy or for loading unloading.
You need to click on the label and press ctrl.
By doing so you will roll trough all possible states.
Code: Select all
color codes :
green-green : Ready to receive for loading unloading.
red-green : Reserved for loading unloading.
green-yellow : Ready to receive for waiting.
red-yellow : Reserved for waiting.
Note that instead of using bool var (reserved) now a flag (dockstatus) is used!!
- Attachments
-
- bouy.zip
- (7.9 KiB) Downloaded 265 times
Re: New map features
Can you make the coloured dots larger? On my system they are quite difficult to discern even at maximum zoomHackaLittleBit wrote:Waiting bouy ready!
I applied them in the following order:Patches included in zipfile.
26350 then 26351 then 26352 then 26353
Is this ok? Your png image suggests a reverse order.
Here is the Windows 32 bit binary:
NOTE: My MinGW had a hiccup on the first chunk of the first patch (26350), however it seems that MinGW retried and it was ok. The subsequent 3 patches went without issue. So, please run this binary to make sure that nothing broke.
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
When you open /Cirdan-clone/src/lang/english.txt you can find the following lineswallyweb wrote:Can you make the coloured dots larger? On my system they are quite difficult to discern even at maximum zoom
Code: Select all
STR_VIEWPORT_DOCK_GREEN :{GREEN}..{BLACK}{NUM}
STR_VIEWPORT_DOCK_RED :{RED}..{BLACK}{NUM}
STR_VIEWPORT_DOCK_GREEN_YELLOW :{GREEN}.{YELLOW}.{BLACK}{NUM}
STR_VIEWPORT_DOCK_RED_YELLOW :{RED}.{YELLOW}.{BLACK}{NUM}
Like * or º or :
I now used
Code: Select all
STR_VIEWPORT_DOCK_GREEN :{GREEN}::{BLACK}{NUM}
STR_VIEWPORT_DOCK_RED :{RED}::{BLACK}{NUM}
STR_VIEWPORT_DOCK_GREEN_YELLOW :{GREEN}:{YELLOW}:{BLACK}{NUM}
STR_VIEWPORT_DOCK_RED_YELLOW :{RED}:{YELLOW}:{BLACK}{NUM}
Also change your company collor for more contrast.
Correct. Uh... I didn't think about it, but that is how I see it on my screen.wallyweb wrote:I applied them in the following order:
26350 then 26351 then 26352 then 26353
Hmmm I'll check it out here.wallyweb wrote:NOTE: My MinGW had a hiccup
Hold on.
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: New map features
wallyweb wrote: NOTE: My MinGW had a hiccup

Its time to start branching.
Clean patch below
apply in reversed order. Tested 2x and compiled 2x

- Attachments
-
- buoys2.zip
- (7.91 KiB) Downloaded 255 times
Re: New map features
Aha! I will experiment with an assortment of characters.HackaLittleBit wrote:Just change the dots to another character.wallyweb wrote:Can you make the coloured dots larger? On my system they are quite difficult to discern even at maximum zoom
This is a little more difficult. Players select a company colour for a reason. My own preference is orange because it shows up well for me. Another player may prefer red or white for a similar reason, or for any reason they deem to be valid.Also change your company collor for more contrast.
/me pauses productivity.Hmmm I'll check it out here.wallyweb wrote:NOTE: My MinGW had a hiccup
Hold on.
Back with a fresh binary in about an hour,Clean patch below

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
MinGW says ...
Here are the yapf_ship files:
/me pauses productivity
Code: Select all
$ patch -p1 < Cirdan-clone_26346.patch
patching file src/pathfinder/opf/opf_ship.cpp
patching file src/pathfinder/yapf/yapf_ship.cpp
Hunk #1 FAILED at 48.
Hunk #2 succeeded at 104 (offset -3 lines).
Hunk #3 succeeded at 230 (offset -3 lines).
1 out of 3 hunks FAILED -- saving rejects to file src/pathfinder/yapf/yapf_ship.
cpp.rej
patching file src/saveload/afterload.cpp
patching file src/saveload/saveload.cpp
patching file src/saveload/station_sl.cpp
patching file src/ship_cmd.cpp
patching file src/station_base.h
Hunk #3 succeeded at 537 (offset 27 lines).
patching file src/vehicle.cpp
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
Did you update your branche from cirdan?
His last commit is:
Fix old map array tunnel head conversion 7 days ago.
here
I checked your reject.
But that should be easy
open file yapf_ship.cpp
and replace lines (somewere near line 50)
with
And I made clean clone of cirdan and the patch applies without problems
His last commit is:
Fix old map array tunnel head conversion 7 days ago.
here
I checked your reject.
But that should be easy
open file yapf_ship.cpp
and replace lines (somewere near line 50)
Code: Select all
- , m_dest_tile (depot ? INVALID_TILE :
- ship->current_order.IsType (OT_GOTO_STATION) ?
- m_dest_station->GetClosestTile (ship->tile, m_dest_station->dock_area) :
- ship->dest_tile)
with
Code: Select all
, m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
Re: New map features
I tried but I couldn't get Git clone to point to his testing branch.HackaLittleBit wrote:Did you update your branche from cirdan?
His last commit is:
Fix old map array tunnel head conversion 7 days ago.
I'll apply your fix and see what happens.I checked your reject.
But that should be easy
Now, how do I get Git to clone from his testing branch?
Hmm ... So now we will have
Code: Select all
- , m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
+ , m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)

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
I pull from herewallyweb wrote:Now, how do I get Git to clone from his testing branch?
git://repo.or.cz/openttd/fttd.git
Re: New map features
So did I and that got me the regular repo. Now I just got brilliance and determined that the branch name is testing and I put that into Git clone's branch field and that worked.HackaLittleBit wrote:I pull from here
git://repo.or.cz/openttd/fttd.git

I'm compiling a clean test branch now, and when that is done I will compile another with your patches. Look for results in about an hour or two.

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
You know, for a long time I refused to buy a new computer.
I used many years ago system 36 and system 1 IBM
We had 60 terminals on 750 kb of memory.
Yeahhhhh.
So I was happy with my eee pc + 2 MB of memory. (massive machine) windows xp
My son grew up and started to laugh at me.
Anyway after much arguing he managed to take me to the shop.
He showed me a machine with 4000k screen Nvidia board etc etc. quadcore etc etc etc.
I tell you, he was right
The difference is incredible.
I compile openttd in less than a minute. Instead of 15.
4000k screen is like reading a book.
Don't be a grumpy old man, spend the money!
Regards
I used many years ago system 36 and system 1 IBM
We had 60 terminals on 750 kb of memory.
Yeahhhhh.
So I was happy with my eee pc + 2 MB of memory. (massive machine) windows xp
My son grew up and started to laugh at me.
Anyway after much arguing he managed to take me to the shop.
He showed me a machine with 4000k screen Nvidia board etc etc. quadcore etc etc etc.
I tell you, he was right
The difference is incredible.
I compile openttd in less than a minute. Instead of 15.
4000k screen is like reading a book.
Don't be a grumpy old man, spend the money!

Regards
Re: New map features
Having finally figured out how to pull from cirdan's testing branch, here is the bare and naked, unmodified Windows 32bit binary:cirdan wrote:I have just resurrected my testing branch with an update that fixes a crash when loading games with the old map array (reported by HackaLittleBit). If everything goes well and no other bugs appear, I will merge this branch to my master branch in a few days.
Moving on to HackalitleBit's patches, MinGW now gives me:
Code: Select all
$ patch -p1 < Cirdan-clone_26346.patch
patching file src/pathfinder/opf/opf_ship.cpp
patching file src/pathfinder/yapf/yapf_ship.cpp
patch: **** malformed patch at line 40: @@ -107,7 +104,7 @@
About five years ago I spent close to $2000 on a brand new HP lappy, the big one with a big screen, triple core performance and Windows 7. Yeahhhhh.HackaLittleBit wrote:Don't be a grumpy old man, spend the money!![]()
Sometime last year, when it was well out of warranty, it smoked its on-board graphic chip. Result: One motherboard reduced to scrap!
So I resurrected my reliable old Dell single core XP box and muddled along until I had the $150 I needed for a used A-Open dual core XP box which is where I am and remain until I can raise $500 for something with more cores and with absolutely NO Windows 10.
It could be worse. I could always go back to my still running IBM P/S 1 with Windows 3.1

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
Wally see below patch
I manually edited it.
Don't apply the patch just look at the differences.
Change manually this line (51)
Into
I applied my patches and indeed it is the only problem I encountered.
I all depends on which branch is active.
I manually edited it.
Don't apply the patch just look at the differences.
Change manually this line (51)
Code: Select all
, m_dest_tile (depot ? INVALID_TILE : ship->current_order.IsType(OT_GOTO_STATION) ? m_dest_station->GetClosestTile(ship->tile, STATION_DOCK) : ship->dest_tile)
Code: Select all
, m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
I all depends on which branch is active.
- Attachments
-
- temp_26346.patch
- (2.13 KiB) Downloaded 236 times
Re: New map features
I only have a plain text editor (NoteTab Light) so I do not see the line numbers.
It is followed by this line:
so if I make your suggested change, I will have:
Wouldn't it be easier to just send me your revised patch rather than I make the changes by hand?
This is the closest line that I have and it is different from the one that you have:HackaLittleBit wrote:Wally see below patch
I manually edited it.
Don't apply the patch just look at the differences.
Change manually this line (51)Code: Select all
, m_dest_tile (depot ? INVALID_TILE : ship->current_order.IsType(OT_GOTO_STATION) ? m_dest_station->GetClosestTile(ship->tile, STATION_DOCK) : ship->dest_tile)
Code: Select all
- , m_dest_tile (depot ? INVALID_TILE :
- ship->current_order.IsType (OT_GOTO_STATION) ?
- m_dest_station->GetClosestTile (ship->tile, m_dest_station->dock_area) :
- ship->dest_tile)
Code: Select all
+ , m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
Code: Select all
- , m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
+ , m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
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:Wouldn't it be easier to just send me your revised patch rather than I make the changes by hand?

Anyway
Here is a pic of the harbour of Singapore.
This is the reality there. And below the 4 patches that you need.
They go above the commit from cirdan of 5 months ago.
Changeset: 25986 (65a280a61037) Make BreakIndustryChainLink an ordinary function …
I am on linux now and never going back.wallyweb wrote:I only have a plain text editor (NoteTab Light) so I do not see the line numbers
On windows one of the best tools for editing is NOTEPAD++
With this you can read c++ and patches and lots more.
EDIT
I see now that Kdevelop has a version for windows!!!
Here you can download it.
I know that more devellopers here use this IDE
I really like it, highly recomended.
I do not know how to set up things for windows.
Here are the instructions
- Attachments
-
- singapore2.png (310.19 KiB) Viewed 2519 times
-
- organised_harbor_movement.zip
- (7.84 KiB) Downloaded 243 times
Re: New map features
So when are you going to make a scenario of the real thing?HackaLittleBit wrote:This is the reality there.

And below the 4 patches that you need.

Ok ... We're done with cirdan's test push then ...They go above the commit from cirdan of 5 months ago.
I was on Linux, many distros, many times ... Red Hat, Mandrake, and whatever the latest one is ... I forget the name ... I may go back when I get a better PC, but for now I'm not messing with partitions etc.I am on linux now and never going back.
Actually I can do all that with NoteTab Light. I'm just too busy lazy to poke around the app.On windows one of the best tools for editing is NOTEPAD++
With this you can read c++ and patches and lots more.
I'll look into it, but it would probably just sit there taking up space.I see now that Kdevelop has a version for windows!!!
Here you can download it.
I know that more devellopers here use this IDE
I really like it, highly recomended.
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
OK ... Here we go ...
Windows 32bit cirdan's push with HackalittleBit's mod: Windows 32bit JGR's tracerestrict-cirdan with HackalittleBit's mod and cirdan's free-bridge diff and a little mod of my own:
A little screenshot showing my mod:
An observation: If a second ship joins the waiting ship, the waiting buoy's symbols change to reservation available.
All in all, this is really neat.

Windows 32bit cirdan's push with HackalittleBit's mod: Windows 32bit JGR's tracerestrict-cirdan with HackalittleBit's mod and cirdan's free-bridge diff and a little mod of my own:

All in all, this is really neat.

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: No registered users and 8 guests