Busstop Picture / Dev Topic

Get help, info, news and advice about the Transport Tycoon Deluxe patch.

Moderator: TTDPatch Moderators

User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

iranair777 wrote:can somebody give me the link, cause I havn't seen it anywhere
The link to what?
iranair777
Traffic Manager
Traffic Manager
Posts: 163
Joined: 13 Apr 2007 21:18

Post by iranair777 »

wallyweb wrote:
iranair777 wrote:can somebody give me the link, cause I havn't seen it anywhere
The link to what?
to the drive through bus stop :)
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

iranair777 wrote:
wallyweb wrote:
iranair777 wrote:can somebody give me the link, cause I haven't seen it anywhere
The link to what?
to the drive through bus stop :)
Drive Through Bus Stop (And Drive Through Truck Stop too) graphics are part of the patch and do not require additional grf's. Just open the Bus Stop Construction tool and you will see drive through bus stops as one of the options.
Which version of the patch are you using? You might need to upgrade.
If you are using OTTD instead of the patch then you should ask your question in the OTTD section as they are more qualified to respond to OTTD question.
iranair777
Traffic Manager
Traffic Manager
Posts: 163
Joined: 13 Apr 2007 21:18

Post by iranair777 »

wallyweb wrote:
iranair777 wrote:
wallyweb wrote:The link to what?
to the drive through bus stop :)
Drive Through Bus Stop (And Drive Through Truck Stop too) graphics are part of the patch and do not require additional grf's. Just open the Bus Stop Construction tool and you will see drive through bus stops as one of the options.
Which version of the patch are you using? You might need to upgrade.
If you are using OTTD instead of the patch then you should ask your question in the OTTD section as they are more qualified to respond to OTTD question.
thanks, but which patch? ive searched the post and havnt found anything
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

iranair777 wrote:
wallyweb wrote:
iranair777 wrote: to the drive through bus stop :)
Drive Through Bus Stop (And Drive Through Truck Stop too) graphics are part of the patch and do not require additional grf's. Just open the Bus Stop Construction tool and you will see drive through bus stops as one of the options.
Which version of the patch are you using? You might need to upgrade.
If you are using OTTD instead of the patch then you should ask your question in the OTTD section as they are more qualified to respond to OTTD question.
thanks, but which patch? ive searched the post and havnt found anything
Are you serious? The patch that you use to play the game of course. The patch that is available here.

EDIT: Just in case you are not familiar with the availability of Beta versions of the patch, you will need to click on "source code" in the menu on the left where I recommend reading EVERYTHING so that you can get all the latest and greatest features available.
Last edited by wallyweb on 14 Apr 2007 17:11, edited 1 time in total.
iranair777
Traffic Manager
Traffic Manager
Posts: 163
Joined: 13 Apr 2007 21:18

Post by iranair777 »

yeah im using OTTD
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Post by wallyweb »

iranair777 wrote:yeah im using OTTD
Then try your question in the OTTD section here
iranair777
Traffic Manager
Traffic Manager
Posts: 163
Joined: 13 Apr 2007 21:18

Post by iranair777 »

wallyweb wrote:
iranair777 wrote:yeah im using OTTD
Then try your question in the OTTD section here
k thanks
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Busstop update - customizable graphics via action 5

Post by minime »

I've played around a little with the current bus stop implementation and after getting some inspiration from Steven's trams, I've succeeded in implementing Action 5 support for road side RV stops (type 0x11).

This should be mostly compatible with the OTTD implementation. I've used the same order of sprites as can be found in roadstops.grf, however, they require somewhat modified offsets due to the way I've defined the station layouts.

I've bumped the base graphics file version and updated the file to contain the necessary basic sprites. While I was doing this, I also took the chance to fix a small problem with sprite 1027 in those files (sprite size was incorrect).

Attached is a diff of the relevant changes against trunk (r1584). Please let me know if there's anything more that needs to be do done with that, or whether it's ok to commit.

Regards,
minime

EDIT: Removed TTDPBASE[W] archive from this post, for updated version see this post.
Attachments
custom_roadside_stops.diff
Diff against r1584.
(6.29 KiB) Downloaded 273 times
Screens from the game.
Screens from the game.
roadside_stops_demo.png (26.82 KiB) Viewed 6493 times
Last edited by minime on 17 Jun 2007 16:58, edited 1 time in total.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1790
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Hmm, doesn't modifying the offsets mean the feature is essentially incompatible between OTTD and Patch?
He's like, some kind of OpenTTD developer.
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post by minime »

I believe the reason for the offsets requiring some manipulation is the way I've defined bounding boxes for the layout. The way I have them defined, they allow the graphics to span the entire length of the tile, as opposed to what I assume are tighter bounding boxes in OTTD (I haven't check the code there yet), which seem to be specifically tuned for the standard OTTD graphics. In my opinion it is better to be a little more generous when specifying the bounding box, especially considering that the real purpose of this feature is to allow customization.

I do realize that this makes the two implementations somewhat incompatible, but considering that there are many subtle differences between the requirements of the two games, I don't consider it that much of a problem for this first implementation (as long as it is accurately documented).

In my defence, I'd like to point out that a similar issue exists with OTTD's support of railroad catenary. I remember that when I was working on CSRailSet, I had to adjust the offsets by several pixels in order to achieve the same graphical result in OTTD as I got in TTDP.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1790
Joined: 30 Mar 2005 09:43

Post by peter1138 »

The catenary is buggy, yes, and I need to fix that. Don't rely on this misbehaviour.

But for drive through stops, it probably would make sense to apply your changes to the offsets to OpenTTD.
He's like, some kind of OpenTTD developer.
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post by minime »

Alright, I'll have a look at the code OTTD and let you know when I've got it working in the same way.
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post by minime »

I've adjusted the offsets in OTTD as you requested and corrected the default GRF (attached). Now both games produce the same result with identical graphics and code.

P.S.: I'm posting this here, since it's directly related to the TTDP patch. If someone feels this should go somewhere else, let me know.
Attachments
ottd_roadside_stop_patch+grf.zip
Diff agains OTTD r10171 and corrected roadstops.grf
(2.99 KiB) Downloaded 229 times
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Busstop update - customizable graphics via action 5

Post by DaleStan »

minime wrote:Attached is a diff of the relevant changes against trunk (r1584). Please let me know if there's anything more that needs to be do done with that, or whether it's ok to commit.
Especially for single-line additions, you don't need to add "by <name>" comments. Subversion keeps track of who made what change, and svn blame/TortoiseBlame will give line-by-line listings of who changed each line most recently, and when.
On the other hand, they won't hurt anything, and it's easier to check the source comments than to svn blame.

Other than that, it looks fine; I trust that it actually does what it is supposed to do.
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
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Post by m3henry »

Now which ttdpbase grf did you change, there are new ones churned out recently
The occasional look back at your past can teach you a great many things...
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Re: Busstop update - customizable graphics via action 5

Post by minime »

DaleStan wrote:On the other hand, they won't hurt anything, and it's easier to check the source comments than to svn blame.
I'll try to cut down on that in the future. Part of the reason I was so thorough was to make navigating the code while I was working on it a bit easier. I suppose I could even clean it up a bit before I commit it.
DaleStan wrote:Other than that, it looks fine...
OK, I'll commit it in that case. Thanks.
m3henry wrote:Now which ttdpbase grf did you change, there are new ones churned out recently
The one relevant to r1584 - i.e. the one modified by Lakie on 15/6/2007 for r1583. ;)
Last edited by minime on 17 Jun 2007 13:05, edited 1 time in total.
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

Modified by Pikka? Pikka hasn't modified ttdpbase in quite some time, are you sure you don't mean modified by me?

~ Lakie
Last edited by Lakie on 17 Jun 2007 13:06, edited 1 time in total.
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
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post by minime »

Dooh - of course. Sorry :oops:
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post by minime »

Corrected version of ttdpbase[w].grf - accidentally, I've uploaded files that did not have the version number increased to 4.

Thanks to TrueSatan for letting me know about this.

minime
Attachments
ttdpbase_v4-corrected.zip
Corrected V4 base files
(190.13 KiB) Downloaded 637 times
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
Post Reply

Return to “General TTDPatch”

Who is online

Users browsing this forum: No registered users and 7 guests