UK Renewal Train Set [1.4 release 4/12]

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

PikkaBird wrote:Image
Damn, these look awesome :!:
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
DanMacK
Tycoon
Tycoon
Posts: 3906
Joined: 27 Feb 2004 20:03
Location: Ontario, Canada
Contact:

Post 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.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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.
User avatar
DanMacK
Tycoon
Tycoon
Posts: 3906
Joined: 27 Feb 2004 20:03
Location: Ontario, Canada
Contact:

Post 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
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

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

Post 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"
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
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

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

Post 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.
Last edited by DaleStan on 27 Apr 2005 08:12, edited 1 time in total.
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
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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. :)
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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. ;)
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

Good luck with your coding Pikka - the work done so far is breathtaking!
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post 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.
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
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

:D

Works a treat. Thankyou!
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Updated with MUs, see first post. :)

I also got the DVT working with surprisingly little trouble.

DOS version coming up :O
User avatar
Aegir
Tycoon
Tycoon
Posts: 2883
Joined: 09 Feb 2004 10:02
Contact:

Post by Aegir »

Nice work. Very nice.
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Okay, DOS version (in theory) uploaded. :) See first post.
nilsi
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 20 Nov 2002 16:20
Location: Dresden, Germany

Post 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 :-)
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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. :)
User avatar
DanMacK
Tycoon
Tycoon
Posts: 3906
Joined: 27 Feb 2004 20:03
Location: Ontario, Canada
Contact:

Post 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?
Attachments
LMS 0-8-0 - Photo from [url=http://www.webpraxis.ab.ca/vrr/]The Virtual Railroad[/url]
LMS 0-8-0 - Photo from [url=http://www.webpraxis.ab.ca/vrr/]The Virtual Railroad[/url]
VR9032.jpg (54.93 KiB) Viewed 3562 times
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post 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. :)
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 18 guests