Page 1 of 3

8/32bpp Trains 2CC - Release topic

Posted: 30 Mar 2012 08:15
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

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

Posted: 30 Mar 2012 09:32
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.

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

Posted: 30 Mar 2012 10:10
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.

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

Posted: 30 Mar 2012 10:14
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.

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

Posted: 30 Mar 2012 10:32
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.

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

Posted: 30 Mar 2012 10:45
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...

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

Posted: 30 Mar 2012 10:55
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?

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

Posted: 30 Mar 2012 10:59
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.

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

Posted: 30 Mar 2012 11:06
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.

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

Posted: 30 Mar 2012 12:02
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.

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

Posted: 30 Mar 2012 12:12
by Xotic750
I will try to support both sets with the next release.

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

Posted: 30 Mar 2012 15:14
by Xotic750
I have updated the grf (V2) to include a Sprite Alignment parameter (See release notes)

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

Posted: 30 Mar 2012 15:31
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!

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

Posted: 30 Mar 2012 15:38
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.

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

Posted: 31 Mar 2012 07:35
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.

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

Posted: 02 Apr 2012 14:48
by Xotic750
Version 3 is now released.

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

Posted: 02 Apr 2012 18:02
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

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

Posted: 02 Apr 2012 20:26
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?

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

Posted: 03 Apr 2012 07:41
by ColdIce
here is the cfg file. maybe there is something i should set

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

Posted: 03 Apr 2012 07:53
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