Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Aug 21, 2018 9:38 pm

All times are UTC




Post new topic  Reply to topic  [ 26 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Many NML questions
PostPosted: Thu Mar 22, 2018 8:05 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
Hello, everybody.
I living at TT-Forums ~ 9 months and established himself as a good artist. Also I want to learn NML train coding, and (If You know) I'm russian, so it's harder to study it. If anyone can make some parody of a guide please write here, I'll be grateful.

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Last edited by Tony Pixel on Mon May 21, 2018 4:39 pm, edited 1 time in total.

Top
   
PostPosted: Thu Mar 22, 2018 9:10 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon May 25, 2015 9:09 am
Posts: 312
Location: The Netherlands
https://www.tt-wiki.net/wiki/NMLTutorial
I recommend doing everything from the start, all the way up to and including "Four part refit" under "Railtypetable block". Also don't cut corners, that'll get you into trouble. This tutorial is about as well written as it'll get.
I used this when I started learning NML. It doesn't take too long at all if you just follow the steps in the tutorial.

Good luck!

_________________
No pics no clicks. Seriously.
ImageImageImageImageImageImage


Top
   
PostPosted: Fri Mar 23, 2018 2:43 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1275
Location: Courbevoie, near Paris, France
I was going to post the same thing.
Remember that NML can only be used to code vehicles (IIRC it can also code ships and aircraft), objects and industries.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Sat Mar 24, 2018 6:52 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
Thanks, I reading it now. But I have one trouble: when I want to compile NML file error goes:
Attachment:
1.png [1.47 KiB]
Not downloaded yet

I tried to change to UTF-8 all english.lang in both dir's (OYYD and NML), but anything goes.

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Sat Mar 24, 2018 7:40 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
What about language files? Can I simply copy it from OpenTTD, or every time when I create STR_... I should write this STR with unique code in my lang file?

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Sat Mar 24, 2018 8:22 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
Oh god, thanks/ I was stupid idiot :lol: when threreat started reading Tutorial in middle of it. Now I started understand everything what I read.

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Mon Apr 30, 2018 4:32 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
New question: how to make what GRF used with (russian) language in game will show (russian) strings? Can I simply create new lang file with the same strings and russian language ID?

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Mon Apr 30, 2018 6:08 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1275
Location: Courbevoie, near Paris, France
Tony Pixel wrote:
New question: how to make what GRF used with (russian) language in game will show (russian) strings? Can I simply create new lang file with the same strings and russian language ID?


Actually i think you can insert both latin letters and cyrilic letters. If this wasn't possible, then there couldn't be any russian translations on openttdcoop translator :wink:

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Tue May 01, 2018 7:21 am 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7096
yes, just make a new .lng file next to english.lng with the appropriate IDs in it, then nmlc should pick it up when compiling the GRF. file should be in UTF8 format

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Fri May 11, 2018 6:20 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
Ok, next question: how to use "getbits" function for the different sprites in GUI and game?

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Sat May 12, 2018 11:02 pm 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5300
Location: The Moon
Tony Pixel wrote:
Ok, next question: how to use "getbits" function for the different sprites in GUI and game?


To tease this out a bit further, Tony is talking about using extra_callback_info1 to draw different sprites in the GUI, but I'm not sure what his difficulty is; it's just like any other switch.

Perhaps he could post his code that doesn't work, and someone can point out what he's doing wrong?

_________________
Pikkarail.com blog | Patreon
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAi API - NoGo API


Top
   
PostPosted: Sun May 13, 2018 6:19 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
Thanks.

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Sun May 13, 2018 6:37 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
PikkaBird wrote:
Tony Pixel wrote:
Ok, next question: how to use "getbits" function for the different sprites in GUI and game?


To tease this out a bit further, Tony is talking about using extra_callback_info1 to draw different sprites in the GUI, but I'm not sure what his difficulty is; it's just like any other switch.

Perhaps he could post his code that doesn't work, and someone can point out what he's doing wrong?

So, I know not NML wery well becouse didn't worked with python and learned it by the tutorial. Here is the code:
Code:
//--------------------------------------------------------------------------------------------------SPV-2000
spriteset (spriteset_purchase_SPV2000, "gfx/USA_SPV-2000.png") { [4,  35,  87,  13,  5,  -6] }

template tmpl_SPV2000(x,y) {   
  [x,      y,    8,     24,     -3,    -10]
   [x+9,    y,    22,    20,     -14,   -11]                 
   [x+32,   y,    32,    16,     -16,   -10] 
   [x+65,   y,    22,    20,     -8,    -12]
}

spriteset (spriteset_SPV2000, "gfx/USA_SPV-2000.png")   { tmpl_SPV2000(4,4) tmpl_SPV2000(92,4) }

item (FEAT_TRAINS, item_SPV2000) {                                                                     
  property {
    name:                         string(STR_SPV2000_Name);                                               
    climates_available:           bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
    introduction_date:            date(1978, 1, 6);     
    model_life:                   VEHICLE_NEVER_EXPIRES;                                             
    vehicle_life:                 30;                                                                               
    reliability_decay:            14;                                                                               
    refittable_cargo_classes:     bitmask(CC_PASSENGERS);                                                         
    non_refittable_cargo_classes: bitmask();
    loading_speed:                10;
    cost_factor:                  35;                                                                           
    running_cost_factor:          20;                                                                             
    sprite_id:                    SPRITE_ID_NEW_TRAIN;       
    speed:                        140 km/h;                                                         
    misc_flags:                   bitmask(TRAIN_FLAG_MU);
    refit_cost:                   0; 
    track_type:                   RAIL;                                                                         
    ai_special_flag:              AI_FLAG_PASSENGER;
    power:                        270 kW;                                                                           
    running_cost_base:            RUNNING_COST_ELECTRIC;                                                             
    dual_headed:                  0;
    cargo_capacity:               109;                                                                           
    weight:                       58 ton;                                                                       
    ai_engine_rank:               0;                                                                                 
    engine_class:                 ENGINE_CLASS_DIESEL;
    extra_power_per_wagon:        15 kW;                                                                         
    tractive_effort_coefficient:  0.3;
    air_drag_coefficient:         0.06;   
    visual_effect_and_powered:    visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
    extra_weight_per_wagon:       40 ton;
    bitmask_vehicle_info:         0;
    }
    graphics {
        purchase:                spriteset_purchase_SPV2000; //Purchase menu sprite                   
        additional_text:         return string(STR_SPV2000_Desc); //Additional text shown in purchase list   
        purchase_cargo_capacity: spriteset_purchase_SPV2000;                                               
        length:                  8;
        default:                 getbits(extra_callback_info1, 0, 8);                                                       
    }
}

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Tue May 15, 2018 12:23 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7096
ok, i didn't quite understand what you meant to do, but try something like this:

Code:
switch(FEAT_TRAINS, SELF, guiswitch, getbits(extra_callback_info1, 0, 8)) {
  0x00: defaultsprite;
  0x10: guisprite1;
  0x11: guisprite2;
  ...
}

...

item{
  ...
  graphics {
    ...
    default: guiswitch;
  }
}

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Wed May 16, 2018 12:33 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
Eddi wrote:
ok, i didn't quite understand what you meant to do, but try something like this:

Code:
switch(FEAT_TRAINS, SELF, guiswitch, getbits(extra_callback_info1, 0, 8)) {
  0x00: defaultsprite;
  0x10: guisprite1;
  0x11: guisprite2;
  ...
}

...

item{
  ...
  graphics {
    ...
    default: guiswitch;
  }
}

Oh, thanks :bow:

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Mon May 21, 2018 4:39 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
So, I created code, but nmlc says what 1 sprite is orphaned, which and why?
[+] Spoiler
Code:
template tmpl_Amfleet(x,y) {
  [x,      y,    8,     24,     -3,    -10]
   [x+9,    y,    22,    20,     -14,   -11]                 
   [x+32,   y,    32,    16,     -16,   -12] 
   [x+65,   y,    22,    20,     -8,    -11]
}

spriteset (spriteset_Amfleet_Coach,"gfx/USA_Amtrak_Amfleet.png") { tmpl_Amfleet(4,4) tmpl_Amfleet(92,4) }
spriteset (spriteset_Amfleet_Coach_depot,"gfx/USA_Amtrak_Amfleet.png") { [36,  4,   32,   16,   -16,  -10] }
spriteset (spriteset_Amfleet_Coach_purchase,"gfx/USA_Amtrak_Amfleet.png") { [4,   66,   87,   13,   5,   -6] }

spriteset (spriteset_Amfleet_Cafe,"gfx/USA_Amtrak_Amfleet.png") { tmpl_Amfleet(4,35) tmpl_Amfleet(92,35) }
spriteset (spriteset_Amfleet_Cafe_depot,"gfx/USA_Amtrak_Amfleet.png") { [36,  35,   32,   16,   -16,  -10] }
spriteset (spriteset_Amfleet_Cafe_purchase,"gfx/USA_Amtrak_Amfleet.png") { [92,   66,   87,   13,   5,   -6] }

switch(FEAT_TRAINS, SELF, sw_Amfleet_Coach_gui, getbits(extra_callback_info1, 0, 8) ) {
  0x00:  spriteset_Amfleet_Coach;
  spriteset_Amfleet_Coach_depot;
}

item (FEAT_TRAINS, item_Amfleet_Coach) {                                                                     
  property {
    name:                         string(STR_Amfleet_Coach_Name);                                               
    climates_available:           bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
    introduction_date:            date(1975, 1, 6);     
    model_life:                   VEHICLE_NEVER_EXPIRES;                                             
    vehicle_life:                 20;                                                                                     
    refittable_cargo_classes:     bitmask(CC_PASSENGERS);                                                         
    non_refittable_cargo_classes: bitmask();
    loading_speed:                13;
    cost_factor:                  25;                                                                           
    running_cost_factor:          1;                                                                             
    sprite_id:                    SPRITE_ID_NEW_TRAIN;       
    speed:                        201 km/h;                                                         
    misc_flags:                   bitmask();
    refit_cost:                   0; 
    track_type:                   RAIL;                                                                         
    ai_special_flag:              AI_FLAG_PASSENGER;
    power:                        0;                                                                                                                                     
    cargo_capacity:               84;                                                                           
    weight:                       49 ton;                                                                       
    ai_engine_rank:               0;                                                                                                                                                         
    tractive_effort_coefficient:  0.3;
    air_drag_coefficient:         0.06;   
    visual_effect_and_powered:    visual_effect_and_powered(VISUAL_EFFECT_DISABLE, 0, DISABLE_WAGON_POWER);
    extra_weight_per_wagon:       40 ton;
    bitmask_vehicle_info:         0;
    }
    graphics {
        purchase:                spriteset_Amfleet_Coach_purchase;               
        additional_text:         return string(STR_Amfleet_Coach_Desc);                                               
        length:                  8;
        default:                 sw_Amfleet_Coach_gui;                                                       
    }
}

switch(FEAT_TRAINS, SELF, sw_Amfleet_Cafe_gui, getbits(extra_callback_info1, 0, 8) ) {
  0x00:  spriteset_Amfleet_Cafe;
  spriteset_Amfleet_Cafe_depot;
}

item (FEAT_TRAINS, item_Amfleet_Cafe) {                                                                     
  property {
    name:                         string(STR_Amfleet_Cafe_Name);                                               
    climates_available:           bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
    introduction_date:            date(1975, 1, 6);     
    model_life:                   VEHICLE_NEVER_EXPIRES;                                             
    vehicle_life:                 20;                                                                                     
    refittable_cargo_classes:     bitmask(CC_PASSENGERS);                                                         
    non_refittable_cargo_classes: bitmask();
    loading_speed:                13;
    cost_factor:                  24;                                                                           
    running_cost_factor:          1;                                                                             
    sprite_id:                    SPRITE_ID_NEW_TRAIN;       
    speed:                        201 km/h;                                                         
    misc_flags:                   bitmask();
    refit_cost:                   0; 
    track_type:                   RAIL;                                                                         
    ai_special_flag:              AI_FLAG_PASSENGER;
    power:                        0;                                                                                                                                     
    cargo_capacity:               32;                                                                           
    weight:                       49 ton;                                                                       
    ai_engine_rank:               0;                                                                                                                                                         
    tractive_effort_coefficient:  0.3;
    air_drag_coefficient:         0.06;   
    visual_effect_and_powered:    visual_effect_and_powered(VISUAL_EFFECT_DISABLE, 0, DISABLE_WAGON_POWER);
    extra_weight_per_wagon:       40 ton;
    bitmask_vehicle_info:         0;
    }
    graphics {
        purchase:                spriteset_Amfleet_Cafe_purchase;               
        additional_text:         return string(STR_Amfleet_Cafe_Desc);                                               
        length:                  8;
        default:                 sw_Amfleet_Cafe_gui;                                                       
    }
}

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
PostPosted: Mon May 21, 2018 7:10 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1275
Location: Courbevoie, near Paris, France
Tony Pixel wrote:
So, I created code, but nmlc says what 1 sprite is orphaned, which and why?
[+] Spoiler
Code:
template tmpl_Amfleet(x,y) {
  [x,      y,    8,     24,     -3,    -10]
   [x+9,    y,    22,    20,     -14,   -11]                 
   [x+32,   y,    32,    16,     -16,   -12] 
   [x+65,   y,    22,    20,     -8,    -11]
}

spriteset (spriteset_Amfleet_Coach,"gfx/USA_Amtrak_Amfleet.png") { tmpl_Amfleet(4,4) tmpl_Amfleet(92,4) }
spriteset (spriteset_Amfleet_Coach_depot,"gfx/USA_Amtrak_Amfleet.png") { [36,  4,   32,   16,   -16,  -10] }
spriteset (spriteset_Amfleet_Coach_purchase,"gfx/USA_Amtrak_Amfleet.png") { [4,   66,   87,   13,   5,   -6] }

spriteset (spriteset_Amfleet_Cafe,"gfx/USA_Amtrak_Amfleet.png") { tmpl_Amfleet(4,35) tmpl_Amfleet(92,35) }
spriteset (spriteset_Amfleet_Cafe_depot,"gfx/USA_Amtrak_Amfleet.png") { [36,  35,   32,   16,   -16,  -10] }
spriteset (spriteset_Amfleet_Cafe_purchase,"gfx/USA_Amtrak_Amfleet.png") { [92,   66,   87,   13,   5,   -6] }

switch(FEAT_TRAINS, SELF, sw_Amfleet_Coach_gui, getbits(extra_callback_info1, 0, 8) ) {
  0x00:  spriteset_Amfleet_Coach;
  spriteset_Amfleet_Coach_depot;
}

item (FEAT_TRAINS, item_Amfleet_Coach) {                                                                     
  property {
    name:                         string(STR_Amfleet_Coach_Name);                                               
    climates_available:           bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
    introduction_date:            date(1975, 1, 6);     
    model_life:                   VEHICLE_NEVER_EXPIRES;                                             
    vehicle_life:                 20;                                                                                     
    refittable_cargo_classes:     bitmask(CC_PASSENGERS);                                                         
    non_refittable_cargo_classes: bitmask();
    loading_speed:                13;
    cost_factor:                  25;                                                                           
    running_cost_factor:          1;                                                                             
    sprite_id:                    SPRITE_ID_NEW_TRAIN;       
    speed:                        201 km/h;                                                         
    misc_flags:                   bitmask();
    refit_cost:                   0; 
    track_type:                   RAIL;                                                                         
    ai_special_flag:              AI_FLAG_PASSENGER;
    power:                        0;                                                                                                                                     
    cargo_capacity:               84;                                                                           
    weight:                       49 ton;                                                                       
    ai_engine_rank:               0;                                                                                                                                                         
    tractive_effort_coefficient:  0.3;
    air_drag_coefficient:         0.06;   
    visual_effect_and_powered:    visual_effect_and_powered(VISUAL_EFFECT_DISABLE, 0, DISABLE_WAGON_POWER);
    extra_weight_per_wagon:       40 ton;
    bitmask_vehicle_info:         0;
    }
    graphics {
        purchase:                spriteset_Amfleet_Coach_purchase;               
        additional_text:         return string(STR_Amfleet_Coach_Desc);                                               
        length:                  8;
        default:                 sw_Amfleet_Coach_gui;                                                       
    }
}

switch(FEAT_TRAINS, SELF, sw_Amfleet_Cafe_gui, getbits(extra_callback_info1, 0, 8) ) {
  0x00:  spriteset_Amfleet_Cafe;
  spriteset_Amfleet_Cafe_depot;
}

item (FEAT_TRAINS, item_Amfleet_Cafe) {                                                                     
  property {
    name:                         string(STR_Amfleet_Cafe_Name);                                               
    climates_available:           bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
    introduction_date:            date(1975, 1, 6);     
    model_life:                   VEHICLE_NEVER_EXPIRES;                                             
    vehicle_life:                 20;                                                                                     
    refittable_cargo_classes:     bitmask(CC_PASSENGERS);                                                         
    non_refittable_cargo_classes: bitmask();
    loading_speed:                13;
    cost_factor:                  24;                                                                           
    running_cost_factor:          1;                                                                             
    sprite_id:                    SPRITE_ID_NEW_TRAIN;       
    speed:                        201 km/h;                                                         
    misc_flags:                   bitmask();
    refit_cost:                   0; 
    track_type:                   RAIL;                                                                         
    ai_special_flag:              AI_FLAG_PASSENGER;
    power:                        0;                                                                                                                                     
    cargo_capacity:               32;                                                                           
    weight:                       49 ton;                                                                       
    ai_engine_rank:               0;                                                                                                                                                         
    tractive_effort_coefficient:  0.3;
    air_drag_coefficient:         0.06;   
    visual_effect_and_powered:    visual_effect_and_powered(VISUAL_EFFECT_DISABLE, 0, DISABLE_WAGON_POWER);
    extra_weight_per_wagon:       40 ton;
    bitmask_vehicle_info:         0;
    }
    graphics {
        purchase:                spriteset_Amfleet_Cafe_purchase;               
        additional_text:         return string(STR_Amfleet_Cafe_Desc);                                               
        length:                  8;
        default:                 sw_Amfleet_Cafe_gui;                                                       
    }
}


Does your sprite file has 9 sprites (8 out of depot and 1 as purchase icon) ?

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
 Post subject: Re: Many NML questions
PostPosted: Mon May 21, 2018 7:11 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 356
Location: Mariupol, Ukraine.
Yes

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
 Post subject: Re: Many NML questions
PostPosted: Mon May 21, 2018 8:35 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1275
Location: Courbevoie, near Paris, France
Did you place the sprites correctly in the file (8px between each view) ?

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
 Post subject: Re: Many NML questions
PostPosted: Tue May 22, 2018 2:27 pm 
Offline
Director
Director
User avatar

Joined: Mon Apr 17, 2017 4:52 pm
Posts: 598
Location: Western Ile-de-France Region
A sprite being orphaned is not something to worry about: it's normal to get these.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 26 posts ]  Go to page 1 2 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-2018 phpBB Limited

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