Skip to main content
Topic: [patch] slope tools (Read 4160 times) previous topic - next topic

[patch] slope tools

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.

Re: [patch] slope tools

Reply #1
How can I restore this slope ?

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

[EDIT2]
A problem on deep water.

Re: [patch] slope tools

Reply #2
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!

Re: [patch] slope tools

Reply #3
Thank you for testing!

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.


Re: [patch] slope tools

Reply #5
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.

Re: [patch] slope tools

Reply #6
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.

Re: [patch] slope tools

Reply #7
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!

Re: [patch] slope tools

Reply #8
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.

Re: [patch] slope tools

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

 

Re: [patch] slope tools

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