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 »

*******************************************************************************
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: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

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

Post by 3iff »

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 68896 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 »

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
Screenshot comparing the SH125 with other base set graphics in the station GUI.
Screenshot comparing the SH125 with other base set graphics in the station GUI.
in-station.png (14.93 KiB) Viewed 68886 times
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

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

Post by FooBar »

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 »

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: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

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

Post by 3iff »

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 68869 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 »

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
Screenshot showing all available base graphics.
Screenshot showing all available base graphics.
base-set.png (39.94 KiB) Viewed 7846 times
User avatar
3iff
Tycoon
Tycoon
Posts: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

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

Post by 3iff »

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: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

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

Post by FooBar »

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: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

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

Post by 3iff »

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 »

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 »

I have updated the grf (V2) to include a Sprite Alignment parameter (See release notes)
User avatar
3iff
Tycoon
Tycoon
Posts: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

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

Post by 3iff »

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 »

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: 1767
Joined: 30 Mar 2005 09:43

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

Post by peter1138 »

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.
User avatar
ColdIce
Transport Coordinator
Transport Coordinator
Posts: 313
Joined: 25 Apr 2006 10:22
Location: Bucharest

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

Post by ColdIce »

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 648 times
crash.txt
(10.53 KiB) Downloaded 606 times
The rest is confetti!
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 »

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?
User avatar
ColdIce
Transport Coordinator
Transport Coordinator
Posts: 313
Joined: 25 Apr 2006 10:22
Location: Bucharest

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

Post by ColdIce »

here is the cfg file. maybe there is something i should set
Attachments
openttd.cfg
(9.96 KiB) Downloaded 703 times
The rest is confetti!
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 »

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