Page 1 of 1

TTD ALTER for OpenTTD

Posted: 26 May 2006 10:22
by taken
Welcome.
Where i found a editor train`s like TTD Alter for TTDLX ?? But i want edit a train on OpenTTD.
And my next question how i can add my own train, bus and aircraft in OpenTTD?

Greets

Posted: 26 May 2006 13:06
by bobingabout
we've already been down this road before, it impossable (or extreamly difficult and not worth is) to make a TTDAlter type program for OTTD, because every time you compile the program, it will be completly different, and the part of the code you would need to alter has moved location, which happens several times a day in the development versions, not to mention optimisations, and many different platforms, increasing the number of posabile versions by several billion.(many people alter the code for personal use(maybe to make it work on their PSP, or to optimise it for the spacific hardware in their computer), if you add up all the times anyone has done this, you are looking at billions or even trillions of versions of OTTD over its lifetime so far) how can 1 program know where to find a few spacific bytes of code out of that many different versions?

since the game is open, this means you can download and alter the code directly, this can be used to alter the statistics of whatever you want in the code, then compile it yourself, however, like TTDPatch, OpenTTD has a lot of NewGRF support, so, i, and many others will sugest that you try and do what you want to do using newGRF

although the primary purpose of a GRF is to allow new graphics(hence the name NewGRF), it also contains pseudo sprites, which is code, this code if used correctly can alter statistics of your vehicles, and bridges, and more, with not only working on current, and many past versions of OpenTTD, but also TTDPatch.

granted, its not as easy to learn and use as a TTDAlter program, but some very smart people are working on a program that will allow you to create a NewGRF much in the same was as TTDAlter allows you to alter statistics in TTDX.

Posted: 30 May 2006 01:16
by orudge
Indeed, TTDAlter doesn't, and probably never will, work with OpenTTD I'm afraid. At some point, I may get the GRF Export plug-in complete though, which will effectively let you alter OpenTTD vehicles the same way you can alter normal TTD vehicles (although not newgrf files). But I need to finish that, which may take some time...

Posted: 03 Jun 2007 01:50
by jezza333
Gday there, any progress on an editor? 8)

Cheers

Posted: 03 Jun 2007 04:12
by Rubidium
jezza333 wrote:Gday there, any progress on an editor? 8)
What about the "it's impossible to make a TTDAlter type program for OTTD" of bobingabout don't you understand?

Posted: 03 Jun 2007 07:25
by dev|ant
jezza333 wrote:Gday there, any progress on an editor? 8)

Cheers
Sure is, it's called NewGRF. 8)

Posted: 03 Jun 2007 14:42
by NCarlson
If you're going to revive a dead topic, it REALLY helps to read the thread first.

Posted: 03 Jun 2007 17:14
by orudge
As I say, there's the possibility of a GRF export plug-in sometime, hypothetically. Not sure when. Anyone capable of Windows programming could in theory create one - the TTDAlter API is well documented (although could do with a bit of work I guess). If I ever get around to it, I may take a look at it this summer, although I'd need to reinstall Visual Basic...

Basically, unless someone does it, it's not likely to be done. Kind of obvious, really, but, eh.

Posted: 04 Jun 2007 04:04
by jezza333
Rubidium wrote:
jezza333 wrote:Gday there, any progress on an editor? 8)
What about the "it's impossible to make a TTDAlter type program for OTTD" of bobingabout don't you understand?
I wasn't necessarily referring to a program... just a newgrf plugin that can basically do the same functions. I appreciate your work, but there's no need to get heated over my question, even though it was done in ignorance :roll:

orudge, thanks for the response mate. :wink:

BTW sorry for bumping the topic :oops:

Posted: 04 Jun 2007 16:39
by Grolsch
Just spraying my thoughts here, I'm not a programmer so I have no clue if what I'm about to suggest is possible, but here it goes:

Is it possible to program a simple tool in which you can change all the values of all the vehicles, that then exports a .patch file, with which you can compile your own version with BuildOTTD? That way it is usable for non-programmers as well...

Posted: 05 Jun 2007 07:55
by bobingabout
probably easier just to export a NewGRF file, so that you don't need to re-compile it all.

Posted: 05 Jun 2007 16:36
by CMircea
And it's a lot harder to code.

Posted: 05 Jun 2007 16:44
by belugas
Desolator wrote:And it's a lot harder to code.
You mean code the grf to change all the values?

This would be easier than to program the suggested simple tool...
GRF is not THAT hard to learn, you know. And the more people know it, the more goodies will come up, the more will be to play with.

And further more, you don't have to wait for somebody else to find the time and the drive to make it all for you, since you are your own boss ;)

Posted: 05 Jun 2007 22:13
by athanasios
belugas wrote:GRF is not THAT hard to learn, you know...
It is simply HELL :lol:

Posted: 06 Jun 2007 05:47
by CMircea
Making a GRF by hand is much easier than coding an application to do it. Yu'll have 60 billion lines of "if x == true then" code.