Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Mar 29, 2017 7:21 am

All times are UTC




Post new topic  Reply to topic  [ 46 posts ]  Go to page 1 2 3 Next
Author Message
PostPosted: Fri Mar 30, 2012 8:15 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
*******************************************************************************
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:
File comment: Screenshot showing the current available trains
trains.png [240.99 KiB]
Downloaded 4 times

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Last edited by Xotic750 on Wed Apr 11, 2012 3:58 am, edited 9 times in total.
Top
   
PostPosted: Fri Mar 30, 2012 9:32 am 
Offline
President
President
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 949
Location: Birmingham, England
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 41157 times ]
Top
   
PostPosted: Fri Mar 30, 2012 10:10 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
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:
File comment: Screenshot comparing the SH125 with other base set graphics in the station GUI.
in-station.png
in-station.png [ 14.93 KiB | Viewed 41147 times ]

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository
Top
   
PostPosted: Fri Mar 30, 2012 10:14 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
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.

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
PostPosted: Fri Mar 30, 2012 10:32 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
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.

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Top
   
PostPosted: Fri Mar 30, 2012 10:45 am 
Offline
President
President
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 949
Location: Birmingham, England
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 41130 times ]
Top
   
PostPosted: Fri Mar 30, 2012 10:55 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
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:
File comment: Screenshot showing all available base graphics.
base-set.png [39.94 KiB]
Downloaded 4 times

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository
Top
   
PostPosted: Fri Mar 30, 2012 10:59 am 
Offline
President
President
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 949
Location: Birmingham, England
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.


Top
   
PostPosted: Fri Mar 30, 2012 11:06 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
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.

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
PostPosted: Fri Mar 30, 2012 12:02 pm 
Offline
President
President
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 949
Location: Birmingham, England
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.


Top
   
PostPosted: Fri Mar 30, 2012 12:12 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
I will try to support both sets with the next release.

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Top
   
PostPosted: Fri Mar 30, 2012 3:14 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
I have updated the grf (V2) to include a Sprite Alignment parameter (See release notes)

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Top
   
PostPosted: Fri Mar 30, 2012 3:31 pm 
Offline
President
President
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 949
Location: Birmingham, England
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!


Top
   
PostPosted: Fri Mar 30, 2012 3:38 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
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.

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Top
   
PostPosted: Sat Mar 31, 2012 7:35 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Mar 30, 2005 9:43 am
Posts: 1503
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.


Top
   
PostPosted: Mon Apr 02, 2012 2:48 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
Version 3 is now released.

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Top
   
PostPosted: Mon Apr 02, 2012 6:02 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Tue Apr 25, 2006 10:22 am
Posts: 261
Location: Bucharest
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 244 times
crash.txt [10.53 KiB]
Downloaded 194 times

_________________
ImageImage
Top
   
PostPosted: Mon Apr 02, 2012 8:26 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
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?

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Top
   
PostPosted: Tue Apr 03, 2012 7:41 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Tue Apr 25, 2006 10:22 am
Posts: 261
Location: Bucharest
here is the cfg file. maybe there is something i should set


Attachments:
openttd.cfg [9.96 KiB]
Downloaded 275 times

_________________
ImageImage
Top
   
PostPosted: Tue Apr 03, 2012 7:53 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Nov 13, 2011 6:46 pm
Posts: 206
Location: Sweden
Have you tried resetting the grf?

The default settings are:

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

_________________
OpenGFX+ Trains Nightly Build | OpenGFX+ Trains Development Thread | OpenGFX+ Trains Release Thread
OpenGFX+ Trains Repository | OpenGFX+ Trains Backup Repository


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 46 posts ]  Go to page 1 2 3 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.