Ludeon Forums

Ludeon Forums

  • April 09, 2020, 04:51:57 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Wall building tool for diagonal lines  (Read 5775 times)

UsF

  • Drifter
  • **
  • Posts: 39
    • View Profile
Wall building tool for diagonal lines
« on: October 12, 2013, 10:12:07 AM »

It would be nice to have an option of building a line diagonally at any angle and have the game make a wall placement accordingly that would set up a secure wall. Horizontal and vertical should be default options, but by using a modify key or a toggle button, people might want to be able to place walls at a more natural angle without having to click each individual wall part to wall of an area with a diagonal line. Basically allow the free placement of a line of wall however the player sees fit.
Logged

British

  • The Third Kickstarter Backer
  • Colonist
  • ***
  • Posts: 455
  • Actually not
    • View Profile
Re: Wall building tool for diagonal lines
« Reply #1 on: October 12, 2013, 11:37:28 AM »

I can see the interest in that (as I do foresee the mayhem some people would create with it :P).

As of now the most basic unit for everything but characters (and animals) is a 1x1 square.
This unit allows every form of terrain to be associated with and "grounded" on the map (which is 200x200 as of now).

For diagonals to work, I suspect Tynan would have to severely alter his game engine (AKA "lot of work").
The problem I can see with this, is that if walls are not aligned to the gridmap anymore, the other structures (such as tables, consoles, nutrient dispenser...) will also need to be tweaked somehow to allow being aligned on those diagonal walls.
Then comes the problem of making use of the ground space: if a table (for instance) is diagonally put in a room, how many ground units (1x1) of that room are actually occupied, and thus which ones  are free to use or walk by ?
How do we define a unit as being occupied ?
If my table occupy only one pixel on the next square which is close to a wall, then characters can't walk on it, and neither can you build there ?
To alleviate this, I suppose Tynan would have to rewrite most of his code...

TL;DR: I kind of like the idea, but I do think it would bring a lot of issues.
Logged

Hypolite

  • Administrator
  • Colonist
  • *****
  • Posts: 419
  • I'm not Bruce Willis
    • View Profile
    • Reactoweb
Re: Wall building tool for diagonal lines
« Reply #2 on: October 12, 2013, 02:34:36 PM »

Let's not even speak of the pathfinding issues, rendered easier by the grid :)

I understand the request from a realism standpoint, but every new suggestion should raise the same question: will it improve the created stories? If it doesn't, it's not necessarily a bad idea, but it has few to no chance to be included in the game ever.
Logged

UsF

  • Drifter
  • **
  • Posts: 39
    • View Profile
Re: Wall building tool for diagonal lines
« Reply #3 on: October 12, 2013, 04:25:35 PM »

I do not mean diagonals as in half block like. I mean diagonals as in a pixel based diagonal. Like the one on the right side of this image: http://docs.overviewer.org/en/latest/_images/chunk_width.png

Of course it would need to add additional blocks to not allow people to move inbetween the gaps if it is possible to go through diagonal lines. I just want it to be able to drag out diagonal lines with the current mechanics, similar to the tool in paint:
http://i.imgur.com/WnuMnoH.jpg Notice how the diagonal line has gaps inbetween, the game needs to make them securely.

It is just an interface enhancement, right?
Logged

Hypolite

  • Administrator
  • Colonist
  • *****
  • Posts: 419
  • I'm not Bruce Willis
    • View Profile
    • Reactoweb
Re: Wall building tool for diagonal lines
« Reply #4 on: October 12, 2013, 05:00:46 PM »

Got it :)

In that case, yes, it's a good idea, and a cheap one too.
Logged

salt1219

  • Colonist
  • ***
  • Posts: 124
  • Reluctant Pirate
    • View Profile
Re: Wall building tool for diagonal lines
« Reply #5 on: October 12, 2013, 05:06:47 PM »

oh i get it now your talking about a line tool.
so maybe hold shift for squares and rectangles and just hold down the mouse for lines, but they can run at angles.

this is a great idea and it would help when building more interesting structures :D
yeah totally add this to the cheap ideas thread
Logged

British

  • The Third Kickstarter Backer
  • Colonist
  • ***
  • Posts: 455
  • Actually not
    • View Profile
Re: Wall building tool for diagonal lines
« Reply #6 on: October 12, 2013, 05:32:25 PM »

Seems doable, but it might get fugly.
Any tester that could provide us with a "simulation" of such a wall ?

This may brings a few mores issues, though...
Will two diagonal units be considered completely sealed (some games have problems with similar cases) ?
If not, and maybe also to improve visuals, double the width of the wall ?

That won't probably look any good though (not to mention the loss of usable space)...
Logged

miah999

  • Colonist
  • ***
  • Posts: 101
  • Did we crash?
    • View Profile
    • Front Toward Enemy
Re: Wall building tool for diagonal lines
« Reply #7 on: October 12, 2013, 06:38:06 PM »

Done.



You can build a room with diagonals, they even form a proper roof, and the door seems to function but looks weird.

« Last Edit: October 12, 2013, 06:48:56 PM by miah999 »
Logged

Hypolite

  • Administrator
  • Colonist
  • *****
  • Posts: 419
  • I'm not Bruce Willis
    • View Profile
    • Reactoweb
Re: Wall building tool for diagonal lines
« Reply #8 on: October 12, 2013, 06:40:35 PM »

It's not crossable, but it doesn't create roofs either if I remember correctly.
Logged

salt1219

  • Colonist
  • ***
  • Posts: 124
  • Reluctant Pirate
    • View Profile
Re: Wall building tool for diagonal lines
« Reply #9 on: October 12, 2013, 06:40:57 PM »

thank you for adding a screenshot miah999

makes me wounder if you can fire through the spots where two diagonal blocks converge (most likely not)
Logged

British

  • The Third Kickstarter Backer
  • Colonist
  • ***
  • Posts: 455
  • Actually not
    • View Profile
Re: Wall building tool for diagonal lines
« Reply #10 on: October 12, 2013, 06:47:21 PM »

makes me wounder if you can fire through the spots where two diagonal blocks converge (most likely not)
That's what I was actually thinking about...

miah999, what about walls that are not 45°, but more like 15° or so ?
One that would be like 12 blocks long, changing line every 4 blocks or so.
« Last Edit: October 12, 2013, 06:50:04 PM by British »
Logged

miah999

  • Colonist
  • ***
  • Posts: 101
  • Did we crash?
    • View Profile
    • Front Toward Enemy
Re: Wall building tool for diagonal lines
« Reply #11 on: October 12, 2013, 06:48:01 PM »

It's not crossable, but it doesn't create roofs either if I remember correctly.

It does add a roof in the build I have, I updated my post.
Logged

Hypolite

  • Administrator
  • Colonist
  • *****
  • Posts: 419
  • I'm not Bruce Willis
    • View Profile
    • Reactoweb
Re: Wall building tool for diagonal lines
« Reply #12 on: October 12, 2013, 06:50:39 PM »

Actually, the cover system currently allows for someone to fire from a corner cover at a slightly too open angle. The shots would visibly go through the rock or wall the shooter would be covered behind. This has been reported to Tynan's, but until its resolution, that kind of wall would provide an excellent fire cover. One can imagine a W wall to protect its colonists from raiders fire...
Logged

miah999

  • Colonist
  • ***
  • Posts: 101
  • Did we crash?
    • View Profile
    • Front Toward Enemy
Re: Wall building tool for diagonal lines
« Reply #13 on: October 12, 2013, 06:54:54 PM »

Seems to work, this is build 211 BTW, gotta go now.

Logged

British

  • The Third Kickstarter Backer
  • Colonist
  • ***
  • Posts: 455
  • Actually not
    • View Profile
Re: Wall building tool for diagonal lines
« Reply #14 on: October 12, 2013, 07:00:13 PM »

Thanks for your time, miah999.

This was mainly to confirm that it looks odd :P
Logged