News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

[patch] slope tools

Started by Dwachs, September 20, 2009, 12:34:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dwachs

This patch changes the raise and lower tools such that they work nicely with artificial slopes. That is, the corner of a tile will not be raised/lowered if it is already high/low enough. For example, you can now use the raise tool on tiles that are created with artificial slopes, and the raising will not create crazy slopes.

This patch should somehow fix some of the bug reports:
http://forum.simutrans.com/index.php?topic=3057.msg30078#msg30078
http://forum.simutrans.com/index.php?topic=3053.msg30080#msg30080

I did not touch the 'restore natural slope'.

Parsley, sage, rosemary, and maggikraut.

z9999

#1
How can I restore this slope ?


Please don't worry. I could do it.  :)


[EDIT2]
A problem on deep water.

VS

If this is what I think it is, then you just made my day :)

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!

Dwachs

Thank you for testing!

Quote from: z9999 on September 20, 2009, 02:02:36 PM
How can I restore this slope ?


Please don't worry. I could do it.  :)
Your picture slope2.png shows pretty much the essence of the patch: The lower/raise tools now raise/lower the upper (northwest) corner of the tile. In the picture the result should be a smooth surface.

Quote
A problem on deep water.
This problem should also happen without the patch. Also the depth of the underwater tiles is not changed. Ie raising land near very deep water keeps the very deep water and does not change the depth.
Parsley, sage, rosemary, and maggikraut.

z9999

#4
Quote from: Dwachs on September 20, 2009, 05:48:57 PM

This problem should also happen without the patch.

No. Try by yourself.

Dwachs

Quote from: z9999 on September 20, 2009, 06:02:46 PM
No. Try by yourself.
yes your are right.

However there is also a cursor misplacement on deep water tiles. Ie the simutrans cursor does not follow the mouse cursor right.
Parsley, sage, rosemary, and maggikraut.

Dwachs

Updated the patch: terraforming water tiles should now work correctly. Also the 'restore-natural-slope' is modified to give less buggy results.
Parsley, sage, rosemary, and maggikraut.

VS

Wow, really nice :) Could this smart handling work with house "fundaments", too?

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!

Dwachs

Patch update: if you press the control key while raising land, steeper mountains are created, see screenshot. I did not implement  this for the lower tool. Also there are some graphical glitches that disappear after scrolling etc.
Parsley, sage, rosemary, and maggikraut.

Fabio

nice! could you modify your patch to use (if present) a 2X slope?

prissi

Change of height patch incorporated, grid_hgts not saved any more (not needed anyway ... ) CNTRL+Klick not incorporated.