Buses and trucks are going to tram depot
Moderator: TTDPatch Moderators
- Wile E. Coyote
- Tycoon
- Posts: 8515
- Joined: 08 Jul 2004 22:14
- Skype: wile.e.coyote2
- Location: Belgrade, Serbia
- Contact:
Buses and trucks are going to tram depot
With Patch 2.5.7 (and previous) when I want to replace bus or truck and send them to depot, they also go to tram depot and stop there. Of course, I can't purchase new bus or truck there.
I'll add configs if they are needed.
I'll add configs if they are needed.
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
Wile, I promise I'm still alive.... though a little off-the-radar.
This bug has been repaired in the next nightly (version >= 881) . [ie. the vehicles will no longer attempt to search for the wrong depot type, they'll only aim for the proper depots!]
Unfortunately, I haven't stopped the vehicles from driving into the wrong depots, they'll still drive into them if they have no orders and the tracks/roads are connected.
Actually, they wouldn't have been able to get into the wrong depots if there was no 'wrong' track/road built up against them. See the picture....
This bug has been repaired in the next nightly (version >= 881) . [ie. the vehicles will no longer attempt to search for the wrong depot type, they'll only aim for the proper depots!]
Unfortunately, I haven't stopped the vehicles from driving into the wrong depots, they'll still drive into them if they have no orders and the tracks/roads are connected.
Actually, they wouldn't have been able to get into the wrong depots if there was no 'wrong' track/road built up against them. See the picture....
- Attachments
-
- connections.png (85.01 KiB) Viewed 3029 times
- Redirect Left
- Tycoon
- Posts: 7427
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
Yes, I am using the depot in the GRF.PikkaBird wrote:Are you actually using the tram depot graphics supplied in the tramtrack grf, steven? If so, I should probably make the tram depot look different if it can't be used for road vehicles, to minimise confusion.
I was going to get back to you on this... I had plans... oh I had plans... of double-decker depots and the like... back in the day... but a change in ground tile was sufficient.
An update to the tram depot would be sweet.
- Wile E. Coyote
- Tycoon
- Posts: 8515
- Joined: 08 Jul 2004 22:14
- Skype: wile.e.coyote2
- Location: Belgrade, Serbia
- Contact:
Thanx Steven, obviously with all of you devs nothing is impossible!
And Pikka, that would be great
Do you allready have some depot in plan to draw? If not, may I suggest you building?

And Pikka, that would be great

Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
>> I should probably make the tram depot look different [...]
> Do you allready have some depot in plan to draw? If not, may I suggest you building?
Because that tram depot would be in the "official" version of ttdpbase.grf, it should be nothing "special", i.e. different building style, alien colours, etc. pp., but stay in the well-known TTD-style (which is still the baseline of the game) as close as possible (probably change a small number of pxs only).
Completely new-styled tram depots should go in the diverse tram sets, IMO.
regards
Michael
> Do you allready have some depot in plan to draw? If not, may I suggest you building?
Because that tram depot would be in the "official" version of ttdpbase.grf, it should be nothing "special", i.e. different building style, alien colours, etc. pp., but stay in the well-known TTD-style (which is still the baseline of the game) as close as possible (probably change a small number of pxs only).
Completely new-styled tram depots should go in the diverse tram sets, IMO.
regards
Michael
i think weve switched the rv depot gfx to the tto ones so maybe its just make the tram ones the old TTD ones.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
- Wile E. Coyote
- Tycoon
- Posts: 8515
- Joined: 08 Jul 2004 22:14
- Skype: wile.e.coyote2
- Location: Belgrade, Serbia
- Contact:
Yes, now I see you are absolutely right.michael blunck wrote:Completely new-styled tram depots should go in the diverse tram sets, IMO.

Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Okay, try this one, if it will upload on this dialup. I added an electric substation to the roof of the tram depot.
(attachments removed as they may be out of date and I don't want people finding them - download ttdpbase(w).grf from the patch site)
(attachments removed as they may be out of date and I don't want people finding them - download ttdpbase(w).grf from the patch site)
Last edited by PikkaBird on 02 Oct 2006 14:04, edited 1 time in total.
It gives me the following error :
[TTDPatch 2.6 alpha O r892]
[TTDPatch 2.6 alpha O r892]
- Attachments
-
- SCR1.png (17.08 KiB) Viewed 2762 times
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)

Still the best OS around
Still the best OS around
Yes, because I altered ttdpbase[w].grf to have the clonetrain cursor.
Please download the new version of ttdpbase[w].grf (from the patch website), and sorry for the inconviance.
[edit] Or atleast thats the last commit which actually alter the ttdpbase[w].grf version data.
~ Lakie
Please download the new version of ttdpbase[w].grf (from the patch website), and sorry for the inconviance.

[edit] Or atleast thats the last commit which actually alter the ttdpbase[w].grf version data.
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Both trams and road vehicles only use tram depots
Both trams and road vehicles only use tram depots in the latest nightly (and one or two earlier).
I couldn't understand why my buses refused to go to depots and hadn't been serviced for up to ten years
, causing 0% reliability, etc...
This was temporarily solved by building tram depots, which they were quite happy to go to.
Trams behaved correctly.
The reason is that the variable tramVehPtr, is never -1 as tested by line 2060 of the procedure checkIfDepotIsTramDepot as it is unconditionally set in procedures newSendVehicleToDepot and newSendVehicleToDepotAuto prior to indirectly calling the depot checking code, to the current vehicle pointer.
I would suggest that some code to check whether the vehicle which is supposed to be a tram really is, be inserted after the first check.
Such that the procedure becomes something like:
which works as expected.
Inserted tram checking code copied from somewhere else in the trams.asm file.
Keep up the good work Steven and the other patch devs, your work is certainly appreciated.[/u]
I couldn't understand why my buses refused to go to depots and hadn't been serviced for up to ten years

This was temporarily solved by building tram depots, which they were quite happy to go to.
Trams behaved correctly.
The reason is that the variable tramVehPtr, is never -1 as tested by line 2060 of the procedure checkIfDepotIsTramDepot as it is unconditionally set in procedures newSendVehicleToDepot and newSendVehicleToDepotAuto prior to indirectly calling the depot checking code, to the current vehicle pointer.
I would suggest that some code to check whether the vehicle which is supposed to be a tram really is, be inserted after the first check.
Such that the procedure becomes something like:
Code: Select all
checkIfDepotIsTramDepot:
cmp dword [tramVehPtr], 0FFFFFFFFh
je .isRoadVehicle
[u]push esi
mov esi, [tramVehPtr]
movzx esi, byte [esi+veh.vehtype]
test byte [vehmiscflags+esi], VEHMISCFLAG_RVISTRAM
pop esi
jz .isRoadVehicle[/u]
push ebx
add ebx, edi
cmp byte [landscape3 + ebx * 2], 1
pop ebx
je .normalDepotCheck
mov al, 0
retn
.isRoadVehicle:
...
Inserted tram checking code copied from somewhere else in the trams.asm file.
Keep up the good work Steven and the other patch devs, your work is certainly appreciated.[/u]
Looks good to me too.
I think this is "only" your second bugfix, but then again, two bugfixes in twenty-two posts is somewhat above average.
I think this is "only" your second bugfix, but then again, two bugfixes in twenty-two posts is somewhat above average.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- Wile E. Coyote
- Tycoon
- Posts: 8515
- Joined: 08 Jul 2004 22:14
- Skype: wile.e.coyote2
- Location: Belgrade, Serbia
- Contact:
I use grf with Patch 2.5.8 and all is working OK.
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Who is online
Users browsing this forum: No registered users and 6 guests