Re: Indonesian Road Vehicles Set (IRVS)
Posted: 13 Aug 2013 11:17
See New IRVS Website : http://irvs.wikispaces.com/
The place to talk about Transport Tycoon
https://www.tt-forums.net/
Nice, but it's missing a lot of vehiclesSkiddLow wrote:Like this for create
Woo ! Let's write some .nml and .lng .SkiddLow wrote:
You can't just take the graphics. You may be violating copyrights. Did you check that?SkiddLow wrote:I Took The Graphic
Hoorah! GRF/NML file please?YNM wrote:Here it is !
Nah, let's use the long vehicles scale (3.3 pixels per metre)!YNM wrote:Your sprites is way too big, wrt to the white boundingboxes
Probably not GRF yet, as Purno stated. But I'll happily show you the whole code :UseYourIllusion wrote:Hoorah! GRF/NML file please?YNM wrote:Here it is !![]()
Code: Select all
/* Define grf */
grf {
grfid: "IRV\00";
/* GRF name and description strings are defined in the lang files */
name: string(STR_GRF_NAME);
desc: string(STR_GRF_DESC);
/* This is the first version, start numbering at 0. */
version: 0 ;
min_compatible_version: 0;
}
/* Define the spritesets, these allow referring to these sprites later on */
spriteset (set_ertiga_front, "ERTIGA.png") {
[ 1, 1, 17, 20, -8, -7] // xpos ypos xsize ysize xoff yoff
[ 19, 1, 26, 17, -15, -6]
[ 46, 1, 31, 17, -14, -8]
[ 78, 1, 21, 17, -7, -7]
[100, 1, 17, 24, -6, -10]
[118, 1, 21, 17, -13, -7]
[140, 1, 31, 17, -16, -8]
[172, 1, 26, 17, -11, -6]
}
spriteset (set_ertiga_purchase, "ERTIGA.png") {
[ 46, 1, 31, 17, -16, -12] // xpos ypos xsize ysize xoff yoff
}
/* Define the road vehicle */
item(FEAT_ROADVEHS, item_ertiga) {
property {
/* Properties common to all vehicle types */
name: string(STR_NAME_ROADVEH_1);
climates_available: bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);
introduction_date: date(1,1,1);
model_life: VEHICLE_NEVER_EXPIRES;
/* retire_early not set, use default retirement behaviour */
vehicle_life: 5;
reliability_decay: 20;
refittable_cargo_classes: bitmask(CC_PASSENGERS);
non_refittable_cargo_classes: bitmask();
loading_speed: 7;
cost_factor: 0;
running_cost_factor: 0;
/* cargo_age_period is left at default */
/* RV-specific properties */
sprite_id: SPRITE_ID_NEW_ROADVEH; //enable new graphics
speed: 90 km/h;
misc_flags: bitmask();
refit_cost: 0; // Refitting is free
/* callback_flags are not set, no need to manually enable callbacks */
running_cost_base: RUNNING_COST_ROADVEH;
power: 120 hp;
weight: 5 ton;
/* TE and air drag coefficient is left at default */
cargo_capacity: 2;
sound_effect: SOUND_BUS_START_PULL_AWAY;
/* Visual effect is left at default (no effect) */
}
/* Define graphics and callbacks
* Setting all callbacks is not needed, only define what is used */
graphics {
default: set_ertiga_front;
}
}
Code: Select all
##grflangid 0x01
STR_GRF_NAME :Indonesian Road Vehicle Set (IRVS)
STR_GRF_DESC :{BLACK}This NewGRF (at last, will) contains assorted collections of Indonesia road vehicles, ranging from small
private cars to (hopefully) large busses and trucks. {SILVER}Credits to the maker of NML tutorial, as the code is still derived from the code
there.
STR_NAME_ROADVEH_1 :Nissan Ertiga
I'd be grateful if you uploaded a corrected version !UseYourIllusion wrote:Nah, let's use the long vehicles scale (3.3 pixels per metre)!YNM wrote:Your sprites is way too big, wrt to the white boundingboxes
Yup, and it's even bigger than the long vehicles scale as well (3.3 pixels per meter). According to Wikipedia, this car is 4.265 metres long, so that would be around 14 pixels in length, but this car is about 31 pixels!Quast65 wrote:Those cars are way too big for the Openttd scale
Only if somebody will to edit the image and make it better...UseYourIllusion wrote:Yup, and it's even bigger than the long vehicles scale as well (3.3 pixels per meter). According to Wikipedia, this car is 4.265 metres long, so that would be around 14 pixels in length, but this car is about 31 pixels!Quast65 wrote:Those cars are way too big for the Openttd scale
If only resizing was possible...and look good, rather than thisYNM wrote:Only if somebody will to edit the image and make it better...UseYourIllusion wrote:Yup, and it's even bigger than the long vehicles scale as well (3.3 pixels per meter). According to Wikipedia, this car is 4.265 metres long, so that would be around 14 pixels in length, but this car is about 31 pixels!Quast65 wrote:Those cars are way too big for the Openttd scale
Those resized ones are at least in a better scale.UseYourIllusion wrote: If only resizing was possible...and look good, rather than this: