The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Dwachs on September 20, 2009, 12:34:01 pm

Title: [patch] slope tools
Post by: Dwachs on September 20, 2009, 12:34:01 pm
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'.

Title: Re: [patch] slope tools
Post by: z9999 on September 20, 2009, 02:02:36 pm
How can I restore this slope ?

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

[EDIT2]
A problem on deep water.
Title: Re: [patch] slope tools
Post by: VS on September 20, 2009, 04:06:51 pm
If this is what I think it is, then you just made my day :)
Title: Re: [patch] slope tools
Post by: Dwachs on September 20, 2009, 05:48:57 pm
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.
Title: Re: [patch] slope tools
Post by: z9999 on September 20, 2009, 06:02:46 pm

This problem should also happen without the patch.

No. Try by yourself.
Title: Re: [patch] slope tools
Post by: Dwachs on September 21, 2009, 08:01:02 am
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.
Title: Re: [patch] slope tools
Post by: Dwachs on September 22, 2009, 09:38:45 am
Updated the patch: terraforming water tiles should now work correctly. Also the 'restore-natural-slope' is modified to give less buggy results.
Title: Re: [patch] slope tools
Post by: VS on September 22, 2009, 11:00:00 am
Wow, really nice :) Could this smart handling work with house "fundaments", too?
Title: Re: [patch] slope tools
Post by: Dwachs on September 23, 2009, 12:16:03 pm
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.
Title: Re: [patch] slope tools
Post by: Fabio on September 23, 2009, 01:03:35 pm
nice! could you modify your patch to use (if present) a 2X slope?
Title: Re: [patch] slope tools
Post by: prissi on September 26, 2009, 05:11:48 pm
Change of height patch incorporated, grid_hgts not saved any more (not needed anyway ... ) CNTRL+Klick not incorporated.