The Ikea supermarket produced crates of Goods without the need to provide Timber, I want it to produce ONLY IF it receives Timber first.
At the service station I have a different error, and it is that it requires Petrol Fuel and Food but the legend "0 liters or items waiting....) appears, that is not supposed to appear since it is the cargo final destination.
Ikea Code (Petrol Station it´s almost similar)
Code: Select all
item(FEAT_INDUSTRIES, ikea, 118) {
property {
substitute: 0;
life_type: IND_LIFE_TYPE_PROCESSING;
closure_msg: TTD_STR_NEWS_INDUSTRY_CLOSURE_SUPPLY_PROBLEMS;
prod_increase_msg: TTD_STR_NEWS_INDUSTRY_PRODUCTION_INCREASE_GENERAL;
prod_decrease_msg: TTD_STR_NEWS_INDUSTRY_PRODUCTION_DECREASE_GENERAL;
new_ind_msg: TTD_STR_NEWS_INDUSTRY_CONSTRUCTION;
min_cargo_distr: 5;
map_colour: 73;
spec_flags: bitmask(IND_FLAG_LONG_CARGO_TYPE_LISTS, IND_FLAG_ONLY_IN_LARGE_TOWNS);
layouts:
[
ikea_industry_layout_1_tilelayout,
];
conflicting_ind_types: [];
name: string(STR_IND_ikea);
nearby_station_name: string(STR_STATION, string(STR_TOWN));
prob_random: 12;
prob_in_game: 4;
prospect_chance: 0.75;
fund_cost_multiplier: 1;
remove_cost_multiplier: 0;
cargo_types: [accept_cargo("WDPR"),produce_cargo("GOOD",10)];
}
}
item(FEAT_INDUSTRIES, ikea, 118) {
graphics {
extra_text_industry: return string(STR_EXTRA_ikea);
location_check: ikea_check_location;
}
}
Code: Select all
spriteset(cargoicon_petrol) { [10 + 20 * 12, 10 + 20 * 1, 10, 10, 0, 0, "gfx/other/cargoicons.png"] }
item(FEAT_CARGOS, petrol, 21) {
property {
number: 21;
type_name: string(TTD_STR_CARGO_PLURAL_PETROL);
unit_name: string(TTD_STR_CARGO_SINGULAR_PETROL);
type_abbreviation: string(TTD_STR_ABBREV_PETROL);
sprite: NEW_CARGO_SPRITE;
weight: 0.8;
station_list_colour: 172;
cargo_payment_list_colour: 172;
is_freight: 1;
cargo_classes: bitmask(CC_LIQUID, CC_HAZARDOUS);
cargo_label: "PETR";
town_growth_effect: TOWNGROWTH_NONE;
town_growth_multiplier: 1.0;
units_of_cargo: TTD_STR_LITERS;
items_of_cargo: string(STR_CARGO_UNIT_PETROL);
penalty_lowerbound: 18;
single_penalty_length: 255;
price_factor: 043;
capacity_multiplier: 1;
}
graphics {
//station_rating: switch_station_rating;
cargoicon_petrol;
}
}
Code: Select all
spriteset(cargoicon_food) { [10 + 20 * 12, 10 + 20 * 0, 10, 10, 0, 0, "gfx/other/cargoicons.png"] }
item(FEAT_CARGOS, food, 19) {
property {
number: 19;
type_name: string(TTD_STR_CARGO_PLURAL_FOOD);
unit_name: string(TTD_STR_CARGO_SINGULAR_FOOD);
type_abbreviation: string(TTD_STR_ABBREV_FOOD);
sprite: NEW_CARGO_SPRITE;
weight: 1.0;
station_list_colour: 48;
cargo_payment_list_colour: 48;
is_freight: 1;
cargo_classes: bitmask(CC_REFRIGERATED, CC_EXPRESS);
cargo_label: "FOOD";
town_growth_effect: TOWNGROWTH_NONE;
town_growth_multiplier: 1.0;
units_of_cargo: TTD_STR_ITEMS;
items_of_cargo: string(STR_CARGO_UNIT_FOOD);
penalty_lowerbound: 0;
single_penalty_length: 24;
price_factor: 149.803161621;
capacity_multiplier: 1;
}
graphics {
//station_rating: switch_station_rating;
cargoicon_food;
}
}