8/32bpp Trains 2CC - Release topic

Find and discuss all the latest NewGRF releases for TTDPatch and OpenTTD here.

Moderator: Graphics Moderators

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

8/32bpp Trains 2CC - Release topic

Post by Xotic750 » 30 Mar 2012 08:15

*******************************************************************************
8/32bpp Trains 2CC
*******************************************************************************

Version
=======

Current release is Version 2 (2012-04-10).

Description
===========

This NewGRF replaces the OpenTTD base train sprites with a 8/32bpp Extra Zoom 2CC version
of the graphics and adds extra functionality through the setting of the NewGRF
parameters.

Current Trains and Wagons
=========================

Manley-Morel DMU
Dash
SH/Hendry'25'
FLOSS'47'
UU'37'
SH'30'
SH'40'
SH'125'
Passenger Carriage
Mail Van

Parameters
==========

Colour Scheme
-------------

There are 3 colour scheme options:

1) One company colour

In this mode the vehicle emulates 1CC mode by making the 2CC colour always
yellow and the 1CC colour is set by the in-game colour scheme.

2) Two company colours

Both the 1CC and 2CC colours are set by the in-game colour scheme.

3) Real-world colours (User definable)

This selection causes the vehicle colours to become static and unaffected
by the in-game colour scheme. By default the 1CC colour is set to
dark blue and the 2CC colour is set to yellow. The user can change these
using the "Real-world 1CC Colour" and "Real-world 2CC Colour" parameters.

Real-world 1CC Colour and Real-world 2CC Colour
-----------------------------------------------

These 2 parameters are only used when the colour scheme parameter is set to
Real-world colours (User definable). They allow you to choose the 1CC and 2CC
colour of the vehicle from the standard game 16 colour palette.

Sprite Alignment
----------------

This is "OpenGFX" base sprite set by default. Setting it to "OpenGFX+" will
cause the sprite alignment to be offset so that it matches the OpenGFX+ base
sprite set. Setting it to "TTD" will cause the sprite alignment to be offset
so that it matches the TTD base sprite set.

Auto Alignment
----------------

This is set to "Enabled" by default and will adjust the sprite alignment
offsets by detecting other NewGRFs that are in use. If no know NewGRFs are
found to be active then the "Sprite Alignment" parameter will be used.

Sets that are currently detected:

OpenGFX+
UKRS2
UKRTS
Dutch Trains
2CC Trainset
NARS2
NUTS

If set to "Disabled" then only the "Sprite Alignment" parameter will be used.

Visual Effects
--------------

This is "Enabled" by default. Setting it to "Disabled" will cause the visual
effects, such as smoke and sparks, not to be shown.

Sound Effects
-------------

This is "Enabled" by default. Setting it to "Disabled" will cause the sound
effects not to be played.

Model Life
----------

This is "Default" by default. Settitng it to "Never expires" will cause the
vehicle to always be available for purchase regardless of the in-game date.

Temperate
---------

This is "Enabled" by default. Setting it to "Disabled" will cause the vehicle
to be unavailable in the Temperate climate.

Arctic
------

This is "Disabled" by default. Setting it to "Enabled" will cause the vehicle
to be unavailable in the Arctic climate.

Tropical

--------
This is "Disabled" by default. Setting it to "Enabled" will cause the vehicle
to be unavailable in the Tropical climate.

Toyland
-------

This is "Disabled" by default. Setting it to "Enabled" will cause the vehicle
to be unavailable in the Toyland climate.

Availability
============

Bananas
-------

Available in game via the Online Content menu or by going to Bananas directly:
http://bananas.openttd.org/en/newgrf/

GitHub
------

Source code and current release files:
https://github.com/Xotic750/8-32bpp-TRAINS-2CC

Building
========

Building the NewGRF from scratch is a process that requires a number of
tools and scripts to be installed correctly.

You will need nml v0.3 which can be obtained freely from:
http://newgrf-specs.tt-wiki.net/wiki/NM ... ng_started

Follow their install procedures for your particular OS and then continue.

1) Download the project sources using git:

git clone --recursive git://github.com/Xotic750/8-32bpp-TRAINS-2CC.git

2) From the "8-32bpp-TRAINS-2CC/NewGRF" folder execute "compile.sh".
This will create the actual NewGrf.

3) Copy "trains.grf" to you OpenTTD data directory and start OpenTTD.

Credits
=======

All sprites drawn and coded by Graham Fairweather (Xotic750) 2012.

License
=======

This release may be used under the terms of the license: GPLv2
http://www.gnu.org/licenses/gpl-2.0.html

*******************************************************************************
8/32bpp TRAINS 2CC Changelog
*******************************************************************************

Version 2 (2012-04-10)
======================

* Added Manley-Morel DMU
* Added Dash
* Added Passenger Carriage
* Added Mail Van
Attachments
trains.png
Screenshot showing the current available trains
(240.99 KiB) Downloaded 4 times
Last edited by Xotic750 on 11 Apr 2012 03:58, edited 9 times in total.

User avatar
3iff
Tycoon
Tycoon
Posts: 983
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: 8/32bpp SH125 2CC - Release topic

Post by 3iff » 30 Mar 2012 09:32

I'm getting the following when it's parked in the depot. The engine is too high by a few pixels. Looks ok on the track though.
Attachments
Accnor End Transport, 25th Feb 1978.png
Accnor End Transport, 25th Feb 1978.png (174.81 KiB) Viewed 50480 times

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 30 Mar 2012 10:10

I don't think the problem is with my grf but the offsets for the wagons that you are using, do you know what the grf is and I will check.

Below is how it looks for me with the base set graphics and no other wagons grf loaded.
Attachments
in-station.png
Screenshot comparing the SH125 with other base set graphics in the station GUI.
in-station.png (14.93 KiB) Viewed 50470 times

User avatar
FooBar
Tycoon
Tycoon
Posts: 6559
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: 8/32bpp SH125 2CC - Release topic

Post by FooBar » 30 Mar 2012 10:14

Yeah, I don't think that's fixable. The wagons of the base set are too high in the depot window to begin with. Every other grf fixes that for itself, but this fix cannot be applied to a base set. So you either have one of these:
- the train matches the base graphics, but no other newgrf;
- the train matches the other newgrfs, but not the base graphics.

It's up to the newgrf author to decide what's best.

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 30 Mar 2012 10:32

Perhaps for Version 2 I can add a parameter so that the user can choose the alignment to match either the base set graphics or other newgrfs.

User avatar
3iff
Tycoon
Tycoon
Posts: 983
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: 8/32bpp SH125 2CC - Release topic

Post by 3iff » 30 Mar 2012 10:45

Strange. Took out all the newgrfs except yours. I'm using the base set but the wagons are still too low...but I suspect it's your engine that's too high...
Attachments
Unnamed, 1st Jan 1979.png
Unnamed, 1st Jan 1979.png (96.8 KiB) Viewed 50453 times

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 30 Mar 2012 10:55

The graphics that you are showing still don't look like the base set to me. See below for my screenshot.

Did you remove all the grfs and then start a new game or did you load a saved game?
Attachments
base-set.png
Screenshot showing all available base graphics.
(39.94 KiB) Downloaded 4 times

User avatar
3iff
Tycoon
Tycoon
Posts: 983
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: 8/32bpp SH125 2CC - Release topic

Post by 3iff » 30 Mar 2012 10:59

I edited the .cfg file to remove all the grfs then started a fresh game. I may have done something wrong so I'll recheck... I'll report back after lunch.

User avatar
FooBar
Tycoon
Tycoon
Posts: 6559
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: 8/32bpp SH125 2CC - Release topic

Post by FooBar » 30 Mar 2012 11:06

Right, were I said "base set" I meant OpenGFX. As there's also differences between OpenGFX and the TTD graphics.

OpenGFX has the vehicles aligned correctly on the map in the <- direction, and as a consequence they're too high in the depot/purchase menu.
TTD graphics has them correctly in the depot/purchase, but they are suboptimal on the map (too low).

Just to make it complicated.

User avatar
3iff
Tycoon
Tycoon
Posts: 983
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: 8/32bpp SH125 2CC - Release topic

Post by 3iff » 30 Mar 2012 12:02

Yes, that's the issue. Using original base graphics I get the above pictures. Using OpenGFX then the engine and wagons align ok.

Might be worth mentioning that it requires OpenGFX...

Sorry about the false alarm.

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 30 Mar 2012 12:12

I will try to support both sets with the next release.

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 30 Mar 2012 15:14

I have updated the grf (V2) to include a Sprite Alignment parameter (See release notes)

User avatar
3iff
Tycoon
Tycoon
Posts: 983
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: 8/32bpp SH125 2CC - Release topic

Post by 3iff » 30 Mar 2012 15:31

Yep, that works....

The guidelines 'might' need rewording slightly as it needs to be set to OpenGFX+ for the original baseset.
Maybe better call the options OpenGFX and Original?

Quick work!

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 30 Mar 2012 15:38

I only have the open source sprites available and so I have tested against OpenGFX and OpenGFX+. I was just assuming that OpenGFX+ used the same offsets as the original TTD sprites.

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Re: 8/32bpp SH125 2CC - Release topic

Post by peter1138 » 31 Mar 2012 07:35

NewGRFs are not required to do anything different to support different basesets. The vehicle alignment should be as in the TTD base set. If your OpenGFX isn't aligned the same, then there's something wrong with it.

Edit: Yes, OpenGFX is broken. You should use the correct offset for the TTD base set.
He's like, some kind of OpenTTD developer.


ColdIce
Transport Coordinator
Transport Coordinator
Posts: 261
Joined: 25 Apr 2006 10:22
Location: Bucharest

Re: 8/32bpp SH125 2CC - Release topic

Post by ColdIce » 02 Apr 2012 18:02

the game crashes when i try to start a new game, because of this grf

latest nightly 24085 win32 + fresh OTTD folder in my documents, so fresh cfg file

the only grf in the list

and it still crashes
Attachments
crash.dmp
(1.57 MiB) Downloaded 383 times
crash.txt
(10.53 KiB) Downloaded 328 times
ImageImage

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 02 Apr 2012 20:26

I have tried r24087 on 4 separate machines (all running linux as I have no windows machines) and have not had any problems. Unfortunately I am unable to help with the crash dumps as I am not a software developer. If there is anyone that can interpret them then it would be a help?

ColdIce
Transport Coordinator
Transport Coordinator
Posts: 261
Joined: 25 Apr 2006 10:22
Location: Bucharest

Re: 8/32bpp SH125 2CC - Release topic

Post by ColdIce » 03 Apr 2012 07:41

here is the cfg file. maybe there is something i should set
Attachments
openttd.cfg
(9.96 KiB) Downloaded 414 times
ImageImage

User avatar
Xotic750
Traffic Manager
Traffic Manager
Posts: 206
Joined: 13 Nov 2011 18:46
Location: Sweden

Re: 8/32bpp SH125 2CC - Release topic

Post by Xotic750 » 03 Apr 2012 07:53

Have you tried resetting the grf?

The default settings are:

Code: Select all

832bpp_sh125_2cc-3/sh125.grf = 1 0 3 1 1 1 1 0 1 0 0 0

Post Reply

Return to “Graphics Releases”

Who is online

Users browsing this forum: No registered users and 3 guests