How to modify vehicle values

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
aaron.strandberg
Engineer
Engineer
Posts: 2
Joined: 22 Jul 2013 00:31

How to modify vehicle values

Post by aaron.strandberg »

Hi everybody, I am a newbe on this forum, but I play OpenTTD from a long time.
I am wondering if it is possible to modify values of the basic vehicles such as speed, capacity and so on.
If yes, could you explain me very well how to do that?

Thanks a lot
Last edited by planetmaker on 22 Jul 2013 09:09, edited 1 time in total.
Reason: changed title to sth meaningful. Please use speaking titles instead of just 'question'
TinyMusic
Tycoon
Tycoon
Posts: 1422
Joined: 02 Feb 2013 02:03

Re: Question

Post by TinyMusic »

aaron.strandberg wrote:Hi everybody, I am a newbe on this forum, but I play OpenTTD from a long time.
I am wondering if it is possible to modify values of the basic vehicles such as speed, capacity and so on.
If yes, could you explain me very well how to do that?

Thanks a lot
It's called making NewGRFs. I've never done it (since I can't draw or code), but you start reading this:
http://www.tt-wiki.net/wiki/NMLTutorial
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
aaron.strandberg
Engineer
Engineer
Posts: 2
Joined: 22 Jul 2013 00:31

Re: How to modify vehicle values

Post by aaron.strandberg »

Where can I find the basic set of Vehicles?
TinyMusic
Tycoon
Tycoon
Posts: 1422
Joined: 02 Feb 2013 02:03

Re: How to modify vehicle values

Post by TinyMusic »

That would be the base graphics set that you are using, OpenGFX. I'm no expert, but you can find the code somewhere, edit it, and compile it as a NewGRF file.
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: How to modify vehicle values

Post by planetmaker »

UseYourIllusion wrote:That would be the base graphics set that you are using, OpenGFX. I'm no expert, but you can find the code somewhere, edit it, and compile it as a NewGRF file.
No, you can't do that with base sets. Base sets only contain graphics for the vehicles. All their properties are hard-coded within OpenTTD. And can be overridden or disabled by NewGRF code. For a minimal NewGRF which for instance just changes speed of a vehicle you can borrow exactly 0 bits from a base set.

The properties of the default vehicles are also described in the general NewGRF documentation (NFO or NML), though. And there's an NML tutorial, too as there are many projects on the DevZone
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 19 guests