Author Topic: [Done] Building ghost placement should persist while construction is waiting.  (Read 3913 times)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Normally when you place a building a ghost placer will appear however when the building is placed the ghost placer dissapears, i would like the ghost placement of the building to stay while the builder is moving towards the construction site.

Basically, When you have placed a building for construction the "ghost building" should appear where the building is due to construction.
« Last Edit: 23 June 2012, 16:39:06 by tomreyn »
WiP Game developer.
I do danish translations.
"i break stuff"

victorj

  • Guest
This is very good,because the units over the location of the building, prevents the build, happened with me a lot, when I was building a castle located ended when selecting a location, near the area of resources, the workers ended up there mess up my building . Very good thank you, hopefully this and many new things MegaGlest asked to be made. :D
« Last Edit: 30 May 2012, 13:38:14 by victorj »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
So you're asking for the ghost model to be placed while you're building the building? I don't think that would work well as an engine feature. If you recall, you can already have a building model, and if you wish, you can make that building model be a "ghost model" of the original building (just some texture tweaks). If we were to make that ghost model always appear when building, then it would conflict with the be-built models that many other modders already use.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
No, Only while the building is not actually built, as in when the unit travels to the construction site before actually building the building and after you have given a unit the order to construct something.
WiP Game developer.
I do danish translations.
"i break stuff"

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
The point is to mark the location where the structure will be built as the workers are walking toward it. I think it a good idea  :D
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
The point is to mark the location where the structure will be built as the workers are walking toward it. I think it a good idea  :D

Exactly, thanks for clearifying it Ishmaru. :)
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
No, Only while the building is not actually built, as in when the unit travels to the construction site before actually building the building and after you have given a unit the order to construct something.
Ah, I see. Yeah, that would be a good idea.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Pizza90

  • Draco Rider
  • *****
  • Posts: 282
    • View Profile
I agree, this would be an interesting feature :)
I translated Megaglest in italian and i keep the translation updated.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
So, Titi Now that ive seen that you liked it :P, have you perhaps seen a little on the code on this?, is it something you perhaps would want to do?
WiP Game developer.
I do danish translations.
"i break stuff"

MightyMic

  • Technician
  • ****
  • Posts: 150
  • To mod, or not to mod...
    • View Profile
I think it should also be unwalkable... as I've had workers walk over the place where the building is supposed to be built and it gives the message "building can't be placed here"

So this feature should place a ghost of the building on the spot chosen to build and make it unwalkable as well...

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
I think it should also be unwalkable... as I've had workers walk over the place where the building is supposed to be built and it gives the message "building can't be placed here"

So this feature should place a ghost of the building on the spot chosen to build and make it unwalkable as well...

One issue with that during attacks it might suck to have an area blocked by an invisible holder object in my opinion
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Added in svn rev 3407, we will show a light green colored version of the model while the unit is walking to the unit placement location.

UPDATED:

I changed it so it uses the team colour to render the ghosted image. That way you are able to see all of yours and your team members building placements and can tell the difference.
« Last Edit: 22 June 2012, 13:30:57 by softcoder »

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
I think it should also be unwalkable... as I've had workers walk over the place where the building is supposed to be built and it gives the message "building can't be placed here"

So this feature should place a ghost of the building on the spot chosen to build and make it unwalkable as well...

One issue with that during attacks it might suck to have an area blocked by an invisible holder object in my opinion

why in the world would you place a building while your army marches, and even if you did you meant it to be built, not for a worker to get stuck did you?

Thats AWESOME softcoder im going to check out svn right now!
WiP Game developer.
I do danish translations.
"i break stuff"

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
I see some problems with this new feature in case the building place would be blocked/reserved.
In this case you can manage to build building "ghosts" in the way of the enemy which will block him!

example:

You play conflict. now you block two of your workers so they cannot reach the mid of the map.now you give a command to each of the workers to place a building in the middle of the map. now a ghostimage of the building is shown there ( which is ok ), but noone would be able to pass this place. Even the enemy canno attack/pass there, because there is nothing, just a ghost.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
What if building ghosts only appear if the worker can reach the building spot in a reasonable number of steps, say, 20 (so if I issue a build command on the other side of the map, the ghost won't appear until I get much closer). Or perhaps show the ghost the whole time, but only make it unwalkable when the worker is close (and has to be able to reach it, ie, not obstructed). If we want to get really advanced, we could even say that units in the area that the building is meant to be built will move out of the way when the ghost is supposed to become unwalkable.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
I don't plan to block the area, its only a visual indicator of a planned build, thats it. It should work this way right now (not blocking units)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
I really like it even as it is now, i think i would have liked it more without the teamcolour(as it seems to paint the ENTIRE building in the team colour). perhaps only the team colours that are on the building and the rest of the mest/building painted green?.

In any case , you can see the building and see the difference too. And thats awesome!, Big improvement!
WiP Game developer.
I do danish translations.
"i break stuff"

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Why does it have teamcolor? Is it visable to all players? If not it would look better without any color with 75% transparency. Or maybe a slight green tint, I personally wouldent want to see an unsightly green blob on my screen  :P
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
if all players see it, teamcolor is a good idea. If only the player itself sees it , I would choose a light grey or simply the same red you see while placing the unit.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
All players on the same team see their team building placements using team color with 50% alpha

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
okay, that seems interesting i will have to play a game sometime this weekend to see that.
WiP Game developer.
I do danish translations.
"i break stuff"

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I see some problems with this new feature in case the building place would be blocked/reserved.
In this case you can manage to build building "ghosts" in the way of the enemy which will block him!

example:

Titi, it looks like your example image was lost. But I guess that's no longer relevant now, right?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
I see some problems with this new feature in case the building place would be blocked/reserved.
In this case you can manage to build building "ghosts" in the way of the enemy which will block him!

example:

Titi, it looks like your example image was lost. But I guess that's no longer relevant now, right?
There never was an image there.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

 

anything