Level Land tool (v 0.5, working, please test!)

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
Heinz Humpelstrumpf
Engineer
Engineer
Posts: 12
Joined: 19 Mar 2005 12:42
Location: Holland!

Level Land tool (v 0.5, working, please test!)

Post by Heinz Humpelstrumpf »

---------------------

UPDATE! The patch is finished, version 0.5 is available! I noticed no bugs yet, but there might be some. Download it below. I'll post a compiled version soon (Windows) - ADDED

---------------------

After playing a long game I came up with the following idea:


I think it would be a good idea to improve the "Level land" tool. Now the tool is only able of making square selections. My idea was to enhance the tool so that when you hold control when dragging the 'square' will be rotate by 45 degrees. So that the land that can be selected is like a vertical vertical line. This drastically improves the easy to work with vertical pieces of track.

I've attached images to clearify this. The first is the normal selection, the second image is when holding control down. It could also be implemented for the dynamite tool.

I also tried to code this myself, bu the code is not (so) good documented to get the hang of things easily :(

And I would like to add that OpenTTD is really great and I hope it will become even better :D
Attachments
Dragging with control pressed
Dragging with control pressed
newSelection.png (40.04 KiB) Viewed 7571 times
LevelLandTool0.5.diff
(8.88 KiB) Downloaded 297 times
LevelLandTool0.5.win32.zip
Win32 build from SVN revision 2348
(947.87 KiB) Downloaded 298 times
Last edited by Heinz Humpelstrumpf on 23 May 2005 13:37, edited 4 times in total.
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

I think this is an admirable idea! have you finished the code for the land leveling?
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
User avatar
Arsenal
Traffic Manager
Traffic Manager
Posts: 227
Joined: 06 Jan 2004 21:25

Post by Arsenal »

Oh, what a cracking idea!
It'll be brilliant if it comes to fruition.
:D :D :D
Get that in there!
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

It's a very good idea and I hope it will be attached to next OTTD relase
ShaggZ
Engineer
Engineer
Posts: 27
Joined: 08 Jan 2005 00:25
Location: Norway

Post by ShaggZ »

NICE; this would make it easy to make mountains and stuff :d Thumbs up for this idea :D
<ShaggZ> #Openttdcoop
http://electricpotential.net/openttdcoop/

To love is painful, that is true, but not to love is painful too, but still there is a bigger pain, to love and not be loved again.
STOP THE WORLD! I WANT OFF
Alltaken
Tycoon
Tycoon
Posts: 1285
Joined: 03 Dec 2003 06:24
Location: Christchurch, New Zealand
Contact:

Post by Alltaken »

how about a circular land tool also ;)

Alltaken
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7597
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

that would be nice too.
Image
User avatar
Arsenal
Traffic Manager
Traffic Manager
Posts: 227
Joined: 06 Jan 2004 21:25

Post by Arsenal »

Where would you use a circular land tool?
The minimum size for circular land tool would be 4x4, 12 dots

Code: Select all

   . .    
 . . . .
 . . . .
   . .
Not sure if this would be regarded as "circular"

Code: Select all

   .
 . . .
   .
User avatar
Heinz Humpelstrumpf
Engineer
Engineer
Posts: 12
Joined: 19 Mar 2005 12:42
Location: Holland!

Post by Heinz Humpelstrumpf »

I don't have any code myself (for what I've seen in the source is a selection always square, so there needs to be a new type of selection added).

A circular tool is not so useful I think.
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

after making your diagonally aligned rectangle code, surely making a circle would not be much effort. Its just a tinsy bit of maths and a few code adaptions to what you'll end up with no? I think it would be worth it
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
Alltaken
Tycoon
Tycoon
Posts: 1285
Joined: 03 Dec 2003 06:24
Location: Christchurch, New Zealand
Contact:

Post by Alltaken »

Heinz Humpelstrumpf wrote: A circular tool is not so useful I think.
actually it is (IMO)

mountains, volcanos, gently flowing hills and stuff.

being able to drag a single sized tool in any direction and knowing you will not get sharp corners that look square sticking out everywhere is a "great: feature.

me of course being used to photoshop and tablets etc...

also the size of the tool you are using should be able to be increased by the wheel on the mouse i think ;) that would be cool.

Alltaken
User avatar
Arsenal
Traffic Manager
Traffic Manager
Posts: 227
Joined: 06 Jan 2004 21:25

Post by Arsenal »

A circular tool would be useful in an editor, but I still can't see it's usefulness when playing the game.
User avatar
Centennial_Tycoon
Engineer
Engineer
Posts: 117
Joined: 23 Apr 2003 12:03
Location: Bombay, India

Post by Centennial_Tycoon »

on this idea of raising and levelling land - can it be made like the rct rasiing and lowerig - i mean u should have the option to raise/lower land normally as in with slopes.. but u should aslo be able to make cliffs- i mean even with the feature with whch u can build on slopes, there are still several complincations that arise - especially while tunneling...also a single tile brdige could act as a link betweeen a cliff at one level from another....
This is my truth, now tell me yours.
User avatar
Heinz Humpelstrumpf
Engineer
Engineer
Posts: 12
Joined: 19 Mar 2005 12:42
Location: Holland!

Post by Heinz Humpelstrumpf »

Okay I finally had some time to code this cool addition. See the start post!
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7597
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

It could do with some GUI though. Here is a mock-up
Attachments
example.PNG
example.PNG (49.39 KiB) Viewed 6983 times
Image
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 3 guests