Buses and trucks are going to tram depot

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
Wile E. Coyote
Tycoon
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

Post by Wile E. Coyote »

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.
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!
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Post by stevenh »

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....
Attachments
connections.png
connections.png (85.01 KiB) Viewed 3029 times
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7427
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Post by Redirect Left »

Hmm, will make sure to do what you do in the diagram :D
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

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.
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Post by stevenh »

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.
Yes, I am using the depot in the GRF.
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.
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

Thanx Steven, obviously with all of you devs nothing is impossible! :D
And Pikka, that would be great :bow: Do you allready have some depot in plan to draw? If not, may I suggest you building?
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!
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Post by michael blunck »

>> 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
Image
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

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/
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

michael blunck wrote:Completely new-styled tram depots should go in the diverse tram sets, IMO.
Yes, now I see you are absolutely right. :)
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!
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

I'll get on it, I'll make something basic and TTD style. :)

It might be a few days as I don't have internet access at home right now.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

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)
Last edited by PikkaBird on 02 Oct 2006 14:04, edited 1 time in total.
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

It gives me the following error :

[TTDPatch 2.6 alpha O r892]
Attachments
SCR1.png
SCR1.png (17.08 KiB) Viewed 2762 times
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

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
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."
User avatar
JGR
Tycoon
Tycoon
Posts: 2605
Joined: 08 Aug 2005 13:46
Location: Ipswich

Both trams and road vehicles only use tram depots

Post by JGR »

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:

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:
...
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]
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

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.
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
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Post by stevenh »

Ass.. I trusted my old variables... how bad on my behalf.
Forgive me and thankyou for the fix JGR.

note: code inserted into nightly as of r903
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

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!
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 6 guests