NARS2 - the North American Railway Set [2.52 September 2021]
Moderator: Graphics Moderators
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Perhaps you haven't set the sprite width properly in the code?
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Sprite 7 is used for both in-game and the GUI depot/list of trains view. It properly works in the main screen, but not in the GUI window(s).Supercheese wrote:Perhaps you haven't set the sprite width properly in the code?
Apparently you can invoke something called
"extra_callback_info1 (var 10) to select a sprite with different x-offset for the vehicle GUI (lists, details, depot, etc.)"
But that's pretty clunky compared to something like this:
Code: Select all
graphics
{
default: spriteset_DD40AX;
purchase: spriteset_DD40AX_Purchase;
GUI: spriteset_DD40AX_GUI;
}
- Attachments
-
- SpriteProblem.png (65.44 KiB) Viewed 4093 times
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Sort of kind of solved my problem after finding out how to implement extra_callback_info1 but created another. 
Train 1 is my re-implemented Centennial
Train 2 is the stock NARS2 Centennial in Desert.
You can see how I've got it to show all of it's length by itself, but if I try adding a traincar to the set; it gets cut off.
Here's the code:

Train 1 is my re-implemented Centennial
Train 2 is the stock NARS2 Centennial in Desert.
You can see how I've got it to show all of it's length by itself, but if I try adding a traincar to the set; it gets cut off.

Here's the code:
Code: Select all
/////////////////////////////////////////////////////////////////////////////////////
//////GRF Definition Block
/////////////////////////////////////////////////////////////////////////////////////
grf
{
grfid : "RC\01\01";
name : string(STR_GRF_NAME);
desc : string(STR_GRF_DESCRIPTION);
version: 0;
min_compatible_version: 0;
}
/* This is needed so that the side depot views don't get cut off for locomotives */
train_width_32_px = 1;
traininfo_y_offset = 2;
/* defining railtype table */
railtypetable
{
RAIL, ELRL, MONO, MGLV,
}
/////////////////////////////////////////////////////////////////////////////////////
///EMD DD40A-X Locomotive Block
////////////////////////////////////////////////////////////////////////////////////
////////////////////////
//Purchase menu sprite//
////////////////////////
spriteset (spriteset_DD40AX_Purchase, "gfx/DD40AX.png")
{
//left_x, upper_y, width, height, offset_x, offset_y
[ 0, 108, 50, 12, -24, -8]
}
//////////////
//GUI sprite//
//////////////
spriteset (spriteset_DD40AX_GUI, "gfx/DD40AX.png")
{
//left_x, upper_y, width, height, offset_x, offset_y
[ 48, 81, 40, 12, -16, -8] //Sprite 7
}
///////////////////
//Vehicle sprites//
///////////////////
spriteset (spriteset_DD40AX, "gfx/DD40AX.png")
{
//left_x, upper_y, width, height, offset_x, offset_y
[ 1, 19, 8, 27, -3, -15] //Sprite 1
[ 20, 28, 26, 18, -12, -11] //Sprite 2
[ 48, 34, 40, 12, -16, -8] //Sprite 3
[ 90, 28, 26, 18, -4, -7] //Sprite 4
/* Vehicle Sprites Flip Over */
[ 1, 66, 8, 27, -3, -8] //Sprite 5
[ 20, 75, 26, 18, -20, -7] //Sprite 6
[ 48, 81, 40, 12, -24, -8] //Sprite 7
[ 90, 75, 26, 18, -12, -11] //Sprite 8
}
//////////////////////
//vehicle properties//
//////////////////////
switch(FEAT_TRAINS, SELF, DD40AX_Switch, (extra_callback_info1 & 0xFF))
{
0x10: spriteset_DD40AX_GUI; // Drawn in Depot GUI
0x11: spriteset_DD40AX_GUI; // Drawn in Vehicle Details/Refit GUI
0x12: spriteset_DD40AX_GUI; // Drawn in Vehicle List
0x00: spriteset_DD40AX; // Vehicle Drawn in Viewport (on Map)
}
item (FEAT_TRAINS, EMD_DD40AX,1) {
property
{
name: string(STR_NAME_EMD_DD40AX);
climates_available: bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
introduction_date: date(1969,4,01); // Built April 1969 to Sep 1971
model_life: 30; // They lasted until 1984 in service
vehicle_life: 30;
reliability_decay: 20; //placeholder
refittable_cargo_classes: bitmask(); //placeholder
non_refittable_cargo_classes: bitmask(); //placeholder
loading_speed: 0;
sprite_id: SPRITE_ID_NEW_TRAIN;
speed: 90 mph;
misc_flags: bitmask(TRAIN_FLAG_FLIP); //placeholder
refit_cost: 0; //placeholder
track_type: RAIL; //placeholder
ai_special_flag: AI_FLAG_CARGO;
power: 6600 hp;
cost_factor: 48.999;
running_cost_base: RUNNING_COST_DIESEL;
running_cost_factor: 255;
dual_headed: 0;
cargo_capacity: 0;
weight: 270 ton;
ai_engine_rank: 0; //not used by AI
engine_class: ENGINE_CLASS_DIESEL;
extra_power_per_wagon: 0 kW;
tractive_effort_coefficient: 0.3; //placeholder
air_drag_coefficient: 0.06;
length: 8; //full length vehicle
visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 2, DISABLE_WAGON_POWER);
extra_weight_per_wagon: 0 ton;
bitmask_vehicle_info: 0;
}
graphics
{
default: DD40AX_Switch;
purchase: spriteset_DD40AX_Purchase;
}
}
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
I think I figured out what Pikka did to make these extra-long engines show up correctly in the various GUIs -- he basically created a fake articulated vehicle for those views.
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Yeah, that sounds about right. Invisible articulated part with a length to make up the difference since the head engine is longer than 8/8.MarkSheppard wrote:I think I figured out what Pikka did to make these extra-long engines show up correctly in the various GUIs -- he basically created a fake articulated vehicle for those views.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Good news; I've cracked the method to make engines longer than 32 pixels! 

-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
You inspired me to do my own take, based off kitbashing a bunch of graphic files on the Veranda GTEL:NekoMaster wrote:A long time ago I drew a GE\Union Pacific Generation 2 "Veranda" Turbine
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Nice ^w^ Even if my sprite isn't used I would still enjoy having generation 2 turbine in the set, perhaps along side the other 2 generations of turbine. If you think about it, the DDA40X and DDA35 where made to replace the Turbines and the Alco C855 and GE U50\U50B. So having the turbines in is like having the first part of the story.MarkSheppard wrote:You inspired me to do my own take, based off kitbashing a bunch of graphic files on the Veranda GTEL:NekoMaster wrote:A long time ago I drew a GE\Union Pacific Generation 2 "Veranda" Turbine
2 other locomotives I'd like to see would be the Bombardier Jet Train (although it wasn't accepted by the Governement of Ontario, I think it would be a nice replacement for F40PH and GE Genesis' for long distance high speed service), and the other locotive, the MPI MP40PH-3C used by GO Transit (it runs on a 4000 HP EMD diesel instead of MPI's engines, it also uses a seperate generator for the 520v HEP needed for GO's big Octagonal Bi-Levels)


Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Why stop at just two?NekoMaster wrote:Nice ^w^ Even if my sprite isn't used I would still enjoy having generation 2 turbine in the set, perhaps along side the other 2 generations of turbine.

I'm actually thinking about changing my plans for this, to break it all down into a lot of individual nGRFs; so that people can sort of "pick and choose" what they want in their games:If you think about it, the DDA40X and DDA35 where made to replace the Turbines and the Alco C855 and GE U50\U50B. So having the turbines in is like having the first part of the story.
NARS2 All Climates.grf (makes everything playable in all climates, and reimplements RF16 for this purpose. Zeroes out DD40A.
NARS2 UP Turbines.grf (Gas Turbines, Coal Turbine, etc)
NARS2 DD Series.grf (DD35 and DD40 {maybe add a hypothetical DD40B?}
Etc, so that people can pick and match what they like for their game(s) -- some people don't like oversized/overpowered locomotives, etc.
Definitely doing the Bombardier Jet Train. It was also flacked inside the US as a conventionally powered Acela to provide high speed service outside of the Northeastern (NEC) Corridor.2 other locomotives I'd like to see would be the Bombardier Jet Train (although it wasn't accepted by the Governement of Ontario, I think it would be a nice replacement for F40PH and GE Genesis' for long distance high speed service)
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Here are the GTEL files, Part 1
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
UP GTELs Part 2
- Attachments
-
- UP_GTEL_G2_Veranda_UP61-75.png (8.19 KiB) Viewed 3846 times
-
- UP_GTEL_G3_UP1-30.png (11.87 KiB) Viewed 3846 times
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
This should be (relatively) easy to do since I already did most of the artwork -- UP liked reusing basic designs for units wherever possible.
Hmm. Actually easier than I thought:
Union Pacific constructed an experimental [Coal] GTEL of their own, using a modified ALCO PA-2 as a cab, the chassis of a GN W-1 class electric locomotive (bought for scrap from the Great Northern Railway) as the second unit
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Here we are. It's not 100% accurate -- some pixel dimensions may be wrong, and it uses the same kind of tender as the other GTELs -- UP-80 apparently used a re-purposed steam engine tender...but I think it's good enough.
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
cool. Can we get appropriate running sound with it? I'm sure these things must have had a great sound.
*** Ce French Train Set ***
*** Visit my transport related pictures on Flickr ***





Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
"A committee is a group of men who individually can do nothing but as a group decide that nothing can be done" (Fred Allen 1894-1956 US radio comic).
*** Visit my transport related pictures on Flickr ***
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
"A committee is a group of men who individually can do nothing but as a group decide that nothing can be done" (Fred Allen 1894-1956 US radio comic).
-
- Engineer
- Posts: 58
- Joined: 08 Nov 2004 12:56
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Yes, I can find appropriate running sounds befitting the name "big blow".The Irish wrote:cool. Can we get appropriate running sound with it? I'm sure these things must have had a great sound.
BTW, I just found out more information about the UP #80 Coal GTEL Tender for that consist.
"Trailing the unit was a Class 25C-3 coal tender originally used behind a 4-6-6-4 Challenger locomotive. The coal tender was rebuilt to contain 61 tons of nugget size coal enough for a 700 mile journey."
I rebuilt the NARS2 Challenger Tender into this new version.
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Wow, didn't expect you'd actually do the Turbines
Having the jet train would be nice idea for those that aren't into electrics or just want a stand in for areas of non-electrified rail, especially if its going to be used on long routes where laying electric rail can get expensive
As for the MPI MP40PH-3C if you do it, it's pretty good as a heavy commuter train since it can pull up to 12 Octagon Bi-Levels each carrying 172 passengers during rush our while still being able to travel down the line at 90-100 MP
EDIT : Heres a suggestion for the GRF's
Have the NARS 2 Climate thingy as part of a Core addon along with other misc North American engines, theres sprites around on the forums by packer\packman that I'm sure won't mind having them coded, unless you wanna draw all the different SD units and GP's as well as the extra electrics. The extra electrics could also be an addon grf to the core which would provide the extra electric engines as a seperate addon.
The other stuff like the big loco's could be an addon to the core GRF which would add all the Heavy Duty Locomotives like the Turbines, possibly the Alco C855A\B and the GE U50\U50C, and the DDA35\DDA40X locomotives.
BTW, the turbine sound from NARS2's UAC Turbo train could work, but I find the UP Turbines sound A LOT like a Jumbo-Jet engine going by from what I've seen on the internet. Its start-up sound could be the sound of its auxilery diesels firing up the Turbines to get it moving

Having the jet train would be nice idea for those that aren't into electrics or just want a stand in for areas of non-electrified rail, especially if its going to be used on long routes where laying electric rail can get expensive
As for the MPI MP40PH-3C if you do it, it's pretty good as a heavy commuter train since it can pull up to 12 Octagon Bi-Levels each carrying 172 passengers during rush our while still being able to travel down the line at 90-100 MP
EDIT : Heres a suggestion for the GRF's
Have the NARS 2 Climate thingy as part of a Core addon along with other misc North American engines, theres sprites around on the forums by packer\packman that I'm sure won't mind having them coded, unless you wanna draw all the different SD units and GP's as well as the extra electrics. The extra electrics could also be an addon grf to the core which would provide the extra electric engines as a seperate addon.
The other stuff like the big loco's could be an addon to the core GRF which would add all the Heavy Duty Locomotives like the Turbines, possibly the Alco C855A\B and the GE U50\U50C, and the DDA35\DDA40X locomotives.
BTW, the turbine sound from NARS2's UAC Turbo train could work, but I find the UP Turbines sound A LOT like a Jumbo-Jet engine going by from what I've seen on the internet. Its start-up sound could be the sound of its auxilery diesels firing up the Turbines to get it moving


Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Some things wrong with all the pictures and sprites that Mark Sheppard posted
got replaced with weird pics



Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
- SquireJames
- Tycoon
- Posts: 1863
- Joined: 07 Aug 2004 11:56
- Skype: squirejames5
- Location: Stoke-on-Trent
- Contact:
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
They look fine to me. I fear you might have a virus on your system NekoMaster
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
The sprites and other pictures where replaced with random pictures from 9gag, like one where a man is staying overnight in the dog house liek its a hotel, or a picture of a smart phone staked to a tree with a note asking whos phone it was.SquireJames wrote:They look fine to me. I fear you might have a virus on your system NekoMaster
I don't think I have a virus since I keep Avast up to date and haven't done anything out of the norm. I'll run a virus scan just to be sure
EDIT : Just ran a quick and full scan with AVAST and nothing showed up. Im kinda busy right now with other things so I can't do a boot-time scan.
EDIT 2 : Heres a screen shot of what I'm seeing
- Attachments
-
- what-im-seeing.jpg
- (666.14 KiB) Downloaded 1 time


Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
I'm not getting anything like that Neko. Perhaps do a malware scan as well?NekoMaster wrote:Here's a screen shot of what I'm seeing
Who is online
Users browsing this forum: No registered users and 10 guests