Page 3 of 6

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 13 Aug 2013 11:17
by SkiddLow
See New IRVS Website : http://irvs.wikispaces.com/

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 13 Aug 2013 12:16
by TinyMusic
I think it is better to keep discussions in this thread instead. Ask orudge if you want a page made for the project.

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 14 Aug 2013 04:07
by SkiddLow
EXAM.png
EXAM.png (229.5 KiB) Viewed 7186 times
Like this for create

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 14 Aug 2013 05:57
by YNM
You could edit the sprites of Dutch Road Furniture or so, I guess.

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 14 Aug 2013 08:40
by TinyMusic
SkiddLow wrote:
EXAM.png
Like this for create
Nice, but it's missing a lot of vehicles

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 04:52
by SkiddLow
ERTIGA.png[/Yttachment] [attachment=0]Yaris.png

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 05:03
by YNM
SkiddLow wrote:
ERTIGA.png
Woo ! Let's write some .nml and .lng . :wink:

EDIT : Sorry to bug again, but the sizes of similiarly faced sprites (ie. the two / views , the two \ views, the two _ views, the two | views), including the blue bounding boxes, are different. Through it's quite much not a problem, but this forbids the use of templates, and may makes the code longer (than using templates). As there's only two vehicles, I'll just use direct spritesets of them.

EDIT 2 : Also, you have some wrong shadings. When you mirror the image, don't forget that the light direction stays the same, means different shades.

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 05:58
by Purno
SkiddLow wrote:I Took The Graphic
You can't just take the graphics. You may be violating copyrights. Did you check that?

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 07:08
by YNM
Here it is !
Frondinghead Transport, 19th Mar 2060.png
Frondinghead Transport, 19th Mar 2060.png (107.38 KiB) Viewed 7043 times
Let's zoom in a bit more :
Frondinghead Transport, 19th Mar 2060#1.png
(61.44 KiB) Not downloaded yet
Your sprites is way too big, wrt to the white boundingboxes :
Frondinghead Transport, 20th Mar 2060.png
(97.23 KiB) Not downloaded yet

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 07:30
by TinyMusic
YNM wrote:Here it is !
Hoorah! GRF/NML file please? :wink:
YNM wrote:Your sprites is way too big, wrt to the white boundingboxes
Nah, let's use the long vehicles scale (3.3 pixels per metre)! :)

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 07:36
by YNM
UseYourIllusion wrote:
YNM wrote:Here it is !
Hoorah! GRF/NML file please? :wink:
Probably not GRF yet, as Purno stated. But I'll happily show you the whole code :
(stats are quick make-up)

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;
	}
}
The english.lng file, written here:

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
The rearranged and palletted image :
ERTIGA.png
ERTIGA.png (3.2 KiB) Viewed 7014 times
Anyway, why I can't put in the grfid "IRVS/00" ? I can just put "IRV/00". I remember when I tried to code a station, it was said that there are 4 bytes available.
UseYourIllusion wrote:
YNM wrote:Your sprites is way too big, wrt to the white boundingboxes
Nah, let's use the long vehicles scale (3.3 pixels per metre)! :)
I'd be grateful if you uploaded a corrected version !

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 07:51
by Quast65
Those cars are way too big for the Openttd scale

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 08:07
by TinyMusic
Quast65 wrote:Those cars are way too big for the Openttd scale
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!

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 08:09
by YNM
UseYourIllusion wrote:
Quast65 wrote:Those cars are way too big for the Openttd scale
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!
Only if somebody will to edit the image and make it better... :wink:

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 08:13
by TinyMusic
YNM wrote:
UseYourIllusion wrote:
Quast65 wrote:Those cars are way too big for the Openttd scale
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!
Only if somebody will to edit the image and make it better... :wink:
If only resizing was possible...and look good, rather than this :lol: :
resize.png
resize.png (1.07 KiB) Viewed 6970 times

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 09:17
by SkiddLow
another....
Kijang Pick-up Generasi 1.png
Kijang Pick-up Generasi 1.png (5.4 KiB) Viewed 6937 times
Kijang Generasi 1.png
Kijang Generasi 1.png (5.62 KiB) Viewed 6937 times
Upgrade : Generation 1 " Kijang Buaya"

Upgrade Year : 1977 - 1980

Capacity : 8 Passengers, 16 Industrial Cargos (8.000 Industrial Cargos) (FIRS Support)
HiAce Generasi 5.png
HiAce Generasi 5.png (5.69 KiB) Viewed 6937 times
Upgrade : Generation 5

Upgrade Year : 2004

Capacity : 16 Passengers

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 10:34
by Quast65
UseYourIllusion wrote: If only resizing was possible...and look good, rather than this :lol: :
resize.png
Those resized ones are at least in a better scale. ;-)
Furthermore, I think it is very strange that the different views have different scales.
The / and \ views are much smaller than the - and I views. I don't believe that is correct.

That said, it is nice to see that there actually is stuff being drawn.

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 12:35
by YNM
Could anybody please tell me what's wrong with these heap of sprites wrt to NML Templates ?

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 12:53
by SkiddLow
yes can fixed that :!:

Re: Indonesian Road Vehicles Set (IRVS)

Posted: 15 Aug 2013 13:01
by YNM
Also, you should consider your sprites wrt to other aspects in OTTD, like buildings. Your sprites are as high as a full house in comparison.