Italian Trains

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
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Italian Trains

Post by Gliptal »

I'm developing a trainset based on engines and wagons from Italy, spanning the 1920s to the 2010s. It also optionally enhances vehicles, trams, ships, planes, and helicopters. Most of the sprites will come from 2CC.

Tracking sheet (incomplete)

You can follow the development on Github.
Last edited by Gliptal on 22 Nov 2017 16:39, edited 2 times in total.
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3427
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: Italian Trains

Post by Emperor Jake »

There was an Italian train set in development a few years ago but it was abandoned. Perhaps the tracking table and some of the graphics on that old thread might be useful to you: viewtopic.php?f=26&t=56167

That project was planned to be released under GPL, so feel free to use any of buckethead's sprites (not sure if he's still around, try PMing him)

By the way, is your set planning to include the three-phase electrics? As you may know I'm already working on those, so maybe we could work something out :wink:
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Emperor Jake wrote:There was an Italian train set in development a few years ago but it was abandoned. Perhaps the tracking table and some of the graphics on that old thread might be useful to you: viewtopic.php?f=26&t=56167

That project was planned to be released under GPL, so feel free to use any of buckethead's sprites (not sure if he's still around, try PMing him)

By the way, is your set planning to include the three-phase electrics? As you may know I'm already working on those, so maybe we could work something out :wink:
In a limited scope yes, although they would use the normal electrified rail with no distinctions. Due to time and experience (this is my first newGRF) I'm also probably not going to play with forced consists and other similar advanced features. My plan is to provide a realistic and decent looking set, and leave to the player the choice on how to use it.

I'll take a look at those sprites and see what I can use, thanks! I'm currently working with 2CC's graphics, and already butting heads with a few things (like old coaches being 4-sized, that look quite ugly in OpenTTD in my opinion).

I'll gladly modify my newGRF as needed to take into account yours. To avoid repetition, I could easily add a parameter to disable my rendition of three phase electrics at will and allow yours to take over. Let me know what you want me to do.

Again, I learnt NML less than a week ago so keep that in mind.

EDIT: Here's an example screenshot.

Image
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Since I really don't like how 4 sized carriages look, I modified the pixel art of the Tipo 1910 carriage to be 8 sized. I quite like the result, so I'll probably do the same for all carriages.

Here is the Tipo 1928R (Carrozza Centoporte):

Image
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3427
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: Italian Trains

Post by Emperor Jake »

Gliptal wrote:Here is the Tipo 1928R (Carrozza Centoporte):
Neat :D

If I may, I'd like to contribute something to this project as I've wanted to see Italian trains for OTTD for a long time now :) I could help to repaint and adapt 2cc sprites if you want, as well as share my 3-phase engine sprites.

I'd strongly suggest to make a tracking table (or adapt the one from the old Italian set), it's an invaluable resource for any NewGRF project because it's one handy document that contains engine stats, what's been done and still needs doing, and importantly who's drawing what - so no effort gets wasted on duplications.

To start off with, here are real-liveried versions of my sprites from the 2cc set; what do you think?
Attachments
Late series E428 in original and 70's livery
Late series E428 in original and 70's livery
e428_rl.png (3.75 KiB) Viewed 5051 times
ETR300 Settebello
ETR300 Settebello
settebello_rl.png (4 KiB) Viewed 5051 times
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Nice!

I'll definitely make a tracking sheet, and any help I can get is duly appreciated! I'll finish the steam engines and pre-1940 coaches first, since I'm almost done with those.

EDIT: Done with the sprites for the steam engines, and the pre-1940 coaches: the engines now have red wheels.

Image

EDIT2: Alignment is done! 691 pulling two Tipo 1910, two Tipo 1928R, and two Tipo 1937.

Image

Image

Image
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3427
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: Italian Trains

Post by Emperor Jake »

I know it's early days yet, but I'm sure you'll want to code those wagons as 7/8 so they don't have gaps and give the engines their tenders :wink:

Here's some wagons originally for ToE which I gave a touch-up
Attachments
eurofima-c1.png
eurofima-c1.png (4.07 KiB) Viewed 4979 times
tee_fs.png
tee_fs.png (3.74 KiB) Viewed 4979 times
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Emperor Jake wrote:I know it's early days yet, but I'm sure you'll want to code those wagons as 7/8 so they don't have gaps
I'll try and get rid of the gaps, still wrapping my head around the connection between sprite size, vehicle size in the sprite, and the size property.
Emperor Jake wrote:and give the engines their tenders :wink:
So how would tenders work? Do I have to look at consists? Is it a separate 4-sized purchasable item that players have to manually buy and attach to the engine?
Emperor Jake wrote:Here's some wagons originally for ToE which I gave a touch-up
Thanks, I'll add them to the list.
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3427
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: Italian Trains

Post by Emperor Jake »

Gliptal wrote:I'll try and get rid of the gaps, still wrapping my head around the connection between sprite size, vehicle size in the sprite, and the size property.
That's easy, the length property determines how long a wagon is and shorten it appropriately. Just change it to

Code: Select all

  length: 		7;
for a 7 length sprite; and here's a handy image to help you figure out what length a sprite is. Sprites can't be "in-between" lengths because they'll always overlap or make gaps. Longer than 8 vehicles are possible but are harder to code.

Gliptal wrote:So how would tenders work? Do I have to look at consists? Is it a separate 4-sized purchasable item that players have to manually buy and attach to the engine?
The proper way is to make it an articulated vehicle (which you'll also need for the E636 etc) It should look something like this - I think it should work but I haven't tested it...

Code: Select all

//746.pnml

spriteset(spriteset_steam_746, "gfx/steam/746_685_691.png") {
    tmpl_train_steam()
}

//tender spriteset
spriteset(spriteset_steam_746_tender, "gfx/steam/tender.png") {
    tmpl_train_steam()
}

spriteset(spriteset_steam_746_purchase, "gfx/steam/746_685_691.png") {
    tmpl_train_steam_purchase(-52)
}

//articulated part switches
//determines length of both parts
switch(FEAT_TRAINS, SELF, switch_steam_746_length, position_in_vehid_chain % 2) {
	0: 6;
	4;
}	

//determines the correct order of sections
switch(FEAT_TRAINS, SELF, switch_steam_746_position, position_in_vehid_chain % 2) {
	0: spriteset_steam_746;
	1: spriteset_steam_746_tender;
}

//determines the existence of 1 articulated part
switch(FEAT_TRAINS, SELF, switch_steam_746_tender, extra_callback_info1) {
	1: return item_746;
	return CB_RESULT_NO_MORE_ARTICULATED_PARTS;
}

	
item(FEAT_TRAINS, item_746, 1003) {
    property {
        track_type                   : RAIL;
        engine_class                 : ENGINE_CLASS_STEAM;
        name                         : string(STR_TRAIN_STEAM_746_NAME);
        speed                        : 100 km/h;
        power                        : 1600 hp;
        weight                       : 94 ton;
        tractive_effort_coefficient  : 0.3;
        climates_available           : bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
        introduction_date            : date(1922, 1, 1);
        model_life                   : VEHICLE_NEVER_EXPIRES;
        vehicle_life                 : 30;
        reliability_decay            : ENGINE_DECAY_HIGH;
        cost_factor                  : ENGINE_STEAM_COST_MEDIUM;
        running_cost_base            : RUNNING_COST_STEAM;
        running_cost_factor          : ENGINE_STEAM_UPKEEP_MEDIUM;
        cargo_capacity               : 0;
        refittable_cargo_classes     : bitmask(NO_CARGO_CLASS);
        non_refittable_cargo_classes : bitmask();
        dual_headed                  : 0;
        sprite_id                    : SPRITE_ID_NEW_TRAIN;
        visual_effect_and_powered    : visual_effect_and_powered(VISUAL_EFFECT_STEAM, -2, DISABLE_WAGON_POWER);
        misc_flags                   : bitmask(TRAIN_FLAG_2CC);
        length						     : 6; //length of engine
    }
    graphics {
        additional_text              : return string(STR_TRAIN_STEAM_746_DESC);
        purchase                     : spriteset_steam_746_purchase;
        articulated_part		 	   : switch_steam_746_tender; //tender switch
		length						       : switch_steam_746_length; //tender length
        default                      : switch_steam_746_position; //position switch
    }
}
Hope this helps!

Oh, one more thing, I don't have access to the tracking table, could you fix that? :)
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Carriages are fixed now, thanks! I'll get tenders done and then post some screens.
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Available trains:

Image

740 pulling four Tipo 1928R:

Image Image

691 pulling four Tipo 1937:

Image Image


I'm not too convinced with how the Tipo 1937 looks in front view, I'll probably mess around with the sprites a bit more.
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Carriages code is nearly all in place, now I only need the sprites. Emperor Jake do you have any others to share? I already added the TEE and Eurofima: also if you have better looking Tipo1910, Tipo1928R, or Tipo1937 I'll gladly replace the current ones.
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3427
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: Italian Trains

Post by Emperor Jake »

You need to give me permission to view/edit your tracking table, so I can mark which wagons/engines :wink: I want to repaint
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

Emperor Jake wrote:You need to give me permission to view/edit your tracking table, so I can mark which wagons/engines :wink: I want to repaint
Right, I completely forgot about permissions. PM inbound.
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

I'll start adding electric trains to the list, but I'll leave the three-phase models out since I know really little about that period: I'll leave the decision on what to include up to you Emperor Jake.
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

All the code for the carriages is done. Now I need the art.
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

NCDP with the new regional livery:

Image
bombastico
Engineer
Engineer
Posts: 10
Joined: 22 Sep 2013 12:14

Re: Italian Trains

Post by bombastico »

Very beautiful project!!

Please don't forget to add to your trackingsheet also:

- Jazz EMU from 2014
- Rock and Pop EMU from 2019

- AGV ETR575 for Italo form 2012
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

bombastico wrote:Very beautiful project!!

Please don't forget to add to your trackingsheet also:

- Jazz EMU from 2014
- Rock and Pop EMU from 2019

- AGV ETR575 for Italo form 2012
What would you prefer between the 324, 425, and 526? I'm inclined to only add one.

Not too convinced about the Rock/Pop EMUs, do you have more detailed info on them by any chance?
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Italian Trains

Post by Gliptal »

D.341

Image
Post Reply

Return to “Graphics Development”

Who is online

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