Macros for OpenTTD

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
Nem
Engineer
Engineer
Posts: 53
Joined: 01 Dec 2002 10:26
Location: Toscana (Tuscany), Italy

Macros for OpenTTD

Post by Nem »

I've proposed this idea some time ago in TTDPatch forum, you can find it in the follow link:
http://www.tt-forums.net/viewtopic.php? ... highlight=

In that context it wasn't accepted, I hope better luck this time.

And now the suggestion:

Is it possible to have macros in OpenTTD? that could be very useful to build complex structure in one click. For example: 4-ways cross, complete stations, ...
Besides the macros can be stored in files, so players can create and exchanged them.

The next example may explain better my thought.

The player searches a suitable area for his structure and, using the mouse and some hotkey (or a new button in the construction interface), starts the macro.

OpenTTD subroutine follows the next steps:

1) If possible, buy the essential terrain for the player.
2) Check if each terrain square has the proper shape (for example all flat land) in order to start the building.
3) Starts building the structure using the construction tools.
Last edited by Nem on 01 May 2004 07:37, edited 1 time in total.
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

Sounds interesting. Pre-built junctions, stations, etc. Would require a lot of work, but not impossible.
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

why is this even needed. I always have to think of a way to make it fit the location
I guess it could be useful if you are playing on a map without A LOT of hills
User avatar
Nem
Engineer
Engineer
Posts: 53
Joined: 01 Dec 2002 10:26
Location: Toscana (Tuscany), Italy

Post by Nem »

Bjarni wrote:why is this even needed. I always have to think of a way to make it fit the location
I guess it could be useful if you are playing on a map without A LOT of hills
It will let you build a big railways network more easily.

To simplify a bit the code it should work only on flat land.
User avatar
MHTransport
Engineer
Engineer
Posts: 97
Joined: 25 Mar 2004 00:32

Would be Helpfull

Post by MHTransport »

I often find that when I am building a complete four clover leaf or even a tree clover leaf, I get one signal wrong and then my trains have trouble.

It would be better if it was a smart macro. So say you had two two lane crossing tracks. You could click the auto build click four clover leaf and it would adapt it for the terrain, or complains it's too complex.
A better OS: http://ubuntu.com/
Soon an even better OS: http://haiku-os.org/
User avatar
Nem
Engineer
Engineer
Posts: 53
Joined: 01 Dec 2002 10:26
Location: Toscana (Tuscany), Italy

Re: Would be Helpfull

Post by Nem »

MHTransport wrote:... it would adapt it for the terrain, or complains it's too complex ...
I think that this's too much difficult for coders; in that way a lot of recursions are needed.
I believe that flatting the terrain and build a standard cross is simplier than adapt a cross to the terrain.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

I believe that we still would like to play the game. With all the suggestions here, you could just start up the game, let it running, come back 2 days later, and you have finished the game.
With all the Macro's, fast-speed, auto-this, auto-that. Where's the fun?

I always enjoy building tracks, complex junctions, fit the space available (not good manners to bulldoze everything), watch the trains. TTD is not a competition game of who can click the fastest, it's supposed to be fun.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

@Darkvater: Full ack! :D
User avatar
Nem
Engineer
Engineer
Posts: 53
Joined: 01 Dec 2002 10:26
Location: Toscana (Tuscany), Italy

Post by Nem »

Darkvater wrote: With all the Macro's, fast-speed, auto-this, auto-that. Where's the fun?
It's the same differences between assemby and VisualC++, someone enjoy the first, someone else the second.
Like TTDPatch, if you don't like an option you can disable it. I' don't want to impose the way to play the game to others people.
Besides this is a suggestion forum, what are suppose to do here instead proposing game enhancements?

Personally I think that’s fun to develop a entire railways system and quite boring to spend time creating always the same type of cross. Did you use more than 2 or 3 types of cross in your games? I’m meaning big cross, not a few tracks junctions

If you think that it makes the game easy we can agree to make this option very expensive and available only after a certain year (1990??).

Bye
BobXP
Tycoon
Tycoon
Posts: 2720
Joined: 04 May 2003 11:00
Location: Torquay, England
Contact:

Post by BobXP »

I think it would be best to select an area on the map then save that area of each of the landscape arrays as a file. When putting down pre-fabs, copy the saved file into the landscape arrays. Then work out how much it costs.

Note - when saving, anything that isn't owned by you is changed to bare land (even grass) in the file. When loading, anything stored as bare land doesn't replace what's already there. That way, you can have things that aren't rectangles.

I would also find it useful to be able to "pattern save" an area, so say you pattern save an area of combo track (my invention, and if anyone wants to know about it see the TT section of my website), then the next time you create track you can lay down multiple blocks of the track in one stroke (=click and drag), plus it will alter the land for you!
<!-- End Of Post !-->
Image
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

Nem wrote:Did you use more than 2 or 3 types of cross in your games? I’m meaning big cross, not a few tracks junctions
I never got 2 identical. I custom build all of them instead of thinking about how I did the last time
That makes the game more fun
mikeya
Route Supervisor
Route Supervisor
Posts: 439
Joined: 09 Mar 2003 10:12
Location: Schagen, The Netherlands
Contact:

Post by mikeya »

I like the idea of macros. Especially handy for making trains, because I'm always fiddling with how much wagons I need and when you build a network with 20 identical trains I always f*** some of them up :P.

Though I think the developers shouldn't pay too much attention to this right now. But it sounds great as an extra feature.
Mike,
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 23 guests