News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Deleting bridges

Started by gerw, February 19, 2009, 07:59:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerw

I recently made a new patch, which allows to build bridges with steep slopes on both sides (like the one in the image). That can be done easily, but one new problem is arising: You can't delete these bridges, cause you can delete bridges only on their first tile (slope), but this "new" bridges doesn't have such a tile and thus they can't be deleted. (Now I've spotted: They can be deleted with the way deletion tool).

You can easy change some other code and then, whenever applying the remove tool to a bridge ground (which is empty) the whole bridge is deleted. But maybe then you delete some bridges accidentially?

Any ideas?

prissi

But if I want to make an elevated bridge instead of a flat, how does the code recognize this?

gerw

If you hold down ctrl, simutrans tries to create a flat bridge, otherwise it uses the old code.

VS

So this would enable more compact railway crossings?

This was my first idea for TTDpatch years ago (never coded). It brings back memories...

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

isidoro

Perhaps the same key used for going up/down one level in underground mode could be used to elevate the cursor one tile up/down when editing...

Dwachs

I think the most consistent way to delete such a bridge, is by the way-remover tool. Deleting a bridge if one clicks accidentally with the remover-tool on some tile (not a ramp) would be very irritating.
Parsley, sage, rosemary, and maggikraut.

gerw

Ok, this is already possible.