Transport Tycoon Forums
https://www.tt-forums.net/

TTDVehs in 2cc [dev]
https://www.tt-forums.net/viewtopic.php?f=26&t=35091
Page 1 of 2

Author:  BlueEagle_nl [ Fri Nov 30, 2007 5:44 pm ]
Post subject:  TTDVehs in 2cc [dev]

TTDVehs in 2CC

This set enables you to use the original TTD Vehicles in 2CC.

Status: Still in Dev

FIRST RELEASE AVAILABLE AS OF TODAY, December 12, 2007
The first release contains:
* A livery override for the SH 125
* The Passenger Coach in 2CC

Download:
Attachment:
File comment: First Release containing Livery Override for SH 125 (Passenger Only) and Passenger Coach in 2cc for all other locs (rail only)
ttd2ccw.grf [3.48 KiB]
Downloaded 128 times


=Original Message=
Hi,

I'm currently trying to get the original ttd graphics in 2cc by altering the original grf. But, after setting the right colors (those with id 80-87, that green tint) and compiling the new GRF, openTTD still doesn't give me the opportunity to change the second company color.

What do I have to do to get 2cc enabled and have openTTD really transform that green tint to the 2cc color?

Thanx

Author:  DaleStan [ Fri Nov 30, 2007 5:50 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

You have to set bit 1 of the miscellaneous flags property. Meaning you have to use newgrf.

Author:  BlueEagle_nl [ Sat Dec 01, 2007 5:01 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

that means I also have to get the graphics out of the original files and create my own set? Isn't it possible to set that bit for the original GRF-files? That's actually what i'm trying at the moment...

I'm not kinda good in coding the nfo-files and I don't know if there are linux tools to help me with it (is GRFMaker Linux Compatible?), but with the documentation at the Wiki I think I'll get far enough...

Author:  DaleStan [ Sat Dec 01, 2007 11:27 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

Paffy Duck wrote:
that means I also have to get the graphics out of the original files and create my own set? Isn't it possible to set that bit for the original GRF-files?
Yes and no. Either way you have to set the bit in a newgrf, and if you want that newgrf to be useful to other people, you have to distribute the graphics too, which also must be done with newgrf. You can, however, fail to set new graphics for a vehicle, in which case it'll use the graphics found in trg*.grf.

Paffy Duck wrote:
(is GRFMaker Linux Compatible?)
It might run under wine. It's written in a dialect of Pascal that I believe is not readily source-portable to Linux, though.

Author:  BlueEagle_nl [ Mon Dec 03, 2007 9:54 am ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

thanx for the info, I'll see what I can do.

I think it'll be newGRFs then... that is easier I think...

Can I find the original vehicle information somewhere, or is this already hard-coded in the game and can I leave it out of the new grf? I Can't get any info for the vehicles from the .nfo-files, except which sprite is located where.

Author:  belugas [ Mon Dec 03, 2007 5:16 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

Paffy Duck wrote:
Can I find the original vehicle information somewhere, or is this already hard-coded in the game and can I leave it out of the new grf? I Can't get any info for the vehicles from the .nfo-files, except which sprite is located where.

This is the Mother Of All NewGRF Informations.
Have fun reading it :)

Author:  DaleStan [ Mon Dec 03, 2007 5:45 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

But the mother of all newgrf informations does not contain the stats for the default vehicles. Those are hard-coded.

Author:  belugas [ Mon Dec 03, 2007 8:13 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

Ho.. right...
I guess i'm a bit too much involved in houses/Industries specs, which do have default values available.
Well.. one can dig in the sources of OpenTTD, if one can understand how the data is organized.

Author:  BigBB [ Mon Dec 03, 2007 10:47 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

belugas wrote:
Ho.. right...
I guess i'm a bit too much involved in houses/Industries specs, which do have default values available.
Well.. one can dig in the sources of OpenTTD, if one can understand how the data is organized.

Or you go to the Mother Of All OpenTTD Informations or exactly: the manual page

Regards,
BigBB

Author:  BlueEagle_nl [ Tue Dec 04, 2007 4:37 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

belugas wrote:
Paffy Duck wrote:
Can I find the original vehicle information somewhere, or is this already hard-coded in the game and can I leave it out of the new grf? I Can't get any info for the vehicles from the .nfo-files, except which sprite is located where.

This is the Mother Of All NewGRF Informations.
Have fun reading it :)


I downloaded it already, and am studying it. But I just noticed after decoding trg1r.grf there are NO pseudosprites at all in the file...

DaleStan wrote:
But the mother of all newgrf informations does not contain the stats for the default vehicles. Those are hard-coded.


Then I think I won't set the Vehicle Information, but just activate Bit 1 of the Misc Flag, and assign the new GRF's...

Author:  Rubidium [ Tue Dec 04, 2007 6:08 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

That's because those GRFs were made long long before even the concept of NewGRF and pseudosprites was born.

Author:  athanasios [ Wed Dec 05, 2007 2:52 am ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

I thought there existed a kind of 'pseudosprites' in TTD. Sorry I am not a coder and maybe I am wrong. DaleStan?

Author:  Maedhros [ Wed Dec 05, 2007 7:52 am ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

There are two things that I know of that aren't sprites in the sense of being images shown in the game - recolour sprites (that provide company colours, transparency, etc.), and sprites used by the original land generator for some purpose that's never been entirely clear to me.

Author:  DaleStan [ Fri Dec 07, 2007 10:35 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

Maedhros is correct. The only pseudosprites in the original graphics are the recolor tables.

The ten or so landscape-generator sprites are pretty obvious (especially in the Windows version, where they're almost entirely blue and pink) and are no longer obeyed by Open; they describe non-random landshapes to apply after the generator has made the generic landscape.

Author:  athanasios [ Fri Dec 07, 2007 11:32 pm ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

Thanks for clarification. :)

Author:  BlueEagle_nl [ Sat Dec 08, 2007 9:58 am ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

Could a MOD rename this topic to "TTDVehs in 2cc [dev]"? The set is currently in development, I only have one small problem...

I have coded the train wagon sprites, but for all wagons, except the Passenger Wagon, other sprites (read: train (locomotive) sprites) are used.
When I decode the set through grfcodec, the right wagon sprites are shown in the file. What could be wrong?
I have coded the file like:
First, the Action 0 defining all vehicles using new graphics and 2cc
Second, the sprite blocks which use the Actions 1, 2 and 3.
and more and more sprite blocks...

Author:  Maedhros [ Sat Dec 08, 2007 10:31 am ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

It's hard to tell what might be wrong without being able to see the nfo. ;-)

Author:  LordAzamath [ Sat Dec 08, 2007 10:33 am ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

Paffy Duck wrote:
Could a MOD rename this topic to "TTDVehs in 2cc [dev]"? The set is currently in development, I only have one small problem...
.

You can do it by yourself too...Just change the subject of the first post

Author:  BlueEagle_nl [ Mon Dec 10, 2007 10:28 am ]
Post subject:  Re: Needing help transforming trg*.grf files to 2cc

lordazamath wrote:
Paffy Duck wrote:
Could a MOD rename this topic to "TTDVehs in 2cc [dev]"? The set is currently in development, I only have one small problem...
.

You can do it by yourself too...Just change the subject of the first post


Thanx, I just thought I couldn't edit my own posts (even not the first one of a topic) after someone replied to it... That's why I asked.

EDIT:
I made some progress in getting the train vehicles in 2CC. The Wagons are coded correctly now (no more glitches as mentioned above) and the Passenger, Mail and Coal wagons all have 2cc applied. Screenshot follows.

Author:  Zephyris [ Mon Dec 10, 2007 12:22 pm ]
Post subject:  Re: TTDVehs in 2cc [dev]

Are you reusing and recolouring existing graphics, or are you redrawing the original graphics? Besides being slightly copyright controversial you might find the attached sprites useful, I'm not going to use them...

Attachments:
File comment: Licence = GFDL, Creative Commons 2, or similar.
TrainSprites.png [39.99 KiB]
Downloaded 246 times

Page 1 of 2 All times are UTC
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.