Page 4 of 26

Posted: 26 Apr 2005 17:09
by Purno
PikkaBird wrote:Image
Damn, these look awesome :!:

Posted: 26 Apr 2005 19:00
by DanMacK
Bastiaan wrote:
DanMacK wrote:Looks like your class 20 is missing the rear deck though :shock:
What rear deck? The Class 20 only has a front deck:
http://www.railfaneurope.net/pix/gb/die ... 0/pix.html

Or do you mean something else?

Bastiaan
Depends which end you consider "Front"... I always thought the cab end was the front. that said. the rear deck extends out one pixel, but there doesn't appear to be a "deck", just frame.

Posted: 26 Apr 2005 23:50
by PikkaBird
Born Acorn wrote:Pikkabird: Why don't you make the game think that the 91 is a dmu so it will be built like the HST 125 and the Sprinter 158 :wink:
You mean double-headed? That was my original plan, but it'd be more realistic to use the override to create DVTs. A "normal" 225 set has a 91 at one end and an unpowered driving car at the other.

Dan, I see what you mean about the deck on the 20.

Posted: 27 Apr 2005 00:06
by DanMacK
PikkaBird, any plans to release this for DOS TTD? TTDWin doesn't work on my PC at work, but the DOS version does :D

Posted: 27 Apr 2005 00:30
by PikkaBird
DanMacK wrote:PikkaBird, any plans to release this for DOS TTD?
If you can explain to me what I need to do, then sure. :lol:

(And btw, strictly speaking the cab of the class 20 is at the back, however they were almost always run "backwards" in service, often coupled in pairs with cabs outwards.)

Posted: 27 Apr 2005 01:31
by DaleStan
PikkaBird wrote:
DanMacK wrote:PikkaBird, any plans to release this for DOS TTD?
If you can explain to me what I need to do, then sure. :lol:

Code: Select all

grfcodec -em 1 <filename>.grf
will make a DOS grf from a Win PCX.

Grr.. Stupid font. That's "dash ee em one"

Posted: 27 Apr 2005 04:13
by PikkaBird
Ok folks, I need a bit of help with overrides. :)

Can someone give me some pointers for overriding graphics in particular cases? Specifically -

1) a locomotive which is neither the first nor last vehicle in the consist.
2) a wagon which is the last vehicle in the consist.

Posted: 27 Apr 2005 04:54
by DaleStan
ITYM "variational graphics", not "override". At least in my dictionary, "override" only applies when an livery override action 3 is involved.

Vehicle variable 40 contains data concerning the length of and location in the consist. It should usually be accessed with variational 2 type 81.
The low byte contains the number of vehicles in front of this vehicle, the second byte contains the number of vehicles behind this vehicle, and the third contains the length of the consist minus one.

1) Check variable 40, with <shift-num>s of 00 and 08 (for first and last, respectively):

Code: Select all

-1*14 02 00 10 81 40 08 FF 01 <Back-GFX> 00 00 00 <Mid-GFX> 00
-1*14 02 00 11 81 40 00 FF 01 <Front-GFX> 00 00 00 10 00
and point the engine's action 3 to ID 11.

2) Check variable 40, with <shift-num> of 08. See the first action 2 above.

Always happy to help someone who's willing to learn.

EDIT: Fixed idiot mistake with type byte.

Posted: 27 Apr 2005 05:20
by PikkaBird
DaleStan wrote:ITYM "variational graphics", not "override". At least in my dictionary, "override" only applies when an livery override action 3 is involved.
Noted. In the case of a wagon it is an override too.. I only want it to apply when it's behind a certain locomotive (this is for the DTV on the Class 91).

Seems straightfoward enough, thankyou. :)

Posted: 27 Apr 2005 06:32
by PikkaBird
Hmm,

Well I have been reading through the Wiki, and I'm still having trouble working out exactly how the variational action 2s work.

With the code as-is, I'm just always getting the graphic specified at <Front-GFX> in your example code.

here are my action 2s and 3s.

Code: Select all

   91 * 9	 02 00 03 01 01 00 00 00 00
   92 * 9	 02 00 04 01 01 01 00 01 00
   93 * 14	 02 00 10 82 40 08 FF 01 03 00 00 00 04 00
   94 * 14	 02 00 11 82 40 00 FF 01 03 00 00 00 10 00
   95 * 7	 03 00 01 0C 00 11 00
   96 * 7	 03 00 81 1B 00 1A 00
   97 * 8	 03 00 82 1C 25 00 1B 00
Line 91 (graphic 03) is the head/tail graphic.
Line 92 (graphic 04) is the centre car graphic.
Lines 93 and 94 are the variational action 2s.
Line 95 is the loco's action 3.
Lines 96 and 97 are wagon overrides, included just in case they're having some effect I'm not aware of.

At the moment, I'm just changing the values in the var action 2s, hoping to get some sort of effect. When I can find a pattern, then I'll try and work it out. ;)

Posted: 27 Apr 2005 06:43
by Raichase
Good luck with your coding Pikka - the work done so far is breathtaking!

Posted: 27 Apr 2005 08:13
by DaleStan
:oops::oops::oops::oops::oops::oops: (*hides*)

I got 81/82 backwards. Change the types of both action 2s to 81 instead. (previous post edited)

OT:
*rummage*
I knew it was in there somewhere. It's variable 42 that you usually want to access with a type 82.

Posted: 27 Apr 2005 08:41
by PikkaBird
:D

Works a treat. Thankyou!

Posted: 27 Apr 2005 10:01
by PikkaBird
Updated with MUs, see first post. :)

I also got the DVT working with surprisingly little trouble.

DOS version coming up :O

Posted: 27 Apr 2005 10:49
by Aegir
Nice work. Very nice.

Posted: 27 Apr 2005 11:48
by PikkaBird
Okay, DOS version (in theory) uploaded. :) See first post.

Posted: 27 Apr 2005 21:22
by nilsi
I love the new stone bridge,
can I get permission to make a sandstone one, as they are common
in east Saxony (i.e. here :-)

Posted: 28 Apr 2005 02:43
by PikkaBird
nilsi wrote:I love the new stone bridge,
can I get permission to make a sandstone one, as they are common
in east Saxony (i.e. here :-)
Sure. :)

Posted: 28 Apr 2005 03:05
by DanMacK
:shock: Looking great man! Can't wait do see how this set goes.

One large void I noticed however is an early freight locomotive aside from the 0-6-0T. With a FreightTrains setting above 2, that little loco is pretty weak :D

Maybe an 0-8-0 as illustrated below?

Posted: 28 Apr 2005 07:01
by PikkaBird
DanMacK wrote:Maybe an 0-8-0 as illustrated below?
Ah, the LNWR Super-D. I was going to make that one for Lomo at one point. :oops:

I suppose it could be done. :)