Re: New map features
Posted: 04 Mar 2018 10:36
Small patch to keep track of the ordering of the docks in the harbour. See foto.

The place to talk about Transport Tycoon
https://www.tt-forums.net/
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.
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
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.
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.
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}
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}
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
wallyweb wrote: NOTE: My MinGW had a hiccup
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
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
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)
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
Code: Select all
- , m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
+ , m_dest_tile (depot ? INVALID_TILE : ship->dest_tile)
I pull from herewallyweb wrote:Now, how do I get Git to clone from his testing branch?
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
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.
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!![]()
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)
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 wrote:Wouldn't it be easier to just send me your revised patch rather than I make the changes by hand?
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
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.