Article View: alt.games.microprose.transport-tyc
Article #27900Re: Call backs tutorials or any help at all!
From: Michael Blunck
Date: Wed, 25 Aug 2004 09:21
Date: Wed, 25 Aug 2004 09:21
43 lines
2518 bytes
2518 bytes
Ronnie Clark wrote: > One thing I was wondering is is it now possible (using callbacks or > otherwise) to differentiate between graphics that appear in windows > in the game and those actually on the track? I´m not really shure what you´re talking of, but I´d say "no" in general ... but "yes" in that special case to follow. :) [shifting vehicles vertically] > The problem is, in all the windows, the coaches appear about three > pixels too high, and in the depot window, they're about 2 pixels > too long. > > Is they're any way around this, or is it a case of that if you want > the on-track graphics to work, you have to put up with the rest? There´s a (relatively) new feature of the patch which deals exactly with that problem. In fact it has been developed by Josef for the DB set XL which implemented "driving on tracks" for the first time. Only thing you´d have to do would be to include the special patch command: -1 * 9 0D 8E 00 FF FF 02 00 00 00 before your vehicles´ definitions. This will result in shifting vehicles up two pixels in train windows. This is essentially an "action 0D" (set parameter value) which sets the special variable "8E" (how many pixels to displace sprites in train windows) to "2". See "action 07/09" and "action 0D" for details. BTW, there´s another useful thing to do, namely to reset the ordering scheme of vehicles which could have been possibly changed by a prior .grf file: -1 * 6 00 00 01 00 00 1A resets the ordering scheme for vehicles to the default (0 ... FF). This command should be also issued before all vehicle specific actions. regards Michael
Technical Details
Message-ID:
<2p33vnFgdverU1@uni-berlin.de>Path:
mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<cgg63h$rph$1@newsg3.svr.pol.co.uk> <2p1oquFg425dU1@uni-berlin.de> <cggt09$gk3$1@newsg2.svr.pol.co.uk>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Michael Blunck" <michael.blunck@ewetel.net> Newsgroups: alt.games.microprose.transport-tyc Subject: Re: Call backs tutorials or any help at all! Date: Wed, 25 Aug 2004 11:21:32 +0200 Lines: 44 Message-ID: <2p33vnFgdverU1@uni-berlin.de> References: <cgg63h$rph$1@newsg3.svr.pol.co.uk> <2p1oquFg425dU1@uni-berlin.de> <cggt09$gk3$1@newsg2.svr.pol.co.uk> Mime-Version: 1.0 X-Trace: news.uni-berlin.de yQe3LISHAel3vYPD13OOcw+EjD93JmswBmxMDp47yD0XM3NpSJ X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit