Re: NARS2 - the North American Renewal Set [2.03 28 Aug 09]
Posted: 22 Mar 2013 17:31
Perhaps you haven't set the sprite width properly in the code?
The place to talk about Transport Tycoon
https://www.tt-forums.net/
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?
Code: Select all
graphics
{
default: spriteset_DD40AX;
purchase: spriteset_DD40AX_Purchase;
GUI: spriteset_DD40AX_GUI;
}
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;
}
}
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.
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
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
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.
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)
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.
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'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